:root { --bg:#f6f7f9; --card:#fff; --text:#1d2330; --muted:#6b7280; --line:#e5e7eb; --brand:#1f4e8c; --ok:#15803d; --warn:#b45309; --danger:#b91c1c; }
@media (prefers-color-scheme: dark) { :root { --bg:#111418; --card:#1b2027; --text:#e8ebf0; --muted:#9aa3af; --line:#2b323c; --brand:#6ea8ff; } }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, "Malgun Gothic", sans-serif; background:var(--bg); color:var(--text); font-size:17px; }
main { max-width: 560px; margin: 0 auto; padding: 16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px; margin-bottom:12px; }
button { font: inherit; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 12px 14px; min-height: 48px; }
button.primary { background: var(--brand); color: #fff; border: none; width: 100%; font-size: 19px; font-weight: 700; }
input, select { font: inherit; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); }
.row { display:grid; grid-template-columns: 1fr 1fr 72px; gap: 6px; margin-bottom: 8px; align-items: center; }
.row .purpose { grid-column: 1 / -1; }
.chips { display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0; }
.chip { padding: 8px 12px; min-height: 40px; border-radius: 999px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.notice-odometer { background:#fff7e6; color:#7a4b00; border:1px solid #f5c26b; border-radius:12px; padding:12px; margin-bottom:12px; }
.cal { display:grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal button { min-height: 44px; padding: 4px; font-size: 15px; }
.cal .done { background: #e7f6ec; border-color: #9ad5ad; color: #14532d; }
.cal .sel { outline: 3px solid var(--brand); }
.cal .weekend { color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.hidden { display: none !important; }
nav.tabs { display:flex; gap:8px; margin-bottom:12px; }
nav.tabs button { flex:1; }
nav.tabs button.on { background: var(--brand); color:#fff; border-color: var(--brand); }
.err { color: var(--danger); }
