:root{
    --bg:#0b0d12;
    --card:#111622;
    --muted:#9aa3b2;
    --text:#e8ecf3;
    --line:#1f2a3a;
    --btn:#2a7cff;
    --btn2:#1b2332;
    --shadow: 0 20px 60px rgba(0,0,0,.35);
    --radius:18px;
}
.light{
    --bg:#f5f7fb;
    --card:#ffffff;
    --muted:#5b6578;
    --text:#0f172a;
    --line:#e5e9f2;
    --btn:#2a7cff;
    --btn2:#edf2ff;
    --shadow: 0 16px 50px rgba(2,6,23,.12);
}
*{box-sizing:border-box;margin:0;padding:0}
body{
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
    background: radial-gradient(circle at 30% -20%, rgba(42,124,255,.18) 0 40%, transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(235,72,153,.12) 0 40%, transparent 65%),
    var(--bg);
    color:var(--text);
}
.app{max-width:1200px;margin:30px auto;padding:0 16px}
.topbar{
    display:flex;align-items:center;justify-content:space-between;
    gap:16px;margin-bottom:18px;
}
.brand{display:flex;gap:14px;align-items:center}
.logo{
    width:48px;height:48px;border-radius:16px;
    display:grid;place-items:center;
    background:linear-gradient(135deg, rgba(42,124,255,.9), rgba(235,72,153,.9));
    box-shadow:var(--shadow);
    font-weight:800;
}
h1{font-size:18px;line-height:1.2}
.sub{font-size:13px;color:var(--muted);margin-top:4px}
.actions{display:flex;gap:10px;align-items:center;flex:1;justify-content:flex-end}
.search{
    width:min(420px,100%); padding:12px 14px;border-radius:14px;
    border:1px solid var(--line); background:rgba(255,255,255,.02);
    color:var(--text); outline:none;
}
.grid{
    display:grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap:14px;
}
.card{
    background:rgba(255,255,255,.02);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:14px;
    backdrop-filter: blur(10px);
}
.light .card{background:var(--card)}
.span2{grid-column: span 2;}
.card__head{
    display:flex;justify-content:space-between;align-items:center;
    gap:12px;margin-bottom:12px;
}
.card__head h2{font-size:16px}
.pill{
    font-size:12px;color:var(--muted);
    border:1px solid var(--line); padding:6px 10px;border-radius:999px;
}
.btn{
    border:none; cursor:pointer;
    padding:10px 14px;border-radius:14px;
    background:var(--btn); color:white; font-weight:700;
}
.btn.ghost{
    background:var(--btn2);
    color:var(--text);
    border:1px solid var(--line);
}
.taskbar{
    display:flex;gap:10px;align-items:center; margin-bottom:12px;
}
.taskbar input, .taskbar select{
    flex:1;padding:10px 12px;border-radius:14px;
    border:1px solid var(--line); background:rgba(255,255,255,.02);
    color:var(--text); outline:none;
}
.taskbar select{flex:0.6}
.lanes{
    display:grid; grid-template-columns: repeat(3,1fr); gap:10px;
}
.lane{
    border:1px solid var(--line); border-radius:16px; padding:10px;
    background:rgba(0,0,0,.12);
    min-height:240px;
}
.light .lane{background:#f8fafc}
.lane__title{font-weight:800; font-size:13px; color:var(--muted); margin-bottom:10px}
.task{
    border:1px solid var(--line); border-radius:14px;
    padding:10px; margin-bottom:8px;
    background:rgba(255,255,255,.02);
}
.task .row{display:flex;justify-content:space-between;gap:10px}
.task .txt{font-size:13px;line-height:1.2}
.task .mini{display:flex;gap:6px}
.iconbtn{
    padding:6px 8px;border-radius:10px;
    border:1px solid var(--line); background:transparent;
    color:var(--text); cursor:pointer;
    font-size:12px;
}
.timer{
    font-size:44px; font-weight:900; letter-spacing:1px;
    margin:8px 0 14px;
}
.pomo__row{display:flex;gap:10px; flex-wrap:wrap; margin-bottom:10px}
.meta{color:var(--muted); font-size:13px}
.habits .habit__add, .notes .note__add{
    display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px
}
.habit__add input, .note__add input{
    flex:1; min-width:180px;
    padding:10px 12px;border-radius:14px;
    border:1px solid var(--line); background:rgba(255,255,255,.02);
    color:var(--text); outline:none;
}
.habitItem, .noteItem{
    border:1px solid var(--line); border-radius:16px;
    padding:10px; margin-bottom:10px;
    background:rgba(255,255,255,.02);
}
.habitTop{display:flex; justify-content:space-between; align-items:center; gap:10px}
.habitName{font-weight:800}
.streak{color:var(--muted); font-size:13px; margin-top:6px}
.noteTop{display:flex;justify-content:space-between;gap:10px}
.noteTitle{font-weight:900}
.noteText{color:var(--muted); font-size:13px; margin-top:6px}
.stats{display:grid; gap:10px}
.stat{
    border:1px solid var(--line); border-radius:16px;
    padding:12px;background:rgba(255,255,255,.02);
}
.stat__label{color:var(--muted); font-size:13px}
.stat__value{font-size:28px;font-weight:900;margin-top:4px}
.tabs{display:flex;gap:8px}
.tab{
    padding:8px 10px;border-radius:12px;
    border:1px solid var(--line);
    background:transparent;color:var(--text);cursor:pointer;
    font-size:12px;
}
.tab.active{background:var(--btn2)}
.foot{
    margin-top:14px;display:flex;justify-content:space-between;
    color:var(--muted);font-size:13px; padding:10px 4px;
}

/* ✅ Drag & Drop visuals */
.task { cursor: grab; }
.task:active { cursor: grabbing; }
.lane.dragover{
    outline: 2px dashed rgba(42,124,255,.55);
    outline-offset: 6px;
}
.task.dragging{
    opacity: .55;
    transform: scale(.98);
}

@media(max-width: 980px){
    .grid{grid-template-columns:1fr}
    .span2{grid-column: span 1;}
    .lanes{grid-template-columns:1fr}
}