
:root{--bg:#f6f4fb;--ink:#252335;--muted:#736f86;--card:#fff;--red:#d43a50;--orange:#ef8d35;--purple:#8b5cf6;--blue:#2b7de9;--green:#21a675;--teal:#1aa6a6;--gray:#8c8a96;--shadow:0 16px 38px rgba(57,43,92,.10);--shadow2:0 22px 60px rgba(57,43,92,.16);--radius:22px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 8% 0%,#ffe8ee 0,transparent 25%),radial-gradient(circle at 92% 8%,#e9e5ff 0,transparent 28%),linear-gradient(180deg,#faf9fd,#f3f1f8);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;min-height:100vh}
button,input,select,textarea{font:inherit}.app-shell{max-width:1540px;margin:auto;padding:24px}.topbar{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;margin-bottom:12px}.eyebrow{font-weight:950;letter-spacing:.16em;font-size:.72rem;color:#7c5ce0}h1{font-size:clamp(2rem,4vw,3.5rem);line-height:.95;margin:.3rem 0}.version{font-size:.32em;vertical-align:top;background:#2b2540;color:#fff;border-radius:999px;padding:5px 8px}.subtitle{color:var(--muted);margin:.5rem 0}.header-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.btn{border:0;border-radius:14px;padding:10px 14px;font-weight:850;cursor:pointer;transition:.18s}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#2b2540;color:#fff;box-shadow:0 8px 20px rgba(43,37,64,.18)}.btn-ghost{background:rgba(255,255,255,.82);color:var(--ink);border:1px solid #ded9e9}.btn-soft{background:#eee9fa;color:#5d42a7;border:1px solid #ddd4f3}.file-label input{display:none}
.carousel-shell{height:190px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin:6px 0 0;overflow:hidden}.carousel-viewport{overflow:hidden;height:100%;display:flex;align-items:center}.carousel-track{display:flex;align-items:center;gap:14px;transition:transform .32s cubic-bezier(.2,.8,.2,1);will-change:transform}.carousel-card{flex:0 0 270px;height:122px;background:#fff;border:1px solid #e9e4f0;border-radius:20px;padding:14px 16px;box-shadow:0 10px 28px rgba(57,43,92,.09);opacity:.58;transform:scale(.90);transition:.28s;cursor:pointer;position:relative;overflow:hidden}.carousel-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:7px;background:var(--accent)}.carousel-card.active{flex-basis:360px;height:148px;opacity:1;transform:scale(1);box-shadow:var(--shadow2);z-index:2}.carousel-title{font-weight:950;font-size:.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:4px}.carousel-card.active .carousel-title{font-size:1.08rem}.carousel-progress-big{font-size:1.6rem;font-weight:1000;line-height:1;margin:10px 0 7px;color:var(--accent)}.carousel-card.active .carousel-progress-big{font-size:2.15rem}.carousel-mini-bar{height:11px;border-radius:999px;background:#eeeaf4;overflow:hidden}.carousel-mini-bar>div{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 45%,white))}.carousel-meta{display:flex;gap:7px;font-size:.72rem;color:var(--muted);font-weight:850;margin-top:8px;white-space:nowrap;overflow:hidden}.carousel-arrow{width:42px;height:42px;border:1px solid #ddd7e8;background:#fff;border-radius:50%;font-size:2rem;line-height:1;cursor:pointer;box-shadow:0 7px 18px rgba(57,43,92,.08)}.carousel-hint{text-align:center;color:#898397;font-size:.75rem;margin-top:-10px;margin-bottom:14px}
.toolbar{display:flex;flex-direction:column;gap:11px;margin-bottom:18px}.tabs,.filters{display:flex;gap:8px;flex-wrap:wrap}.tab{border:1px solid #ded9e9;background:#fff;padding:9px 12px;border-radius:999px;font-weight:850;cursor:pointer}.tab.active{background:#2b2540;color:#fff;border-color:#2b2540}.input{width:100%;border:1px solid #dcd7e7;background:#fff;border-radius:13px;padding:10px 12px;color:var(--ink)}.filters .input{width:auto;min-width:180px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}.section-head{display:flex;align-items:end;justify-content:space-between;margin:3px 0 12px}.section-head h2{margin:0;font-size:1.25rem}.section-kicker{font-size:.68rem;font-weight:950;letter-spacing:.14em;color:#8a7da5}.count-pill{background:#ece8f4;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:900;color:#625d70}.task-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:18px}
.card{--accent:var(--blue);background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);border:1px solid #ece8f3;overflow:hidden;position:relative;scroll-margin-top:18px}.card.flash{animation:flash 1.15s ease}@keyframes flash{0%,100%{box-shadow:var(--shadow)}35%{box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 30%,transparent),var(--shadow2)}}.card:before{content:"";display:block;height:8px;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 45%,white))}.card.extreme{--accent:var(--red)}.card.urgent{--accent:var(--orange)}.card.important{--accent:var(--purple)}.card.normal{--accent:var(--blue)}.card.anytime{--accent:var(--green)}.card.done{--accent:var(--teal)}.card-body{padding:18px}.card-head{display:flex;gap:12px;justify-content:space-between}.card-title-wrap{display:flex;gap:10px;align-items:flex-start}.task-icon{font-size:1.6rem}.card h2{font-size:1.12rem;margin:0 0 5px}.desc{font-size:.9rem;color:var(--muted);margin:5px 0 12px}.badges{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:.72rem;font-weight:900;background:#f0edf5}.badge.priority{color:white;background:var(--accent)}.badge.overdue{background:#ffe5e8;color:#a92036}.badge.today{background:#fff0dc;color:#a85b00}.badge.anytime{background:#e5f7ef;color:#11724f}.badge.start-now{background:#ffdfae;color:#8a4700;box-shadow:0 0 0 2px #ffd193 inset}.badge.start-overdue{background:#ffd8de;color:#9c1c32;box-shadow:0 0 0 2px #ffc4ce inset}
.progress-wrap{margin:14px 0}.progress-head{display:flex;justify-content:space-between;align-items:baseline;font-size:.82rem;font-weight:900;margin-bottom:7px}.progress-number{font-size:1.4rem;color:var(--accent)}.progress{height:14px;border-radius:999px;background:#eeebf3;overflow:hidden}.progress>div{height:100%;background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 55%,white));border-radius:999px;transition:width .35s ease}
.subtasks{display:flex;flex-direction:column;gap:8px;margin-top:13px}.subtask{display:grid;grid-template-columns:auto auto 1fr auto auto auto;gap:8px;align-items:center;padding:9px 10px;background:#f8f7fb;border:1px solid #ece9f2;border-radius:13px}.drag-handle{cursor:grab;user-select:none;color:#9a95a6;font-size:1.1rem}.subtask.dragging{opacity:.45}.subtask.drag-over{outline:2px dashed #8b5cf6}.subtask input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}.subtask-title{font-size:.88rem;font-weight:760}.status-chip{border:0;border-radius:999px;padding:6px 9px;font-size:.7rem;font-weight:900;cursor:pointer}.status-wait{background:#ecebf0;color:#656272}.status-start{background:#e7efff;color:#2f5fa6}.status-progress{background:#fff0d6;color:#9b5a00}.status-done{background:#dff6ec;color:#197153}.reorder-btn{border:0;background:#ece8f4;border-radius:8px;width:28px;height:28px;cursor:pointer;color:#645d70}.card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.mini-btn{border:0;border-radius:10px;padding:7px 9px;background:#eeeaf4;font-weight:800;cursor:pointer}.mini-btn.add{background:#efe9ff;color:#6d43ca}.mini-btn.danger{color:#a32b3b;background:#ffe9ec}.icon-btn{border:0;background:#eeeaf4;border-radius:10px;width:34px;height:34px;cursor:pointer}.empty-state{text-align:center;padding:60px}.empty-icon{font-size:3rem}.hidden{display:none!important}
.done-rail{position:sticky;top:12px;background:rgba(255,255,255,.72);backdrop-filter:blur(9px);border:1px solid #e5e0ec;border-radius:20px;overflow:hidden;box-shadow:0 12px 30px rgba(57,43,92,.08)}.done-rail-head{width:100%;border:0;background:#e8f7f0;padding:13px 14px;display:grid;grid-template-columns:1fr auto auto;gap:8px;align-items:center;text-align:left;font-weight:950;color:#1d6f53;cursor:pointer}.done-count{background:#fff;border-radius:999px;min-width:28px;text-align:center;padding:3px 7px}.done-mini-list{padding:10px;display:flex;flex-direction:column;gap:8px;max-height:72vh;overflow:auto}.done-rail.collapsed .done-mini-list{display:none}.done-mini{background:#fff;border:1px solid #e6eee9;border-radius:13px;padding:9px 10px;cursor:pointer}.done-mini-title{font-weight:850;font-size:.82rem}.done-mini-meta{font-size:.72rem;color:#6f857b;margin-top:3px}.done-mini-actions{display:flex;gap:6px;margin-top:7px}.done-mini-actions button{border:0;border-radius:8px;padding:5px 7px;font-size:.7rem;font-weight:800;cursor:pointer}
.modal{border:0;border-radius:22px;padding:0;width:min(700px,calc(100vw - 30px));box-shadow:0 35px 100px rgba(31,24,50,.28)}.modal::backdrop{background:rgba(35,28,54,.38);backdrop-filter:blur(4px)}.modal-card{padding:22px;display:flex;flex-direction:column;gap:13px}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}label,.field-label{font-size:.82rem;font-weight:900;color:#5f5a70;display:flex;flex-direction:column;gap:6px}.icon-picker-block{display:flex;flex-direction:column;gap:8px}.icon-picker-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chosen-icon{width:54px;height:54px;border-radius:16px;background:#f2eefb;display:grid;place-items:center;font-size:1.9rem}.icon-choices{display:flex;gap:6px;flex-wrap:wrap}.icon-choice{width:38px;height:38px;border:1px solid #ded7ec;background:white;border-radius:11px;font-size:1.25rem;cursor:pointer}.project-add-row{display:grid;grid-template-columns:1fr auto;gap:8px}.project-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto}.project-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;background:#f7f5fb;padding:9px;border-radius:12px}.project-row input{border:1px solid #ddd6e9;border-radius:10px;padding:8px}.project-row button{border:0;border-radius:9px;padding:7px 9px;font-weight:800;cursor:pointer}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.done-rail{position:static}.done-mini-list{max-height:none}.carousel-card{flex-basis:240px}.carousel-card.active{flex-basis:320px}}
@media(max-width:760px){.app-shell{padding:14px}.topbar{flex-direction:column}.header-actions{justify-content:flex-start}.carousel-shell{grid-template-columns:36px 1fr 36px;height:175px}.carousel-arrow{width:34px;height:34px}.carousel-card{flex-basis:205px;height:112px}.carousel-card.active{flex-basis:270px;height:142px}.carousel-progress-big{font-size:1.4rem}.carousel-card.active .carousel-progress-big{font-size:1.85rem}.task-grid{grid-template-columns:1fr}.filters .input{width:100%}.form-grid{grid-template-columns:1fr}.subtask{grid-template-columns:auto auto 1fr auto}.subtask .status-chip{grid-column:3/5;justify-self:start}.subtask .edit-sub{grid-column:3}.subtask .reorder-controls{grid-column:4}}
