:root { color-scheme: light; --ink: #090e27; --muted: #596982; --line: #dce3ec; --accent: #ffd342; --selected: #f7bb14; --danger: #a82932; --paper: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
html { scrollbar-width: none; }
body::-webkit-scrollbar { width: 0; }
body { margin: 0; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, a { -webkit-user-select: none; user-select: none; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #1e69b5; outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100%, 760px); margin: auto; padding: 10px 16px calc(105px + env(safe-area-inset-bottom)); }
.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 36px; }
.wordmark { font-weight: 750; font-size: 25px; letter-spacing: -.7px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; background: #dfe5ed; border-radius: 50%; font-size: 20px; }
.month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -8px 12px; }
.month-title { font-size: 22px; font-weight: 650; letter-spacing: -.6px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 10px; color: var(--muted); border-radius: 8px; }
.month .icon-button { color: var(--ink); }
svg { width: 23px; height: 23px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.date-button { display: grid; gap: 8px; padding: 8px 0 9px; border-radius: 8px; min-height: 56px; position: relative; }
.date-button .weekday { color: var(--muted); font-size: 13px; }
.date-button .number { font-size: 19px; font-weight: 650; line-height: 1; }
.date-button[aria-pressed="true"] { background: var(--accent); }
.date-button[aria-pressed="true"] .weekday { color: var(--ink); }
.date-button.today::after { content: ""; position: absolute; bottom: 4px; left: calc(50% - 2px); width: 4px; height: 4px; background: var(--ink); border-radius: 50%; }
.date-button[aria-pressed="true"].today::after { display: none; }
h1, h2, p { margin: 0; }
h1 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.7px; margin: 27px 0 10px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.5px; }
.task-list { list-style: none; padding: 0; margin: 0; }
.task-row { display: flex; align-items: center; min-height: 58px; gap: 10px; padding: 8px 0; }
.check { width: 38px; height: 44px; flex: 0 0 38px; padding: 7px 4px; display: grid; place-items: center; }
.check-box { display: grid; place-items: center; width: 23px; height: 23px; border: 1.3px solid var(--muted); border-radius: 5px; }
.check[aria-checked="true"] .check-box { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.check-box svg { width: 19px; height: 19px; }
.task-copy { min-width: 0; flex: 1; font-size: 17px; line-height: 1.32; overflow-wrap: anywhere; }
.task-text { white-space: pre-wrap; }
.task-text::first-letter { text-transform: uppercase; }
.task-row.done .task-text { text-decoration: line-through; color: var(--muted); }
.task-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 0; }
.task-actions .icon-button { min-width: 38px; width: 38px; padding: 8px; }
.repeat-icon { display: flex; align-items: center; justify-content: center; width: 32px; color: var(--muted); }
.task-meta { margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.completed { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.completed summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 18px; padding: 18px 5px; font-size: 17px; color: var(--muted); }
.completed summary::-webkit-details-marker { display: none; }
.completed summary svg { width: 20px; height: 20px; transition: transform 140ms; }
.completed[open] summary svg { transform: rotate(180deg); }
.add-task { display: flex; align-items: center; gap: 18px; width: 100%; padding: 20px 0; min-height: 74px; color: var(--muted); font-size: 18px; text-align: left; }
.plus-circle { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: var(--ink); background: var(--accent); flex: 0 0 33px; }
.plus-circle svg { width: 22px; height: 22px; }
.next-section { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 28px; }
.next-section h2 { margin-bottom: 19px; font-size: 22px; }
.navigation { position: fixed; z-index: 5; bottom: 0; left: 0; width: 100%; border-top: 1px solid var(--line); background: var(--paper); display: flex; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.nav-button { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 6px; padding: 5px; min-height: 62px; width: min(25%, 190px); color: var(--muted); font-size: 13px; }
.nav-button svg { width: 26px; height: 26px; }
.nav-button[aria-current="page"] { color: #936b00; }
.nav-button[aria-current="page"] svg { color: var(--selected); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 16px; }
.section-head h1 { margin: 0; }
.quiet-button { color: var(--muted); padding: 10px 0 10px 12px; font-size: 14px; min-height: 44px; }
.empty { color: var(--muted); font-size: 17px; line-height: 1.5; padding: 22px 0; }
.section-note { color: var(--muted); line-height: 1.5; font-size: 14px; margin: -5px 0 15px; }
.cycle-row, .backlog-row { padding: 15px 0; border-bottom: 1px solid var(--line); min-height: 80px; }
.cycle-row .task-copy, .backlog-row .task-copy { padding-left: 3px; }
.plan-group { margin-top: 30px; }
.plan-group h2 { padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: 21px; }
.login { padding-top: clamp(40px, 12vh, 130px); }
.login-mark { display: flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 18px; background: var(--accent); margin-bottom: 26px; }
.login-mark svg { width: 36px; height: 36px; }
.login h1 { font-size: 32px; margin: 0 0 15px; }
.login p { max-width: 420px; color: var(--muted); font-size: 18px; line-height: 1.5; margin-bottom: 28px; }
.login .primary { max-width: 420px; }
.login .field-hint { margin: 16px 0 0; font-size: 14px; }
.login-link { display: inline-block; text-decoration: underline; padding: 12px 0; color: var(--ink); }
.loading { color: var(--muted); padding: 40px 0; }
dialog { width: min(calc(100% - 24px), 480px); max-height: calc(100dvh - 32px); border: 0; border-radius: 16px; padding: 24px; color: var(--ink); background: var(--paper); overflow-y: auto; box-shadow: 0 12px 55px #090e2724; }
dialog::backdrop { background: #090e2766; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -8px -10px 18px 0; }
.dialog-heading .icon-button { font-size: 30px; }
label { display: block; margin: 18px 0 8px; font-size: 15px; font-weight: 600; }
textarea, input, select { width: 100%; border: 1px solid #a9b5c6; background: var(--paper); border-radius: 8px; padding: 12px; min-height: 48px; font-size: 17px; color: var(--ink); }
textarea { resize: vertical; line-height: 1.4; }
textarea:focus, input:focus, select:focus { outline: 2px solid #1e69b5; outline-offset: 1px; }
.field-hint { color: var(--muted); margin: 8px 0; font-size: 14px; line-height: 1.45; }
.primary { background: var(--accent); color: var(--ink); width: 100%; padding: 14px 20px; min-height: 49px; border-radius: 8px; font-size: 17px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.secondary { background: #edf0f5; padding: 13px 18px; border-radius: 8px; min-height: 48px; }
.danger { background: var(--danger); color: white; padding: 13px 18px; border-radius: 8px; min-height: 48px; }
.form-error { color: var(--danger); font-size: 14px; line-height: 1.5; margin: 12px 0; }
.extra-actions { margin-top: 15px; display: grid; }
.extra-actions button { text-align: left; color: var(--muted); padding: 12px 0; min-height: 44px; }
.extra-actions .delete-button { color: var(--danger); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.confirm-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 25px; }
#confirm p { color: var(--muted); line-height: 1.5; margin-top: 15px; }
.notice { position: fixed; z-index: 30; bottom: calc(90px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); background: var(--ink); color: white; border-radius: 10px; width: max-content; max-width: calc(100% - 32px); padding: 13px 18px; font-size: 15px; box-shadow: 0 3px 15px #090e2724; }
.preview { color: var(--muted); font-size: 12px; padding: 8px 0 0; text-align: right; }
@media (hover: hover) { .icon-button:hover, .quiet-button:hover, .date-button:hover:not([aria-pressed="true"]) { background: #f0f3f7; } .add-task:hover { color: var(--ink); } }
@media (min-width: 700px) { .shell { padding: 25px 32px 120px; } .wordmark { font-size: 30px; } .header { margin-bottom: 27px; } .month { margin-bottom: 20px; } .week { gap: 10px; } .date-button { min-height: 76px; } .task-row { min-height: 68px; } .task-copy { font-size: 20px; } h1, .next-section h2 { font-size: 26px; } .navigation { padding-top: 10px; padding-bottom: 10px; } .nav-button { font-size: 14px; } }
@media (max-width: 480px) { dialog:not(#confirm) { margin: auto 0 0; width: 100%; max-width: none; border-radius: 18px 18px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
