body[data-todo-page] [hidden] { display: none !important; }
body[data-todo-page] #main { box-sizing: border-box; }
body[data-todo-page] label { display: block; margin-top: 8px; }
body[data-todo-page] input,
body[data-todo-page] select,
body[data-todo-page] textarea { box-sizing: border-box; width: 100%; max-width: 100%; }
body[data-todo-page] textarea { resize: vertical; }
body[data-todo-page] :focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
body[data-todo-page] [aria-invalid="true"] { border: 2px solid var(--error-fg-color); }
#todos-state { overflow-wrap: anywhere; }
#todos-state:empty { display: none; }
#todos-retry { width: 44px; height: 44px; }
.todo-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.todo-toolbar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--element-bg-color); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.todo-toolbar a:hover { background: var(--button-hover-color); }
body[data-todo-page] .todo-filter { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0; }
body[data-todo-page] .todo-filter input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.todo-entry { display: grid; grid-template-columns: minmax(0, 1fr) 44px 44px; gap: 4px 8px; align-items: start; cursor: pointer; }
.todo-entry-summary { min-width: 0; }
.todo-entry button { width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; }
.todo-entry button:disabled { opacity: 0.45; cursor: default; }
.todo-entry[aria-selected="true"] { background-color: var(--input-focus-color); }
.todo-entry-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.todo-entry-line > span { min-width: 0; overflow-wrap: anywhere; }
.todo-entry-line > span:last-child { text-align: right; }
.todo-description { grid-column: 1 / -1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 420px) {
   .todo-entry-line { grid-template-columns: 1fr; gap: 2px; }
   .todo-entry-line > span:last-child { text-align: left; }
}