:root { --bg: #f6f7fb; --surface: #ffffff; --ink: #1c1f2b; --ink-soft: #5b6178; --ink-faint: #8b90a5; --line: #e4e6f0; --accent: #4f46e5; --accent-soft: #eef0ff; --accent-ink: #3730a3; --danger: #b42318; --danger-soft: #fef3f2; --ok: #067647; --radius: 12px; --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 8px 24px rgba(20, 24, 40, .05); } * { box-sizing: border-box; } html, body { margin: 0; } body { background: var(--bg); color: var(--ink); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; } .app { max-width: 940px; margin: 0 auto; padding: 32px 20px 56px; } .masthead { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; } .brand { display: flex; gap: 14px; align-items: center; } .mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(150deg, var(--accent), #7c74ff); box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); flex: none; } h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; font-weight: 650; } .tagline { margin: 2px 0 0; color: var(--ink-soft); font-size: .875rem; } .stats { display: flex; gap: 8px; margin: 0; } .stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; min-width: 74px; text-align: center; } .stat dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); } .stat dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 650; font-variant-numeric: tabular-nums; } .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 20px; } h2 { margin: 0 0 14px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-faint); font-weight: 650; } .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; } label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); } .req { color: var(--accent); } .opt { font-weight: 400; color: var(--ink-faint); } input[type="text"], input[type="search"], input[type="date"], textarea, select { font: inherit; color: var(--ink); background: #fbfbfe; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%; min-width: 0; } textarea { resize: vertical; } input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-top: 12px; } .row .field { flex: 1 1 150px; } .row .btn { flex: 0 0 auto; } .btn { font: inherit; font-weight: 600; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 14px; cursor: pointer; } .btn:hover { background: #f4f5fb; } .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; padding: 10px 18px; } .btn.primary:hover { background: var(--accent-ink); } .btn.ghost { background: transparent; } .btn.small { padding: 6px 11px; font-size: .85rem; } .btn.danger { color: var(--danger); } .btn.danger:hover { background: var(--danger-soft); } .error { margin: 0; color: var(--danger); font-size: .8rem; } .list-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; } .list-head h2 { margin: 0; } .controls { display: flex; flex-wrap: wrap; gap: 10px; } .control { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .control input { width: 210px; max-width: 100%; } .control select { width: 130px; max-width: 100%; } .task-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .task-item { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; } .task-item[data-priority="high"] { border-left-color: #d92d20; } .task-item[data-priority="medium"] { border-left-color: #f79009; } .task-item[data-priority="low"] { border-left-color: #98a2b3; } .task-item.done { background: #fbfbfd; } .task-item input[type="checkbox"] { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; } .body { flex: 1 1 auto; min-width: 0; } .title { margin: 0; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; } .task-item.done .title { text-decoration: line-through; color: var(--ink-faint); } .notes { margin: 4px 0 0; color: var(--ink-soft); font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; } .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; } .tag { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #f1f2f7; color: var(--ink-soft); } .tag.high { background: #fef3f2; color: #b42318; } .tag.medium { background: #fffaeb; color: #b54708; } .tag.low { background: #f2f4f7; color: #475467; } .tag.due { background: var(--accent-soft); color: var(--accent-ink); } .tag.overdue { background: #fef3f2; color: var(--danger); } .actions { display: flex; gap: 6px; flex: none; } .edit-form { display: flex; flex-direction: column; gap: 10px; width: 100%; } .edit-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; } .edit-row .field { flex: 1 1 140px; } .edit-actions { display: flex; gap: 8px; } .empty { margin: 18px 0 2px; padding: 26px 18px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; } .empty strong { color: var(--ink); } .foot { color: var(--ink-faint); font-size: .8rem; text-align: center; } @media (max-width: 560px) { .app { padding: 20px 14px 40px; } .masthead { align-items: flex-start; } .stats { width: 100%; } .stat { flex: 1 1 0; min-width: 0; padding: 8px 6px; } .panel { padding: 16px; } .row .field, .row .btn { flex: 1 1 100%; } .control { flex: 1 1 100%; } .control input, .control select { width: 100%; } .task-item { flex-wrap: wrap; } .actions { width: 100%; justify-content: flex-end; } }