    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    :root {
      --bg:      #0d1117;
      --surface: #161b22;
      --card:    #1c2128;
      --border:  #30363d;
      --accent:  #f7df1e;
      --green:   #3fb950;
      --red:     #f85149;
      --text:    #e6edf3;
      --muted:   #8b949e;
    }

    body {
      font-family: 'Outfit', sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 48px 24px;
    }

    .wrapper {
      width: 100%;
      max-width: 480px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* ── HEADER ── */
    .header { margin-bottom: 4px; }
    .header .tag {
      font-family: 'Space Mono', monospace;
      font-size: 0.65rem;
      color: var(--accent);
      letter-spacing: 0.18em;
      text-transform: uppercase;
      display: block;
      margin-bottom: 6px;
    }
    .header h1 { font-size: 1.6rem; font-weight: 700; }

    /* ── INPUT CARD ── */
    .input-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .input-row { display: flex; gap: 8px; }

    input[type="text"] {
      flex: 1;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      color: var(--text);
      font-family: 'Outfit', sans-serif;
      font-size: 0.9rem;
      padding: 10px 14px;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(247,223,30,0.07); }
    input.error { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(248,81,73,0.08); }

    .err-msg { font-size: 0.72rem; color: var(--red); min-height: 14px; }

    .btn {
      padding: 10px 18px;
      border-radius: 8px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .btn-yellow { background: var(--accent); color: #111; }
    .btn-yellow:hover { filter: brightness(1.1); transform: translateY(-1px); }

    /* ── STATS ── */
    .stats {
      display: flex;
      gap: 10px;
    }

    .stat-pill {
      font-family: 'Space Mono', monospace;
      font-size: 0.68rem;
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid var(--border);
      color: var(--muted);
      transition: all 0.2s;
    }
    .stat-pill.active { border-color: var(--green); color: var(--green); background: rgba(63,185,80,0.07); }

    /* ── FILTER TABS ── */
    .filters {
      display: flex;
      gap: 6px;
    }
    .filter-btn {
      padding: 5px 14px;
      border-radius: 20px;
      font-family: 'Outfit', sans-serif;
      font-size: 0.76rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--muted);
      transition: all 0.2s;
    }
    .filter-btn.active {
      background: rgba(247,223,30,0.1);
      color: var(--accent);
      border-color: rgba(247,223,30,0.35);
    }

    /* ── TASK LIST ── */
    .task-list {
      display: flex;
      flex-direction: column;
      gap: 8px;
      list-style: none;
    }

    .task-item {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: border-color 0.2s, opacity 0.2s;
      animation: slideIn 0.25s ease both;
    }

    @keyframes slideIn {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .task-item.done {
      opacity: 0.45;
      border-color: rgba(63,185,80,0.2);
    }
    .task-item.done .task-text {
      text-decoration: line-through;
      color: var(--muted);
    }

    /* Checkbox */
    .task-check {
      width: 18px; height: 18px;
      border-radius: 5px;
      border: 2px solid var(--border);
      background: transparent;
      cursor: pointer;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
      font-size: 0.65rem;
    }
    .task-check:hover { border-color: var(--green); }
    .task-item.done .task-check {
      background: var(--green);
      border-color: var(--green);
      color: #111;
    }

    .task-text {
      flex: 1;
      font-size: 0.9rem;
      color: var(--text);
      word-break: break-word;
    }

    .task-del {
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 0.72rem;
      font-weight: 600;
      cursor: pointer;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      font-family: 'Outfit', sans-serif;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .task-del:hover { color: var(--red); border-color: rgba(248,81,73,0.4); background: rgba(248,81,73,0.07); }

    /* Empty state */
    .empty {
      text-align: center;
      padding: 32px 0;
      color: var(--muted);
      font-size: 0.85rem;
      display: none;
    }
    .empty.show { display: block; }
    .empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; }

    /* Clear all */
    .clear-btn {
      background: transparent;
      border: 1px solid rgba(248,81,73,0.3);
      color: var(--red);
      font-family: 'Outfit', sans-serif;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 6px 14px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      align-self: flex-end;
    }
    .clear-btn:hover { background: rgba(248,81,73,0.08); }

    /* Toast */
    .toast {
      position: fixed;
      bottom: 28px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--green);
      color: #111;
      font-family: 'Space Mono', monospace;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 9px 20px;
      border-radius: 20px;
      opacity: 0;
      transition: all 0.3s;
      pointer-events: none;
      z-index: 999;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
