:root {
  --ink: #17201b;
  --soft: #657169;
  --paper: #f7f5ef;
  --line: #d8d9d2;
  --moss: #3c604d;
  --pale: #e6ece6;
  --serif: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
}
.wordmark {
  font: 700 22px var(--serif);
  color: inherit;
  text-decoration: none;
}
nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav {
  border: 0;
  background: none;
  color: var(--soft);
  padding: 10px 13px;
  cursor: pointer;
}
.nav.active {
  color: var(--ink);
  border-bottom: 2px solid var(--moss);
}
.account-menu {
  position: relative;
  margin-left: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.account-trigger {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #b9c3bb;
  border-radius: 50%;
  background: var(--pale);
  color: var(--moss);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.account-trigger:hover,
.account-trigger:focus-visible,
.account-trigger[aria-expanded="true"] {
  border-color: var(--moss);
  outline: none;
  box-shadow: 0 0 0 3px #dfe7df;
}
.account-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fbfaf6;
  box-shadow: 0 12px 32px #17201b1f;
}
.account-summary {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.account-summary strong,
.account-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-summary strong {
  font-size: 14px;
}
.account-summary span {
  color: var(--soft);
  font-size: 12px;
}
.account-dropdown button {
  width: 100%;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.account-dropdown button:hover,
.account-dropdown button:focus-visible {
  background: var(--pale);
  outline: none;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 70px 24px 100px;
}
#sources,
#topics-index,
#history,
#hidden-links,
#settings {
  max-width: 820px;
  margin-inline: auto;
}
#topics-index {
  max-width: 1040px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--moss);
  font-weight: 700;
}
h1 {
  font: 500 clamp(40px, 6vw, 60px)/1.02 var(--serif);
  letter-spacing: -0.04em;
  margin: 16px 0 25px;
  max-width: 760px;
}
h2 {
  font-family: var(--serif);
}
.brief-hero {
  display: grid;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.deck {
  font-size: 18px;
  color: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
}
.deck p {
  margin: 0;
}
.deck span {
  white-space: nowrap;
  font-size: 13px;
}
.source-freshness {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfaf6;
}
.source-freshness-heading {
  padding: 14px;
}
.source-freshness-heading h2 {
  margin: 2px 0;
  font: 600 17px/1.2 var(--serif);
}
.source-freshness-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
}
.source-freshness-actions {
  display: flex;
  gap: 6px;
  margin-top: 11px;
}
.source-freshness-actions button {
  flex: 1;
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 11px;
}
.source-freshness-actions button.secondary {
  background: transparent;
  color: var(--moss);
}
.source-freshness-actions button:disabled {
  cursor: default;
  opacity: 0.45;
}
.source-freshness-details {
  border-top: 1px solid var(--line);
}
.source-freshness-details summary {
  padding: 8px 14px;
  color: var(--moss);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.source-freshness-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0 14px 9px;
  list-style: none;
}
.source-freshness-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.source-freshness-list li:last-child {
  border-bottom: 0;
}
.source-freshness-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: var(--pale);
  color: var(--moss);
  font-size: 10px;
  font-weight: 800;
}
.source-freshness-name {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-freshness-recency {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--soft);
  white-space: nowrap;
}
.source-freshness-recency::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f7a56;
}
.source-freshness-recency.old::before {
  background: #a16a22;
}
.source-freshness-recency.error {
  color: #8c3125;
}
.source-freshness-recency.error::before {
  background: #a73e31;
}
.source-freshness-recency.paused::before {
  background: #a8afa9;
}
.source-refresh-message {
  margin: 0;
  padding: 0 14px 9px;
  color: var(--soft);
  font-size: 11px;
}
.source-refresh-message:empty {
  display: none;
}
.brief-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 34px;
}
.brief-group + .brief-group {
  margin-top: 12px;
}
.brief-group-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--moss);
}
.brief-group-heading h2 {
  margin: 0;
  font-size: 20px;
  color: var(--moss);
}
.brief-group-heading span {
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.item {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf6;
}
.item > div:last-child {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.number {
  position: absolute;
  top: 19px;
  right: 20px;
  font: italic 15px var(--serif);
  color: #96a097;
}
.item-insight {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 48px;
}
.why-trigger {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
  cursor: help;
  font: italic 12px/1 var(--serif);
}
.why-trigger:hover,
.why-trigger:focus-visible {
  color: var(--moss);
  outline: none;
  box-shadow: 0 0 0 3px #dfe7df;
}
.why-tooltip {
  position: absolute;
  top: calc(100% + 9px);
  right: -30px;
  width: min(300px, calc(100vw - 64px));
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #edf0eb;
  box-shadow: 0 10px 28px #17201b2e;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}
.why-tooltip::before {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 100%;
  border: 6px solid transparent;
  border-bottom-color: var(--ink);
}
.why-tooltip strong,
.why-tooltip span {
  display: block;
}
.why-tooltip strong {
  margin-bottom: 2px;
  color: #bcd0c0;
}
.item-insight:hover .why-tooltip,
.item-insight:focus-within .why-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.item-source {
  display: flex;
  min-width: 0;
  min-height: 21px;
  padding-right: 64px;
  align-items: center;
  gap: 7px;
}
.item-favicon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: contain;
}
.item-media {
  display: block;
  margin: 16px -22px 18px;
  overflow: hidden;
  background: var(--pale);
}
.item-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.meta {
  min-width: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}
.item h2 {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.2;
  margin: 9px 0 10px;
  overflow-wrap: anywhere;
}
.item h2 a,
.reader-title {
  color: inherit;
  text-decoration: none;
}
.item h2 a:hover,
.reader-title:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.reader-title {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 13px;
  gap: 5px;
}
.item-actions .hide-item {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
}
.item-actions .hide-item svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.item-actions .hide-item:hover,
.item-actions .hide-item:focus-visible {
  color: var(--moss);
  outline: none;
  box-shadow: 0 0 0 3px #dfe7df;
}
.item-actions .original-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--soft);
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}
.item-actions .original-icon:hover,
.item-actions .original-icon:focus-visible {
  color: var(--moss);
  outline: none;
  box-shadow: 0 0 0 3px #dfe7df;
}
.summary {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
}
.item-byline {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
}
.caught {
  text-align: center;
  padding: 75px 20px 0;
}
.caught span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--moss);
  border-radius: 50%;
  color: var(--moss);
}
.caught h2 {
  font-size: 27px;
  margin: 18px 0 5px;
}
.caught p,
.intro {
  color: var(--soft);
}
.unread-feed {
  padding-top: 70px;
}
.today-feed {
  padding-top: 0;
}
.today-feed-hero .unread-heading {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  padding-bottom: 0;
  border-bottom: 0;
}
.unread-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--moss);
}
.unread-heading h1,
.unread-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.03em;
}
.unread-heading p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}
.unread-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 22px;
}
.unread-item {
  animation: unread-item-in 240ms ease-out both;
}
.unread-status {
  min-height: 24px;
  margin: 24px 0 0;
  text-align: center;
  color: var(--soft);
  font-size: 13px;
}
.unread-feed .secondary-action {
  display: block;
  margin: 12px auto 0;
}
.unread-feed .secondary-action.hidden {
  display: none;
}
.unread-sentinel {
  height: 1px;
}
@keyframes unread-item-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .unread-item {
    animation: none;
  }
}
.hidden {
  display: none;
}
.sources-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.sources-heading h1 {
  margin-bottom: 16px;
}
.sources-heading .intro {
  margin: 0;
}
.primary-action,
.secondary-action,
.source-empty button {
  flex: 0 0 auto;
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 11px 17px;
  cursor: pointer;
}
.secondary-action {
  background: transparent;
  color: var(--moss);
}
.source-inventory {
  border: 1px solid var(--line);
  background: #fbfaf6;
}
.inventory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.inventory-heading h2 {
  margin: 0;
  font-size: 22px;
}
.inventory-heading > div > p {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 13px;
}
.source-help {
  position: relative;
}
.source-help summary {
  color: var(--moss);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
}
.source-help summary::-webkit-details-marker {
  display: none;
}
.source-help[open] p {
  position: absolute;
  z-index: 4;
  top: calc(100% + 10px);
  right: 0;
  width: min(330px, 80vw);
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 10px 28px #17201b1c;
  color: var(--soft);
  font-size: 13px;
}
.source-list {
  margin: 0;
}
.source-guide {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 30px;
}
.source-guide summary {
  cursor: pointer;
  padding: 16px 0;
  color: var(--moss);
  font-weight: 700;
}
.source-guide-content {
  padding: 0 0 22px;
  color: var(--soft);
  font-size: 14px;
}
.source-guide-content h2 {
  color: var(--ink);
  font-size: 18px;
  margin: 22px 0 5px;
}
.source-guide-content p {
  margin: 7px 0;
}
.source-guide code {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.source {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px minmax(110px, 140px) auto;
  align-items: center;
  gap: 12px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
.source:last-child {
  border-bottom: 0;
}
.source-table-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 80px minmax(110px, 140px) auto;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.source-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.source-copy {
  min-width: 0;
}
.source-identity strong,
.source-identity small {
  display: block;
}
.source-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-identity small {
  margin-top: 1px;
}
.source-open-setting {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
}
.source-open-setting select {
  width: auto;
  margin: 0;
  padding: 4px 22px 4px 7px;
  font-size: 11px;
}
.source-webview-config {
  margin-top: 7px;
  color: var(--soft);
  font-size: 11px;
}
.source-webview-config summary {
  width: max-content;
  cursor: pointer;
  color: var(--moss);
  font-weight: 700;
}
.source-webview-config-body {
  width: min(520px, calc(100vw - 96px));
  padding-top: 8px;
}
.source-webview-config-body p {
  margin: 0 0 7px;
  line-height: 1.45;
}
.source-webview-rules {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px;
  color: var(--ink);
  font:
    12px/1.45 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  resize: vertical;
}
.source-webview-config-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
}
.source-webview-config-actions button {
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 11px;
}
.source-webview-config-status {
  overflow-wrap: anywhere;
}
.source-favicon,
.source-type-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--pale);
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8afa9;
}
.status-pill.active::before {
  background: #3f7a56;
}
.fetch-status {
  color: var(--soft);
  font-size: 12px;
}
.fetch-error {
  color: #8c3125;
}
.fetch-error summary {
  cursor: pointer;
  font-weight: 700;
}
.fetch-error span {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.source-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  align-items: center;
}
.source-actions button {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.source-actions button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--soft);
  padding: 6px;
}
.source-actions button.danger {
  color: #8c3125;
}
.source-empty {
  padding: 56px 24px;
  text-align: center;
}
.source-empty > div {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--moss);
}
.source-empty h2 {
  margin: 0;
}
.source-empty p {
  margin: 6px 0 18px;
  color: var(--soft);
}
.source-tools {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: transparent;
}
.source-tools > summary {
  padding: 18px 22px;
  cursor: pointer;
}
.source-tools > summary span,
.source-tools > summary strong,
.source-tools > summary small {
  display: block;
}
.source-tools > summary small {
  margin-top: 2px;
}
.connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: #fbfaf6;
}
.connection-row > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
.connection-row h2 {
  margin: 0;
  font-size: 18px;
}
.connection-row p {
  margin: 2px 0 0;
  color: var(--soft);
  font-size: 13px;
}
.connection-row .form-status {
  color: var(--ink);
}
.panel {
  border: 1px solid var(--line);
  padding: 28px;
  margin-top: 45px;
  background: #fbfaf6;
}
.history-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  border: 1px solid var(--line);
  background: var(--line);
}
.history-stats article {
  min-width: 0;
  padding: 22px;
  background: #fbfaf6;
}
.history-stats strong,
.history-stats span {
  display: block;
}
.history-stats strong {
  color: var(--moss);
  font: 600 clamp(28px, 5vw, 40px)/1 var(--serif);
  letter-spacing: -0.03em;
}
.history-stats span {
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.history-section {
  margin-top: 52px;
}
.history-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--moss);
}
.history-heading h2,
.history-heading p {
  margin: 0;
}
.history-heading h2 {
  font-size: 24px;
}
.history-heading p {
  margin-top: 4px;
  color: var(--soft);
  font-size: 13px;
}
.history-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.history-item-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--pale);
  color: var(--moss);
  font-size: 13px;
  font-weight: 800;
}
.history-item-icon img {
  width: 20px;
  height: 20px;
}
.history-item-copy {
  min-width: 0;
}
.history-item h3 {
  margin: 3px 0 5px;
  font: 600 18px/1.25 var(--serif);
}
.history-item h3 button {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item h3 a {
  color: inherit;
  text-decoration: none;
}
.history-item h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hidden-link-item > button {
  color: var(--moss);
  white-space: nowrap;
}
.history-item p {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
}
.history-item > a {
  color: var(--moss);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.history-item > a:hover {
  text-decoration: underline;
}
.history-section > .secondary-action {
  margin-top: 24px;
}
.history-empty {
  padding: 64px 20px;
  color: var(--soft);
  text-align: center;
}
.history-empty > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--moss);
  font-size: 20px;
}
.history-empty h2,
.history-empty p {
  margin: 5px 0;
}
.panel h2 {
  margin-top: 0;
}
.youtube-connection {
  margin-top: 30px;
}
.youtube-connection h2 {
  margin: 4px 0;
}
.youtube-connection p {
  color: var(--soft);
  margin: 5px 0 0;
}
.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.mcp-capability {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--moss);
  background: var(--pale);
}
.mcp-capability strong {
  color: var(--moss);
}
.mcp-capability p {
  margin: 4px 0 0;
  color: var(--soft);
  font-size: 14px;
}
.discovery-panel > p {
  color: var(--soft);
}
.discovery-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.discovery-rules {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.discovery-rule {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.discovery-rule strong,
.discovery-rule small {
  display: block;
}
.discovery-rule small {
  margin-top: 3px;
}
.discovery-candidate {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.discovery-candidate img {
  width: 120px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--pale);
}
.discovery-candidate h4 {
  font: 600 18px/1.25 var(--serif);
  margin: 0 0 5px;
}
.discovery-candidate p {
  color: var(--soft);
  font-size: 13px;
  margin: 5px 0;
}
.candidate-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 18px 0;
}
small {
  color: var(--soft);
  font-weight: 400;
}
input {
  width: 100%;
  margin-top: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
}
select {
  width: 100%;
  margin-top: 7px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  font: inherit;
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
button {
  font: inherit;
}
.panel button,
.source-actions button {
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
}
.panel button.secondary {
  background: transparent;
  color: var(--moss);
}
.source-actions button.secondary {
  background: transparent;
  color: var(--moss);
}
dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  overflow: visible;
}
.wide-dialog {
  width: min(780px, calc(100vw - 32px));
}
.dialog-card {
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  background: #fbfaf6;
  padding: 28px;
  box-shadow: 0 24px 70px #17201b52;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dialog-heading h2 {
  margin: 4px 0 0;
  font-size: 29px;
}
.dialog-heading .dialog-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}
.dialog-intro {
  margin: 8px 0 24px;
  color: var(--soft);
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.dialog-card button {
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
}
.dialog-card button.secondary {
  background: transparent;
  color: var(--moss);
}
.inline-help {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}
.inline-help summary {
  color: var(--moss);
  cursor: pointer;
  font-weight: 700;
}
.inline-help code {
  color: var(--ink);
  overflow-wrap: anywhere;
}
dialog::backdrop {
  background: #17201bcc;
}
.reader-dialog {
  width: min(860px, calc(100vw - 32px));
}
.reader-card {
  max-height: min(92vh, 940px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: clamp(28px, 6vw, 64px);
  box-shadow: 0 24px 70px #17201b52;
}
.reader-card.webview-active {
  display: flex;
  flex-direction: column;
  height: min(92vh, 940px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px);
}
.reader-card.webview-active .reader-header {
  flex: 0 0 auto;
  padding-bottom: 16px;
}
.reader-card.webview-active .reader-header h1 {
  margin: 7px 0;
  font-size: clamp(24px, 3vw, 34px);
}
.reader-header {
  height: auto;
  align-items: flex-start;
  padding: 0 0 30px;
}
.reader-header h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.reader-header .dialog-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 30px;
}
.reader-byline {
  margin: 0;
  color: var(--soft);
}
.reader-notice {
  max-width: 680px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid #d6c69f;
  background: #f4edda;
  color: #68552c;
  font-size: 13px;
}
.reader-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 38px 0 54px;
  border-top: 1px solid var(--line);
  color: #202a24;
  font: 19px/1.82 var(--serif);
  white-space: pre-wrap;
}
.reader-webview {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}
.reader-card.webview-active .reader-webview {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  border: 0;
}
.reader-webview iframe {
  display: block;
  width: 100%;
  min-height: min(68vh, 760px);
  border: 1px solid var(--line);
  background: white;
}
.reader-card.webview-active .reader-webview iframe {
  height: 100%;
  min-height: 0;
}
.reader-card.webview-active .reader-notice,
.reader-card.webview-active .reader-feedback,
.reader-card.webview-active .reader-similar {
  display: none;
}
.reader-card.webview-active .reader-footer {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 12px;
}
.reader-card.webview-active .reader-footer span {
  display: none;
}
.reader-feedback {
  padding: 24px;
  background: var(--pale);
}
.reader-feedback > p:first-child {
  margin-top: 0;
  font-weight: 700;
}
.reader-feedback > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.reader-feedback button {
  border: 1px solid var(--moss);
  background: var(--moss);
  color: white;
  padding: 9px 13px;
  cursor: pointer;
}
.reader-feedback button.secondary {
  background: transparent;
  color: var(--moss);
}
.reader-similar {
  padding: 36px 0;
}
.reader-similar h2 {
  font-size: 24px;
}
.reader-similar-item {
  display: block;
  width: 100%;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.reader-similar-item span,
.reader-similar-item small {
  display: block;
}
.reader-similar-item span {
  font: 18px/1.3 var(--serif);
}
.reader-similar-item small {
  margin-top: 4px;
}
.reader-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}
.reader-footer a {
  flex: 0 0 auto;
  color: var(--moss);
  font-weight: 700;
}
.link-settings {
  display: grid;
  gap: 14px;
  margin: 8px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
}
.link-settings legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 700;
}
.link-settings select,
.link-settings textarea {
  width: 100%;
}
.link-settings textarea {
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  resize: vertical;
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}
.link-settings small {
  color: var(--soft);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}
.auth-screen.hidden {
  display: none;
}
.auth-card {
  width: min(100%, 460px);
  margin: 0;
}
.auth-card h1 {
  font-size: 42px;
}
.auth-card > button,
.auth-card form > button {
  width: 100%;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.panel .text-button {
  border: 0;
  background: transparent;
  color: var(--moss);
  margin-top: 16px;
}
.empty {
  padding: 60px 0;
  color: var(--soft);
  text-align: center;
}
.error {
  color: #8c3125;
}
.form-status {
  font-size: 13px;
}
.topic-create {
  margin-bottom: 32px;
}
.topics-briefing {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.topics-briefing-heading {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.topics-briefing #brief-caught-up {
  padding-top: 56px;
}
.topic-insights-heading {
  align-items: end;
  margin-bottom: 8px;
}
.topic-insights-status {
  min-height: 22px;
  margin: 0 0 20px;
  color: var(--soft);
}
.topic-insights-empty,
.topic-insights-loading {
  display: flex;
  min-height: 210px;
  padding: 36px;
  border: 1px dashed #b8c1ba;
  border-radius: 14px;
  background: #fbfaf6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.topic-insights-empty > span {
  color: var(--moss);
  font-size: 30px;
}
.topic-insights-empty h2,
.topic-insights-loading p {
  margin-bottom: 4px;
}
.topic-insights-empty p,
.topic-insights-loading p {
  max-width: 500px;
  margin-top: 4px;
  color: var(--soft);
}
.topic-insights-loading {
  min-height: 180px;
  flex-direction: row;
  gap: 18px;
  text-align: left;
}
.topic-insights-loading > span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: insight-spin 0.8s linear infinite;
}
@keyframes insight-spin {
  to {
    transform: rotate(360deg);
  }
}
.topic-insights-grid {
  display: grid;
  gap: 18px;
}
.topic-insight-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfaf6;
}
.topic-insight-card > header {
  height: auto;
  padding: 0;
  border: 0;
  align-items: start;
  gap: 20px;
}
.topic-insight-card h2 {
  margin: 6px 0 0;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.1;
}
.topic-save-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  background: transparent;
  color: var(--moss);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.topic-save-action:hover:not(:disabled) {
  background: var(--pale);
}
.topic-save-action.saved {
  border-color: var(--line);
  color: var(--soft);
}
.topic-insight-summary {
  max-width: 800px;
  margin: 22px 0;
  font-size: 16px;
}
.topic-insight-sources {
  display: flex;
  padding: 12px 0;
  border-block: 1px solid var(--line);
  color: var(--soft);
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.topic-insight-sources strong {
  color: var(--ink);
  white-space: nowrap;
}
.topic-insight-stories {
  display: grid;
  margin: 18px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}
.topic-insight-stories li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
}
.topic-insight-stories a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: #aeb9b1;
  text-underline-offset: 3px;
}
.topic-insight-stories span {
  color: var(--soft);
  font-size: 12px;
  text-align: right;
}
.saved-topics {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.saved-topics-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}
.saved-topics-heading h2 {
  margin: 5px 0 2px;
  font-size: 30px;
}
.saved-topics-heading p {
  margin: 0;
  color: var(--soft);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.topic-card {
  display: flex;
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: inherit;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.topic-card:hover {
  border-color: var(--moss);
  transform: translateY(-1px);
}
.topic-card-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
}
.topic-card > span:not(.topic-card-title),
.topic-card small,
.topic-section-heading p,
.topic-summary {
  color: var(--soft);
}
.topic-card small {
  margin-top: auto;
}
.topic-back {
  margin: 0 0 36px;
}
.topic-content-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.topic-content-heading h2 {
  margin: 0;
}
.topic-content-heading span {
  color: var(--soft);
  font-size: 13px;
}
.topic-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 22px;
}
.topic-content > .source-empty {
  grid-column: 1 / -1;
}
.content-type {
  color: var(--moss);
  font-weight: 700;
}
@media (min-width: 700px) {
  .history-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .brief-group,
  .unread-items,
  .topic-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}
@media (max-width: 699px) {
  .topic-insights-heading,
  .saved-topics-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .topic-insight-card > header,
  .topic-insight-sources,
  .topic-insight-stories li {
    align-items: start;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .topic-insight-stories span {
    text-align: left;
  }
}
@media (min-width: 900px) {
  .brief-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
  }
  .brief-hero > .source-freshness {
    margin-top: 28px;
  }
}
@media (min-width: 1120px) {
  .brief-group,
  .unread-items,
  .topic-content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
@media (max-width: 600px) {
  header {
    height: auto;
    padding: 18px 20px;
    align-items: flex-start;
  }
  nav {
    gap: 0;
  }
  .account-menu {
    margin-left: 5px;
    padding-left: 10px;
  }
  .nav {
    padding: 6px 8px;
    font-size: 13px;
  }
  main {
    padding-top: 45px;
  }
  .deck {
    display: block;
  }
  .deck span {
    display: block;
    margin-top: 12px;
  }
  .unread-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .history-stats article {
    padding: 18px;
  }
  .history-item {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
  }
  .history-item h3 button {
    overflow: visible;
    white-space: normal;
  }
  .history-item > a {
    grid-column: 2;
  }
  .hidden-link-item > button {
    grid-column: 2;
    justify-self: start;
  }
  .item {
    padding: 19px;
  }
  .item-media {
    margin-right: -19px;
    margin-left: -19px;
  }
  .item h2 {
    font-size: 19px;
  }
  .source {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .source-table-head {
    display: none;
  }
  .source > [role="cell"]:nth-child(2) {
    justify-self: end;
  }
  .source > [role="cell"]:nth-child(3) {
    grid-column: 1 / -1;
  }
  .source-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sources-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }
  .connection-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventory-heading {
    align-items: flex-start;
  }
  .source-help[open] p {
    right: -12px;
  }
  .discovery-fields {
    grid-template-columns: 1fr;
  }
  .discovery-candidate {
    grid-template-columns: 1fr;
  }
  .discovery-candidate img {
    width: 100%;
  }
}
