.digest-pane { container: digest / inline-size; color: var(--text); width: 100%; min-width: 0; overflow-wrap: anywhere; }
.digest-pane *, .digest-pane *::before, .digest-pane *::after { box-sizing: border-box; }
.digest-strip, .digest-settings, .digest-theme, .digest-reviews { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px; margin-bottom: 14px; min-width: 0; }
.digest-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.digest-pane label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.digest-pane input, .digest-pane select, .digest-pane button { max-width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.digest-pane button, .digest-pane summary { cursor: pointer; }
.digest-pane button:disabled { opacity: .45; cursor: default; }
.digest-muted { color: var(--muted); font-size: .85rem; }
.digest-overview, .digest-theme p, .digest-points p { line-height: 1.65; white-space: pre-wrap; }
.digest-themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.digest-theme h3 { margin-top: 0; font-size: 1rem; }
.digest-refs { padding-left: 18px; font-size: .85rem; line-height: 1.6; }
.digest-refs a { color: var(--text); }
.digest-refs li { margin-bottom: 6px; }
.digest-points { padding-left: 20px; }
.digest-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding-top: 14px; }
.digest-form label { flex: 1 1 140px; }
.digest-form .digest-check { flex-direction: row; align-items: center; }
.digest-form p { flex-basis: 100%; margin: 0; }
.digest-pane [role="alert"]:empty { display: none; }
.digest-empty { padding: 24px 0; color: var(--muted); }
.digest-summary { min-width: 0; padding: 12px; overflow-wrap: anywhere; }
.digest-summary ul { padding-left: 18px; font-size: .85rem; color: var(--muted); }
@container digest (min-width: 600px) {
  .digest-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.digest-sends { padding-left: 20px; overflow-wrap: anywhere; }
.digest-form .digest-delivery { min-width: 0; flex-basis: 100%; }
.digest-delivery span { display: flex; gap: 8px; align-items: center; }
.digest-delivery small { color: var(--muted); overflow-wrap: anywhere; }
.digest-form input, .digest-strip select { min-width: 0; max-width: 100%; box-sizing: border-box; }

.digest-market { width: 100%; max-width: 100%; min-width: 0; margin-bottom: 14px; }
.digest-market-strip { display: flex; flex-wrap: nowrap; gap: 20px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; padding: 10px 0; }
.digest-quote { display: inline-flex; flex: 0 0 auto; gap: 8px; align-items: baseline; white-space: nowrap; font-size: .85rem; }
.digest-quote-up { color: #d64545; }
.digest-quote-down { color: #387de0; }
