#today-root { display:grid; gap:16px; font-size:12px; color:var(--text-primary); }
#today-root [hidden] { display:none!important; }
#today-root .today-panel { background:var(--bg-surface); border:1px solid var(--border-default); border-radius:12px; padding:18px; }
#today-root .today-header,#today-root .today-actions,#today-root .today-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
#today-root .today-header { justify-content:space-between; }
#today-root h2 { font-size:17px; font-weight:650; }
#today-root h3 { font-size:14px; font-weight:600; }
#today-root p { margin:0; }
#today-root .today-muted { color:var(--text-secondary); font-size:11px; line-height:1.65; }
#today-root .today-controls { margin-top:16px; }
#today-root .today-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:7px 11px; border:1px solid var(--border-default); border-radius:8px; background:var(--bg-subtle); color:var(--text-primary); font-size:11px; }
#today-root .today-button:hover { background:var(--bg-card-hover); border-color:var(--text-muted); }
#today-root .today-button:disabled { opacity:.5; cursor:wait; }
#today-root .today-button.is-primary { background:var(--accent); border-color:var(--accent); color:white; }
#today-root .today-icon { width:15px; height:15px; flex-shrink:0; }
#today-root input { min-height:36px; border:1px solid var(--border-default); border-radius:8px; background:var(--bg-canvas); padding:7px 10px; color:var(--text-primary); color-scheme:dark; }
[data-theme=light] #today-root input { color-scheme:light; }
#today-root :is(button,input):focus-visible { outline:2px solid #58a6ff; outline-offset:2px; }
#today-root .today-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
#today-root .today-stat { text-align:left; display:grid; gap:5px; cursor:pointer; }
#today-root .today-stat strong { font-size:26px; font-weight:650; font-variant-numeric:tabular-nums; }
#today-root .today-stat small { color:var(--text-secondary); line-height:1.5; }
#today-root .today-stat.is-overdue strong { color:#f87171; }
#today-root .today-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
#today-root .today-section-head { margin-bottom:14px; }
#today-root .today-section-head h3 { display:flex; justify-content:space-between; gap:8px; margin-bottom:5px; }
#today-root .today-count { color:var(--text-secondary); font-variant-numeric:tabular-nums; }
#today-root .today-list { display:grid; gap:10px; }
#today-root .today-card { display:grid; gap:10px; border:1px solid var(--border-muted); background:var(--bg-canvas); border-radius:9px; padding:13px; }
#today-root .today-card-top { display:flex; align-items:start; justify-content:space-between; gap:10px; }
#today-root .today-card strong { font-weight:600; overflow-wrap:anywhere; }
#today-root .today-badge { border-radius:6px; padding:3px 7px; background:#388bfd18; color:#93c5fd; font-size:10px; white-space:nowrap; }
[data-theme=light] #today-root .today-badge { color:#1d4ed8; }
#today-root .today-card-meta { display:grid; gap:4px; color:var(--text-secondary); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
#today-root .today-money { display:flex; gap:10px; flex-wrap:wrap; font-variant-numeric:tabular-nums; }
#today-root .today-empty { padding:24px 12px; color:var(--text-secondary); text-align:center; line-height:1.7; border:1px dashed var(--border-default); border-radius:9px; }
#today-root .today-page { display:flex; justify-content:center; margin-top:12px; }
#today-root .today-error { padding:12px; color:#fb7185; border:1px solid #f43f5e50; border-radius:8px; background:#f43f5e10; white-space:pre-wrap; }
[data-theme=light] #today-root .today-error { color:#be123c; }
@media(max-width:900px) { #today-root .today-summary { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:639px) {
  #today-root .today-panel { padding:14px; }
  #today-root .today-sections { grid-template-columns:minmax(0,1fr); }
  #today-root .today-summary { gap:8px; }
  #today-root .today-stat strong { font-size:23px; }
  #today-root .today-button { min-height:42px; }
  #today-root input { font-size:16px; max-width:170px; min-width:0; }
  #today-root .today-controls { gap:6px; }
  #today-root .today-header { align-items:start; }
}
