:root { color-scheme: light dark; --bg: #fff; --fg: #1d2330; --muted: #5b6475; --accent: #2d6cdf; --line: #d9dee8; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151c; --fg: #e8ecf3; --muted: #9aa3b5; --line: #2a3140; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
button, .btn { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; cursor: pointer; }
input, select, textarea { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px; border-bottom: 1px solid var(--line); text-align: start; }
img, table { max-width: 100%; }

.nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.nav-link { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--accent); color: #fff; text-decoration: none; flex: 1 1 auto; text-align: center; }

.card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 16px; }
.card h2 { margin-top: 0; font-size: 1.1rem; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

.task-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.task-row form { margin: 0; }
.task-row button { min-height: 44px; }

.done-mark { color: var(--muted); font-weight: bold; }

.form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.form label { font-weight: bold; }

.muted { color: var(--muted); }
