.checklist-tool { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: var(--panel); }
.checklist-tool > h2:first-child { margin-top: 0; }
.checklist-tool > p:first-of-type { font-size: 14px; line-height: 1.7; }
.storage-note { padding: 10px 12px; border-left: 2px solid var(--teal); background: #28364a; font-size: 12px; line-height: 1.7; }
.character-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-block: 20px 12px; }
.character-controls > label { flex: 1 1 240px; }
.checklist-tool label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.checklist-tool select { min-height: 44px; max-width: 100%; width: 100%; background: #101826; color: var(--text); padding: 10px 12px; border: 1px solid #6d829f; border-radius: 5px; font: inherit; }
.checklist-tool select:focus-visible, .character-details summary:focus-visible, .checklist-data summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.checklist-tool input:not([type="checkbox"]) { width: 100%; min-width: 0; min-height: 44px; }
.character-details { margin-block: 12px 20px; padding-block: 0; }
.character-details summary, .checklist-data summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-size: 14px; color: var(--teal); }
.checklist-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .5fr) auto; gap: 12px; align-items: end; margin-block: 16px; }
.checklist-form > * { min-width: 0; }
.checklist-form button { white-space: normal; }
.checklist-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 44px; }
.checklist-feedback p { flex: 1; margin: 0; font-size: 13px; }
.checklist-feedback p:empty { display: none; }
.task-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 12px; }
.task-lists > section { border: 1px solid var(--border); border-radius: 8px; padding: 16px; min-width: 0; }
.task-list-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; justify-content: space-between; margin-bottom: 10px; }
.task-list-heading h3 { margin: 0; }
.task-list-heading span { color: var(--muted); font-size: 12px; }
.article-body .task-list { padding: 0; margin: 0; list-style: none; }
.article-body .task-row { display: flex; align-items: start; gap: 8px; margin: 0; border-bottom: 1px solid var(--border); }
.task-row > label { flex: 1; flex-direction: row; align-items: start; min-width: 0; min-height: 44px; padding-block: 12px; cursor: pointer; font-size: 14px; line-height: 1.6; }
.task-row input[type="checkbox"] { flex: 0 0 20px; width: 20px; height: 20px; padding: 0; margin: 2px 0 0; accent-color: var(--teal); }
.task-row label span { overflow-wrap: anywhere; }
.task-row.is-complete label span { color: var(--muted); text-decoration: line-through; }
.task-delete { flex: 0 0 auto; background: transparent; border: 0; padding: 10px 4px; color: #c5d9e9; font-size: 12px !important; }
.task-delete:hover { color: #fff; background: #344158; }
.empty-tasks { color: var(--muted); font-size: 13px; }
.manual-reset-note { font-size: 12px; line-height: 1.7; margin-top: 20px; }
.checklist-data { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 8px; }
.danger-button { color: #f5bbb4; }
.checklist-tool button:disabled { opacity: .45; cursor: default; }
.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-body .tool-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); text-decoration: none; color: var(--text); }
.tool-card:hover { border-color: var(--teal); background: #243347; }
.tool-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.tool-card h3, .tool-card p { margin: 0; }
.tool-card p { font-size: 14px; line-height: 1.7; }
.tool-type { color: var(--teal); font-size: 12px; }
.tool-scope { margin-top: auto; color: var(--muted); font-size: 12px; line-height: 1.7; }
@media (max-width: 760px) {
  .checklist-tool { padding: 18px; }
  .checklist-tool > h2:first-child, .checklist-tool > h2 + p { display: none; }
  .checklist-form, .task-lists, .tool-cards { grid-template-columns: minmax(0, 1fr); }
  .checklist-form button { width: 100%; }
  .task-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .task-form > label:first-child { grid-column: 1 / -1; }
  .task-lists { gap: 12px; }
  .task-lists > section { padding: 12px; }
  .article-body .tool-card { padding: 20px; }
  .character-controls > label { flex-basis: 100%; }
}
