/* The Today page (assets/js/ext/today.js) */
.today { max-width: 1040px; margin: 0 auto; padding: 56px 48px 96px; }
.today-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.today-head h1 { font-size: 32px; margin: 0 0 2px; }
.today-head p { margin: 0; }
.today-home { margin: 0; }

.today-focus { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--bg-elev); margin-bottom: 28px; box-shadow: 0 1px 3px rgba(15, 15, 15, .04); }
.today-focus.done { background: var(--bg-green); border-color: transparent; }
.today-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); margin-bottom: 6px; }
.today-focus-row { display: flex; align-items: center; gap: 10px; }
.today-focus-input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 600 20px/1.3 var(--font); padding: 4px 0; outline: none; }
.today-focus-input::placeholder { color: var(--fg-faint); font-weight: 500; }
.today-focus.done .today-focus-input { text-decoration: line-through; color: var(--fg-muted); }
.today-focus-done { width: 20px; height: 20px; flex: none; accent-color: var(--c-green); }
.today-carry { margin-top: 8px; }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.today-sec { margin-bottom: 26px; }
.today-sec h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.today-overdue h2 { color: var(--c-red); }
.today-count { font-size: 12px; font-weight: 600; color: var(--fg-muted); background: var(--bg-hover); border-radius: 999px; padding: 0 7px; line-height: 18px; }
.today-overdue .today-count { color: var(--c-red); background: var(--bg-red); }

.today-item { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 6px; min-height: 36px; transition: opacity .3s, transform .3s; }
.today-item:hover { background: var(--bg-hover); }
.today-item.finishing { opacity: .35; }
.today-item.finishing .today-title { text-decoration: line-through; }
.today-tick { width: 17px; height: 17px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
.today-tick-none { width: 17px; flex: none; }
.today-title { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; }
.today-title > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.today-title:hover > span:last-child { text-decoration: underline; text-decoration-color: var(--fg-faint); }
.today-icon { display: inline-flex; }
.today-meta { display: flex; align-items: center; gap: 8px; flex: none; font-size: 13px; }
.today-when { color: var(--fg-muted); white-space: nowrap; }
.today-when.late { color: var(--c-red); font-weight: 600; }
.today-db { display: inline-flex; align-items: center; gap: 3px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.today-db:hover { color: var(--fg); }
.today-day { margin-bottom: 8px; }
.today-day-label { margin: 6px 6px 0; font-weight: 600; }

.today-empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--border); border-radius: 10px; }
.today-empty .big-icon { font-size: 40px; }
.today-empty h2 { margin: 8px 0 4px; font-size: 18px; }
.today-empty p { max-width: 460px; margin: 0 auto 16px; }
.today-empty .row-gap { justify-content: center; flex-wrap: wrap; }

.today-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.today-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg-elev); }
.today-card h3 { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0 0 8px; }
.today-mini { display: flex; flex-direction: column; gap: 2px; }
.today-mini-item { display: flex; flex-direction: column; gap: 1px; text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 6px; margin: 0 -6px; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
.today-mini-item:hover { background: var(--bg-hover); }
.today-recent > span { display: inline-flex; align-items: center; gap: 4px; }
.today-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#sidebar .today-btn.active { background: var(--bg-active); font-weight: 600; }

@media (max-width: 860px) {
  .today { padding: 32px 18px 80px; }
  .today-grid { grid-template-columns: 1fr; }
  .today-side { position: static; }
  .today-db { display: none; }
}
@media (prefers-reduced-motion: reduce) { .today-item { transition: none; } }
