/* Unified capture and Dump workspace. Keep the existing dashboard and Quest colours. */
.dump-app { --dump-ink:#111;--dump-border:rgba(17,17,17,.25);--dump-muted:#666;--dump-hover:#f2f2f2; }
.capture-launcher { display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:4px 0 10px; }
.capture-launcher button,.capture-section-add,.dump-browse>button,.dump-record-actions>button { padding:8px 14px;min-height:36px;border:1px solid #b7bbc0;background:#fff;color:#18212b;font:inherit;font-size:13px;cursor:pointer; }
.capture-primary { background:#18212b!important;color:#fff!important;border-color:#18212b!important;font-weight:650!important; }
.dump-app { width:100%;min-width:0;padding:4px 0 24px; }
.dump-app[hidden],.capture-dialog [hidden],.dump-app [hidden] { display:none!important; }
.dump-browse { display:flex;align-items:center;gap:8px;min-width:0; }
#dumpCaptureSlot { flex:0 0 auto; }
.dump-browse .capture-launcher { flex-wrap:nowrap;margin:0; }
.dump-browse button { min-height:38px;white-space:nowrap; }
.dump-browse input,.dump-browse select { min-width:0;min-height:38px;padding:8px;border:1px solid #bcc1c7;background:#fff;color:#18212b;font:inherit;font-size:14px;box-sizing:border-box; }
#dumpSearch { flex:1 1 120px;width:0; }
#dumpFilter {
 flex:0 0 auto;width:auto;field-sizing:content;padding-right:30px;
 appearance:none;-webkit-appearance:none;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2318212b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 background-repeat:no-repeat;background-position:right 8px center;background-size:12px 12px;
}
#dumpNewFolder { flex:0 0 auto; }
.dump-summary { font-size:12px;color:#666;margin:12px 0; }
.dump-item-list { display:grid;gap:8px; }
.dump-folder { border:1px solid #cbd1d7;min-width:0;background:#fff; }
.dump-folder-tab { display:flex;align-items:center;gap:8px;padding:9px 10px;background:#eef1f4;color:#18212b;cursor:pointer;list-style:none;min-height:44px; }
.dump-folder-tab::-webkit-details-marker { display:none; }
.dump-folder-tab::before { content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);flex:0 0 auto;margin-right:5px; }
.dump-folder[open]>.dump-folder-tab::before { transform:rotate(45deg); }
.dump-folder-name { font-size:14px;font-weight:650;overflow-wrap:anywhere;min-width:0; }
.dump-folder-count { font-size:12px;color:#596572;margin-left:auto;white-space:nowrap; }
.dump-folder-actions { display:flex;gap:4px;flex:0 0 auto; }
.dump-folder-actions button { width:30px;min-height:30px;padding:0;border:1px solid #c3cbd2;background:#fff;color:#18212b;cursor:pointer;font:inherit;font-size:18px; }
.dump-folder-content { display:grid;gap:8px;padding:10px;min-width:0; }
.dump-folder-content>.dump-folder { border-left:3px solid #b4c0ca; }
.dump-folder-empty { font-size:13px;color:#646b73;margin:4px 2px; }
.dump-record { display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;column-gap:10px;padding:14px 12px;border:1px solid #d8dce0;background:#fff;min-width:0; }
.dump-record-body { min-width:0; }
.dump-record-name { display:block;max-width:100%;padding:0;border:0;background:none;color:#18212b;text-align:left;text-decoration:none;cursor:pointer;font:inherit;font-size:15px;font-weight:600;line-height:1.45;overflow-wrap:anywhere; }
.dump-record-name:hover { text-decoration:underline; }
.dump-record-meta,.dump-next-step { display:block;font-size:11px;line-height:1.6;color:#646b73;margin-top:4px;overflow-wrap:anywhere; }
.dump-next-step { color:#303943;font-size:12px; }
.dump-record.is-complete .dump-record-name { color:#6b737a;text-decoration:line-through; }
.dump-item-marker { text-align:center;font-size:20px;color:#64727c;line-height:26px; }
.dump-check { width:26px;height:26px;border:1px solid #8f9aa3;border-radius:50%;background:#fff;color:#18212b;cursor:pointer;padding:0;font-weight:750; }
.dump-check[aria-pressed=true] { background:#c9e9a6;border-color:#6b9b40; }
.dump-check:disabled { opacity:.35;cursor:default; }
.dump-record-actions { grid-column:2/-1;display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:9px; }
.dump-record-actions>button { padding:4px 9px;min-height:28px;font-size:11px; }
.dump-empty { padding:26px 18px;border:1px dashed #b9c0c6; }
.dump-empty h3 { margin:0 0 8px;font-size:17px; }
.dump-empty p { margin:0;color:#666;font-size:14px;line-height:1.5; }
#dumpLegacyViews>.dashboard-notes-panel:not([hidden]) { display:flex;height:auto;min-height:200px; }
#dumpLegacyViews .dashboard-note-workspace { min-height:180px;overflow:visible; }
#dumpLegacyViews .dashboard-notes-header { flex-wrap:wrap; }
.capture-dialog { width:min(640px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #a8b0b7;background:#fff;color:#18212b;font:15px/1.5 "Segoe UI",sans-serif;box-shadow:0 20px 80px #0004; }
.capture-dialog::backdrop { background:#15202c80; }
.capture-dialog form { padding:20px; }
.capture-dialog-heading { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px; }
.capture-dialog-heading h2 { margin:0;font-size:25px;letter-spacing:-.6px; }
.capture-dialog-heading button { border:0;background:none;font-size:28px;cursor:pointer;min-width:36px;min-height:36px; }
.capture-dialog label { display:block;font-size:13px;font-weight:600;margin:12px 0 5px; }
.capture-dialog input:not([type=checkbox]),.capture-dialog select,.capture-dialog textarea { display:block;width:100%;min-width:0;min-height:42px;padding:9px 10px;border:1px solid #b7c0c8;background:#fff;color:#18212b;box-sizing:border-box;font:inherit;font-size:15px;border-radius:0; }
.capture-dialog textarea { resize:vertical; }
.capture-dialog input[type=checkbox] { width:18px;height:18px;accent-color:#18212b;flex-shrink:0; }
.capture-fields { display:grid;grid-template-columns:1fr 1fr;gap:0 14px;align-items:end; }
.capture-dialog .capture-check-label { display:flex;align-items:center;gap:8px;min-height:42px;margin-bottom:0; }
.capture-dialog fieldset { border:1px solid #d8dce0;margin:16px 0 0;padding:8px 12px;display:flex;gap:10px;flex-wrap:wrap; }
.capture-dialog fieldset legend { font-size:13px;font-weight:600; }
.capture-dialog fieldset label { display:flex;align-items:center;gap:4px;margin:0; }
.capture-dialog-actions { display:flex;align-items:center;gap:8px;position:sticky;bottom:-20px;background:#fff;padding:16px 0 4px;border-top:1px solid #d8dce0;margin-top:20px; }
.capture-dialog-actions span { flex:1; }
.capture-dialog-actions button { min-height:42px;padding:8px 14px;font:inherit;font-size:13px;border:1px solid #a8b0b7;background:#fff;color:#18212b;cursor:pointer; }
.capture-dialog-actions #captureDelete { color:#b22535;border:0;padding-left:0; }
.capture-error { color:#b22535;font-size:13px;line-height:1.5; }
.capture-error:empty { display:none; }
.capture-hint { color:#626c74;font-size:12px;line-height:1.5;margin:6px 0; }
.capture-preview { display:grid;gap:6px;max-height:270px;overflow:auto;margin-top:14px; }
.capture-preview-row { display:grid;grid-template-columns:20px minmax(0,1fr) 82px;gap:8px;align-items:center;padding:8px;border:1px solid #d8dce0;font-size:13px; }
.capture-preview-row span { overflow-wrap:anywhere; }
.capture-preview-row select { font-size:12px;padding:5px;min-height:34px; }
.capture-preview-row small { grid-column:2/-1; }
.capture-inline-action { border:1px solid #bbc3ca;background:#fff;color:#26313c;cursor:pointer;font:inherit;font-size:11px;padding:3px 6px;min-width:28px;min-height:27px; }
.capture-quest-note { margin-left:auto; }
.quest-habit-row { display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:7px; }
.quest-habit-row .chain-month-dots { grid-column:2/-1;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 6px;padding:3px 0; }
.quest-habit-row .chain-month-dot { border-radius:50%; }
.chain-name-editable[role=link] { text-decoration:underline;text-underline-offset:3px;cursor:pointer; }
.capture-habit-dots { display:flex;gap:6px;margin-top:9px;flex-wrap:wrap; }
.capture-habit-dot { border:1px solid #c6cdd3;background:#eef0f2;color:#4c5964;cursor:pointer;width:25px;height:25px;padding:0;border-radius:50%;font:inherit;font-size:11px; }
.capture-habit-dot.is-done { background:#c9e9a6;color:#193108;border-color:#7ba456; }
.capture-schedule-label { display:block;font-size:11px;color:#596775;margin-top:3px; }
.capture-section-add { margin-bottom:14px; }
.capture-dialog :focus-visible,.dump-app :focus-visible,.capture-launcher :focus-visible { outline:2px solid #187649;outline-offset:3px; }
@media(max-width:480px) {
 .dump-browse,.dump-browse .capture-launcher { gap:4px; }
 .dump-browse button { font-size:11px;padding:5px 6px; }
 #dumpFilter { flex-basis:auto;width:auto;font-size:11px;padding:5px 26px 5px 6px; }
 #dumpSearch { padding:5px;flex-basis:40px;min-width:30px;font-size:12px; }
 .dump-folder-content { padding:7px; }
 .capture-dialog form { padding:16px; }
 .capture-fields { grid-template-columns:minmax(0,1fr); }
 .capture-dialog-actions { bottom:-16px;flex-wrap:wrap; }
 .capture-dialog-actions button { padding:8px 10px; }
 .capture-dialog-heading h2 { font-size:23px; }
 .dump-record { padding:12px 9px; }
}

#dashboardTodonePanel { width:100%;height:auto;min-height:200px;padding:4px 0 16px; }
#dashboardTodonePanel[hidden] { display:none!important; }
#dashboardTodonePanel .dashboard-todone-pad { overflow:visible; }
@media(max-width:900px) {
 #dashboardRightColumn>.dashboard-notes>.dashboard-notes-body { padding:8px 12px 12px; }
 #dashboardNotesPanel>.dashboard-notes-header { min-height:36px;gap:8px;margin-bottom:6px; }
 #dashboardNotesPanel>.dashboard-notes-header>.dashboard-notes-title-group { min-width:0; }
 #dashboardNotesPanel #dashboardNotesLink { display:none; }
 #dashboardNotesPanel #dashboardNotesTitleText { display:none; }
 #dashboardNotesPanel .dashboard-notes-header-actions { margin-left:auto;gap:6px; }
 #dashboardNotesPanel #dashboardMobileStackClose { width:36px!important;height:36px!important;min-height:36px!important; }
}

.capture-quest-actions { display:flex;flex-wrap:wrap;gap:5px;align-items:center;grid-column:2/-1;margin-top:5px; }

.today-actions { display:flex;justify-content:center;gap:6px; }
.today-actions .dashboard-notes-action-icon { flex:0 0 36px; }
.dump-app.is-folders .dump-summary { display:none; }
.dump-app.is-folders .dump-browse { margin-bottom:12px; }
/* The full editor works with the original icon controls and folder layout. */
.dump-record-old { grid-template-columns:18px minmax(0,1fr) auto;align-items:center;padding:8px 0;border:0;background:transparent; }
.dump-record-old .dump-record-name { font-size:.95rem;font-weight:400;color:inherit; }
.dump-record-old .dump-record-actions { grid-column:auto;margin-top:0;gap:6px;flex-wrap:nowrap; }
.dump-record-old .dump-record-actions>button { width:30px;height:30px;min-width:30px;min-height:30px;padding:0;border:1px solid rgba(17,17,17,.18);background:rgba(255,255,255,.42);display:inline-flex;align-items:center;justify-content:center; }
.dump-record-old .dump-record-actions img,.dump-day-action img { width:14px;height:14px;object-fit:contain; }
.dump-folder { border-color:rgba(17,17,17,.18); }
.dump-folder-tab { background:rgba(255,255,255,.42);color:inherit; }
.dump-folder-actions button { border-color:rgba(17,17,17,.18);color:inherit; }
.dump-extra-items h3 { display:none; }
#dashboardMindDumpPanel.is-folder-list .dashboard-notes-title-link,#dashboardNewMindDumpLink { display:none; }
@media(max-width:600px) {
 .dump-record-old,#dumpLegacyViews :is(.dashboard-minddump-list-row,.dashboard-minddump-node-row,.dashboard-link-row) { grid-template-columns:18px minmax(0,1fr);align-items:start; }
 .dump-record-old .dump-record-actions { grid-column:2;flex-wrap:wrap; }
 #dumpLegacyViews :is(.dashboard-minddump-list-row,.dashboard-minddump-node-row,.dashboard-link-row)>:is(.dashboard-note-tile,.dashboard-reminder-tile,.dashboard-link-tile) { grid-column:2;min-width:0; }
 #dumpLegacyViews :is(.dashboard-minddump-group-controls,.dashboard-minddump-node-controls,.dashboard-link-controls) { grid-column:2;flex-wrap:wrap;justify-content:flex-start; }
}
@media(max-width:900px) { html[data-app-install-open] #dashboardOverlay { padding-bottom:120px!important; } }

.quest-card { flex-wrap:wrap; }
.quest-card .capture-quest-actions { flex:0 0 100%;padding-left:calc(1.3rem + .75rem);box-sizing:border-box;margin-top:0; }
.capture-habit-actions { display:flex;align-items:center;gap:4px; }
@media(max-width:480px) {
 .quest-card { display:grid;grid-template-columns:1.3rem repeat(3,30px) minmax(0,1fr); }
 .quest-card>.quest-task-content { grid-column:2/-1; }
 .quest-card>.quest-step-btn { grid-row:2;grid-column:3; }
 .quest-card>.quest-edit-btn { grid-column:2; }
 .quest-card>.quest-clear-btn { grid-row:2;grid-column:4; }
 .quest-card>.capture-quest-actions { grid-row:3;grid-column:2/-1;padding-left:0; }
}

.dump-extra-items { display:grid;gap:8px;margin-top:14px; }
.dump-extra-items h3 { font-size:13px;margin:0 0 2px;color:#626c74; }

/* Dump and Events actions share the existing compact icon controls. */
.dump-tools,.events-tools { display:flex;align-items:center;gap:6px;flex:0 0 auto; }
.dump-tools { margin-left:auto; }
.dump-tools>button { min-height:38px;border:1px solid #b7bbc0;background:#fff;color:inherit;font:inherit;font-size:13px;padding:8px 14px;cursor:pointer; }
#dumpShowAll[aria-pressed=true] { background:#18212b;color:#fff;border-color:#18212b; }
.dump-tools>button.dashboard-notes-action-icon { width:36px;min-width:36px;height:38px;padding:0; }
.dump-tools img,.events-tools img { width:16px;height:16px;object-fit:contain; }
.events-header,.today-header { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.events-header h2,.today-header h2 { margin:0;font-size:1.1rem; }
@media(min-width:901px) {
 .today-header { padding-inline:.5in; }
}
.dump-sortable-record.drag-over { outline:1px solid #111; }
#dashboardMindDumpPanel.is-folder-list>.dashboard-notes-header,#dashboardMindDumpPanel.is-folder-list>.dashboard-notes-footer-actions { display:none; }
@media(max-width:768px) {
 .dump-browse { flex-wrap:wrap; }
 #dumpSearch { flex-basis:60px; }
}
@media(max-width:480px) {
 .dump-tools>button { font-size:11px;padding:5px 6px; }
 .dump-tools>button.dashboard-notes-action-icon { width:30px;min-width:30px; }
}

.dump-link-title { display:flex;align-items:center;gap:8px;min-width:0; }
.dump-link-title img { width:16px;height:16px;object-fit:contain;flex:0 0 auto; }
.dump-link-title .dump-record-name { min-width:0; }

.dump-event-status { display:flex;align-items:center;gap:6px;margin-top:6px;font-size:11px;color:#666; }
.dump-event-status input { margin:0; }
@media(max-width:600px) {
 body:has(#dashboardOverlay.show #dumpApp:not([hidden])) .menu-edge-trigger { width:8px; }
}

/* Each daily completion sits in its own square after Trash. */
.dump-completion-square { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; min-width:30px; box-sizing:border-box; border:1px solid rgba(17,17,17,.35); background:#fff; cursor:pointer; flex:0 0 30px; }
.dump-completion-square .dump-check { -webkit-appearance:none; appearance:none; display:block; flex:0 0 18px; width:18px; height:18px; min-width:18px; min-height:18px; box-sizing:border-box; margin:0; padding:0; border:1px solid #8f9aa3; border-radius:0; background:#fff; cursor:pointer; }
.dump-completion-square .dump-check:checked { border-color:#111; background:#111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5 7 12.5 14 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
.dump-completion-square .dump-check:focus-visible { outline:2px solid #111; outline-offset:2px; }
.dump-first-step { background:#edff00; color:#111; padding:0 2px; box-decoration-break:clone; -webkit-box-decoration-break:clone; font:inherit; }
