:root{--bg:#f7f7f9;--card:#ffffff;--accent:#2b8aef;--muted:#6b7280}
*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR",sans-serif;background:var(--bg);margin:0;padding:40px;display:flex;justify-content:center}
.app{width:100%;max-width:640px;background:var(--card);padding:20px;border-radius:8px;box-shadow:0 6px 18px rgba(16,24,40,0.06)}
h1{margin:0 0 12px;font-size:1.4rem}
form{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}
.input-row{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
input#task-input{flex:1;padding:10px;border:1px solid #e6e9ef;border-radius:6px;font-size:1rem;min-width:0}
#toggle-options{background:transparent;border:1px solid #e6e9ef;padding:6px 10px;border-radius:6px;cursor:pointer}
/* make small-controls appear as a single compact tab-like control */
.small-controls{display:flex;flex-wrap:wrap;align-items:center;gap:6px;border:1px solid #e6e9ef;border-radius:8px;padding:6px 8px;background:#fff;max-width:100%}
.small-controls > *{border:0;background:transparent;padding:6px 8px;border-radius:6px;font-size:0.95rem;flex:0 0 auto;}
.small-controls select, .small-controls input[type="date"]{background:transparent}
.priority-wrapper{display:flex;flex-direction:column;align-items:flex-start}
.priority-label{font-size:0.75rem;color:#374151;margin-bottom:4px}
.small-controls button{padding:6px 10px;border-radius:6px}

button{background:var(--accent);color:#fff;border:none;padding:10px 12px;border-radius:6px;cursor:pointer}
ul{list-style:none;padding:0;margin:0}
li.task{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #f1f3f5}
li.task:last-child{border-bottom:none}
li.task .text{margin-left:8px}
li.task.done .text{text-decoration:line-through;color:var(--muted)}
button.delete{background:#ef4444;border:none;color:#fff;padding:6px 10px;border-radius:6px;cursor:pointer}
@media (max-width:420px){body{padding:16px}.app{padding:14px}}

.left{display:flex;flex-direction:column}
.meta{margin-left:28px;margin-top:6px;display:flex;gap:8px;align-items:center}
.time{font-size:0.9rem;color:#374151;background:#f1f5f9;padding:4px 6px;border-radius:6px}
.badge{font-size:0.75rem;padding:3px 6px;border-radius:999px;background:#e6eefc;color:#11548a}

.filters{display:flex;gap:8px;margin:8px 0 12px}
.filter{background:#eef2ff;color:#0b5ed7;border:1px solid transparent;padding:6px 10px;border-radius:8px;cursor:pointer}
.filter.active{background:#2b8aef;color:#fff}
.actions{display:flex;gap:4px}
.actions button{padding:4px 8px;font-size:0.85rem;background:#f3f4f6;color:#374151;border:1px solid #d1d5db;border-radius:4px}
.actions button:hover{background:#e5e7eb}
.edit-input{padding:8px;border:1px solid #e6e9ef;border-radius:6px;width:220px}
.edit-datetime{padding:6px;border:1px solid #e6e9ef;border-radius:6px}
.cat-morning{border-left:4px solid #f59e0b}
.cat-afternoon{border-left:4px solid #2b8aef}
.cat-evening{border-left:4px solid #6b7280}

.p-badge{font-size:0.75rem;padding:3px 8px;border-radius:999px;background:#f3f4f6;color:#111}
.p-high{background:#fee2e2;color:#991b1b}
.p-normal{background:#fff7cd;color:#92400e}
.p-low{background:#e6f0ff;color:#0b5ed7}
.pr-high{box-shadow:inset 4px 0 0 0 #ef4444}
.pr-normal{box-shadow:inset 4px 0 0 0 #f59e0b}
.pr-low{box-shadow:inset 4px 0 0 0 #2b8aef}
