:root { --bg: #f5f6fa; --card: #ffffff; --text: #1c1f2e; --muted: #646a80; --line: #e3e5ee; --accent: #4f5bd5; --accent-dark: #3d48b8; --accent-soft: #eceefb; --danger: #c0392b; --low: #2f7d5a; --low-bg: #e6f4ed; --medium: #a86400; --medium-bg: #fdf1dc; --high: #b3261e; --high-bg: #fce8e6; --radius: 12px; --shadow: 0 1px 2px rgba(20, 24, 50, .05), 0 6px 20px rgba(20, 24, 50, .06); } * { box-sizing: border-box; } html, body { margin: 0; } body { font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; } .wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; } .topbar { background: var(--card); border-bottom: 1px solid var(--line); } .topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; min-height: 72px; padding-top: 12px; padding-bottom: 12px; } .brand { font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; } .logo { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #7c85e6); display: inline-block; } .stats { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; } .stats li { display: flex; flex-direction: column; align-items: center; min-width: 72px; padding: 6px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); } .stat-num { font-size: 1.25rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; } .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } .layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 48px; } @media (min-width: 900px) { .layout { grid-template-columns: 360px 1fr; align-items: start; } .card:first-child { position: sticky; top: 24px; } } .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; } h2 { font-size: 1.05rem; margin: 0 0 16px; letter-spacing: -.01em; } .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; } .field label, .field > label { font-size: .85rem; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; } .req { color: var(--danger); } .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 420px) { .row { grid-template-columns: 1fr; } } input, textarea, select { font: inherit; color: var(--text); width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid #cfd3e2; border-radius: 8px; background: #fff; } textarea { resize: vertical; } input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, .toggle:focus-visible { outline: 3px solid rgba(79, 91, 213, .45); outline-offset: 2px; border-color: var(--accent); } input[aria-invalid="true"] { border-color: var(--danger); } .error { color: var(--danger); font-size: .85rem; margin: 0; } .btn { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; transition: background .15s, color .15s; } .btn-primary { background: var(--accent); color: #fff; width: 100%; } .btn-primary:hover { background: var(--accent-dark); } .btn-ghost { background: transparent; color: var(--accent); border-color: var(--line); padding: 6px 12px; } .btn-ghost:hover { background: var(--accent-soft); } .btn-ghost.danger { color: var(--danger); } .btn-ghost.danger:hover { background: #fbeeec; } .edit-actions .btn-primary { width: auto; } .tasks-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; } .controls { display: grid; grid-template-columns: 1fr; gap: 12px; } @media (min-width: 600px) { .controls { grid-template-columns: 2fr 1fr 1fr; } } .controls .field { margin-bottom: 0; } .task-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .task-item { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; transition: border-color .15s; } .task-item:hover { border-color: #c7cbe0; } .task-item.done { background: #fafafd; } .task-view { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; } .toggle { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; } .task-body { min-width: 0; } .task-title { margin: 0; font-weight: 600; overflow-wrap: anywhere; } .done .task-title { text-decoration: line-through; color: var(--muted); } .task-notes { margin: 4px 0 0; color: var(--muted); font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; } .task-notes:empty { display: none; } .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; font-size: .8rem; } .badge { padding: 2px 9px; border-radius: 999px; font-weight: 600; text-transform: capitalize; } .badge.low { color: var(--low); background: var(--low-bg); } .badge.medium { color: var(--medium); background: var(--medium-bg); } .badge.high { color: var(--high); background: var(--high-bg); } .due { color: var(--muted); } .due.overdue { color: var(--danger); font-weight: 600; } .due:empty { display: none; } .actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; } @media (min-width: 600px) { .task-view { grid-template-columns: auto 1fr auto; } .actions { grid-column: auto; } } .task-edit { margin-top: 4px; } .task-edit .field:first-child { margin-top: 0; } .edit-actions { display: flex; gap: 8px; } .empty { text-align: center; padding: 48px 16px; color: var(--muted); } .empty-title { font-weight: 600; font-size: 1.05rem; color: var(--text); margin: 0 0 4px; } .empty-text { margin: 0; } [hidden] { display: none !important; }