.digest-workspace { max-width: 1120px; margin: 0 auto; color: #233044; }
.digest-workspace-head, .digest-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-radius: 20px; background: linear-gradient(130deg, #f2f8f5, #eef3fa); border: 1px solid #dce8e4; }
.digest-workspace-head h2, .digest-report-header h2 { margin: 7px 0 8px; color: #12352b; font-size: 25px; }
.digest-workspace-head p, .digest-report-header p { margin: 0; color: #657387; line-height: 1.7; }
.digest-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .13em; color: #3a8171; }
.digest-settings, .digest-list, .digest-section, .digest-push-setup { margin-top: 18px; padding: 22px; border: 1px solid #e2e8ee; border-radius: 18px; background: #fff; box-shadow: 0 3px 18px rgba(22, 41, 49, .035); }
.digest-settings h3, .digest-list h3, .digest-section h3, .digest-push-setup h3 { margin: 0 0 13px; color: #18382d; font-size: 18px; }
.digest-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.digest-settings-form > label:not(.digest-check) { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.digest-settings-form input[type="time"], .digest-settings-form input[type="text"], .digest-settings-form input[type="date"], .digest-settings-form input:not([type]) { width: 100%; padding: 10px 12px; border: 1px solid #cad6df; border-radius: 10px; background: #fff; }
.digest-settings-form fieldset { min-width: 0; border: 1px solid #dce5e9; border-radius: 12px; padding: 12px; }
.digest-settings-form legend { padding: 0 5px; font-size: 13px; font-weight: 700; }
.digest-options { display: flex; flex-wrap: wrap; gap: 8px 16px; max-height: 190px; overflow-y: auto; }
.digest-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; line-height: 1.5; }
.digest-check input { accent-color: #287969; }
.digest-setup-status, .digest-note { color: #647386; line-height: 1.7; font-size: 13px; }
.digest-settings-form > button { justify-self: start; }
.digest-sms-extra { display: grid; gap: 10px; }
.digest-sms-extra[hidden] { display: none; }
.digest-sms-extra > label:not(.digest-check) { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.digest-sms-extra input { width: 100%; padding: 10px 12px; border: 1px solid #cad6df; border-radius: 10px; background: #fff; }
.digest-push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.digest-list-row, .digest-account { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-top: 1px solid #edf1f4; }
.digest-list-row > div { display: grid; gap: 6px; flex: 1; }
.digest-list-row small, .digest-account small { color: #738294; font-size: 12px; line-height: 1.55; }
.digest-report { margin-top: 20px; }
.digest-report-header { background: linear-gradient(135deg, #163e35, #24566a); color: #fff; }
.digest-report-header h2, .digest-report-header p, .digest-report-header .digest-eyebrow { color: #fff; }
.digest-report-header p { opacity: .86; }
.digest-report-seal { flex: none; border: 1px solid rgba(255,255,255,.5); border-radius: 100px; padding: 7px 13px; font-size: 12px; }
.digest-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.digest-kpis > div { display: grid; gap: 7px; padding: 17px; background: #fff; border: 1px solid #e2e9ee; border-radius: 14px; }
.digest-kpis span { color: #6f7d8d; font-size: 12px; }
.digest-kpis strong { font-size: 21px; color: #19334b; }
.digest-kpis .income, .digest-entry-amount .income { color: #1d8065; }
.digest-kpis .expense, .digest-entry-amount .expense { color: #b65b53; }
.digest-entry { padding: 14px 0; border-top: 1px solid #edf1f4; }
.digest-entry-head { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; }
.digest-entry-head span, .digest-entry-meta { color: #778596; }
.digest-entry-summary { margin-top: 6px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.digest-entry-meta { margin-top: 4px; font-size: 12px; line-height: 1.6; }
.digest-entry-amount { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 7px; font-size: 13px; font-weight: 700; }
.digest-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.digest-project-card { min-width: 0; overflow: hidden; border: 1px solid #e3eaee; border-radius: 13px; background: #fbfcfd; }
.digest-project-card h4 { margin: 0; padding: 13px 14px 5px; color: #193d32; font-size: 14px; }
.digest-project-card > p { margin: 0; padding: 0 14px 10px; color: #718092; font-size: 11px; line-height: 1.5; }
.digest-project-row { display: grid; grid-template-columns: minmax(95px, 1.2fr) minmax(76px, 1fr) minmax(76px, 1fr); gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid #edf1f4; font-size: 12px; }
.digest-project-row > * { min-width: 0; overflow-wrap: anywhere; }
.digest-project-row.labels { color: #768496; background: #f4f7f8; font-size: 11px; }
.digest-project-row .income { color: #1d8065; }
.digest-project-row .expense { color: #b65b53; }
.digest-project-row.total { background: #f0f7f4; }
.digest-account { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.digest-account > div { display: grid; gap: 2px; }
.digest-account > small { grid-column: 1 / -1; }
.digest-footnotes { margin: 20px 3px; color: #6b7889; font-size: 12px; line-height: 1.5; }
.digest-footnotes p { margin: 5px 0; }
.digest-empty, .digest-loading { color: #8390a0; padding: 18px 0; }
.digest-error { margin-top: 14px; padding: 16px; border-radius: 12px; color: #973e34; background: #fff0ef; }
.digest-access-notice { margin-top: 14px; padding: 20px; border: 1px solid #cde3d8; border-radius: 12px; color: #245d4b; background: #f0f8f3; }
.digest-access-notice h3 { margin: 0 0 10px; font-size: 18px; }
.digest-access-notice p { margin: 8px 0 0; line-height: 1.7; }
.digest-report-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.digest-list-row { gap: 12px; flex-wrap: wrap; }
.digest-unread-badge { float: right; min-width: 20px; padding: 2px 5px; border-radius: 12px; background: #d9f7e8; color: #145a45; text-align: center; font-size: 11px; font-weight: 800; }
.digest-unread-badge[hidden] { display: none; }
.digest-unread-hint { margin: 0 0 13px; padding: 10px 12px; border-radius: 10px; background: #eaf7f1; color: #1d6a4f; font-size: 13px; font-weight: 700; }
.digest-settings-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) {
  .digest-workspace-head, .digest-report-header { display: block; padding: 18px; }
  .digest-workspace-head > button { margin-top: 15px; }
  .digest-report-seal { display: inline-block; margin-top: 12px; }
  .digest-settings-form { grid-template-columns: 1fr; }
  .digest-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .digest-kpis strong { font-size: 17px; }
  .digest-list-row { flex-wrap: wrap; }
  .digest-list-row > div { min-width: 100%; }
  .digest-project-grid { grid-template-columns: 1fr; }
  .digest-project-row { grid-template-columns: minmax(82px, 1.1fr) minmax(74px, 1fr) minmax(74px, 1fr); gap: 5px; padding: 10px 9px; font-size: 11px; }
  .digest-project-row.labels { font-size: 10px; }
  .digest-settings, .digest-list, .digest-section, .digest-push-setup { padding: 16px; }
}
