body.notesActive #top .filters,body.notesActive #locatedBar,body.notesActive #newBtn{display:none!important}
.notesCardActions{display:flex;justify-content:flex-end;margin-top:10px}.notesCardActions [data-delete-note]{color:var(--muted);font-size:12px;padding:3px 7px}.notesCard[draggable=true]{cursor:grab}.notesCard[draggable=true]:active{cursor:grabbing}.notesDragging{opacity:.35}.notesDropTarget{background:var(--surface-selected);border-radius:12px}.notesDropMarker{position:absolute;left:0;right:0;height:3px;background:var(--accent);border-radius:4px;pointer-events:none;z-index:1}.notesDropTarget .notesEmpty{border-color:var(--accent);color:var(--accent)}.notesMoveChoices{display:grid;gap:10px;margin-top:20px}.notesMoveChoices button{min-height:48px;text-align:left}.notesOrder{display:none!important}@media(max-width:700px),(pointer:coarse){.notesOrder{display:flex!important}.notesOrder button{min-height:44px;min-width:44px}.notesCardActions [data-delete-note]{min-height:44px}}
.notesUndoHost{position:fixed;inset:auto 12px calc(var(--mobileNavH,16px) + 12px) auto;max-width:min(480px,calc(100vw - 24px));max-height:40dvh;overflow:auto;margin:0;border:0;padding:0;background:transparent;color:var(--fg)}.notesUndoHost:popover-open{display:grid;gap:8px}.notesUndo{display:flex;align-items:center;gap:16px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 4px 20px var(--theme-scrim);font:14px/1.5 system-ui}.notesUndo span{overflow-wrap:anywhere;min-width:0}.notesUndo button{flex-shrink:0;min-height:44px;padding:8px 14px;background:var(--accent);color:var(--theme-on);border:0;border-radius:7px;font:inherit;cursor:pointer}
.notesStandalone *,.notesDialog,.notesDialog *{box-sizing:border-box}.notesWrap .uiIcon{display:inline-block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}.notesShell nav a{text-decoration:none;padding:7px 10px;border-radius:7px;color:var(--muted)}.notesShell nav a[aria-current]{background:var(--surface-selected)}.notesShell #notesOrg{color:var(--muted);text-decoration:none;font-size:13px}.notesDialog input:not([type=checkbox]){max-width:100%}
#notesView{flex:1;min-height:0;overflow:auto}.notesDialog .notesActions button{flex-shrink:0}
.notesWrap{max-width:1220px;margin:auto;padding:32px 28px 85px;color:var(--fg)}
.notesHeading,.notesToolbar,.notesActions,.notesMeta,.notesFoot,.notesDialogHead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.notesHeading,.notesToolbar,.notesDialogHead{justify-content:space-between;margin-bottom:22px}.notesHeading h1{font:38px/1.2 Georgia,serif;margin:0 0 8px}.notesHeading p{margin:0;color:var(--muted)}
.notesTabs{display:flex;gap:4px;flex-wrap:wrap}.notesTabs button[aria-pressed=true]{background:var(--surface-selected);color:var(--accent);border-color:var(--border-selected)}
.notesCapture{display:flex;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:25px}.notesCapture input{flex:1;min-width:0;border:0;background:transparent;font-size:16px}.notesCapture button{flex-shrink:0}
.notesColumns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.notesColumn{min-width:0;display:flex;flex-direction:column}.notesStack{position:relative;display:flow-root;flex:1;min-width:0;min-height:76px}.notesColumn h2{font-size:15px;display:flex;gap:10px;align-items:center;margin:0 0 16px}.notesColumn h2:before{content:'';width:7px;height:7px;border-radius:50%;background:var(--muted)}.notesColumn[data-priority=now] h2:before{background:var(--accent)}.notesColumn[data-priority=next] h2:before{background:var(--theme-secondary)}.notesColumn h2 small{font-weight:400;color:var(--muted)}
.notesCard{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:19px;margin-bottom:14px}.notesCard h3{font-size:17px;line-height:1.4;margin:12px 0}.notesCard h3 button{background:none;border:0;padding:0;color:var(--fg);font:inherit;text-align:left}.notesCard h3 button:hover{color:var(--accent)}.notesCard p{color:var(--muted);font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 16px}.notesMeta{font-size:12px;color:var(--muted)}.notesMeta .notesPin{margin-left:auto;color:var(--accent)}.notesFoot{justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:18px;color:var(--muted);font-size:12px}.notesFoot time{color:var(--accent);background:var(--surface-selected);border-radius:5px;padding:4px 7px}.notesOrder{display:flex;gap:4px}.notesOrder button{padding:3px 8px;min-width:28px}.notesCheck{display:flex;flex-direction:row;align-items:flex-start;gap:9px;margin:12px 0;font-size:14px;cursor:pointer}.notesCheck input{width:17px;height:17px;margin:3px 0 0;flex-shrink:0}.notesCheck span{overflow-wrap:anywhere}.notesCheck input:checked:not([data-follow])+span{text-decoration:line-through;color:var(--muted)}.notesEmpty{padding:25px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}.notesList .notesColumns{grid-template-columns:1fr}.notesList .notesColumn{display:grid;grid-template-columns:100px 1fr;gap:0 18px}.notesList .notesColumn h2{align-self:start;padding-top:18px}.notesList .notesStack{grid-column:2;grid-row:1}.notesLoad{margin-top:20px}
.notesDialog{background:var(--panel);color:var(--fg);border:1px solid var(--line);border-radius:16px;width:min(760px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;padding:26px}.notesDialog::backdrop{background:var(--theme-scrim)}.notesDialog h2{font:29px/1.25 Georgia,serif;margin:0}.notesDialogHead button{margin-left:auto}.notesDialog h3{font-size:16px;margin:22px 0 12px}.notesDialog p{white-space:pre-wrap;overflow-wrap:anywhere}.notesBody{line-height:1.8;color:var(--muted);margin:20px 0}.notesError{background:var(--theme-badTint);color:var(--bad);border-radius:8px;padding:12px;white-space:pre-wrap}.notesDialog form>label,.notesField{display:grid;gap:7px;margin:16px 0;font-size:14px}.notesDialog input:not([type=checkbox]),.notesDialog textarea,.notesDialog select{width:100%;min-width:0;font:inherit;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--fg);padding:10px}.notesDialog textarea{resize:vertical;min-height:110px}.notesDialog input,.notesDialog select{font-size:16px!important}.notesDialog input[type=checkbox]{accent-color:var(--accent)}.notesEditorTasks{display:grid;gap:9px}.notesEditTask{display:flex;align-items:center;gap:8px}.notesEditTask input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.notesEditTask input[type=text]{flex:1;min-width:0}.notesEditTask button{flex-shrink:0}.notesReminder{display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--line)}.notesReminder label{flex:1;min-width:180px}.notesReminder button{margin-bottom:16px}.notesMuted{color:var(--muted);font-size:13px}.notesComment{padding:14px 0;border-bottom:1px solid var(--line)}.notesComment strong{font-size:13px}.notesComment p{margin:6px 0 0}.notesComment time{font-size:12px;color:var(--muted);margin-left:9px}.notesLinks{display:grid;gap:8px}.notesLinks>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.notesLinks a{overflow-wrap:anywhere}.notesLinkForm{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.notesLinkForm label{flex:1;min-width:150px}.notesLinkForm button{margin-bottom:16px}
.notesSharing{width:min(640px,calc(100% - 28px))}.notesSwitchRow{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:20px!important;border:1px solid var(--line);border-radius:12px;padding:16px;background:var(--panel2)}.notesSwitchRow small{display:block;margin-top:4px;color:var(--muted)}.notesSwitch{appearance:none;width:44px!important;height:26px;border:0;border-radius:15px;background:var(--theme-edge);position:relative;flex-shrink:0;margin:0;cursor:pointer}.notesSwitch:before{content:'';position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--panel)}.notesSwitch:checked{background:var(--accent)}.notesSwitch:checked:before{transform:translateX(18px);background:var(--theme-on)}.notesSharePerson{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:13px 0}.notesSharePerson label{display:flex;flex-direction:row;align-items:center;gap:9px;flex:1;min-width:0}.notesSharePerson select{width:auto;max-width:200px;font-size:14px!important}.notesSharePerson input{width:17px;height:17px;flex-shrink:0}.notesSharePerson .notesAvatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--surface-selected);color:var(--accent);font-size:11px;flex-shrink:0}.notesSharing details{margin:20px 0;border-top:1px solid var(--line);padding-top:15px}.notesSharing summary{cursor:pointer}.notesSharing [hidden]{display:none!important}.notesStandalone{margin:0;min-height:100dvh;font:15px/1.5 system-ui,'Segoe UI',sans-serif}.notesStandalone header.notesShell{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 28px;background:var(--panel);border-bottom:1px solid var(--line)}.notesShell .brand{display:flex;gap:8px;align-items:center;text-decoration:none;color:var(--fg);font-weight:600;font-size:20px}.notesShell img{width:32px;height:32px}.notesShell nav{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-left:auto}.notesShell nav a[aria-current]{color:var(--accent);font-weight:600}.notesStandalone a{color:var(--accent)}.notesStandalone button{font:inherit;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--fg);cursor:pointer}.notesStandalone button.primary{background:var(--theme-primary);color:var(--theme-on)}.notesStandalone button:disabled{opacity:.55;cursor:default}.notesStandalone input{color:var(--fg);font:inherit}.notesStandalone .hidden{display:none!important}
@media(max-width:800px){.notesColumns{grid-template-columns:1fr 1fr}.notesColumn:last-child{grid-column:1/-1}.notesWrap{padding:25px 18px 75px}}
@media(max-width:550px){.notesColumns{grid-template-columns:1fr}.notesList .notesColumn{display:block}.notesWrap{padding:22px 14px 75px}.notesHeading h1{font-size:31px}.notesDialog{padding:20px 16px}.notesDialog h2{font-size:25px}.notesSharePerson{flex-wrap:wrap}.notesSharePerson select{margin-left:26px;max-width:none;width:calc(100% - 26px)}.notesShell nav{margin-left:0}.notesCapture{gap:6px;padding:10px}.notesCapture input{width:100%;min-width:0}}
@media(pointer:coarse){.notesWrap button,.notesDialog button{min-height:44px}.notesCheck{min-height:44px;align-items:center;margin:3px 0}}

.notesPinButton{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:7px!important;border:1px solid transparent!important;background:transparent!important;color:var(--muted)!important;flex-shrink:0}.notesPinButton[aria-pressed=true]{color:var(--accent)!important;background:var(--surface-selected)!important;border-color:var(--border-selected)!important}.notesPinButton[aria-pressed=true] .uiIcon{fill:var(--surface-selected)}.notesPinButton:hover{border-color:var(--line)!important}.notesMeta .notesPinButton{margin-left:auto}.notesDialogHead .notesPinButton{margin-left:auto}.notesDialogHead .notesPinButton+button{margin-left:0}.notesDialog .notesPinButton .uiIcon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notesCardActions [data-share-note]{margin-right:auto;font-size:12px;padding:3px 7px}@media(max-width:700px),(pointer:coarse){.notesPinButton,.notesCardActions [data-share-note]{min-width:44px;min-height:44px}}

.notesCard{padding:18px 20px 12px}.notesCard .notesMeta{min-height:36px}.notesCard h3{margin:10px 0 12px}.notesCardTools{display:flex;align-items:center;gap:3px;margin-left:auto}.notesIconButton{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:8px!important;border:1px solid transparent!important;background:transparent!important;color:var(--muted)!important;border-radius:8px}.notesIconButton:hover{background:var(--surface-selected)!important;color:var(--accent)!important}.notesIconButton[data-delete-note]:hover{color:var(--bad)!important;background:var(--theme-badTint)!important}.notesIconButton .uiIcon{width:18px;height:18px}.notesCard .notesFoot{gap:8px;padding-top:10px;margin-top:16px}.notesOrder{flex-basis:100%;justify-content:flex-end}.notesPinButton .uiIcon{width:20px;height:20px}.notesPinButton[aria-pressed=true] .uiIcon{fill:var(--surface-selected)}
.notesSharing{width:min(620px,calc(100% - 28px));padding:26px}.notesShareTitle{margin:8px 0 0!important;color:var(--muted);font:14px/1.5 system-ui;overflow-wrap:anywhere;max-width:460px}.notesAccessForm{display:grid;gap:20px}.notesAccessSection{border:1px solid var(--line);border-radius:14px;padding:18px}.notesAccessSection .notesSwitchRow{margin:0!important;padding:0;background:none;border:0}.notesAccessHint{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0!important}.notesEveryone{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.notesEveryone>label:first-child{display:flex;flex-direction:row;align-items:center;gap:12px}.notesEveryone small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.notesEveryone .notesSwitch{margin-left:auto}.notesAccessAvatar{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--surface-selected);color:var(--accent);flex-shrink:0;font-size:12px;font-weight:600}.notesAccessAvatar .uiIcon,.notesAgentHeading>.uiIcon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notesAccessPerson{display:grid;grid-template-columns:minmax(0,1fr) 160px;gap:12px;padding:13px 0;border-bottom:1px solid var(--line);align-items:center}.notesAccessPerson:last-child{border:0;padding-bottom:0}.notesAccessPerson label{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0}.notesAccessName{flex:1;overflow-wrap:anywhere}.notesAccessPerson select{font-size:13px!important}.notesAccessRole{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 0!important;font-size:13px;color:var(--muted)}.notesAccessRole select{width:auto;font-size:13px!important}.notesAgentSection{background:var(--panel2)}.notesAgentHeading{display:flex;align-items:center;gap:10px}.notesAgentHeading h3{margin:0!important;font-size:14px}.notesAccessBadge{margin-left:auto;font-size:11px;padding:4px 8px;border-radius:20px;background:var(--surface-selected);color:var(--accent)}.notesSettingsLink{font-size:12px;color:var(--accent)}.notesAccessFooter{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.notesAccessFooter>p{flex:1;min-width:160px;margin:0;font-size:12px;line-height:1.6;color:var(--muted)}.notesAccessFooter .notesActions{margin-left:auto}.notesSwitch:focus-visible,.notesIconButton:focus-visible,.notesPinButton:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.notesSwitch{transition:background .15s}.notesSwitch:before{transition:transform .15s}
@media(max-width:700px),(pointer:coarse){.notesIconButton{width:44px;height:44px}.notesCardTools{gap:0}}
@media(max-width:550px){.notesSharing{padding:20px 16px}.notesAccessSection{padding:14px}.notesAccessPerson{grid-template-columns:1fr;gap:8px}.notesAccessPerson select{margin-left:44px;width:calc(100% - 44px)}.notesAccessRole{align-items:flex-start!important;flex-direction:column;gap:8px}.notesAccessRole select{width:100%}.notesAccessBadge{font-size:10px}.notesAccessFooter .notesActions{width:100%;justify-content:flex-end}}

/* Editor fields keep their own geometry in both the project and standalone shells. */
.notesDialog [data-note-editor]{display:grid;gap:18px;min-width:0}
.notesDialog [data-note-editor]>label{margin:0;min-width:0}
.notesEditorTasks{gap:12px;min-width:0}
.notesEditTask{display:grid;grid-template-columns:20px minmax(0,1fr) 40px;gap:10px;min-width:0}
.notesEditTask input[type=text]{width:100%;height:44px;min-height:44px;margin:0;box-sizing:border-box}
.notesEditTask input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;padding:0}
.notesEditTask button{width:40px;height:40px;min-height:40px;padding:8px}
.notesDialog [data-add-task]{justify-self:start;min-height:44px;margin:0}
.notesDialog [data-note-editor]>.notesActions{border-top:1px solid var(--line);padding-top:16px;margin-top:2px;justify-content:flex-end}
.notesTint:not([data-color=default]){background:color-mix(in srgb,var(--note-color) 12%,var(--panel));border-color:color-mix(in srgb,var(--note-color) 45%,var(--line))}
.notesColorPicker{border:0;padding:0;margin:0;min-width:0}
.notesColorPicker legend{padding:0;margin-bottom:8px;font-size:14px}.notesColorPicker legend span{margin-left:8px}
.notesSwatches{display:flex;flex-wrap:wrap;gap:0}
.notesSwatches button{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:4px;border:2px solid transparent;background:transparent;border-radius:50%;color:var(--fg)}
.notesSwatches button>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid var(--line);border-radius:50%;background:color-mix(in srgb,var(--note-color) 22%,var(--panel))}
.notesSwatches .uiIcon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.notesSwatches button[aria-pressed=true]{border-color:var(--fg)}
.notesSwatches button:not([aria-pressed=true]):not([data-color-choice=default]) .uiIcon{visibility:hidden}
.notesSwatches button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.notesLayouts{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--panel2)}
.notesLayouts button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--muted)}
.notesLayouts button[aria-pressed=true]{background:var(--surface-selected);color:var(--accent);border-color:var(--border-selected)}
.notesLayouts button:hover{color:var(--fg);background:var(--theme-hover)}
@media(max-width:700px),(pointer:coarse){.notesLayouts button{width:44px;height:44px;min-height:44px}}

@media(max-width:430px){.notesSwatches{display:grid;grid-template-columns:repeat(4,44px);gap:4px}}

.notesDialog [hidden]{display:none!important}
.notesDialog .notesSwitch{width:44px;min-width:44px;height:26px;min-height:26px;padding:0;margin:0}
.notesAccessSection label{min-height:44px}

.notesColumn[data-priority=done]{grid-column:1/-1;border-top:1px solid var(--line);padding-top:22px}.notesColumn[data-priority=done] h2:before{background:var(--accent)}.notesCardTools{flex-wrap:wrap}.notesCardTools [data-complete-note]{min-height:44px}.notesCard h3{overflow-wrap:anywhere}
