:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #172544;
  line-height: 1.5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100% - 36px, 1120px); margin: clamp(30px, 8vh, 76px) auto 40px; }
.heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 15px; color: #fff; background: #2c57c5; }
.brand svg, .empty-icon svg { width: 25px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.14; letter-spacing: -.035em; }
.heading p { margin-top: 3px; color: #53637d; font-size: 14px; }
.card { padding: clamp(16px, 4vw, 28px); background: #fff; border: 1px solid #e0e6f0; border-radius: 20px; box-shadow: 0 12px 30px #263c6710; }
.composer { max-width: 560px; }
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.category-card { min-width: 0; max-width: 560px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.category-card h2 { min-width: 0; overflow-wrap: anywhere; }
.quick-add { border: 0; border-radius: 7px; padding: 7px 8px; margin-left: -8px; color: #2049b3; background: transparent; cursor: pointer; font-weight: 650; }
.quick-add:hover { background: #edf2ff; }
h2 { font-size: 19px; letter-spacing: -.02em; }
.count { border-radius: 999px; padding: 3px 10px; color: #29498d; background: #edf2ff; font-size: 12px; font-weight: 650; white-space: nowrap; }
form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
button, input, select { font: inherit; }
.task-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; }
form .task-fields { grid-column: 1 / -1; }
.task-field { display: grid; justify-items: start; gap: 3px; min-width: 0; color: #53637d; font-size: 12px; }
.task-field input, .task-field select { max-width: 100%; min-height: 34px; border: 1px solid #bdc9dc; border-radius: 7px; padding: 3px 6px; background: #fff; color: #172544; font-size: 13px; }
.task-field input[list] { width: 116px; }
#task-name { min-width: 0; flex: 1; min-height: 44px; border: 1px solid #bdc9dc; border-radius: 10px; padding: 9px 12px; color: inherit; }
#task-name::placeholder { color: #5e6e87; }
form button { min-height: 44px; padding: 8px 15px; border: 0; border-radius: 10px; background: #2c57c5; color: white; cursor: pointer; font-weight: 650; white-space: nowrap; }
form button:hover { background: #2049b3; }
:focus-visible { outline: 3px solid #3864d6; outline-offset: 3px; }
ul { list-style: none; padding: 0; margin: 0; }
.active:not(:empty) { margin-top: 5px; }
li { display: flex; align-items: center; gap: 7px; min-height: 48px; border-bottom: 1px solid #edf0f6; }
li:last-child { border-bottom: 0; }
li input[type="checkbox"] { appearance: none; flex: 0 0 21px; width: 21px; height: 21px; border: 1.5px solid #647898; border-radius: 50%; margin: 0; display: grid; place-items: center; cursor: pointer; }
li input:checked { background: #2c57c5; border-color: #2c57c5; }
li input:checked::after { content: ""; width: 8px; height: 4px; border: solid white; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.task-content { flex: 1; min-width: 0; padding: 7px 0 7px 4px; }
.task-title { display: block; overflow-wrap: anywhere; }
.task-content .task-fields { margin-top: 5px; }
.task-title a { color: #2049b3; text-underline-offset: 2px; }
.finished .task-title { color: #586884; text-decoration: line-through; }
.remove { border: 0; border-radius: 8px; background: transparent; color: #53637d; min-width: 44px; min-height: 44px; font-size: 21px; cursor: pointer; }
.remove:hover { background: #f0f3fa; }
.empty { padding: 12px 0 4px; }
.empty, footer { color: #53637d; font-size: 13px; }
details { margin-top: 14px; padding-top: 13px; border-top: 1px solid #e7ecf4; }
summary { min-height: 34px; width: fit-content; padding: 4px; font-weight: 650; cursor: pointer; }
summary .count { margin-left: 4px; }
footer { margin-top: 16px; text-align: center; }
.error { margin-top: 12px; color: #8c301e; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.sync-status { margin-top: 12px; color: #53637d; font-size: 13px; }
button:disabled { opacity: .65; cursor: wait; }
