:root{color-scheme:light;background:#fffaf9;color:#292131;--green:#704698;--muted:#65596c;--line:#dfd4e4;--panel:#fffaf9;--surface:#f6eff9;--accent:#704698;font:15px/1.5 system-ui,sans-serif}
*{border-radius:0!important}body{background:#fffaf9;color:#292131}main{background:#fffaf9;max-width:none;padding:32px 42px 24px}button,.button,input,select,textarea{border:1px solid #c9b8d5;background:#fff;color:#292131;box-shadow:none;min-height:40px}button:hover,.button:hover{background:#f6eff9;border-color:#7f55b1}button:active{background:#ffe1e0;transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #7f55b1;outline-offset:2px}button.primary,.button.primary{background:#7f55b1;border-color:#7f55b1;color:white;text-shadow:none;box-shadow:0 2px 0 #5d3c84}input,textarea,select{color:#292131;background:#fff}input::placeholder,textarea::placeholder{color:#756c7c}input[type=checkbox]{accent-color:#7f55b1;min-height:20px}h1{font-size:26px;font-weight:650;letter-spacing:-.6px}h2{font-size:18px}header{padding-bottom:18px;border-bottom:2px solid #f49bab;margin-bottom:18px}.toolbar{gap:8px}.toolbar input{max-width:560px}#file-sidebar{background:#392b48;color:#fff4f6;border-right:0;width:230px;padding:24px 14px}#file-sidebar .brand{font-size:19px;padding:0 10px 24px;color:#fff}.prompt{display:grid;place-items:center;background:#7f55b1;color:white;width:30px;height:30px;font-weight:700}#file-sidebar button{background:transparent;box-shadow:none;color:#f5eef8;border-color:transparent;text-shadow:none;font-size:14px;padding:9px 12px}#file-sidebar button:hover{background:#4c395e}#file-sidebar button.active{background:#7f55b1;border-left:3px solid #f49bab;color:white}#file-sidebar .section{color:#c8b3db;font-size:10px;letter-spacing:1.6px;padding:20px 12px 7px}#file-sidebar .count{background:transparent;color:#ffe1e0}#master{display:none}#file-sidebar .aside-bottom{border-top:1px solid #655071}.list-key,#keyboard-guide,#file-tabs,#raw,#shortcuts,#toggle-notes,#file-warning{display:none!important}#file-hint{color:#65596c}.task,.task-row,.task-list,.project-group,.project-children,.calendar,.day,.card,.empty{background:#fffaf9;color:#292131;box-shadow:none;text-shadow:none}.task{border:0;border-bottom:1px solid #e6dce9;padding:14px 10px;min-height:64px}.task:hover,.task.selected{background:#f6eff9}.task-title{font-size:16px;color:#292131;line-height:1.5}.task-meta,.hint,.summary,small{color:#65596c}.task-complete,.completed{color:#65596c}.project-tag{color:#704698!important;font-weight:600}.context-tag{color:#735263!important}.project-group{border:1px solid #dfd4e4;margin:16px 0}.project-children{margin:0 18px 14px 28px;border-left:2px solid #9b7ebd;padding-left:16px}.project-count,.project-toggle{color:#704698;background:#f6eff9}.project-all-done{color:#296345!important}.calendar .day{border-color:#dfd4e4}.calendar .today{background:#ffe1e0}.calendar-task,.calendar-event{background:#f6eff9!important;color:#49365e!important}.calendar-repeat{color:#704698!important}.calendar-once{color:#914252!important}.cards{gap:16px}.card{border:1px solid #dfd4e4}.card strong{color:#704698}dialog{background:#fffaf9;color:#292131;border:1px solid #9b7ebd;box-shadow:0 14px 50px #392b4830}dialog::backdrop{background:#29213166}.dialog-heading{border-bottom:2px solid #f49bab}.dialog-actions{background:#f6eff9}.warning,.danger{color:#923a49}.note-document{max-width:850px;padding:20px 0}.note-document pre{white-space:pre-wrap;font:16px/1.8 system-ui,sans-serif;color:#292131}.explorer-columns{display:grid;grid-template-columns:minmax(0,1fr) 260px}.explorer-parent{display:none}.explorer-main,.explorer-preview,.explorer-row,.explorer-toolbar,.explorer-actions,.explorer-label,.explorer-status{background:#fffaf9;color:#292131}.explorer-row[aria-selected=true]{background:#ffe1e0;color:#292131}.explorer-row:hover{background:#f6eff9}.explorer-preview{border-left:1px solid #dfd4e4}.explorer-row-head{background:#f6eff9;border-bottom:1px solid #dfd4e4}.explorer-icon{color:#7f55b1}.breadcrumbs button{color:#704698}#toast{background:#392b48;color:white}#status{color:#65596c}#file-text{background:white;color:#292131;line-height:1.7;font:16px/1.7 system-ui,sans-serif}#file-path{font-family:inherit}#content:focus{outline:none}
@media(max-width:850px){main{padding:22px}#file-sidebar{width:200px}.explorer-columns{grid-template-columns:1fr}.explorer-preview{display:none}}
@media(max-width:620px){main{padding:12px 16px}#file-sidebar{width:270px}#mobile-nav{display:flex;background:#392b48;padding:4px;margin:-12px -16px 18px}#mobile-menu{background:transparent;color:#fff;border:0;box-shadow:none}header{padding-bottom:12px}h1{font-size:23px}button,.button{min-height:44px}.task{padding:12px 4px}.task-title{font-size:16px}.toolbar{flex-wrap:wrap}.toolbar input{width:100%;flex:1 1 180px}.project-children{margin-left:12px;padding-left:10px}.explorer-actions{flex-wrap:wrap}.explorer-columns{display:block}.note-document pre{font-size:16px}dialog{max-width:calc(100vw - 24px)}.two{gap:10px}#settings-mobile{display:none}}

main button,main .button,dialog button{font-size:14px;background:#fffaf9;color:#49365e;border:1px solid #c9b8d5;box-shadow:none;text-shadow:none}main button.primary,dialog button.primary{background:#7f55b1;color:white}main .task{border-width:0 0 1px;border-color:#e6dce9}#status,footer{font-size:12px}#nav .section{margin-top:0}#file-path{display:none}.explorer-columns .explorer-preview pre{color:#292131;background:#fffaf9}
/* Explicit surfaces override inherited striped rows and compact controls. */
#content .task,#content .task:nth-child(2n),#content .project-children .task{background:#fffaf9!important;color:#292131!important;border:0;border-bottom:1px solid #e6dce9}
#content .task:hover,#content .task.selected{background:#f6eff9!important}
#content .task .edit{background:#f6eff9!important;color:#49365e!important;font-size:13px;border:1px solid #c9b8d5;box-shadow:none}
#content .tag{background:#f6eff9;color:#49365e}#content .tag.priority{background:#ffe1e0;color:#693440}
#content .day-name,#content .day.blank{background:#f6eff9;color:#65596c}#content .day:hover{background:#ffe1e0}#content .event{color:#49365e;background:#f6eff9}
#content .reference-explorer,#content .explorer-directory{background:#fffaf9!important;color:#292131!important;box-shadow:none}.explorer-directory:hover{background:#f6eff9!important}.explorer-row small{color:#65596c}
.file-toolbar{background:#fffaf9!important}.drawer-open #file-sidebar{background:#392b48!important}
#mobile-nav{justify-content:flex-start}#mobile-nav #mobile-menu{flex:0 0 48px;background:#392b48!important;color:#fff!important;border:0;box-shadow:none}#mobile-nav #mobile-menu svg{stroke:#fff}

.task-buttons{display:flex;flex-direction:column;align-items:stretch;min-width:64px}.task-buttons button{min-height:40px}#refile-options button{font-size:15px;text-align:left;padding:12px}
/* Dense desktop workspace: compact rhythm, quiet dividers, aligned controls. */
@media(min-width:621px){
 :root{font-size:13px;line-height:1.4}
 main{padding:10px 16px 12px}
 #file-sidebar{width:176px;padding:8px 6px}
 #file-sidebar #nav{gap:1px}
 #file-sidebar #nav .section{font-size:9px;letter-spacing:1px;margin:0;padding:7px 8px 3px}
 #file-sidebar #nav .section:not(:first-child){margin-top:8px;border-top:1px solid #594567;padding-top:10px}
 #file-sidebar #nav button,#file-sidebar .aside-bottom button{min-height:28px;padding:4px 8px;font-size:12px;line-height:18px}
 #file-sidebar .aside-bottom{padding-top:6px;margin-top:auto}
 header{gap:8px;padding:0 0 6px;margin:0 0 6px;border-bottom-width:1px}
 h1{font-size:18px;line-height:26px;letter-spacing:-.25px;margin:0}h2{font-size:14px;margin:8px 0 4px}
 main button,main .button,main input,main select,dialog button,dialog input,dialog select{min-height:28px;padding:3px 8px;font-size:12px;line-height:20px}
 main button,.button{box-shadow:inset 0 1px #ffffff90,0 1px #9b7ebd30}
 .toolbar{gap:5px;margin:0 0 3px}.toolbar input{max-width:440px;height:28px}
 #status{min-height:15px;font-size:10px;line-height:15px;margin:2px 0 5px}
 #content .task{min-height:36px;padding:4px 7px;gap:7px}
 #content .task-title{font-size:13px;line-height:18px}
 #content .task input[type=checkbox]{width:15px;height:15px;min-height:15px;margin:0 2px}
 #content .task-buttons{flex-direction:row;gap:4px;min-width:0}
 #content .task-buttons .edit{min-height:25px;padding:2px 7px;font-size:11px;line-height:19px}
 .meta{font-size:10px;line-height:14px;margin-top:2px;gap:4px}.meta:empty{display:none}
 #content .tag{padding:0 3px}.project-group{margin:6px 0}.project-toggle,.project-count{padding:3px 8px;font-size:11px}
 .project-children{margin:0 8px 5px 16px;padding-left:8px}.project-completed-controls{padding:2px 0}
 .cards{gap:8px}.card{padding:10px}.card strong{font-size:22px}.card p{margin:4px 0}
 .note-document{padding:4px 0}.note-document pre{font-size:13px;line-height:1.55;margin:6px 0}
 .file-actions,.explorer-actions,.explorer-toolbar{gap:4px;padding:5px}.explorer-row{min-height:30px;padding:3px 7px}
 .explorer-preview{padding:8px}.explorer-label,.explorer-status{padding:4px 7px;font-size:11px}
 .calendar-nav{gap:5px;margin:4px 0}.calendar-legend{margin:4px 0;font-size:10px}.day{min-height:64px;padding:4px}
 dialog{padding:12px;max-width:620px}.dialog-heading{padding:0 0 5px;margin-bottom:8px}.dialog-actions{gap:5px;margin-top:8px;padding-top:6px}
 dialog label{font-size:12px;margin:5px 0}.two{gap:8px}dialog textarea{padding:6px;font-size:13px;line-height:1.4}
 footer{padding:6px 0;font-size:10px}.empty{padding:14px 8px}.file-toolbar{padding:4px 0}
}

#content .task-buttons{flex-direction:row;gap:2px;min-width:0}
#content .task-buttons .edit{display:grid;place-items:center;padding:4px;width:30px}
.task-buttons svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
@media(max-width:620px){
 main{padding:6px}header{padding-bottom:4px;margin-bottom:4px}.toolbar{gap:4px}
 #content .task{padding:2px 3px;min-height:50px;gap:4px}
 #content .task-title{font-size:14px;line-height:19px}
 #content .task-buttons .edit{width:44px;min-height:48px;padding:10px}
 #content .meta{font-size:11px;line-height:14px;margin-top:0}#content .meta:empty{display:none}
 .project-group{margin:5px 0}.project-children{margin:0 3px 4px 10px;padding-left:5px}
 #status{margin:2px 0;font-size:10px}footer{padding:3px 0}
}

@media(max-width:620px){#heading{display:block;font-size:17px;line-height:23px;margin:0;font-weight:700}header{margin-bottom:4px;padding-bottom:4px}}

#content .project-badge{background:#e6dcf2;color:#573775;font-size:10px;padding:1px 4px;line-height:14px}
#content .context-badge{background:#ffe1e0;color:#763f56;font-size:10px;padding:1px 4px;line-height:14px}
.editor-tags{display:flex;flex-wrap:wrap;gap:4px}.editor-tags button{font-size:11px;padding:2px 6px;background:#e6dcf2}
#content .task-buttons .edit{border-radius:50%!important;width:28px;height:28px;min-height:28px;padding:4px;flex:none}
@media(max-width:620px){#content .task-buttons .edit{width:44px;height:44px;min-height:44px;padding:10px}}

#nav .nav-label{display:flex;align-items:center;gap:8px}#nav .nav-label svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}

@media(max-width:620px){#file-sidebar #drawer-close{width:40px;height:40px;min-height:40px;padding:0;margin:0 0 6px auto;align-self:flex-end;flex:none;border:1px solid #9b7ebd;font-size:24px;line-height:38px}}
/* 1.0.5: a consistent utility interface, explicit grouping and readable contrast. */
:root{--line:#a99ab5;--muted:#54475f;--accent:#573279;--green:#573279}
main{background:#f5f1f6}#content{max-width:1400px}button,input,textarea,select{border-color:#95859f}button.primary,main button.primary,dialog button.primary{background:#573279;border-color:#573279;box-shadow:none}
button:disabled{opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #573279;outline-offset:2px}
#content .task{border-bottom:1px solid #c7bccf!important}#content .task-title{color:#21182a;font-weight:450}#content .task-buttons .edit{color:#4a2969!important;border-color:#9276a8;background:#fff!important}
#content .task .meta{color:#54475f}#content .project-badge{background:#ded0ec;color:#44235f}#content .context-badge{background:#ffd6db;color:#64263b}
#content .project-group{border:1px solid #9985aa;border-left:3px solid #704698;background:white;margin:8px 0;padding:0}
.project-heading{display:flex;align-items:center;background:#e8dfef}#content .project-heading>.task{flex:1;min-width:0;background:transparent!important;border:0!important}.project-heading .task-title{font-weight:650!important}
#content .project-toggle{flex:none;width:32px;min-height:32px;height:32px;padding:0;margin:0 0 0 3px;font-size:20px;background:transparent;border:0;box-shadow:none;color:#44235f}
.project-tools{display:flex;align-items:center;gap:6px;padding:2px 8px 5px 38px;background:#e8dfef;border-bottom:1px solid #b6a4c5}
#content .subtask-add{min-height:28px;padding:2px 7px;font-size:11px;background:white;border-color:#9276a8}.project-progress{margin-left:auto;font-size:11px;color:#54475f;font-variant-numeric:tabular-nums}
#content .completed-toggle{width:28px;min-height:28px;height:28px;display:grid;place-items:center;padding:3px;background:transparent;border:0;box-shadow:none}
#content .project-children{padding:0 5px 0 9px;margin:0 0 0 17px;border-left:2px solid #b8a2c8;background:white}.project-empty{font-size:12px;margin:8px;color:#54475f}
.subtask-entry{display:flex;gap:4px;padding:6px 2px;align-items:center}.subtask-entry input{flex:1;min-width:0;background:white}.subtask-entry button{width:32px;min-height:32px;padding:0}.subtask-entry button[type=submit]{background:#573279;color:white;border-color:#573279}
.reference-toolbar{background:#e8dfef;border-bottom:1px solid #a99ab5;padding:5px;gap:6px}.breadcrumbs{overflow-x:auto;white-space:nowrap}.breadcrumbs button{white-space:nowrap}.explorer-actions{flex-wrap:wrap;border-bottom:1px solid #c7bccf}.explorer-actions[hidden]{display:none}.explorer-row{border-bottom:1px solid #d6cbdc}.explorer-row[aria-selected=true]{box-shadow:inset 3px 0 #573279!important;background:#e5d7ef!important}.explorer-row-head{color:#44235f!important;font-weight:650}.explorer-more{min-width:32px}.reference-explorer .explorer-columns{border:1px solid #a99ab5}.explorer-filename{overflow-wrap:anywhere;min-width:0}.explorer-status{border-top:1px solid #a99ab5}
#content .task.dragging{opacity:.45}#content .task.drop-before{box-shadow:inset 0 3px #573279!important}
@media(max-width:620px){#content .task-buttons .edit{width:34px;height:34px;min-height:34px;padding:7px}#content .task{min-height:48px}.project-tools{padding-left:34px}.subtask-entry input{font-size:16px;min-height:36px}#content .subtask-add{min-height:32px}.toolbar button,.file-actions button,.explorer-actions button{min-height:34px;padding:4px 8px}.reference-toolbar{display:flex;flex-direction:column;align-items:stretch}.reference-toolbar .file-actions{padding:0;flex-wrap:wrap}.explorer-row{min-height:44px}.explorer-more{min-height:36px}.dialog-actions button{min-height:36px}.project-tools .tag{max-width:40%;overflow-wrap:anywhere}.subtask-entry button{min-height:36px}}

.project-tools>.tag{max-width:40%;overflow-wrap:anywhere}.task .meta .tag{overflow-wrap:anywhere;max-width:100%}

/* Quiet actions: retain hit areas and focus feedback without permanent boxes. */
#content .task-buttons{gap:6px}
#content .task-buttons .edit,#content .completed-toggle,#content .subtask-add{border:0!important;background:transparent!important;box-shadow:none!important}
#content .task-buttons .edit:hover,#content .completed-toggle:hover,#content .subtask-add:hover{background:#ded0ec!important}
#content .task-buttons .edit:active,#content .completed-toggle:active,#content .subtask-add:active{background:#d1bde1!important}

#mobile-screens{display:flex;flex:1;min-width:0}#mobile-screens button{flex:1;min-width:0;border:0;background:transparent;color:#fff;padding:7px;min-height:40px;box-shadow:none}#mobile-screens svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}#mobile-screens button[aria-current=page]{background:#704698;box-shadow:inset 0 -3px #f49bab}#content .task.drop-after{box-shadow:inset 0 -3px #704698!important}#nav button.drop-active,#mobile-screens button.drop-active{background:#f49bab!important;color:#21182a!important;outline:2px solid #573279}
@media(max-width:620px){#mobile-nav{position:sticky;top:0;z-index:20;margin:-6px -6px 6px;padding:2px}#mobile-nav #mobile-menu{flex-basis:38px;padding:7px}}

.icon-action{display:inline-grid!important;place-items:center;width:34px;min-width:34px;min-height:34px;padding:6px!important;flex:none!important}.icon-action svg,.labelled-action svg,.explorer-icon svg,#refile-options svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.labelled-action{display:inline-flex;align-items:center;justify-content:center;gap:6px}.file-actions,.explorer-actions{align-items:center}.breadcrumbs button{min-height:34px}.explorer-icon{display:inline-flex;align-items:center}.explorer-icon svg{width:18px;height:18px}#refile-options button{display:flex;align-items:center;gap:8px}#content .subtask-add.icon-action{width:32px;min-width:32px}.file-actions .icon-action,.explorer-actions .icon-action{border:0;background:transparent;box-shadow:none}#content .explorer-more{border:0;background:transparent;box-shadow:none}
.icon-action[hidden],.labelled-action[hidden]{display:none!important}

/* Flat list surfaces inspired by the supplied TickTick reference. */
.project-heading{padding:2px 0}.project-heading,.project-tools{background:#f1eaf5}.project-tools{border-bottom-color:#d3c6df}#content .project-group{border-top-color:#b7a4c4;border-right-color:#b7a4c4;border-bottom-color:#b7a4c4}#content .task{border-bottom-color:#ded5e4!important}.explorer-row{border-bottom:1px solid #ded5e4!important;box-shadow:none!important}#content .explorer-directory{border-width:0 0 1px!important}.reference-toolbar{background:#f1eaf5}.explorer-row-head{background:#f7f3f9!important}#add.icon-action,#sync.icon-action{background:transparent!important;color:#573279!important;border:0!important;box-shadow:none!important}#add.icon-action:hover,#sync.icon-action:hover{background:#e7d9f1!important}
