/* A new draft lives at its insertion point, with quiet optional controls. */
#editor.new-task-card{position:static;inset:auto;box-sizing:border-box;width:100%;max-width:100%;height:auto;max-height:none;margin:20px 0 28px;padding:0;border:1px solid var(--line);border-radius:17px;background:var(--paper);color:var(--ink);box-shadow:0 2px 4px #0002;overflow:visible;scroll-margin:24px;animation:none}
#editor.new-task-card .dialog-header,#editor.new-task-card .insertion-context{display:none}
#editor.new-task-card form{display:flex;flex-direction:column;gap:0;padding:12px 16px 6px;min-height:158px;box-sizing:border-box}
#editor.new-task-card .capture-title{display:flex;align-items:center;gap:10px;min-width:0}
.capture-checkbox{width:13px;height:13px;border:1px solid var(--muted);opacity:.5;border-radius:4px;flex:none;box-sizing:border-box}
#editor.new-task-card input[name=title],#editor.new-task-card textarea[name=notes]{background:transparent;border:0;box-shadow:none;outline:0;font-size:16px;font-weight:400;color:var(--ink);padding:6px 0;min-height:32px;border-radius:0}
#editor.new-task-card input[name=title]{flex:1;min-width:0;width:0}
#editor.new-task-card textarea[name=notes]{margin:0 0 0 23px;width:calc(100% - 23px);min-height:52px;resize:none}
#editor.new-task-card input::placeholder,#editor.new-task-card textarea::placeholder{color:var(--muted);opacity:.72}
#editor.new-task-card :is(input,textarea):focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 40%,transparent);outline-offset:2px;border-radius:3px}
#editor.new-task-card .capture-tools{display:flex;justify-content:flex-end;gap:0;margin-top:auto;order:2}
#editor.new-task-card .capture-tools button{border:0;background:transparent;color:var(--muted);opacity:.8;width:44px;height:44px;min-height:44px;padding:13px;display:grid;place-items:center;border-radius:6px}
#editor.new-task-card .capture-tools svg{width:18px;height:18px}
#editor.new-task-card .capture-tools button:hover,#editor.new-task-card .capture-tools button[aria-expanded=true]{background:var(--line);opacity:1;color:var(--ink)}
#editor.new-task-card .capture-fields{gap:12px;margin:0 0 0 23px}
#editor.new-task-card .capture-fields:has(label:not([hidden])),#editor.new-task-card .capture-checklist:not([hidden]){margin-top:12px;margin-bottom:12px}
#editor.new-task-card .actions{position:static;order:3;border:0;background:transparent;padding:0;margin:0;gap:8px;justify-content:flex-end;display:none}
#editor.new-task-card.has-capture-content .actions,#editor.new-task-card[aria-busy] .actions,#editor.new-task-card:has(#notice:not([hidden])) .actions{display:flex}
#editor.new-task-card .actions button{font-size:12px;min-height:44px;padding:6px 10px}
#editor.new-task-card .actions .primary{background:transparent;color:var(--muted);border:0}
#editor.new-task-card .actions:before{content:'Enter to save · Esc to cancel';font-size:11px;color:var(--muted);align-self:center;margin-right:auto}
#editor.new-task-card [hidden]{display:none!important}
@media(max-width:720px){#editor.new-task-card form{padding:12px 12px 6px}#editor.new-task-card .capture-fields{grid-template-columns:minmax(0,1fr)}#editor.new-task-card .actions:before{content:none}}

#editor.new-task-card input[name=title]:focus-visible,#editor.new-task-card textarea[name=notes]:focus-visible{outline:none}
#editor.new-task-card .capture-tools button:last-child{order:-1;margin-right:auto}
#editor.new-task-card .capture-tools svg path[fill]{fill:none}
