:root {
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --ink: #1a1814;
  --ink-2: #2b2722;
  --paper: #faf9f7;
  --paper-2: #f4f1eb;
  --surface: #fffdfa;
  --muted: #6b6660;
  --line: #e6e3dc;
  --line-2: #d5d0c6;
  --line-3: #ece7de;
  --accent: #3f7a49;
  --accent-ink: #2d5c36;
  --warning: #c97c2e;
  --danger: #b83030;
  --positive: #3f7a49;
  --radius: 14px;
  --radius-lg: 18px;
}

body.editorial-body {
  margin: 0;
  background: #faf9f7;
  color: #1a1814;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
}

.editorial-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  background: #fcfbf8;
  transition: grid-template-columns 180ms ease;
}

.editorial-shell.is-sidebar-collapsed {
  grid-template-columns: 84px minmax(0, 1fr);
}

.editorial-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 18px 24px;
  background: #faf9f7;
  border-right: 1px solid #e6e3dc;
  overflow: hidden;
  transition: padding 180ms ease;
}

.editorial-shell.is-sidebar-collapsed .editorial-sidebar {
  padding-inline: 12px;
}

.editorial-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.editorial-shell.is-sidebar-collapsed .editorial-brand {
  justify-content: center;
}

.editorial-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1a1814;
  color: #faf9f7;
  display: grid;
  place-items: center;
  font-family: "Newsreader", serif;
  font-size: 1.4rem;
  font-style: italic;
}

.editorial-brand-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.editorial-shell.is-sidebar-collapsed .editorial-brand > div:not(.editorial-brand-mark),
.editorial-shell.is-sidebar-collapsed .editorial-nav-label,
.editorial-shell.is-sidebar-collapsed .editorial-nav-item-text,
.editorial-shell.is-sidebar-collapsed .editorial-sidebar-footer > div:last-child {
  display: none;
}

.editorial-brand-subtitle,
.editorial-sidebar-footer-meta,
.editorial-nav-label,
.editorial-breadcrumbs,
.editorial-placeholder-eyebrow {
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-brand-subtitle,
.editorial-sidebar-footer-meta {
  color: #6b6660;
  font-size: 0.72rem;
}

.editorial-nav-group + .editorial-nav-group {
  margin-top: 22px;
}

.editorial-nav-label {
  color: #6b6660;
  font-size: 0.68rem;
  margin: 0 10px 10px;
}

.editorial-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #3f3a34;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 120ms ease, color 120ms ease;
}

.editorial-shell.is-sidebar-collapsed .editorial-nav-item {
  justify-content: center;
  padding-inline: 10px;
}

.editorial-nav-item:hover {
  background: #f2eee8;
}

.editorial-nav-item.is-active {
  background: #1a1814;
  color: #faf9f7;
}

.editorial-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.editorial-nav-item-text {
  min-width: 0;
  flex: 1;
}

.editorial-nav-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efe8de;
  color: #1a1814;
  font-size: 0.76rem;
  font-weight: 600;
}

.editorial-shell.is-sidebar-collapsed .editorial-nav-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  font-size: 0.68rem;
}

.editorial-nav-item.is-active .editorial-nav-count {
  background: rgba(250, 249, 247, 0.16);
  color: #faf9f7;
}

.editorial-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
}

.editorial-shell.is-sidebar-collapsed .editorial-sidebar-footer {
  justify-content: center;
}

.editorial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ece5db;
  color: #1a1814;
  font-weight: 600;
  font-size: 0.86rem;
}

.editorial-sidebar-footer-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.editorial-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.editorial-topbar {
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #e6e3dc;
  background: rgba(252, 251, 248, 0.92);
  backdrop-filter: blur(10px);
}

.editorial-topbar-leading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.editorial-sidebar-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #d9d2c7;
  border-radius: 10px;
  background: #fffdfa;
  color: #1a1814;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.editorial-sidebar-toggle:hover {
  background: #f4efe8;
}

.editorial-sidebar-toggle-icon {
  font-size: 1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.editorial-shell.is-sidebar-collapsed .editorial-sidebar-toggle-icon {
  transform: rotate(180deg);
}

.editorial-breadcrumbs {
  color: #6b6660;
  font-size: 0.72rem;
}

.editorial-breadcrumbs b {
  color: #1a1814;
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.editorial-content-frame {
  display: block;
  min-height: calc(100vh - 64px);
}

.editorial-content-canvas {
  padding: 32px;
}

.editorial-flash {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e6e3dc;
  background: #fffdfa;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.editorial-flash strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-family: "Geist Mono", ui-monospace, monospace;
}

.editorial-flash-emerald strong { color: #3f7a49; }
.editorial-flash-rose strong { color: #a83232; }
.editorial-flash-slate strong,
.editorial-flash-amber strong { color: #6b6660; }

.editorial-placeholder {
  max-width: 720px;
  padding: 28px;
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
}

.editorial-placeholder h1 {
  margin: 8px 0 12px;
  font-family: "Newsreader", serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.05;
}

.editorial-placeholder p {
  margin: 0;
  color: #514b45;
  line-height: 1.6;
}

.editorial-placeholder-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.editorial-placeholder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #1a1814;
  color: #faf9f7;
  text-decoration: none;
  font-weight: 600;
}

.editorial-placeholder-button-secondary {
  background: transparent;
  color: #1a1814;
  border: 1px solid #d8d1c7;
}

.editorial-sources-page {
  display: grid;
  gap: 24px;
}

.editorial-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.editorial-page-eyebrow {
  color: #6b6660;
  font-size: 0.74rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-page-title {
  margin: 10px 0 8px;
  font-family: "Newsreader", serif;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 1.02;
  font-weight: 500;
}

.editorial-page-subtitle {
  max-width: 820px;
  margin: 0;
  color: #514b45;
  line-height: 1.6;
}

.editorial-dashboard-scan-status {
  margin-top: 6px;
  color: #6b6660;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.editorial-dashboard-status-list {
  margin: 14px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #514b45;
}

.editorial-dashboard-status-list li {
  line-height: 1.45;
}

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

.editorial-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.editorial-button-primary {
  background: #1a1814;
  color: #faf9f7;
}

.editorial-button-secondary {
  background: #fffdfa;
  border-color: #ddd6cc;
  color: #1a1814;
}

.editorial-filterbar {
  display: grid;
  gap: 18px;
  padding: 18px 24px 22px;
  border: 1px solid #e6e3dc;
  border-radius: 16px;
  background: #fffdfa;
}

.editorial-filter-tabs,
.editorial-filter-pills,
.editorial-density,
.editorial-segmented-control,
.editorial-source-tags,
.editorial-source-card-badges,
.editorial-source-form-actions,
.editorial-form-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.editorial-workflow-tabs {
  flex-basis: 100%;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 1px solid #ece7de;
}

.editorial-filter-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.editorial-filter-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.editorial-filter-group {
  padding: 14px 14px 16px;
  border-radius: 16px;
  border: 1px solid #ece4d8;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf7f1 100%);
  box-shadow: 0 1px 0 rgba(26, 24, 20, 0.02);
}

.editorial-filter-group .editorial-page-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.editorial-filter-column-primary .editorial-page-eyebrow {
  background: #f5f7f0;
  border-color: #dce5cf;
  color: #5b6f44;
}

.editorial-filter-column-secondary .editorial-page-eyebrow {
  background: #f6f1e9;
  border-color: #e1d3ba;
  color: #83653c;
}

.editorial-filter-column-tertiary .editorial-page-eyebrow {
  background: #eef7fb;
  border-color: #cfe2ec;
  color: #3f6678;
}

.editorial-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-filterbar > .editorial-filter-tabs:not(.editorial-workflow-tabs) {
  padding-right: 12px;
  margin-right: 4px;
  border-right: 1px solid #ece7de;
}

.editorial-filter-pills {
  align-items: center;
}

.editorial-filter-tab,
.editorial-filter-pill,
.editorial-segmented-button,
.editorial-chip,
.editorial-inline-link {
  text-decoration: none;
}

.editorial-filter-tab {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #514b45;
  background: #f3eee8;
  font-weight: 600;
}

.editorial-filter-tab span {
  font-size: 0.78rem;
  color: #6b6660;
}

.editorial-filter-tab.active {
  background: #1a1814;
  color: #faf9f7;
}

.editorial-filter-tab.active span {
  color: #e8dfd4;
}

.editorial-filter-pill,
.editorial-chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #f7f3ee;
  color: #4d4740;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #ece3d8;
}

.editorial-filter-pill.active {
  background: #efe2d0;
  color: #1a1814;
}

.editorial-chip-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.editorial-chip-stack .editorial-chip {
  min-height: 26px;
  padding: 0 10px;
}

.editorial-article-meta-tags {
  margin-top: 8px;
}

.editorial-density {
  margin-left: auto;
  align-items: center;
}

.editorial-density > span {
  color: #6b6660;
  font-size: 0.72rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-segmented-control {
  padding: 4px;
  border-radius: 11px;
  background: #f3eee8;
}

.editorial-segmented-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  color: #514b45;
  font-size: 0.88rem;
  font-weight: 600;
}

.editorial-segmented-button.active {
  background: #fffdfa;
  color: #1a1814;
  box-shadow: 0 1px 2px rgba(26, 24, 20, 0.08);
}

.editorial-source-drawer-frame:empty {
  display: none;
}

.editorial-source-drawer-frame {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  z-index: 30;
}

.editorial-source-drawer {
  width: min(440px, 92vw);
  height: 100%;
  padding: 24px;
  background: #fffdfa;
  border-left: 1px solid #e6e3dc;
  box-shadow: -12px 0 30px rgba(26, 24, 20, 0.08);
  overflow-y: auto;
}

.editorial-source-drawer h2 {
  margin: 8px 0 0;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 500;
}

.editorial-source-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.editorial-inline-link {
  color: #3f7a49;
  font-weight: 600;
}

.editorial-table-wrap {
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
  overflow-x: auto;
}

.editorial-table-wrap-split {
  max-height: calc(100vh - 230px);
  overflow-y: auto;
}

.editorial-table-wrap-split .editorial-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fffdfa;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
}

.editorial-table th,
.editorial-table td {
  padding: 12px;
  border-bottom: 1px solid #ece7de;
  text-align: left;
  vertical-align: top;
}

.editorial-table th {
  color: #6b6660;
  font-size: 0.72rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

.editorial-table tbody tr:hover {
  background: #fcf7f1;
}

.editorial-articles-table tbody tr.is-clickable {
  cursor: pointer;
}

.editorial-articles-table tbody tr.is-clickable:hover {
  background: #fcf7f1;
}

.editorial-table-wrap.is-compact .editorial-table th,
.editorial-table-wrap.is-compact .editorial-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.editorial-table .is-number {
  text-align: right;
  white-space: nowrap;
}

.editorial-source-name-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.editorial-source-name-url,
.editorial-table-muted,
.editorial-muted-dash,
.editorial-source-card p,
.editorial-source-card-meta dt,
.editorial-form-label {
  color: #6b6660;
}

.editorial-source-name-url {
  font-size: 0.84rem;
  line-height: 1.4;
}

.editorial-badge {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3eee8;
  color: #514b45;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editorial-badge-rss { background: #eaf5ec; color: #2d6e3a; }
.editorial-badge-web { background: #eef4ff; color: #2856a3; }
.editorial-badge-manual,
.editorial-badge-email { background: #f1eee9; color: #5c5550; }
.editorial-badge-active { background: #edf6ee; color: #3f7a49; }
.editorial-badge-paused { background: #f1eee9; color: #6b6660; }
.editorial-badge-reliable { background: #eaf5ec; color: #2d6e3a; }
.editorial-badge-partial { background: #fff2e5; color: #b36621; }
.editorial-badge-blocked { background: #fef1f1; color: #a83232; }

.editorial-badge-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.editorial-confidence {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 108px;
}

.editorial-confidence-column,
.editorial-confidence-column-cell {
  width: 72px;
  min-width: 72px;
  white-space: nowrap;
}

.editorial-confidence-compact {
  min-width: 0;
  justify-items: start;
}

.editorial-confidence span {
  font-size: 0.8rem;
  font-weight: 700;
}

.editorial-confidence-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #ece5db;
  overflow: hidden;
}

.editorial-confidence-fill {
  height: 100%;
  background: #c97a3a;
  border-radius: 999px;
}

.editorial-confidence-high span { color: #3f7a49; }
.editorial-confidence-mid span { color: #b36621; }
.editorial-confidence-low span { color: #a83232; }

.editorial-source-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.editorial-source-card {
  padding: 20px;
  border: 1px solid #e6e3dc;
  border-radius: 16px;
  background: #fffdfa;
}

.editorial-source-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.editorial-source-card h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.editorial-source-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.editorial-source-card-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.editorial-source-card-meta dt {
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.editorial-source-card-meta dd {
  margin: 0;
  font-weight: 600;
}

.editorial-source-form {
  display: grid;
  gap: 16px;
}

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

.editorial-form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}

.editorial-form-input,
.editorial-form-select,
.editorial-form-textarea {
  width: 100%;
  border: 1px solid #ddd6cc;
  border-radius: 10px;
  background: #fffdfa;
  color: #1a1814;
  font: inherit;
  padding: 11px 12px;
  box-sizing: border-box;
}

.editorial-form-textarea {
  resize: vertical;
}

.editorial-form-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.editorial-form-errors {
  padding: 12px 14px;
  border: 1px solid #f0bfbf;
  border-radius: 12px;
  background: #fef1f1;
  color: #a83232;
}

.editorial-page-actions-stack {
  align-items: flex-end;
}

.editorial-newsletters-page {
  display: grid;
  gap: 24px;
}

.editorial-newsletter-kanban {
  display: grid;
  gap: 16px;
}

.editorial-newsletter-week {
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
  overflow: hidden;
}

.editorial-newsletter-week[open] {
  box-shadow: 0 8px 24px rgba(26, 24, 20, 0.04);
}

.editorial-newsletter-week-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
}

.editorial-newsletter-week-head::-webkit-details-marker {
  display: none;
}

.editorial-newsletter-week-title,
.editorial-newsletter-column-head h2,
.editorial-newsletter-card-title,
.editorial-newsletter-article-title {
  font-family: "Newsreader", serif;
}

.editorial-newsletter-week-title {
  font-size: 1.45rem;
  font-weight: 500;
}

.editorial-newsletter-week-subtitle,
.editorial-newsletter-column-head p,
.editorial-newsletter-article-meta,
.editorial-newsletter-card-meta {
  color: #6b6660;
  font-size: 0.84rem;
}

.editorial-newsletter-week-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.editorial-newsletter-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.editorial-newsletter-progress span,
.editorial-newsletter-confidence {
  font-size: 0.82rem;
  font-weight: 700;
  color: #514b45;
}

.editorial-newsletter-progress-track {
  flex: 1;
  min-width: 86px;
  height: 9px;
  border-radius: 999px;
  background: #ece5db;
  overflow: hidden;
}

.editorial-newsletter-progress-fill {
  height: 100%;
  background: #c97a3a;
  border-radius: 999px;
}

.editorial-newsletter-articles {
  display: grid;
  gap: 10px;
  padding: 0 20px 20px;
}

.editorial-newsletter-article-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #ece7de;
  border-radius: 14px;
  background: #fcf8f3;
}

.editorial-newsletter-article-title {
  font-size: 1.05rem;
  font-weight: 500;
}

.editorial-newsletter-article-aside,
.editorial-newsletter-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.editorial-newsletter-empty {
  padding: 24px;
  border: 1px dashed #ddd6cc;
  border-radius: 14px;
  color: #6b6660;
  text-align: center;
  background: #faf6f1;
}

.editorial-newsletter-kanban {
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  overflow-x: auto;
}

.editorial-newsletter-column {
  min-width: 220px;
  padding: 16px;
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
}

.editorial-newsletter-column-unassigned {
  background: #faf6f1;
}

.editorial-newsletter-smart-insights {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f2ea;
  border: 1px solid #ece3d8;
}

.editorial-newsletter-smart-insights strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Geist Mono", ui-monospace, monospace;
  color: #40674a;
}

.editorial-newsletter-smart-insights p {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 0.96rem;
  line-height: 1.45;
  color: #3d3833;
  font-style: italic;
}

.editorial-newsletter-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.editorial-newsletter-column-head h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 500;
}

.editorial-newsletter-column-head p {
  margin: 0;
}

.editorial-newsletter-column-head span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efe8de;
  font-weight: 700;
}

.editorial-newsletter-column-cards {
  display: grid;
  gap: 10px;
}

.editorial-newsletter-card {
  padding: 12px;
  border: 1px solid #ece7de;
  border-radius: 14px;
  background: #fcf8f3;
}

.editorial-newsletter-card-title {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 500;
}

.editorial-newsletter-chip {
  padding: 7px 9px;
  border-radius: 10px;
  background: #f3eee8;
  color: #3f3a34;
  font-size: 0.78rem;
  line-height: 1.35;
}

.editorial-newsletter-chip-send {
  background: #1a1814;
  color: #faf9f7;
}

.editorial-newsletter-chip-muted {
  color: #6b6660;
}

.editorial-articles-page {
  display: grid;
  gap: 24px;
}

.editorial-hotkey-hint {
  color: #6b6660;
  font-size: 0.82rem;
}

.editorial-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid #ddd6cc;
  border-radius: 7px;
  background: #fffdfa;
  color: #1a1814;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.editorial-articles-layout {
  display: grid;
  gap: 16px;
}

.editorial-articles-pane {
  min-width: 0;
}

.editorial-articles-layout-split {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: start;
}

.editorial-articles-layout-split .editorial-articles-pane-list {
  min-height: calc(100vh - 230px);
}

.editorial-articles-layout-split .editorial-article-split-panel {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
}

.editorial-article-mode-panel,
.editorial-article-split-panel,
.editorial-article-focus-shell {
  padding: 24px;
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
}

.editorial-article-mode-panel-focus {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.editorial-focus-preview-title {
  margin: 8px 0 10px;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.08;
}

.editorial-focus-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.editorial-article-title-wrap {
  max-width: 380px;
  display: grid;
  gap: 4px;
}

.editorial-articles-layout-split .editorial-article-title-wrap {
  max-width: 320px;
}

.editorial-article-table-title {
  color: #1a1814;
  text-decoration: none;
  font-family: "Newsreader", serif;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.25;
}

.editorial-article-table-excerpt {
  color: #6b6660;
  font-size: 0.84rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editorial-articles-table td:not(:nth-child(2)) {
  vertical-align: middle;
}

.editorial-articles-table td:nth-child(2) {
  vertical-align: top;
}

.editorial-articles-table .editorial-chip-stack {
  align-items: center;
}

.editorial-articles-table tbody tr.is-selected {
  background: #fcf2e5;
}

.editorial-inline-action {
  min-height: 28px;
  border: 1px solid #ddd6cc;
  border-radius: 999px;
  background: #fffdfa;
  padding: 0 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.editorial-row-actions-cell {
  width: 1%;
}

.editorial-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 152px;
}

.editorial-row-actions form {
  display: inline-flex;
  margin: 0;
}

.editorial-inline-action-approve { color: #3f7a49; }
.editorial-inline-action-reject { color: #a83232; }

.editorial-button-reset {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.editorial-article-drawer-meta {
  color: #6b6660;
  font-size: 0.84rem;
  line-height: 1.5;
}

.editorial-article-drawer-section {
  margin-top: 18px;
}

.editorial-article-drawer-section h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b6660;
}

.editorial-article-drawer-section p {
  margin: 0;
  color: #514b45;
  line-height: 1.7;
}

.editorial-article-reader-body {
  color: #2f2a25;
  line-height: 1.8;
}

.editorial-article-reader-body p {
  margin: 0 0 1rem;
}

.editorial-article-focus {
  display: grid;
  justify-items: center;
}

.editorial-article-focus-shell {
  width: min(900px, 100%);
}

.editorial-article-focus-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.editorial-settings-page {
  display: grid;
  gap: 24px;
}

.editorial-settings-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.editorial-settings-nav,
.editorial-settings-panel {
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
}

.editorial-settings-nav {
  padding: 18px 12px;
  display: grid;
  gap: 8px;
}

.editorial-settings-nav-link {
  padding: 11px 14px;
  border-radius: 12px;
  color: #514b45;
  text-decoration: none;
  font-weight: 600;
}

.editorial-settings-nav-link.active {
  background: #1a1814;
  color: #faf9f7;
}

.editorial-settings-panel {
  padding: 24px;
}

.editorial-settings-form {
  display: grid;
  gap: 24px;
}

.editorial-settings-section {
  padding-bottom: 24px;
  border-bottom: 1px solid #ece7de;
}

.editorial-settings-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.editorial-settings-section h2 {
  margin: 0 0 8px;
  font-family: "Newsreader", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.editorial-settings-section-desc,
.editorial-settings-hint {
  color: #6b6660;
}

.editorial-settings-section-desc {
  margin: 0 0 16px;
  line-height: 1.6;
}

.editorial-form-grid-settings {
  margin-bottom: 16px;
}

.editorial-settings-hint {
  margin-top: 6px;
  font-size: 0.82rem;
}

.editorial-settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ece7de;
}

.editorial-settings-toggle-row-label {
  cursor: pointer;
}

.editorial-settings-toggle-row:last-child {
  border-bottom: 0;
}

.editorial-settings-inline-number {
  width: 84px;
}

.editorial-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid #ece7de;
}

.editorial-dashboard-page {
  display: grid;
  gap: 28px;
}

.editorial-dashboard-title {
  font-style: italic;
}

.editorial-workflow-strip-shell {
  overflow-x: auto;
}

.editorial-workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 10px;
  align-items: stretch;
  min-width: 980px;
}

.editorial-workflow-stage {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: linear-gradient(135deg, #fffdfa 0%, #fff7ec 100%);
  color: #1a1814;
  text-decoration: none;
  min-height: 132px;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.editorial-workflow-stage:hover,
.editorial-workflow-stage:active {
  border-color: #cfb28d;
  box-shadow: 0 12px 24px rgba(63, 53, 40, 0.08);
  transform: translateY(-1px);
}

.editorial-workflow-stage:focus-visible {
  outline: 2px solid #c97a3a;
  outline-offset: 2px;
}

.editorial-workflow-stage-topline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.editorial-workflow-stage-number,
.editorial-workflow-stage-subtitle {
  color: #6b6660;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.editorial-workflow-stage-label {
  font-family: "Newsreader", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.editorial-workflow-stage-chevron {
  margin-left: auto;
  color: #a35d26;
  font-size: 0.95rem;
  font-weight: 700;
}

.editorial-workflow-stage-count {
  font-family: "Newsreader", serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  line-height: 1;
  color: #2f271e;
}

.editorial-workflow-stage-count-split {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
  line-height: 1.25;
}

.editorial-workflow-stage-subtitle {
  line-height: 1.45;
}

.editorial-workflow-stage-row-arrow {
  display: none;
  margin-top: auto;
  color: #a35d26;
  font-size: 1rem;
  font-weight: 700;
}

.editorial-workflow-divider {
  display: none;
}

.editorial-kpi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editorial-kpi-card {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fffdfa;
  border: 1px solid #e6e3dc;
}

.editorial-kpi-label,
.editorial-section-head span,
.editorial-dashboard-ordinal {
  color: #6b6660;
  font-family: "Geist Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.editorial-kpi-value {
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: "Newsreader", serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.editorial-kpi-value small {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
  color: #6b6660;
}

.editorial-kpi-foot {
  margin-top: 10px;
  color: #6b6660;
  font-size: 0.84rem;
}

.editorial-kpi-spark {
  margin-top: 14px;
  display: flex;
  align-items: end;
  gap: 6px;
  min-height: 32px;
}

.editorial-kpi-spark span {
  width: 10px;
  border-radius: 999px 999px 2px 2px;
  background: #d9cec0;
}

.editorial-kpi-spark span.peak {
  background: #c97a3a;
}

.editorial-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.editorial-section-head h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 2rem;
  font-weight: 500;
}

.editorial-dashboard-weeks {
  display: grid;
  gap: 16px;
}

.editorial-dashboard-week {
  border: 1px solid #e6e3dc;
  border-radius: 18px;
  background: #fffdfa;
  overflow: hidden;
}

.editorial-dashboard-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #ece7de;
}

.editorial-dashboard-week-head::-webkit-details-marker {
  display: none;
}

.editorial-dashboard-week-head::marker {
  content: "";
}

.editorial-dashboard-week-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #3f3528;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 160ms ease;
}

.editorial-dashboard-week[open] .editorial-dashboard-week-chevron {
  transform: rotate(90deg);
}

.editorial-dashboard-week-title {
  font-family: "Newsreader", serif;
  font-size: 1.4rem;
  font-weight: 500;
}

.editorial-dashboard-week-meta,
.editorial-dashboard-article-meta {
  color: #6b6660;
  font-size: 0.84rem;
}

.editorial-dashboard-week-stats,
.editorial-dashboard-article-aside {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.editorial-dashboard-article-accordion {
  border: 1px solid #ece7de;
  border-radius: 14px;
  background: #fffefb;
  overflow: hidden;
}

.editorial-dashboard-article-accordion + .editorial-dashboard-article-accordion {
  margin-top: 10px;
}

.editorial-dashboard-article-accordion summary {
  list-style: none;
}

.editorial-dashboard-article-accordion summary::-webkit-details-marker {
  display: none;
}

.editorial-dashboard-article-chevron {
  color: #a35d26;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 140ms ease;
}

.editorial-dashboard-article-accordion[open] .editorial-dashboard-article-chevron {
  transform: rotate(180deg);
}

.editorial-dashboard-article-preview {
  padding: 0 18px 18px 44px;
  color: #514b45;
  display: grid;
  gap: 10px;
}

.editorial-dashboard-article-preview p {
  margin: 0;
  line-height: 1.6;
}

.editorial-dashboard-week-body {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
}

.editorial-dashboard-week-insights {
  margin: 0;
  padding: 18px 24px 20px;
  border-bottom: 1px solid #eee7dd;
  background:
    radial-gradient(circle at 24px 22px, rgba(201, 139, 46, 0.13), transparent 34px),
    linear-gradient(135deg, #fff8eb 0%, #fffdfa 62%);
}

.editorial-dashboard-week-insights-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8a5a13;
}

.editorial-dashboard-week-insights-label::before {
  content: "✦";
  color: #c87f24;
  font-size: 0.92rem;
}

.editorial-dashboard-week-insights-text,
.editorial-dashboard-week-insights-empty {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #2a2620;
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.58;
}

.editorial-dashboard-week-insights-text {
  font-style: italic;
}

.editorial-dashboard-week-insights-empty {
  color: #7a7168;
}

.editorial-dashboard-article-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0ebe4;
}

.editorial-dashboard-article-row:last-child {
  border-bottom: 0;
}

.editorial-dashboard-article-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1a1814;
}

.editorial-dashboard-empty {
  text-align: left;
}

.editorial-dashboard-empty-title {
  margin-bottom: 4px;
  font-weight: 600;
  color: #1a1814;
}

@media (max-width: 1180px) {
  .editorial-filter-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .editorial-filter-board {
    grid-template-columns: 1fr;
  }

  .editorial-filterbar {
    padding: 16px 18px 18px;
  }

  .editorial-workflow-strip {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .editorial-workflow-divider {
    display: none;
  }

  .editorial-workflow-stage {
    min-height: 0;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 14px;
    padding: 16px 18px;
  }

  .editorial-workflow-stage-topline,
  .editorial-workflow-stage-count,
  .editorial-workflow-stage-count-split,
  .editorial-workflow-stage-subtitle {
    grid-column: 1 / -1;
  }

  .editorial-workflow-stage-chevron {
    display: none;
  }

  .editorial-workflow-stage-row-arrow {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .editorial-dashboard-article-preview {
    padding-left: 18px;
  }
  .editorial-shell {
    grid-template-columns: 1fr;
  }

  .editorial-sidebar {
    gap: 20px;
    border-right: 0;
    border-bottom: 1px solid #e6e3dc;
  }

  .editorial-filterbar {
    padding-right: 24px;
    padding-left: 24px;
  }

  .editorial-filterbar > .editorial-filter-tabs:not(.editorial-workflow-tabs) {
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .editorial-density {
    margin-left: 0;
  }

  .editorial-form-grid,
  .editorial-source-card-meta,
  .editorial-kpi-grid {
    grid-template-columns: 1fr;
  }

  .editorial-newsletter-week-head,
  .editorial-newsletter-article-row,
  .editorial-article-mode-panel-focus,
  .editorial-settings-toggle-row,
  .editorial-dashboard-week-head,
  .editorial-dashboard-article-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .editorial-dashboard-article-row {
    grid-template-columns: 1fr;
  }

  .editorial-newsletter-kanban {
    grid-template-columns: repeat(5, minmax(280px, 1fr));
  }

  .editorial-workflow-stage:hover {
    box-shadow: none;
  }

  .editorial-articles-layout-split,
  .editorial-settings-shell {
    grid-template-columns: 1fr;
  }
}
/* Editorial Desk v2 — additions on top of styles.css.
   Kept separate so the agent can map them straight into app/assets/stylesheets/editorial.css. */

/* ============================================================
   CANVAS (review tool — not part of the app itself)
   ============================================================ */
body.canvas-body {
  background: #2a2826;
  margin: 0;
  overflow: hidden;
  font-family: var(--sans);
}
.canvas-toolbar {
  position: fixed; top: 0; left: 0; right: 0; height: 52px;
  background: rgba(20,18,14,0.95); color: var(--paper);
  display: flex; align-items: center; gap: 14px;
  padding: 0 20px; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.canvas-toolbar .ct-title { font-family: var(--serif); font-style: italic; font-size: 16px; font-weight: 500; }
.canvas-toolbar .ct-sub { color: rgba(255,255,255,0.5); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.canvas-toolbar button {
  background: rgba(255,255,255,0.08);
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
}
.canvas-toolbar button:hover { background: rgba(255,255,255,0.14); }
.canvas-toolbar .spacer { flex: 1; }
.canvas-viewport {
  position: fixed; inset: 52px 0 0 0;
  overflow: hidden;
  cursor: grab;
}
.canvas-viewport.dragging { cursor: grabbing; }
.canvas-stage {
  transform-origin: 0 0;
  will-change: transform;
  display: flex;
  gap: 64px;
  padding: 64px;
  align-items: flex-start;
}

.artboard-wrap { display: flex; flex-direction: column; gap: 14px; }
.artboard-hdr {
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 1280px;
}
.artboard-hdr .badge-prio {
  font-family: var(--mono); font-size: 11px;
  background: oklch(54% 0.11 65); color: white;
  padding: 4px 9px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
}
.artboard-hdr h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.artboard-hdr .notes {
  color: rgba(255,255,255,0.62);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 6px;
}
.artboard-hdr .notes b { color: rgba(255,255,255,0.92); font-weight: 500; }
.artboard {
  width: 1280px;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
}
.artboard .app { min-height: auto; }
.artboard .sidebar { height: auto; position: static; }
.artboard .content { padding-bottom: 36px; }
.artboard .topbar { position: static; }

/* ============================================================
   v2 — REAL APP STYLES (would live in app/assets/stylesheets)
   ============================================================ */

/* Hero "Next send" module */
.next-send {
  background: linear-gradient(140deg, #1a1814 0%, #2a2826 100%);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid #2a2826;
}
.next-send .ns-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: oklch(78% 0.10 75);
  margin-bottom: 8px;
}
.next-send h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.next-send h2 small {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
  margin-left: 10px;
  letter-spacing: 0;
}
.deficit-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}
.next-send .ns-progress {
  margin: 22px 0 18px;
}
.deficit-bar .slot {
  flex: 1;
  height: 10px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
}
.deficit-bar .slot.filled { background: oklch(70% 0.13 70); border-color: oklch(70% 0.13 70); }
.deficit-bar .slot.empty { background: transparent; border: 1px dashed rgba(255,255,255,0.18); }
.next-send .ns-status {
  font-family: var(--mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.next-send .ns-status b { color: oklch(78% 0.10 75); font-weight: 600; }

.next-send .ns-insights {
  width: 100%;
  margin: 18px 0 0;
  padding: 16px 18px 14px;
  border: 1px solid rgba(219, 155, 52, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(219,155,52,0.08));
}
.next-send .ns-insights-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: oklch(78% 0.10 75);
}
.next-send .ns-insights-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.next-send .ns-insights-head span:first-child::before {
  content: "✦";
  color: oklch(72% 0.14 75);
  font-size: 14px;
}
.next-send .ns-insights-body {
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  font-style: italic;
  color: rgba(255,255,255,0.9);
}
.next-send .ns-insights-meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.52);
}
.next-send .ns-actions { display: flex; gap: 10px; }
.next-send .btn-primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  font-size: 13.5px;
  padding: 9px 16px;
}
.next-send .btn-primary:hover { background: white; }
.next-send .btn-link {
  background: transparent;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13px;
  padding: 9px 14px;
}
.next-send .btn-link:hover { border-color: rgba(255,255,255,0.4); color: white; }
.next-send .ns-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  text-align: right;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 24px;
}
.next-send .ns-aside .countdown {
  font-family: var(--serif); font-size: 56px; line-height: 1;
  font-weight: 500; letter-spacing: -0.02em;
}
.next-send .ns-aside .countdown-unit {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55); margin-top: 4px;
}
.next-send .ns-aside .send-time {
  font-family: var(--mono); font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 14px;
}

/* Holding bay (Approved, ready to slot) */
.holding-bay {
  border: 1.5px dashed oklch(54% 0.11 65);
  background: oklch(96% 0.025 75);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.holding-bay-head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px;
}
.holding-bay-head .ttl {
  font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--accent-ink);
}
.holding-bay-head .cnt {
  font-family: var(--mono); font-size: 12px; color: var(--accent-ink);
  background: oklch(88% 0.06 75); padding: 2px 8px; border-radius: 999px;
}
.holding-bay-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.bay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
}
.bay-card:hover { border-color: var(--ink); }
.bay-card .t { font-family: var(--serif); font-size: 15px; line-height: 1.3; letter-spacing: -0.005em; }
.bay-card .m { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Compact KPI strip */
.kpi-strip {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
}
.kpi-strip .cell {
  flex: 1;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi-strip .cell:last-child { border-right: none; }
.kpi-strip .cell .lbl {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted);
}
.kpi-strip .cell .v {
  font-family: var(--serif); font-size: 22px; line-height: 1.1; letter-spacing: -0.01em;
  font-weight: 500;
}
.kpi-strip .cell .v small { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }

/* Calendar week rows v2 — date-led */
.calendar-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.calendar-row .cr-main {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 20px;
  align-items: center;
}
.calendar-row .cr-insight {
  padding: 11px 18px;
  background: oklch(97% 0.02 75);
  border-top: 1px solid var(--line-3);
  font-family: var(--serif); font-size: 13.5px; line-height: 1.45;
  color: var(--ink-2); font-style: italic;
  display: flex; gap: 12px; align-items: baseline;
}
.calendar-row .cr-insight .ins-lbl {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); font-style: normal; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.calendar-row .cr-insight .ins-lbl::before {
  content: "✦"; color: var(--accent); font-size: 12px;
}
.calendar-row .cr-insight .ins-empty {
  color: var(--muted); font-style: italic; font-size: 13px;
}
.calendar-row.is-next { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(20,18,14,0.06); }
.calendar-row.sent { opacity: 0.6; }

/* Smart Insights — full card (Dashboard, Newsletter preview) */
.insights-card {
  background: linear-gradient(180deg, oklch(97% 0.02 75) 0%, var(--surface) 100%);
  border: 1px solid oklch(85% 0.06 75);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.insights-card .ic-eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent-ink); margin-bottom: 10px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.insights-card .ic-eyebrow::before {
  content: "✦"; color: var(--accent); font-size: 14px;
}
.insights-card .ic-body {
  font-family: var(--serif); font-size: 17px; line-height: 1.55;
  color: var(--ink); font-style: italic;
  margin: 0; max-width: 64ch;
}
.insights-card .ic-meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--muted); margin-top: 12px;
}
.insights-card .ic-actions {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  font-size: 12px;
}

/* Newsletter week — insights strip inside each accordion item, visible always */
.nl-week .insights-strip {
  background: oklch(97% 0.02 75);
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}
.nl-week .insights-strip .is-label {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-ink); 
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.nl-week .insights-strip .is-label::before {
  content: "✦"; color: var(--accent); font-size: 12px;
}
.nl-week .insights-strip .is-body {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2); font-style: italic;
  margin: 0;
}
.nl-week .insights-strip .is-actions {
  display: flex; gap: 6px;
}
.nl-week .insights-strip.empty .is-body { color: var(--muted); }
.calendar-row .date {
  font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 12px;
}
.calendar-row .date small {
  font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  font-weight: 400;
}
.calendar-row .badge-status { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 4px; }
.calendar-row .badge-status.sent { background: var(--paper-2); color: var(--muted); }
.calendar-row .badge-status.drafting { background: oklch(94% 0.04 75); color: var(--accent-ink); }
.calendar-row .badge-status.queued { background: var(--paper-2); color: var(--muted); }
.calendar-row .badge-status.empty { background: var(--paper-2); color: var(--muted); }
.calendar-row .bar { display: flex; gap: 2px; align-items: center; width: 140px; }
.calendar-row .bar-track { flex: 1; height: 4px; background: var(--line-3); border-radius: 2px; overflow: hidden; }
.calendar-row .bar-fill { height: 100%; background: var(--accent); }
.calendar-row .bar-fill.warn { background: var(--warning); }
.calendar-row .ratio { font-family: var(--mono); font-size: 12px; color: var(--ink-2); min-width: 48px; text-align: right; }
.calendar-row .deficit { font-size: 12px; color: var(--danger); font-family: var(--mono); }
.calendar-row .deficit.ok { color: var(--positive); }

/* Bulk action bar (Articles) */
.bulk-bar {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.bulk-bar .selected {
  font-family: var(--mono); font-size: 12px;
}
.bulk-bar .selected b { font-family: var(--serif); font-size: 18px; font-weight: 500; margin-right: 4px; }
.bulk-bar .preset {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--paper);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--sans);
  cursor: pointer;
}
.bulk-bar .preset:hover { background: rgba(255,255,255,0.16); }
.bulk-bar .spacer { flex: 1; }
.bulk-bar .btn-approve {
  background: oklch(60% 0.13 145); color: white; border: none;
  padding: 6px 14px; border-radius: 5px; font-size: 13px; font-weight: 500; cursor: pointer;
}
.bulk-bar .btn-reject {
  background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px; border-radius: 5px; font-size: 13px; cursor: pointer;
}
.bulk-bar .btn-deselect {
  background: transparent; color: rgba(255,255,255,0.55); border: none;
  font-size: 13px; cursor: pointer;
}

/* Errors tab style — slightly muted, slightly warning-ish */
.tab.tab-errors[aria-selected="true"] { background: var(--surface); color: var(--danger); }
.tab.tab-errors .count { color: var(--danger); }

/* Article rows v2 — error rows */
.t tbody tr.is-error { background: oklch(98% 0.015 25); }
.t tbody tr.is-error td { color: var(--muted); }
.t tbody tr.is-error .err-reason {
  font-family: var(--mono); font-size: 11px; color: var(--danger);
  margin-top: 4px;
}

/* Persistent Unassigned rail (Newsletter, all layouts) */
.unassigned-rail {
  background: oklch(96% 0.025 75);
  border: 1.5px dashed oklch(54% 0.11 65);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
}
.unassigned-rail .ur-meta {
  border-right: 1px solid oklch(85% 0.04 75);
  padding-right: 16px;
}
.unassigned-rail .ur-title {
  font-family: var(--serif); font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--accent-ink); display: flex; gap: 8px; align-items: baseline;
}
.unassigned-rail .ur-title .cnt {
  font-family: var(--mono); font-size: 11px; color: var(--accent-ink);
  background: oklch(88% 0.06 75); padding: 2px 7px; border-radius: 999px;
}
.unassigned-rail .ur-hint {
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.unassigned-rail .ur-cards {
  display: flex; gap: 10px; overflow-x: auto;
}
.unassigned-rail .ur-card {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 280px;
  cursor: grab;
}
.unassigned-rail .ur-card:hover { border-color: var(--ink); }
.unassigned-rail .ur-card .t { font-family: var(--serif); font-size: 14px; font-weight: 500; line-height: 1.3; }
.unassigned-rail .ur-card .m { font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.unassigned-rail .ur-actions { display: flex; flex-direction: column; gap: 6px; }
.unassigned-rail .ur-actions .btn { font-size: 12px; padding: 5px 10px; }

/* Recommended badge on layout toggle */
.seg .recommended {
  position: relative;
}
.seg .recommended::after {
  content: "Recommended";
  position: absolute;
  top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 9px;
  background: var(--accent); color: white;
  padding: 2px 6px; border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Status badges — refined vocabulary */
.badge-slotted { background: oklch(94% 0.04 145); color: oklch(40% 0.10 145); border-color: oklch(85% 0.06 145); }
.badge-error { background: oklch(95% 0.03 25); color: var(--danger); border-color: oklch(85% 0.07 25); }
.badge-ready { background: oklch(94% 0.04 75); color: var(--accent-ink); border-color: oklch(85% 0.06 75); }

/* Calendar action button row */
.calendar-row .row-actions {
  display: flex; gap: 4px;
}
.calendar-row .row-actions .btn-sm { padding: 4px 10px; font-size: 12px; }
.calendar-row.is-next .row-actions .btn-accent {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}


.editorial-badge-pending { background: #f1f4ef; color: #4d6253; }
.editorial-badge-tagged { background: #eef4ff; color: #2856a3; }
.editorial-badge-library { background: #fff7ed; color: #92600d; }


.editorial-inline-action-neutral { background: #fff7ed; color: #92600d; border-color: #f0d9a8; }

.editorial-scan-result {
  display: grid;
  gap: 3px;
  min-width: 150px;
  max-width: 260px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.editorial-scan-result strong {
  color: #2b2722;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.editorial-scan-result span {
  color: #6b6660;
}

.editorial-scan-result-ok strong {
  color: #28704a;
}

.editorial-scan-result-no_new_items strong,
.editorial-scan-result-manual_skipped strong,
.editorial-scan-result-not_run strong {
  color: #8a6424;
}

.editorial-scan-result-low_quality strong,
.editorial-scan-result-unavailable strong,
.editorial-scan-result-error strong {
  color: #a13f2f;
}

.editorial-row-actions,
.editorial-source-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.editorial-inline-button {
  appearance: none;
  border: 1px solid #d8d0c3;
  background: #fffdfa;
  color: #1f1b16;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.editorial-inline-button:hover {
  background: #f6efe5;
  border-color: #c8bba8;
}

.editorial-source-actions-cell {
  min-width: 110px;
  white-space: nowrap;
}

.editorial-source-actions-cell form {
  margin: 0;
}
