:root{font-family:Segoe UI,Arial,sans-serif;color:#283347;background:#f4f5f9;font-size:15px;--accent:#5365ad;--muted:#788193;--line:#e4e7ef}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,select,summary{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.55;cursor:wait}input,textarea,select{border:1px solid var(--line);border-radius:8px;background:white;color:inherit;padding:11px 12px}input:focus,textarea:focus,select:focus{outline:2px solid #b5bee5;outline-offset:1px}button:focus-visible,summary:focus-visible{outline:3px solid #aebbe9;outline-offset:3px}textarea{resize:vertical;line-height:1.5}label{display:block}h1,h2,p{margin-top:0}.muted{color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2px;color:#8a93a7;margin-bottom:12px}.brand-mark{width:55px;height:55px;background:var(--accent);color:white;border-radius:16px;display:grid;place-items:center;font-size:29px;box-shadow:0 8px 16px #5365ad20}.brand-mark.small{width:32px;height:32px;border-radius:10px;font-size:20px;box-shadow:none}.topbar{height:74px;padding:0 4%;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.brand,.account{display:flex;gap:14px;align-items:center}.brand{font-weight:600;font-size:14px}.account{font-size:13px}.quiet{color:#758096;padding:8px;font-size:13px}.quiet:hover{color:var(--accent);background:#eef0f8;border-radius:6px}.workspace{display:flex;max-width:1680px;margin:auto;align-items:stretch;min-height:calc(100vh - 74px)}.overview{padding:26px 45px 30px;flex:1;min-width:0}.list-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:36px}.list-toolbar select{border:none;background:transparent;padding-left:0;font-size:13px;color:#67728a;max-width:240px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.heading h1{font-size:36px;letter-spacing:-1.3px;font-weight:650;margin-bottom:10px}.heading .muted{font-size:13px;margin-bottom:0}.shared-badge{display:flex;align-items:center;gap:8px;font-size:19px;color:var(--accent);background:#e9ecf7;padding:10px 13px;border-radius:25px}.shared-badge span{font-size:12px}.tools{display:flex;gap:12px;margin-bottom:28px}.search{position:relative;flex:1}.search span{position:absolute;left:14px;top:8px;font-size:24px;color:#8d95a6}.search input{width:100%;padding-left:43px;font-size:13px;height:43px}.tools select{font-size:12px;background:#f4f5f9;max-width:155px}.section-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-line h2{font-size:14px;font-weight:650;margin:0}.section-line h2 span,details summary span{color:#7e88a2;background:#e7eaf2;padding:2px 7px;border-radius:5px;margin-left:6px;font-size:11px}#sync{font-size:11px;color:#748977}.task-list{display:flex;flex-direction:column;gap:7px}.task-row{background:white;border:1px solid #e8eaf1;border-radius:10px;display:flex;align-items:center;gap:12px;padding:14px 15px;min-height:74px;transition:border-color .15s}.task-row:hover{border-color:#b9c2dd}.task-row.selected{border-color:#7889c5;box-shadow:0 0 0 1px #7889c5;background:#fcfcff}.check{width:21px;height:21px;border:1.7px solid #adb6c7;border-radius:50%;flex-shrink:0;padding:0;display:grid;place-items:center;color:white;font-size:12px}.check.checked{background:var(--accent);border-color:var(--accent)}.check.locked{border-style:dashed}.task-open{flex:1;text-align:left;padding:0;min-width:0}.task-title{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.tag{color:var(--accent);font-weight:550}.task-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:5px;font-size:11px;color:#8a93a2}.task-meta .late{color:#bb6563}.done .task-title{text-decoration:line-through;color:#949aaa}.star{font-size:23px;color:#acb4c4;padding:3px;line-height:1}.star.active{color:#c39a46}.add-task{display:flex;align-items:center;gap:10px;margin:13px 0 28px;border:1px dashed #c8cfe1;border-radius:10px;padding:9px 14px}.add-task>span{font-size:24px;color:var(--accent)}.add-task input{border:none;flex:1;min-width:0;background:transparent;font-size:13px}.add-task button{color:var(--accent);font-size:12px}details summary{color:#748097;font-size:13px;margin-bottom:16px;padding:5px 0}footer{display:flex;align-items:center;justify-content:space-between;margin-top:36px;color:#9ba2b0;font-size:11px}.detail{width:430px;flex-shrink:0;background:white;border-left:1px solid var(--line);padding:24px 25px;position:sticky;top:0;height:100vh;overflow:auto}.detail-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;color:#929aac;font-size:11px;text-transform:uppercase;letter-spacing:1px}.close-detail{font-size:24px;line-height:1}.detail textarea.title-input{font-size:22px;font-weight:600;border:0;padding:0;width:100%;line-height:1.4;border-radius:0;resize:vertical;min-height:76px}.detail label.field{margin-top:22px;font-size:11px;color:#818b9c;font-weight:600}.detail label.field input,.detail label.field textarea{display:block;width:100%;margin-top:8px;font-size:13px;font-weight:400}.detail .progress-line{display:flex;justify-content:space-between;font-size:12px;margin:22px 0 9px}.progress{height:4px;background:#e9edf5;border-radius:5px;overflow:hidden}.progress-fill{height:100%;background:var(--accent);width:0}.sub-row{display:flex;gap:11px;padding:14px 0;border-bottom:1px solid #eef0f5;align-items:flex-start}.sub-row .check{margin-top:5px;width:19px;height:19px}.sub-row textarea{border:0;padding:1px 0;flex:1;min-width:0;font-size:13px;line-height:1.6;min-height:46px;resize:vertical}.sub-row.checked textarea{text-decoration:line-through;color:#959daa}.remove-sub{color:#abb2be;font-size:18px;padding:0 2px}.add-sub{margin-top:12px;color:var(--accent);font-size:13px;padding-left:0}.save-bar{margin-top:24px;position:sticky;bottom:-24px;background:white;padding:16px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.primary{background:var(--accent);color:white;border-radius:8px;padding:12px 21px;font-weight:600;font-size:13px}.primary:hover{background:#435598}.danger{color:#b07272}.detail small{color:#969eac;font-size:11px;display:block;margin-top:17px;line-height:1.5}.notice{padding:12px;background:#fff7e6;color:#836224;font-size:12px;line-height:1.5;border-radius:7px;margin-top:16px}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 25% 10%,#e6eafa,transparent 60%),#f5f6fa;padding:24px}.login-card{max-width:410px;width:100%;background:white;padding:38px;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px #28334708}.login-card .brand-mark{margin-bottom:30px}.login-card h1{font-size:28px;letter-spacing:-.8px}.login-card>label{font-size:12px;margin-top:20px}.login-card label>input:not([type=checkbox]){display:block;width:100%;margin-top:8px}.remember{display:flex!important;align-items:center;gap:8px;color:#758096;font-size:12px!important}.remember input{accent-color:var(--accent)}.login-card .primary{margin-top:24px;width:100%;display:flex;justify-content:space-between}.login-card small{font-size:11px;color:#9ba2b0}.login-card [role=alert]{font-size:12px;color:#b25555;margin-top:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#29364e;color:white;border-radius:9px;padding:13px 20px;box-shadow:0 8px 30px #0002;max-width:90vw;z-index:20;font-size:13px}.empty{padding:40px 20px;text-align:center;color:#8993a7;font-size:14px}dialog{border:1px solid var(--line);border-radius:16px;padding:30px;width:min(420px,90vw)}dialog::backdrop{background:#26345066}dialog h2{font-size:22px}dialog label{font-size:13px}dialog input{display:block;width:100%;margin-top:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:1450px){.overview{padding-left:65px;padding-right:65px}.detail{width:480px}}@media(max-width:1000px){.overview{padding:25px}.detail{width:370px}.heading h1{font-size:29px}.shared-badge{display:none}.tools{flex-wrap:wrap}.search{flex-basis:100%}.tools select{max-width:none}.account{gap:5px}}@media(max-width:760px){.topbar{height:62px;padding:0 18px}.brand{font-size:12px;gap:8px}.account{font-size:11px}.overview{padding:22px 18px}.heading{margin-bottom:22px}.heading h1{font-size:30px}.list-toolbar{margin-bottom:26px}.detail{position:fixed;inset:0;width:100%;height:100dvh;z-index:10;border:0;padding:22px}.task-row{padding:13px 10px;gap:9px}.task-title{font-size:13px}.task-meta{font-size:10px}.add-task button{font-size:11px}footer{align-items:flex-start;gap:10px}.login-card{padding:28px}.save-bar{bottom:-22px}.tools{margin-bottom:22px}}

/* Stronger separation and a persistent, clearly visible task selection. */
:root { background: #e3e8f2; }
.overview { background: #e3e8f2; }
.task-row {
  border-color: #c3ccdd;
  box-shadow: 0 2px 5px #28334712;
}
.task-row:hover { border-color: #8193be; background: #f7f9ff; }
.task-row.selected {
  background: #e8edff;
  border-color: #4057a5;
  box-shadow: inset 5px 0 0 #4057a5, 0 0 0 1px #4057a5, 0 3px 9px #4057a526;
}
.task-row.selected .task-title { color: #263b77; font-weight: 650; }
.task-row.selected .tag { color: #314a94; }
.task-row.selected .task-meta { color: #55658a; }
.task-row.selected .task-meta .late { color: #a23f3d; }
.task-row.selected .check { border-color: #5368ac; }
.task-row.selected .star:not(.active) { color: #6376ae; }
.task-row.done.selected .task-title { color: #59698f; }
.add-task { background: #f4f6fb; border-color: #aebbd4; }
.tools select { background: #f4f6fb; border-color: #c3ccdd; }

/* Dark task form with distinct, light editing surfaces. */
.detail {
  background: #293650;
  color: #f4f6ff;
  border-left: 1px solid #1e2940;
  box-shadow: -6px 0 20px #23304a18;
}
.detail .detail-top { color: #dce3f4; }
.detail .close-detail { color: #fff; }
.detail textarea.title-input {
  background: #f5f7fc;
  color: #24334f;
  border: 1px solid #cad3e5;
  border-radius: 9px;
  padding: 12px 14px;
}
.detail label.field { color: #fff; font-size: 12px; }
.detail label.field input,
.detail label.field textarea,
.detail .sub-row textarea {
  background: #f5f7fc;
  color: #24334f;
  border: 1px solid #cad3e5;
  border-radius: 8px;
  padding: 10px 12px;
}
.detail textarea::placeholder,
.detail input::placeholder { color: #69758b; opacity: 1; }
.detail .progress-line { color: #fff; }
.detail .progress { background: #465571; }
.detail .progress-fill { background: #b1bfff; }
.detail .sub-row { border-bottom-color: #46536d; }
.detail .sub-row .check { border-color: #c2cce6; margin-top: 12px; }
.detail .sub-row .check.checked { background: #b1bfff; color: #203050; border-color: #b1bfff; }
.detail .sub-row.checked textarea { color: #657189; background: #e3e8f2; }
.detail .remove-sub { color: #e0e6f5; margin-top: 10px; }
.detail .add-sub { color: #e0e6ff; font-weight: 600; padding: 10px 0; }
.detail small { color: #c7d1e7; }
.detail .save-bar { background: #293650; border-top-color: #53617b; }
.detail .save-bar .primary { background: #dce4ff; color: #253966; }
.detail .save-bar .primary:hover { background: #fff; }
.detail .save-bar .primary:disabled { background: #53627f; color: #e1e7f4; opacity: 1; }
.detail .danger { color: #ffcccc; }
.detail .quiet:hover { background: #3c4b69; color: #fff; }
.detail input:focus,
.detail textarea:focus { outline: 3px solid #aabaff; outline-offset: 2px; }
.detail button:focus-visible { outline-color: #c3ceff; }
.detail .notice { background: #fff2d3; color: #6a4b17; }
.detail .notice .quiet { color: #694812; }
.detail .notice .quiet:hover { background: #eeddb8; color: #43300f; }

/* Softer slate-blue form surface. */
.detail { background: #576780; border-left-color: #485b77; box-shadow: -4px 0 16px #23304a10; }
.detail .save-bar { background: #576780; border-top-color: #8492aa; }
.detail .detail-top, .detail small { color: #f1f4fa; }
.detail .sub-row { border-bottom-color: #7c8aa2; }
.detail .progress { background: #7888a3; }
.detail .quiet:hover { background: #677995; }
.list-toolbar { flex-wrap: wrap; }
#delete-list { margin-left: auto; }
#delete-list:hover { color: #a44545; background: #f6e5e5; }
.delete-confirmation { color: #657087; font-size: 14px; line-height: 1.6; }
.danger-button { background: #a34e4e; }
.danger-button:hover { background: #873c3c; }

.tools select { max-width: 230px; }
.detail input[readonly] { background: #e3e8f0; color: #485a74; cursor: default; }

.priority-badge { border-radius: 6px; padding: 5px 8px; font-size: 11px; font-weight: 650; flex-shrink: 0; border: 1px solid transparent; }
.priority-high { background: #fbe6df; color: #923f2c; border-color: #e9bfb2; }
.priority-normal { background: #edf0f6; color: #52627e; border-color: #d4dce9; }
.priority-low { background: #e8f1ee; color: #3e6a5b; border-color: #c5dcd2; }
.priority-badge:hover { filter: brightness(.95); }
.detail label.field select { display:block; width:100%; margin-top:8px; padding:10px 12px; background:#f5f7fc; color:#24334f; border:1px solid #cad3e5; font-size:13px; font-weight:400; }
@media(max-width:760px){.priority-badge{font-size:10px;padding:5px 6px;}}

#password-dialog label{margin-top:18px}#password-dialog p,#password-dialog small{font-size:13px;line-height:1.5}#password-dialog small{display:block;margin-top:8px;color:#67728a}#password-error{color:#ae3535}@media(max-width:600px){.topbar{height:auto;min-height:74px;flex-wrap:wrap;gap:8px;padding-top:12px;padding-bottom:12px}.account{flex-wrap:wrap}.account .quiet{font-size:12px}}

#forgot-dialog p{font-size:13px;line-height:1.5}#forgot-message{color:#245c3a;margin-top:16px}#forgot-error{color:#ae3535}#forgot-password{display:block;margin:6px 0 12px;padding-left:0}#reset-form .brand-mark{margin-bottom:24px}#reset-form h1{margin-top:0}
