:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --text: #151b19;
  --muted: #5c6662;
  --line: #d8ded9;
  --panel: #ffffff;
  --soft: #eef2ee;
  --accent: #235f4b;
  --accent-strong: #143f31;
  --danger: #8d2f2f;
  --warning: #8a6315;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

.masthead,
.feed,
.panel,
.admin-grid {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 22px;
  border-bottom: 1px solid var(--line);
}

.masthead.compact {
  padding-top: 28px;
}

h1 {
  margin: 0 0 8px;
  font-size: 38px;
  line-height: 1.05;
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.masthead p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-top: 8px;
}

.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
}

.feed-filters {
  width: min(980px, calc(100vw - 32px));
  margin: 0 auto;
}

.admin-filters {
  padding: 0 0 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}

.filter-chip.active {
  border-color: var(--accent);
  background: #e7f0eb;
  color: var(--accent-strong);
  font-weight: 700;
}

.feed {
  padding: 22px 0 56px;
}

.item,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin: 14px 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta span {
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.meta span:last-child {
  border-right: 0;
}

.item p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

blockquote {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--line);
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr);
  gap: 14px;
  padding-top: 22px;
}

label {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
.button.secondary {
  background: var(--soft);
  color: var(--text);
  border: 1px solid var(--line);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.admin-shell {
  width: min(1440px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 18px 0 56px;
  overflow-x: hidden;
}

.admin-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
  font-size: 30px;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-actions {
  padding: 0;
  align-items: center;
}

.top-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  color: var(--text);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 0;
}

.status-strip div {
  min-width: 0;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-strip strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.status-strip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.mcp-dashboard,
.mcp-item-workspace {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.mcp-item-workspace {
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 14px;
}

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

.control-panel,
.edit-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.edit-panel {
  width: min(980px, 100%);
  margin: 16px 0 0;
}

.panel-title,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading {
  margin: 2px 0 8px;
}

.runs-heading {
  margin-top: 22px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.control-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: 17px;
}

.source-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.source-list div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.source-list dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.source-list dd {
  margin: 2px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-list dd span {
  display: block;
}

.source-handle {
  font-weight: 700;
}

.compact-form {
  display: grid;
  gap: 12px;
}

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

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.6fr);
  gap: 8px;
}

.span-2 {
  grid-column: 1 / -1;
}

.compact-form label {
  margin: 0;
}

.compact-form input,
.compact-form textarea,
.compact-form select {
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.url-pull-form input {
  min-height: 40px;
}

.form-notice,
.form-error {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.form-notice {
  background: #e7f0eb;
  color: var(--accent-strong);
}

.form-error {
  background: #f3e8e8;
  color: var(--danger);
}

.secondary-form {
  margin-top: 8px;
}

.mcp-surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mcp-surface-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.mcp-surface-card h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.mcp-surface-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
}

.mcp-surface-card code,
.preview-block code {
  overflow-wrap: anywhere;
}

.table-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.mcp-items-table table {
  min-width: 860px;
}

.preview-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.preview-block + .preview-block {
  margin-top: 8px;
}

.preview-block summary {
  cursor: pointer;
  padding: 9px 10px;
  font-weight: 700;
}

.preview-block pre {
  max-height: 520px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-top: 1px solid var(--line);
  color: #25302c;
  background: #fafbf9;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #d3b46d;
  border-radius: 8px;
  background: #f7f0dd;
}

.review-actions strong,
.review-actions span {
  display: block;
}

.review-actions span {
  color: var(--muted);
  font-size: 13px;
}

.admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-item.hidden,
.admin-item.draft,
.admin-item.deleted {
  background: #fbfaf7;
}

.admin-item.needs-review {
  border-color: #d3b46d;
}

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

.admin-item h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 1.25;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dedupe-note {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  font-size: 13px;
}

.dedupe-note strong,
.dedupe-note span,
.dedupe-note small {
  display: block;
}

.dedupe-note small {
  margin-top: 2px;
  color: var(--muted);
}

.review-note {
  background: #f7f0dd;
}

.lock-note {
  background: #eef3f7;
}

.item-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.item-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
}

.status-pill {
  padding: 2px 7px;
  border-radius: 999px;
  background: #e7f0eb;
  color: var(--accent-strong);
  font-weight: 700;
}

.status-pill.hidden,
.status-pill.deleted {
  background: #f3e8e8;
  color: var(--danger);
}

.status-pill.draft {
  background: #f4ead1;
  color: var(--warning);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.row-actions form {
  margin: 0;
}

.row-actions button,
.row-actions .button {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.table-wrap table {
  min-width: 720px;
}

.actions form {
  margin: 0;
}

.actions form:last-child button {
  background: var(--danger);
}

.status {
  font-weight: 700;
}

.status.hidden,
.status.deleted,
.status.draft {
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  vertical-align: top;
}

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

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .masthead,
  .admin-grid {
    display: block;
  }

  h1 {
    font-size: 32px;
  }

  .admin-topbar h1 {
    font-size: 28px;
    line-height: 1.1;
  }

  nav {
    margin-top: 16px;
  }

  .admin-shell {
    width: 100%;
    padding-left: 8px;
    padding-right: 8px;
  }

  .admin-topbar,
  .admin-workspace,
  .mcp-item-workspace,
  .admin-item {
    display: block;
  }

  .panel-title,
  .section-heading {
    display: block;
  }

  .section-heading span {
    display: block;
    margin-top: 4px;
  }

  .panel-title form {
    margin-top: 10px;
  }

  .top-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }

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

  .admin-sidebar {
    position: static;
    margin-bottom: 14px;
  }

  .control-panel,
  .source-list,
  .source-list div,
  .source-list dd {
    width: 100%;
    max-width: calc(100vw - 34px);
  }

  .row-actions {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .review-actions {
    display: block;
  }

  .review-actions form {
    margin-top: 10px;
  }

  .form-grid,
  .form-row,
  .mcp-surface-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

/* Public archive: Phosphor Light / Slate editorial index. */
:root {
  --phosphor-paper: #f1f4f3;
  --phosphor-slate: #24313a;
  --phosphor-slate-2: #33424c;
  --phosphor-slate-pale: #e1e8e7;
  --phosphor-rule: #9caaae;
  --phosphor-accent: #98c61f;
  --phosphor-accent-dark: #506d0e;
}

body {
  background: var(--phosphor-paper);
}

.public-masthead,
.feed-filters,
.feed-index,
.public-footer {
  width: min(1180px, calc(100vw - 48px));
}

.public-masthead {
  align-items: baseline;
  padding: 34px 0 16px;
  border-bottom: 1px solid var(--phosphor-slate-2);
}

.public-masthead::after {
  display: none;
}

.public-masthead h1 {
  margin: 0;
  color: var(--phosphor-slate);
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.public-masthead h1 a {
  color: inherit;
  text-decoration: none;
}

.public-masthead .public-utility {
  padding: 0;
}

.public-masthead .public-utility a {
  min-height: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--phosphor-accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.feed-filters {
  gap: 34px;
  padding: 0;
  border-bottom: 1px solid var(--phosphor-rule);
}

.feed-filters .filter-chip {
  position: relative;
  min-height: auto;
  padding: 16px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-filters .filter-chip:hover {
  color: var(--phosphor-accent-dark);
}

.feed-filters .filter-chip.active {
  background: transparent;
  color: var(--phosphor-accent-dark);
}

.feed-filters .filter-chip.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--phosphor-accent);
  content: "";
}

.feed-index {
  padding: 18px 0 54px;
}

.feed-index .item,
.detail-feed .item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--phosphor-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.feed-index .item:hover,
.detail-feed .item:hover {
  box-shadow: none;
  transform: none;
}

.item-date-rail {
  padding: 24px 22px 24px 0;
  border-right: 1px solid #bac5c7;
}

.item-date-rail time {
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.item-body {
  min-width: 0;
  padding: 24px 0 24px 54px;
}

.item-primary.has-image {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.item-image-link {
  display: block;
  margin: 2px 0 0;
  border: 1px solid var(--phosphor-rule);
  background: var(--phosphor-slate-pale);
}

.item-image {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feed-index .meta,
.detail-feed .meta {
  display: flex;
  gap: 0;
  margin: 0 0 8px;
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feed-index .meta span,
.detail-feed .meta span {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.feed-index .meta span + span::before,
.detail-feed .meta span + span::before {
  margin: 0 11px;
  color: var(--phosphor-rule);
  content: "·";
}

.feed-index .item h2,
.detail-feed .item h2 {
  max-width: 850px;
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.feed-index .item h2 a,
.detail-feed .item h2 a {
  color: var(--phosphor-slate);
}

.feed-index .item h2 a:hover,
.detail-feed .item h2 a:hover {
  color: var(--phosphor-slate);
  text-decoration-color: var(--phosphor-accent);
  text-decoration-thickness: 2px;
}

.feed-index .item-copy > p,
.detail-feed .item-copy > p {
  display: -webkit-box;
  max-width: 790px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.detail-feed .item-copy > p {
  display: block;
  overflow: visible;
}

.item-footer {
  margin-top: 9px;
}

.item-footer a {
  min-height: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--phosphor-accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phosphor-accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 500;
}

.item-footer a:hover {
  border-color: var(--phosphor-accent-dark);
  background: transparent;
}

.related-parent-note {
  margin-top: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.related-items {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  border-left: 2px solid var(--phosphor-accent);
  background: rgba(221, 229, 229, 0.64);
}

.related-items h3 {
  align-self: stretch;
  margin: 0;
  padding: 16px 12px;
  border-right: 1px solid #bac5c7;
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.related-list {
  gap: 0;
}

.related-item {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #bac5c7;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.related-item-layout:not(:has(.related-thumb)) {
  grid-template-columns: minmax(0, 1fr) auto;
}

.related-thumb-link,
.related-thumb {
  width: 120px;
}

.related-thumb {
  border: 1px solid var(--phosphor-rule);
  border-radius: 0;
}

.related-role {
  margin-bottom: 2px;
  color: var(--phosphor-accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.related-item h4 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.related-item h4 a {
  color: var(--phosphor-slate);
  text-decoration: none;
}

.related-meta {
  margin-top: 3px;
  color: #56666d;
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.related-item p {
  display: none;
}

.related-action {
  color: var(--phosphor-accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  white-space: nowrap;
}

.media-transcript {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.public-footer {
  display: flex;
  gap: 24px;
  margin: 0 auto 44px;
  padding-top: 14px;
  border-top: 1px solid var(--phosphor-slate-2);
}

.public-footer a {
  color: var(--phosphor-slate-2);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .public-masthead,
  .feed-filters,
  .feed-index,
  .public-footer {
    width: min(100% - 28px, 1180px);
  }

  .public-masthead {
    padding-top: 28px;
  }

  .feed-filters {
    gap: 20px;
    overflow-x: auto;
  }

  .feed-filters .filter-chip {
    flex: 0 0 auto;
  }

  .feed-index .item,
  .detail-feed .item {
    grid-template-columns: 1fr;
  }

  .item-date-rail {
    padding: 22px 0 0;
    border-right: 0;
  }

  .item-body {
    padding: 9px 0 24px;
  }

  .item-primary.has-image {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
  }
}

/* Terminal skin: preserves the established archive/admin layout while matching
   cameronwilson.com.au's black, phosphor-green, mono visual language. */
:root {
  color-scheme: dark;
  --terminal-bg: #050807;
  --terminal-panel: #0a100d;
  --terminal-panel-2: #101915;
  --terminal-green: #00d084;
  --terminal-green-soft: #70e0b0;
  --terminal-green-dim: #1f7254;
  --terminal-text: #c9ded4;
  --terminal-muted: #789487;
  --terminal-line: #214638;
  --bg: var(--terminal-bg);
  --text: var(--terminal-text);
  --muted: var(--terminal-muted);
  --line: var(--terminal-line);
  --panel: var(--terminal-panel);
  --soft: var(--terminal-panel-2);
  --accent: var(--terminal-green);
  --accent-strong: var(--terminal-green-soft);
  --phosphor-paper: var(--terminal-bg);
  --phosphor-slate: var(--terminal-text);
  --phosphor-slate-2: var(--terminal-muted);
  --phosphor-slate-pale: var(--terminal-panel-2);
  --phosphor-rule: var(--terminal-line);
  --phosphor-accent: var(--terminal-green);
  --phosphor-accent-dark: var(--terminal-green-soft);
}

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

body {
  background:
    linear-gradient(rgba(0, 208, 132, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 208, 132, 0.018) 1px, transparent 1px),
    var(--terminal-bg);
  background-size: 28px 28px;
  color: var(--terminal-text);
  font-family: "Red Hat Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--terminal-green);
  box-shadow: 0 0 16px rgba(0, 208, 132, 0.5);
  content: "";
  pointer-events: none;
}

a,
.public-masthead h1 a,
.feed-index .item h2 a,
.detail-feed .item h2 a,
.feed-index .item-footer a,
.detail-feed .item-footer a,
.public-footer a,
.related-parent-note a {
  color: var(--terminal-green);
  text-decoration-color: var(--terminal-green-dim);
}

a:hover,
.public-masthead h1 a:hover,
.feed-index .item h2 a:hover,
.detail-feed .item h2 a:hover {
  color: #7fffc8;
  text-decoration-color: #7fffc8;
}

h1,
h2,
h3,
h4,
.public-masthead h1,
.feed-index .item h2,
.detail-feed .item h2 {
  color: var(--terminal-green);
  font-family: inherit;
  letter-spacing: -0.035em;
}

.masthead,
.masthead.public-masthead,
.admin-topbar {
  border-color: var(--terminal-line);
  background: transparent;
}

.public-masthead h1 {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 650;
}

.public-masthead h1::before {
  color: var(--terminal-muted);
  content: "$ ";
  font-weight: 400;
}

.public-masthead::after {
  height: 1px;
  background: var(--terminal-line);
}

.public-utility a,
.public-footer a,
.filter-chip,
.meta,
.item-date-rail,
.eyebrow,
.table-meta,
th {
  font-family: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-utility a::before,
.public-footer a::before {
  color: var(--terminal-muted);
  content: "./";
}

.feed-filters {
  border-color: var(--terminal-line);
}

.filter-chip {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--terminal-muted);
}

.filter-chip::before {
  content: "[";
}

.filter-chip::after {
  content: "]";
}

.filter-chip.active {
  background: transparent;
  color: var(--terminal-green);
  box-shadow: none;
}

.feed-index .item,
.detail-feed .item {
  border-color: var(--terminal-line);
  background: rgba(5, 8, 7, 0.86);
}

.feed-index .item:hover,
.detail-feed .item:hover {
  background: rgba(10, 20, 15, 0.92);
  box-shadow: inset 3px 0 0 var(--terminal-green);
}

.item-date-rail,
.meta,
.related-meta,
.form-note,
small {
  color: var(--terminal-muted);
}

.feed-index .item h2,
.detail-feed .item h2 {
  font-size: clamp(24px, 3vw, 37px);
  font-weight: 560;
}

.feed-index .item-copy > p,
.detail-feed .item-copy > p,
.item p,
td {
  color: var(--terminal-text);
}

.item-image-link,
.related-thumb,
.feed-index .item-image-link,
.detail-feed .item-image-link {
  border-color: var(--terminal-line);
  border-radius: 0;
  background: var(--terminal-panel-2);
}

.item-image,
.related-thumb img {
  filter: saturate(0.7) contrast(1.08) brightness(0.88);
}

.related-items,
.feed-index .related-items,
.detail-feed .related-items {
  border-color: var(--terminal-line);
  background: var(--terminal-panel);
}

.related-item,
.feed-index .related-item,
.detail-feed .related-item {
  border-color: var(--terminal-line);
}

.control-panel,
.edit-panel,
.admin-item,
.mcp-surface-card,
.table-wrap,
.source-list div,
.dedupe-note,
.empty,
.panel,
.item {
  border-color: var(--terminal-line);
  border-radius: 0;
  background: rgba(10, 16, 13, 0.96);
  box-shadow: none;
}

input,
textarea,
select {
  border-color: var(--terminal-line);
  border-radius: 0;
  background: #060b08;
  color: var(--terminal-text);
  caret-color: var(--terminal-green);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--terminal-green);
  box-shadow: 0 0 0 1px var(--terminal-green-dim);
  outline: 0;
}

button,
.button {
  border: 1px solid var(--terminal-green-dim);
  border-radius: 0;
  background: transparent;
  color: var(--terminal-green);
  font-family: inherit;
}

button:hover,
.button:hover {
  border-color: var(--terminal-green);
  background: rgba(0, 208, 132, 0.1);
}

button:disabled {
  border-color: var(--terminal-line);
  color: var(--terminal-muted);
  cursor: not-allowed;
}

table,
th,
td {
  border-color: var(--terminal-line);
}

th {
  color: var(--terminal-green-soft);
}

.status-strip > div {
  border-color: var(--terminal-line);
  border-radius: 0;
  background: var(--terminal-panel);
}

.status-strip strong {
  color: var(--terminal-green);
}

.profile-state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0;
  border: 1px solid var(--terminal-line);
  background: var(--terminal-line);
}

.profile-state-grid > div {
  padding: 14px;
  background: var(--terminal-panel);
}

.profile-state-grid p {
  margin: 4px 0 8px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-actions form {
  margin: 0;
}

.public-footer {
  border-color: var(--terminal-line);
}

@media (max-width: 720px) {
  body {
    background-size: 22px 22px;
  }

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

@media (max-width: 560px) {
  .public-masthead h1 {
    font-size: 52px;
  }

  .feed-filters {
    gap: 18px;
  }

  .feed-index .item h2,
  .detail-feed .item h2 {
    font-size: 31px;
  }

  .item-primary.has-image {
    display: block;
  }

  .item-primary.has-image .item-image-link {
    width: 150px;
    margin: 0 0 14px;
  }

  .related-items {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .related-items h3 {
    padding: 12px 9px;
    font-size: 9px;
  }

  .related-item-layout,
  .related-item-layout:not(:has(.related-thumb)) {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .related-thumb-link,
  .related-thumb {
    width: 82px;
  }

  .related-action {
    display: none;
  }

  .related-item h4 {
    font-size: 15px;
  }
}

/* Visual polish pass: keep the app lightweight, but give the archive clearer hierarchy. */
:root {
  --bg: #eef4f2;
  --text: #111820;
  --muted: #5c6873;
  --line: #ccd9dd;
  --panel: #fffefa;
  --soft: #f5f8f7;
  --accent: #0b6f73;
  --accent-strong: #06484b;
  --accent-blue: #24599d;
  --accent-warm: #b65f32;
  --danger: #a43c42;
  --warning: #93691a;
  --shadow-sm: 0 1px 2px rgba(17, 24, 32, 0.07);
  --shadow-md: 0 14px 34px rgba(17, 24, 32, 0.11);
}

body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
}

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

a:hover {
  color: var(--accent-strong);
}

.masthead,
.feed,
.panel,
.admin-grid,
.feed-filters {
  width: min(1060px, calc(100vw - 40px));
}

.masthead {
  align-items: flex-end;
  padding: 54px 0 28px;
  border-bottom: 0;
}

.public-masthead {
  position: relative;
}

.public-masthead::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue) 58%, var(--accent-warm));
  content: "";
}

.masthead.compact {
  padding-top: 34px;
}

h1 {
  margin: 0 0 10px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  letter-spacing: 0;
}

.masthead p {
  max-width: 720px;
  color: #465462;
  font-size: 18px;
  line-height: 1.45;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.masthead nav,
.top-actions {
  gap: 8px;
}

.masthead nav a,
.top-actions a,
.item-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.9);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.masthead nav a:hover,
.top-actions a:hover,
.item-footer a:hover {
  border-color: #b9c5cf;
  background: #fff;
  color: var(--accent-strong);
}

.filter-nav {
  gap: 7px;
  padding: 16px 0 0;
}

.feed-filters {
  padding-bottom: 6px;
}

.filter-chip {
  min-height: 34px;
  padding: 6px 12px;
  border-color: #c7d6da;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.86);
  color: #32404a;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

.filter-chip.active {
  border-color: var(--accent);
  background: #dff2ef;
  color: var(--accent-strong);
}

.feed {
  padding: 20px 0 64px;
}

.item {
  position: relative;
  overflow: hidden;
  padding: 22px 24px 20px;
  border: 1px solid #d5e0e3;
  border-left-width: 5px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.item + .item {
  margin-top: 16px;
}

.item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.item.source-abc {
  border-left-color: var(--accent-blue);
}

.item.source-mastodon {
  border-left-color: var(--accent);
}

.item.source-manual {
  border-left-color: var(--accent-warm);
}

.item.source-camclip {
  border-left-color: #7c3aed;
}

.item-image-link {
  display: block;
  margin: -22px -24px 20px;
  overflow: hidden;
  background: #101827;
}

.item-image {
  display: block;
  width: 100%;
  max-height: 520px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.meta,
.item-kicker {
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.meta span,
.item-kicker span {
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #d6e1e4;
  border-radius: 999px;
  background: var(--soft);
}

.meta span {
  border-right: 1px solid #d6e1e4;
}

.meta span:last-child {
  border-right: 1px solid #d6e1e4;
}

.item h2,
.admin-item h3 {
  margin: 0;
}

.item h2 a,
.admin-item h3 a {
  color: var(--text);
  text-decoration: none;
}

.item h2 a:hover,
.admin-item h3 a:hover {
  color: var(--accent-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.item h2 {
  max-width: 820px;
  font-size: 25px;
  line-height: 1.14;
}

.item p {
  max-width: 820px;
  margin-top: 12px;
  color: #32404b;
  line-height: 1.62;
}

.feed-index .item > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.detail-feed .item > p {
  display: block;
  overflow: visible;
}

.item-footer {
  display: flex;
  margin-top: 16px;
}

.related-parent-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.related-parent-note span {
  font-weight: 700;
}

.related-items {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.related-items h3 {
  margin: 0 0 10px;
  color: #33414d;
  font-size: 15px;
  line-height: 1.25;
}

.related-list {
  display: grid;
  gap: 9px;
}

.related-item {
  padding: 12px 13px;
  border: 1px solid #d6e1e4;
  border-left: 3px solid var(--accent-warm);
  border-radius: 8px;
  background: #fbfcfa;
}

.related-item-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.related-item-layout:not(:has(.related-thumb)) {
  grid-template-columns: 1fr;
}

.related-thumb {
  display: block;
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  background: #e8edef;
}

.media-transcript {
  margin-top: 10px;
  color: #4c5964;
  font-size: 14px;
}

.media-transcript summary {
  cursor: pointer;
  font-weight: 700;
}

.media-transcript-text {
  margin-top: 7px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.transcript-status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

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

  .related-thumb {
    width: 96px;
  }
}

.related-item h4 {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.3;
}

.related-item p {
  margin-top: 6px;
  color: #4c5964;
  font-size: 14px;
}

.related-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.related-meta span {
  padding-right: 7px;
  border-right: 1px solid var(--line);
}

.related-meta span:last-child {
  border-right: 0;
}

blockquote {
  border-left-color: var(--accent);
  border-radius: 0 8px 8px 0;
  background: #f6faf9;
}

button,
.button {
  border-radius: 8px;
  background: var(--accent);
  font-weight: 650;
  box-shadow: var(--shadow-sm);
}

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

button.secondary,
.button.secondary {
  background: #fff;
  color: #24313b;
}

button.secondary:hover,
.button.secondary:hover {
  border-color: #aebfc5;
  background: var(--soft);
}

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

input,
textarea,
select {
  border-color: #cdd6df;
  border-radius: 8px;
  background: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 107, 95, 0.13);
  outline: 0;
}

.admin-shell {
  width: min(1440px, calc(100vw - 32px));
}

.admin-topbar {
  padding: 16px 0 18px;
  border-bottom-color: #ccd6df;
}

.admin-topbar h1 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 40px;
}

.status-strip {
  gap: 10px;
  padding: 16px 0;
}

.status-strip div,
.control-panel,
.edit-panel,
.admin-item,
.review-actions,
.table-wrap,
.preview-block,
.mcp-surface-card {
  border-color: #d5e0e3;
  box-shadow: var(--shadow-sm);
}

.status-strip div {
  min-height: 74px;
  padding: 14px;
  background: #fff;
}

.status-strip strong {
  font-size: 27px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

.status-strip span {
  color: #66717c;
  font-weight: 650;
}

.admin-workspace {
  gap: 18px;
}

.admin-sidebar {
  gap: 16px;
}

.control-panel,
.edit-panel {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
}

.control-panel h2,
.section-heading h2 {
  font-size: 18px;
}

.source-list div,
.mcp-surface-card,
.dedupe-note {
  background: var(--soft);
}

.admin-items {
  gap: 10px;
}

.admin-item {
  padding: 14px 16px;
  background: #fff;
}

.admin-item h3 {
  font-size: 17px;
}

.row-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-wrap {
  background: #fff;
}

th {
  color: #44515c;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: #28323b;
}

.empty {
  padding: 18px;
  border: 1px dashed #cdd6df;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

@media (max-width: 760px) {
  .masthead,
  .feed,
  .feed-filters,
  .admin-grid {
    width: min(100% - 24px, 1060px);
  }

  .masthead {
    padding: 30px 0 20px;
  }

  h1 {
    font-size: 40px;
  }

  .masthead p {
    font-size: 16px;
  }

  .masthead nav {
    margin-top: 18px;
    flex-wrap: wrap;
  }

  .item {
    padding: 18px 16px;
  }

  .item h2 {
    font-size: 21px;
  }

  .feed-index .item > p {
    -webkit-line-clamp: 5;
  }

  .admin-shell {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Final public-surface precedence over the shared admin polish rules above. */
body {
  background: var(--phosphor-paper);
}

.masthead.public-masthead,
.feed-filters,
.feed.feed-index,
.public-footer {
  width: min(1180px, calc(100vw - 48px));
}

.masthead.public-masthead {
  align-items: baseline;
  padding: 34px 0 16px;
  border-bottom: 1px solid var(--phosphor-slate-2);
}

.feed.feed-index {
  padding: 18px 0 54px;
}

.feed-index .item-image-link,
.detail-feed .item-image-link {
  margin: 2px 0 0;
  border-radius: 0;
  background: var(--phosphor-slate-pale);
}

.feed-index .item-footer a,
.detail-feed .item-footer a {
  min-height: auto;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--phosphor-accent);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--phosphor-accent-dark);
  font-size: 13px;
  font-weight: 500;
}

.feed-index .item-footer a:hover,
.detail-feed .item-footer a:hover {
  border-color: var(--phosphor-accent-dark);
  background: transparent;
}

.feed-index .related-items,
.detail-feed .related-items {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  background: rgba(221, 229, 229, 0.64);
}

.feed-index .related-items h3,
.detail-feed .related-items h3 {
  margin: 0;
  padding: 14px 12px;
  color: var(--phosphor-slate-2);
  font-size: 10px;
  line-height: 1;
}

.feed-index .related-list,
.detail-feed .related-list {
  gap: 0;
}

.feed-index .related-item,
.detail-feed .related-item {
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid #bac5c7;
  border-radius: 0;
  background: transparent;
}

.feed-index .related-item:last-child,
.detail-feed .related-item:last-child {
  border-bottom: 0;
}

.feed-index .related-item-layout,
.detail-feed .related-item-layout {
  align-items: center;
}

.feed-index .related-thumb,
.detail-feed .related-thumb {
  border-radius: 0;
}

.feed-index .related-item h4,
.detail-feed .related-item h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.2;
}

.feed-index .related-item p,
.detail-feed .related-item p {
  display: none;
}

.feed-index .related-meta,
.detail-feed .related-meta {
  margin-top: 3px;
  font-size: 10px;
}

.feed-index .related-parent-note a,
.detail-feed .related-parent-note a {
  color: var(--phosphor-accent-dark);
}

@media (max-width: 820px) {
  .masthead.public-masthead,
  .feed-filters,
  .feed.feed-index,
  .public-footer {
    width: min(100% - 28px, 1180px);
  }

  .masthead.public-masthead {
    padding: 26px 0 14px;
  }
}

/* Keep terminal tokens and surfaces last in the cascade. */
:root {
  color-scheme: dark;
  --bg: #050807;
  --text: #c9ded4;
  --muted: #789487;
  --line: #214638;
  --panel: #0a100d;
  --soft: #101915;
  --accent: #00d084;
  --accent-strong: #70e0b0;
  --accent-blue: #00d084;
  --phosphor-paper: #050807;
  --phosphor-slate: #c9ded4;
  --phosphor-slate-2: #789487;
  --phosphor-slate-pale: #101915;
  --phosphor-rule: #214638;
  --phosphor-accent: #00d084;
  --phosphor-accent-dark: #70e0b0;
}

body {
  background:
    linear-gradient(rgba(0, 208, 132, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 208, 132, 0.018) 1px, transparent 1px),
    #050807;
  background-size: 28px 28px;
  color: var(--text);
  font-family: "Red Hat Mono", "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

h1,
h2,
h3,
h4,
.public-masthead h1,
.feed-index .item h2,
.detail-feed .item h2 {
  color: #00d084;
  font-family: inherit;
}

.feed-index .item,
.detail-feed .item,
.control-panel,
.edit-panel,
.admin-item,
.mcp-surface-card,
.table-wrap,
.source-list div,
.dedupe-note,
.empty,
.panel,
.item,
.status-strip > div {
  border-color: #214638;
  border-radius: 0;
  background: rgba(10, 16, 13, 0.96);
  box-shadow: none;
}

.feed-index .item:hover,
.detail-feed .item:hover {
  background: rgba(10, 20, 15, 0.96);
  box-shadow: inset 3px 0 0 #00d084;
}

input,
textarea,
select {
  border-color: #214638;
  border-radius: 0;
  background: #060b08;
  color: #c9ded4;
}

button,
.button {
  border: 1px solid #1f7254;
  border-radius: 0;
  background: transparent;
  color: #00d084;
  box-shadow: none;
}

th,
td,
table,
.public-footer,
.masthead.public-masthead,
.related-item,
.feed-index .related-item,
.detail-feed .related-item {
  border-color: #214638;
}

td,
.feed-index .item-copy > p,
.detail-feed .item-copy > p,
.item p {
  color: #c9ded4;
}

.feed-index .related-items,
.detail-feed .related-items,
.feed-index .related-item,
.detail-feed .related-item {
  background: #0a100d;
}

.feed-index .related-item h4,
.detail-feed .related-item h4 {
  color: #70e0b0;
}

/* Softer terminal reading palette: preserve the character, reduce eye strain. */
:root {
  --bg: #0b0f0d;
  --text: #d5ddd8;
  --muted: #8f9e96;
  --line: #2a3a32;
  --panel: #111714;
  --soft: #171f1b;
  --accent: #39c98d;
  --accent-strong: #75d9ad;
  --phosphor-paper: #0b0f0d;
  --phosphor-slate: #d5ddd8;
  --phosphor-slate-2: #8f9e96;
  --phosphor-slate-pale: #171f1b;
  --phosphor-rule: #2a3a32;
  --phosphor-accent: #39c98d;
  --phosphor-accent-dark: #75d9ad;
}

body {
  background:
    linear-gradient(rgba(57, 201, 141, 0.009) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 201, 141, 0.007) 1px, transparent 1px),
    #0b0f0d;
  background-size: 36px 36px;
  color: var(--text);
  line-height: 1.62;
}

h2,
h3,
h4,
.feed-index .item h2,
.detail-feed .item h2,
.feed-index .related-item h4,
.detail-feed .related-item h4 {
  color: #dbe4df;
}

.feed-index .item h2 a,
.detail-feed .item h2 a,
.feed-index .related-item h4 a,
.detail-feed .related-item h4 a {
  color: #dbe4df;
  text-decoration-color: transparent;
}

.feed-index .item h2 a:hover,
.detail-feed .item h2 a:hover,
.feed-index .related-item h4 a:hover,
.detail-feed .related-item h4 a:hover {
  color: var(--accent-strong);
}

h1,
.public-masthead h1 {
  color: var(--accent);
}

a,
.feed-index .item-footer a,
.detail-feed .item-footer a,
.feed-index .related-parent-note a,
.detail-feed .related-parent-note a {
  color: var(--accent-strong);
}

.feed-index .item,
.detail-feed .item,
.control-panel,
.edit-panel,
.admin-item,
.mcp-surface-card,
.table-wrap,
.source-list div,
.dedupe-note,
.empty,
.panel,
.item,
.status-strip > div {
  border-color: var(--line);
  background: rgba(17, 23, 20, 0.97);
}

.feed-index .item:hover,
.detail-feed .item:hover {
  background: rgba(20, 28, 24, 0.98);
  box-shadow: inset 2px 0 0 var(--accent);
}

.feed-index .related-items,
.detail-feed .related-items,
.feed-index .related-item,
.detail-feed .related-item {
  background: #141b17;
}

input,
textarea,
select {
  border-color: var(--line);
  background: #0d1210;
  color: var(--text);
}

button,
.button {
  border-color: #357458;
  color: var(--accent-strong);
}

th,
td,
table,
.public-footer,
.masthead.public-masthead,
.related-item,
.feed-index .related-item,
.detail-feed .related-item {
  border-color: var(--line);
}

td,
.feed-index .item-copy > p,
.detail-feed .item-copy > p,
.item p {
  color: var(--text);
}
