:root { --bg: #f5f6fa; --panel: #ffffff; --panel-2: #f0f2f7; --text: #1d2130; --muted: #6b7183; --border: #e2e5ee; --accent: #4f46e5; --accent-text: #ffffff; --accent-weak: #ecedff; --danger: #dc2626; --overdue: #dc2626; --today: #d97706; --ok: #16a34a; --p1: #60a5fa; --p2: #f59e0b; --p3: #ef4444; --radius: 10px; --shadow: 0 1px 2px rgba(16, 24, 40, 0.06); color-scheme: light; } @media (prefers-color-scheme: dark) { :root { --bg: #111319; --panel: #1a1d26; --panel-2: #222633; --text: #e6e8ef; --muted: #9399ad; --border: #2c303d; --accent: #818cf8; --accent-text: #0f1020; --accent-weak: #262a45; --danger: #f87171; --overdue: #f87171; --today: #fbbf24; --ok: #4ade80; --shadow: none; color-scheme: dark; } } * { box-sizing: border-box; } [hidden] { display: none !important; } html, body { margin: 0; height: 100%; } body { background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; } button, input, select, textarea { font: inherit; color: inherit; } input, select, textarea { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; min-width: 0; width: 100%; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; } input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; } input[type="color"] { width: 40px; height: 38px; padding: 3px; flex: none; cursor: pointer; } textarea { resize: vertical; } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); cursor: pointer; text-decoration: none; white-space: nowrap; } .btn:hover { background: var(--panel-2); } .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .btn.primary:hover { filter: brightness(1.08); } .btn.danger { color: var(--danger); } .icon-btn { background: none; border: none; cursor: pointer; padding: 6px 8px; border-radius: 6px; color: var(--muted); flex: none; } .icon-btn:hover:not(:disabled) { background: var(--panel-2); color: var(--text); } .icon-btn:disabled { opacity: 0.3; cursor: default; } .icon-btn.danger:hover { color: var(--danger); } .link { background: none; border: none; color: var(--accent); font-weight: 600; cursor: pointer; padding: 0 4px; } .muted { color: var(--muted); } .error { color: var(--danger); margin: 0; } /* Login */ .login { min-height: 100%; display: grid; place-items: center; padding: 16px; } .login-card { width: 100%; max-width: 340px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: center; box-shadow: var(--shadow); } .login-card h1 { margin: 0 0 8px; font-size: 22px; } .login-card .btn { width: 100%; } /* App layout */ .app { display: grid; grid-template-columns: 250px 1fr; height: 100dvh; } .sidebar { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 10px; overflow-y: auto; padding-top: max(16px, env(safe-area-inset-top)); } .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 4px 10px 16px; } .nav { display: flex; flex-direction: column; gap: 2px; } .nav-heading { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 18px 10px 6px; } .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; } .nav-item:hover { background: var(--panel-2); } .nav-item.active { background: var(--accent-weak); color: var(--accent); font-weight: 600; } .nav-icon { width: 20px; text-align: center; } .nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .count { font-size: 12px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 1px 8px; } .count.alert { background: var(--overdue); color: #fff; } .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; margin: 0 5px; } .chip .dot { width: 8px; height: 8px; margin: 0 2px 0 0; } .sidebar-foot { margin-top: auto; padding-top: 16px; } .scrim { display: none; } .main { display: flex; flex-direction: column; min-width: 0; height: 100dvh; } .topbar { display: flex; align-items: center; gap: 12px; padding: 16px 24px 8px; padding-top: max(16px, env(safe-area-inset-top)); } .topbar h2 { margin: 0; font-size: 22px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .topbar input[type="search"] { max-width: 260px; } .menu-btn { display: none; font-size: 20px; color: var(--text); } .quick-add { display: flex; gap: 8px; padding: 8px 24px 12px; } .list { flex: 1; overflow-y: auto; padding: 0 24px 40px; padding-bottom: max(40px, env(safe-area-inset-bottom)); } .group { margin-top: 14px; } .group-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; color: var(--muted); } .group-title.overdue { color: var(--overdue); } .task { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: var(--radius); padding: 11px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow); } .task:hover { border-color: var(--accent); } .task:focus-visible { outline: 2px solid var(--accent); } .task.p1 { border-left-color: var(--p1); } .task.p2 { border-left-color: var(--p2); } .task.p3 { border-left-color: var(--p3); } .check { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--muted); background: none; cursor: pointer; padding: 0; color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; } .check:hover { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); } .task.done .check { background: var(--ok); border-color: var(--ok); } .task.done .task-title { text-decoration: line-through; color: var(--muted); } .task-body { flex: 1; min-width: 0; } .task-title { overflow-wrap: anywhere; } .task-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .chip { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); background: var(--panel-2); border: none; border-radius: 999px; padding: 2px 8px; white-space: nowrap; } .chip.tag { cursor: pointer; color: var(--accent); } .chip.tag:hover { background: var(--accent-weak); } .chip.due.overdue { color: #fff; background: var(--overdue); } .chip.due.today { color: var(--today); font-weight: 600; } .chip.p3 { color: var(--p3); } .chip.p2 { color: var(--p2); } .empty { text-align: center; color: var(--muted); padding: 60px 16px; font-size: 16px; } /* Dialogs */ dialog { border: none; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--panel); color: var(--text); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); } dialog::backdrop { background: rgba(10, 12, 20, 0.5); } .dialog-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; } .dialog-body h3 { margin: 0; font-size: 19px; } .field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; } .field > span { font-size: 13px; color: var(--muted); font-weight: 600; } .field.narrow { flex: 0 0 80px; } .row { display: flex; gap: 12px; } .row.wrap { flex-wrap: wrap; align-items: center; } .quick-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; } .chip-btn { font-size: 13px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; cursor: pointer; } .chip-btn:hover { border-color: var(--accent); } .subtasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .subtask { display: flex; align-items: center; gap: 8px; } .subtask input[type="text"] { padding: 6px 9px; } .subtask-add { display: flex; gap: 8px; } .dialog-actions { display: flex; gap: 8px; align-items: center; padding-top: 4px; } .spacer { flex: 1; } .settings-section { border-top: 1px solid var(--border); padding-top: 12px; } .settings-section h4 { margin: 0 0 10px; } .settings-section p { margin: 0 0 10px; font-size: 14px; } .cat-edit-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; } .cat-edit, .cat-add { display: flex; align-items: center; gap: 6px; } .import-row { margin-top: 10px; } .import-row input[type="file"] { flex: 1 1 200px; padding: 6px; } .import-row select { flex: 1 1 200px; width: auto; } .toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50; background: #1d2130; color: #fff; padding: 10px 16px; border-radius: 10px; display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); } .toast .link { color: #a5b4fc; } /* Mobile */ @media (max-width: 800px) { .app { grid-template-columns: 1fr; } .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; max-width: 85vw; z-index: 30; transform: translateX(-100%); transition: transform 0.2s ease; } body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, 0.3); } body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(10, 12, 20, 0.4); } .menu-btn { display: block; } .topbar { padding: 12px 16px 6px; padding-top: max(12px, env(safe-area-inset-top)); flex-wrap: wrap; } .topbar h2 { font-size: 20px; } .topbar input[type="search"] { max-width: none; flex-basis: 100%; order: 3; } .quick-add { padding: 6px 16px 10px; } #new-detailed { padding: 9px 10px; } .list { padding: 0 16px 40px; } .row { flex-wrap: wrap; } .row .field { flex: 1 1 140px; } .row .field.narrow { flex: 0 0 80px; } .dialog-body { padding: 16px; } } /* Times in the task dialog */ input:disabled { opacity: 0.5; } .day-preview { background: var(--panel-2); border-radius: 8px; padding: 10px 12px; margin-top: -4px; font-size: 14px; } .day-head { font-weight: 600; margin-bottom: 4px; color: var(--muted); } .day-head.clash { color: var(--today); } .day-preview ul { list-style: none; margin: 0; padding: 0; } .day-preview li { padding: 2px 0; } .day-preview li.clash { color: var(--today); font-weight: 600; } .day-time { font-variant-numeric: tabular-nums; color: var(--muted); } .day-preview li.clash .day-time { color: inherit; } /* Calendar */ .cal-nav { display: flex; gap: 8px; padding: 0 24px 8px; align-items: center; } .cal-nav input[type="date"] { max-width: 180px; } .week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 6px; } .week-day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; } .week-day:hover { border-color: var(--accent); } .week-day .wd { font-size: 12px; color: var(--muted); } .week-day .dn { font-size: 17px; font-weight: 600; } .week-day .dots { font-size: 12px; line-height: 1; min-height: 12px; color: var(--accent); letter-spacing: 1px; } .week-day.today .dn { color: var(--accent); } .week-day.active { background: var(--accent); border-color: var(--accent); } .week-day.active .wd, .week-day.active .dn, .week-day.active .dots { color: var(--accent-text); } .timeline { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; } .hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); cursor: copy; } .hour:first-child { border-top: none; } .hour:hover { background: var(--panel-2); } .hour-label { position: absolute; left: 8px; top: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; } .block { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden; text-align: left; padding: 3px 7px; margin-top: 1px; cursor: pointer; background: var(--accent-weak); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 6px; font-size: 13px; line-height: 1.25; } .block:hover { filter: brightness(0.97); border-color: var(--accent); } .block.short { flex-direction: row; align-items: center; gap: 6px; white-space: nowrap; } .block-time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; } .block-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .block.short .block-title { white-space: nowrap; } .block.done { opacity: 0.55; } .block.done .block-title { text-decoration: line-through; } .block.projected { background: transparent; border-style: dashed; border-left-style: solid; } .now-line { position: absolute; left: 48px; right: 0; height: 2px; background: var(--overdue); pointer-events: none; } .now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--overdue); } @media (max-width: 800px) { .cal-nav { padding: 0 16px 8px; } .cal-nav input[type="date"] { max-width: none; flex: 1; } .week-strip { gap: 4px; } } .block.short .block-time { order: 2; }