:root {
  --bg: var(--tg-theme-bg-color, #f6f5f4);
  --surface: var(--tg-theme-secondary-bg-color, #ffffff);
  --text: var(--tg-theme-text-color, #242321);
  --muted: var(--tg-theme-hint-color, #77716c);
  --accent: var(--tg-theme-button-color, #0075de);
  --accent-text: var(--tg-theme-button-text-color, #ffffff);
  --border: color-mix(in srgb, var(--text) 11%, transparent);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
button { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 18px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px); }
.eyebrow { margin: 0 0 3px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); font-size: 22px; }
main { max-width: 720px; margin: 0 auto; padding: 8px 14px 28px; }
.date-line { display: flex; justify-content: space-between; align-items: end; margin: 8px 4px 16px; }
.date-line h2 { margin: 0; font-size: 19px; }
.date-line small, .muted { color: var(--muted); }
.card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 18px rgba(0,0,0,.035); }
.card h3 { margin: 0 0 12px; font-size: 16px; }
.card h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.item-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.item { display: flex; gap: 9px; line-height: 1.42; }
.item::before { content: "•"; color: var(--accent); font-weight: 700; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 12px; font-weight: 650; }
.task { padding: 11px 0; border-top: 1px solid var(--border); }
.task:first-of-type { border-top: 0; padding-top: 0; }
.task strong { display: block; margin-bottom: 4px; }
.task p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.state { min-height: 55vh; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bottom-nav { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(20px); }
.nav-item { min-height: 52px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; display: grid; justify-items: center; align-content: center; gap: 3px; }
.nav-item span { font-size: 18px; line-height: 1; }
.nav-item small { font-size: 10px; font-weight: 600; }
.nav-item.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.empty { color: var(--muted); font-size: 14px; }
@media (min-width: 700px) { main { padding-top: 18px; } .topbar { padding-left: max(24px, calc((100vw - 720px)/2)); padding-right: max(24px, calc((100vw - 720px)/2)); } }
