* { box-sizing: border-box; }
body { font-size: 15px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: var(--radius); }
button, select, summary { cursor: pointer; }
button { background: transparent; border: 0; min-height: 44px; padding: 0 16px; }
button:hover { background: var(--sage-soft); }
button, select { transition: background var(--d-fast) var(--ease); }
input, select, textarea { background: transparent; border: 1px solid var(--rule-strong); min-width: 0; }
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: var(--focus); outline-offset: var(--focus-offset); }
h1, h2, p { margin: 0; font-weight: 400; }
[hidden] { display: none !important; }
.workspace { max-width: 1120px; margin: auto; padding: 0 var(--pad) 40px; }
.masthead { display: flex; align-items: center; gap: 24px; min-height: 96px; border-bottom: 1px solid var(--rule); }
.masthead img { object-fit: contain; }
h1 { font-size: 24px; letter-spacing: var(--track-title); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
#search { width: 180px; height: 44px; padding: 0 0 0 8px; font-size: 16px; border-width: 0 0 1px; }
#add-task { white-space: nowrap; background: var(--deep); color: var(--cream); }
#add-task:hover { background: var(--olive); }
.board { padding-top: 24px; }
.task-group { margin-bottom: 24px; }
.task-group h2 { display: flex; gap: 12px; align-items: center; font-size: 15px; padding: 0 0 10px; }
.count { color: var(--sage); font-size: 12px; font-variant-numeric: tabular-nums; }
.tasks { list-style: none; padding: 0; margin: 0; }
.task-row { display: flex; align-items: center; min-height: 62px; border-top: 1px solid var(--rule); gap: 4px; }
.task-row:hover { background: var(--limestone); }
.check-target { width: 44px; min-height: 44px; display: grid; place-items: center; flex-shrink: 0; cursor: pointer; }
.check-target input { appearance: none; width: 17px; height: 17px; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check-target input:checked { background: var(--deep); border-color: var(--deep); }
.check-target input:checked::after { content: ''; width: 4px; height: 8px; border: solid var(--cream); border-width: 0 1px 1px 0; transform: rotate(45deg) translate(-1px,-1px); }
.task-title { padding: 7px 8px; text-align: left; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.task-name { font-size: 15px; overflow-wrap: anywhere; }
.overdue { color: var(--terracotta); }
.task-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
[data-status='Done'] .task-name { text-decoration: line-through; color: var(--sage); }
.task-status { width: 112px; height: 44px; border: 0; font-size: 13px; padding: 0 8px; }
.empty { color: var(--sage); font-size: 13px; padding: 12px 0; border-top: 1px solid var(--rule); }
.notice { color: var(--terracotta); font-size: 14px; padding-top: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 20px; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px; background: var(--deep); color: var(--cream); z-index: 20; }
.skip-link:focus { top: 12px; }
dialog { width: min(640px, calc(100% - 32px)); max-height: calc(100svh - 40px); padding: 0; color: var(--ink); border: 1px solid var(--glass-edge); background: var(--glass); backdrop-filter: var(--glass-blur); }
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(20px); }
#edit-form { padding: 24px; }
.editor-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.editor-heading h2 { font-size: 24px; letter-spacing: var(--track-title); }
#editor-id { font-size: 12px; color: var(--ink-soft); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 13px; }
.field input, .field select { min-height: 48px; padding: 8px 0; border-width: 0 0 1px; font-size: 16px; width: 100%; }
.field textarea { font-size: 16px; padding: 10px; width: 100%; resize: vertical; line-height: 1.5; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
#prompt-details { border-top: 1px solid var(--rule); }
#prompt-details summary { min-height: 48px; display: list-item; align-content: center; font-size: 14px; }
#edit-prompt { min-height: 250px; }
#copy { border: 1px solid var(--rule-strong); margin-bottom: 16px; }
.editor-actions { display: flex; justify-content: end; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.editor-actions button { min-width: 100px; }
#save { background: var(--deep); color: var(--cream); }
#save:hover { background: var(--olive); }
@media (max-width: 800px) {
  .masthead { flex-wrap: wrap; gap: 12px 20px; padding: 20px 0 14px; }
  .masthead img { width: 94px; }
  h1 { font-size: 22px; }
  .header-actions { width: 100%; margin: 0; }
  #search { flex: 1; width: 0; padding-left: 0; }
  .board { padding-top: 20px; }
  .task-row { gap: 0; }
  .check-target { width: 36px; }
  .task-title { padding-left: 4px; }
  .task-status { width: 91px; font-size: 12px; padding: 0 2px; }
  #edit-form { padding: 20px; }
  .field-pair { gap: 16px; }
}
