#notebook{--nb-ink:#18394d;--nb-accent:#146f69;--nb-border:#d7e5e5;color:var(--nb-ink)}
.nb-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px}.nb-heading h2{margin:0 0 5px}.nb-heading p{margin:0;color:#526877}.nb-private{background:#e9f5f0;padding:8px 12px;border-radius:20px;font-size:12px;white-space:nowrap}
.nb-layout{display:grid;grid-template-columns:345.6px minmax(0,1fr);gap:16px}.nb-sidebar,.nb-paper{background:#fff;border:1px solid var(--nb-border);border-radius:14px;padding:18px;min-width:0}.nb-sidebar label{display:block;margin-bottom:12px}.nb-sidebar input{width:100%;box-sizing:border-box}.nb-sidebar button{width:100%}.nb-day{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:9px;text-align:left;overflow-wrap:anywhere;white-space:normal}.nb-day.selected{background:#edf8f5;border-color:var(--nb-accent)}.nb-day span{font-size:12px;color:#456777}.nb-day small{color:#657580;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.nb-empty{color:#687b88;font-size:14px;line-height:1.6}
.nb-toolbar,.nb-actions,.nb-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.nb-toolbar{padding-bottom:16px;border-bottom:1px solid var(--nb-border);margin-bottom:16px}.nb-toolbar input{width:154px}.nb-section-head{justify-content:space-between;margin:20px 0 10px}.nb-section-head h3{margin:0}.nb-section-head small{color:#587181}.nb-paper fieldset{border:0;margin:0;padding:0;min-width:0}.nb-title{display:block;width:100%;box-sizing:border-box;font-size:20px!important;font-weight:600}.nb-mark{display:flex;align-items:center;gap:8px;margin:12px 0;color:#496573}.nb-mark input{width:auto!important}.nb-item{display:grid;grid-template-columns:20px 108px minmax(100px,1fr) auto auto auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #edf2f3}.nb-item input[type=checkbox]{width:18px;height:18px}.nb-item input{min-width:0;width:100%;box-sizing:border-box}.nb-item button{padding:8px}.nb-done [data-field=text]{text-decoration:line-through;color:#7b8e96}.nb-note{width:100%;min-height:300px;resize:vertical;box-sizing:border-box;line-height:1.85!important;background:linear-gradient(#fff,#fff);padding:14px!important}.nb-foot{border-top:1px solid var(--nb-border);margin-top:20px;padding-top:14px}.nb-status{font-size:13px;color:#256b51;margin:10px 0;min-height:20px}.nb-error{color:#9a3412}.nb-actions .nb-danger{color:#a82c35;margin-left:auto}.nb-move{margin-top:12px;padding:12px;background:#f4f8f8;border-radius:9px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}.nb-move label{display:flex;align-items:center;gap:8px}.nb-move input{width:150px}.nb-conflict{border:1px solid #d58b35;background:#fff9ec;border-radius:10px;padding:14px;margin:14px 0}.nb-conflict pre{white-space:pre-wrap;max-height:230px;overflow:auto;overflow-wrap:anywhere}.nb-import{max-height:240px;overflow:auto;padding:10px;background:#f4f8f8;margin-top:10px}.nb-import button{display:block;text-align:left;width:100%;margin:5px 0;white-space:normal}.nb-help{font-size:12px;color:#5d7381;line-height:1.6}
@media(max-width:900px){.nb-layout{grid-template-columns:1fr}.nb-sidebar{order:2}.nb-heading{align-items:flex-start}.nb-private{white-space:normal}.nb-item{grid-template-columns:20px 95px minmax(80px,1fr) auto}.nb-item button[data-action=move]{grid-column:2}.nb-item button[data-action=source]{grid-column:3}.nb-item button[data-action=remove]{grid-column:4}.nb-paper{padding:14px}.nb-toolbar{gap:6px}.nb-toolbar button{padding:9px}.nb-note{min-height:260px}.nb-title{font-size:18px!important}}

.nb-note-history{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}.nb-note-entry{border:1px solid var(--nb-border);border-left:3px solid var(--nb-accent);border-radius:8px;padding:12px 14px;background:#f8fbfa}.nb-note-entry small{display:block;color:#587181;margin-bottom:6px}.nb-note-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.65}.nb-note-compose{min-height:130px}.nb-note-add{margin-top:10px}

.nb-sidebar summary{display:none}.nb-item textarea{min-width:0;width:100%;box-sizing:border-box;resize:vertical;min-height:44px;font:inherit;font-size:16px;line-height:1.5;padding:9px 11px;border:1px solid #c3d5dd;border-radius:8px;overflow-wrap:anywhere}.nb-paper input:not([type=checkbox]),.nb-sidebar input{min-height:42px;padding:8px 10px;border:1px solid #c3d5dd;border-radius:8px;font:inherit;font-size:16px;box-sizing:border-box}.nb-note{font-size:16px!important;border:1px solid #c3d5dd;border-radius:10px}.nb-item button{min-height:40px}
@media(max-width:600px){
 .nb-heading{gap:8px;flex-wrap:wrap;margin-bottom:10px}.nb-heading h2{font-size:21px}.nb-heading p{font-size:13px}.nb-private{font-size:11px;padding:5px 9px}.nb-layout{gap:10px}.nb-sidebar{order:0;padding:10px 12px}.nb-sidebar summary{display:list-item;cursor:pointer;font-size:14px;font-weight:600;min-height:24px}.nb-sidebar[open] summary{margin-bottom:12px}#nbDays{max-height:240px;overflow:auto}.nb-paper{padding:12px}.nb-toolbar{display:grid;grid-template-columns:40px repeat(4,minmax(0,1fr)) 40px;gap:6px;padding-bottom:12px;margin-bottom:12px}.nb-toolbar input{width:100%;min-width:0}.nb-toolbar button{min-height:42px;padding:7px;font-size:13px}#nbPrev{grid-column:1}#nbDate{grid-column:2/6}#nbNext{grid-column:6}#nbToday{grid-column:1/3}#nbTomorrow{grid-column:3/7}.nb-title{font-size:17px!important;min-height:46px}.nb-mark{font-size:14px;line-height:1.5;margin:12px 0}.nb-section-head{gap:6px;margin:16px 0 10px}.nb-section-head h3{font-size:17px}.nb-section-head small{font-size:12px}.nb-item{grid-template-columns:26px minmax(0,1fr) auto;grid-template-areas:"done time remove" "text text text" "move source source";align-items:center;gap:8px;padding:12px;border:1px solid var(--nb-border);border-radius:12px;margin:10px 0;background:#f9fcfb}.nb-item input[data-field=done]{grid-area:done;width:22px;height:22px;margin:0}.nb-item input[data-field=time]{grid-area:time;max-width:140px;min-height:40px;font-size:16px}.nb-item textarea[data-field=text]{grid-area:text;min-height:78px;resize:none;font-size:16px;line-height:1.55;padding:10px;background:#fff}.nb-item button[data-action=move]{grid-area:move;grid-column:1/3;justify-self:start;min-height:40px;padding:7px 12px;font-size:13px}.nb-item button[data-action=source]{grid-area:source;grid-column:3;min-width:40px}.nb-item button[data-action=remove]{grid-area:remove;min-width:40px;min-height:40px;color:#a82c35}.nb-actions{gap:7px}.nb-actions button{min-height:42px;font-size:13px;white-space:normal}.nb-actions .nb-danger{margin-left:0}.nb-move{padding:10px;gap:8px;font-size:13px}.nb-move label{flex-wrap:wrap}.nb-move button{width:100%;min-height:42px}.nb-note-entry{padding:11px}.nb-note-entry p{font-size:16px;line-height:1.6}.nb-note-compose{min-height:150px;font-size:16px!important;line-height:1.6!important;padding:11px!important}.nb-note-add{width:100%;min-height:46px}#nbSave{min-height:44px;flex:1}#nbReload,#nbDownload{flex:1;min-width:100px}.nb-foot{margin-top:14px}.nb-help{font-size:12px}.nb-mark input{width:22px!important;height:22px}
}

.nb-note-history{margin-top:14px}

/* Personal workspace: independent notes and a wider month navigator. */
.nb-compose{padding:18px;background:#f3f8f7;border:1px solid var(--nb-border);border-radius:14px}
.nb-compose label{display:block;font-weight:600;margin:0 0 8px}.nb-compose label small{font-weight:400;color:#587181}
#nbNoteTitle{width:100%;margin-bottom:14px}.nb-note-entry h4{margin:0 0 10px;font-size:18px;color:var(--nb-ink);overflow-wrap:anywhere}
.nb-note-entry{background:#fff;padding:18px;box-shadow:0 2px 8px #18394d08}.nb-note-entry small{font-size:12px}.nb-note-entry p{font-size:16px;line-height:1.75}
.nb-sidebar{align-self:start}.nb-day{padding:13px!important}.nb-paper{box-shadow:0 4px 22px #18394d08}
@media(min-width:901px){#nbDays{max-height:65vh;overflow:auto}.nb-note-history{gap:16px}.nb-note-compose{min-height:170px}.nb-item{grid-template-columns:22px 104px minmax(0,1fr) auto auto auto}}
@media(max-width:900px){.nb-sidebar{position:static;order:0}.nb-sidebar summary{display:list-item;cursor:pointer}.nb-sidebar[open] summary{margin-bottom:12px}}
@media(max-width:600px){.nb-compose{padding:12px}.nb-note-entry{padding:14px}.nb-note-entry h4{font-size:17px}.nb-compose label{font-size:14px}.nb-note-compose{min-height:150px}.nb-note-entry p{line-height:1.65}}

#notebook [hidden]{display:none!important}.nb-sections{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}.nb-sections button{padding:12px 20px;font-size:16px;border-radius:24px;min-height:46px}.nb-sections [aria-selected=true]{background:#fff1b8;border-color:#e0c665;color:#3f350a;font-weight:700}.nb-note-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}.nb-note-filters select{font:inherit;padding:10px;border:1px solid var(--nb-border);border-radius:9px;max-width:100%;min-width:0}#nbCategory{width:100%;margin-bottom:4px}.nb-note-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));align-items:start;gap:14px}.nb-note-entry{border-left:1px solid var(--nb-border);border-top:3px solid #dfc56c;background:#fffdf5;min-width:0}.nb-category-tag{display:inline-block;font-size:12px;padding:4px 9px;background:#f3eed9;border-radius:12px;margin-bottom:12px;max-width:100%;overflow-wrap:anywhere}.nb-note-entry small{margin:14px 0 0}.nb-note-entry h4{font-size:17px}.nb-note-entry p{font-size:15px}.nb-compose{max-width:780px;margin:0 auto}.nb-note-entry:focus-within{outline:2px solid var(--nb-accent)}
@media(max-width:600px){.nb-sections{gap:6px;margin-bottom:12px;flex-wrap:nowrap}.nb-sections button{flex:1;padding:10px 8px;font-size:14px}.nb-note-history{grid-template-columns:1fr}.nb-note-entry p{font-size:16px}.nb-note-filters{align-items:stretch;flex-direction:column}.nb-note-filters select{width:100%}}

/* Fixed notebook controls; only the day list and page body scroll. */
#notebook.active{display:flex;flex-direction:column;height:var(--nb-height,calc(100dvh - 110px));min-height:180px;overflow:hidden}
#notebook .nb-heading{flex:none;margin-bottom:8px;gap:8px}#notebook .nb-heading h2{font-size:23px;margin-bottom:2px}#notebook .nb-heading p{font-size:12px}
#notebook .nb-sections{flex:none;margin-bottom:10px;gap:8px}#notebook .nb-sections button{min-height:42px;padding:8px 16px}
#notebook .nb-layout{flex:1;min-height:0;gap:12px;grid-template-rows:minmax(0,1fr)}
#notebook .nb-sidebar{align-self:stretch;min-height:0;overflow:auto;padding:12px;scrollbar-gutter:stable}
#notebook .nb-sidebar>label:first-of-type{position:sticky;top:-12px;z-index:1;background:#fff;padding:6px 0 10px;margin-bottom:4px}
#notebook #nbDays{max-height:none}#notebook .nb-day{padding:10px!important}
#notebook .nb-paper{display:flex;flex-direction:column;min-height:0;padding:12px;overflow:hidden}
#notebook .nb-toolbar{flex:none;padding-bottom:8px;margin-bottom:8px;gap:6px}
#notebook .nb-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:4px;padding-bottom:8px}
#notebook .nb-scroll:focus-visible{outline:2px solid var(--nb-accent);outline-offset:-2px}
#notebook .nb-mark{margin:8px 0}#notebook .nb-section-head{margin:12px 0 8px}#notebook .nb-section-head h3{font-size:16px}
#notebook .nb-foot{margin-top:12px;padding-top:10px}#notebook .nb-compose{max-width:none;padding:12px}#notebook .nb-compose label{margin-bottom:4px}#notebook #nbNoteTitle{margin-bottom:8px}
#notebook .nb-compose .nb-help{margin:5px 0 8px}#notebook .nb-note-compose{min-height:120px;line-height:1.6!important;padding:10px!important}
#notebook .nb-note-entry{padding:12px}#notebook .nb-note-entry button{min-height:40px;margin-top:10px}#notebook .nb-note-entry p{max-height:220px;overflow:auto}#notebook .nb-category-tag{margin-bottom:8px}
#nbCount{margin-left:auto;font-size:12px;color:#587181}
.nb-edit-dialog{width:min(780px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #d7e5e5;border-radius:14px;color:#18394d}
.nb-edit-dialog::backdrop{background:#102c4080}.nb-edit-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}
.nb-edit-head,.nb-edit-foot{display:flex;align-items:center;gap:8px;padding:12px 16px;flex:none;background:#f5faf9}.nb-edit-head{justify-content:space-between}.nb-edit-head h3{margin:0;font-size:18px}.nb-edit-head button{min-width:42px;min-height:42px}.nb-edit-foot{flex-wrap:wrap;border-top:1px solid #d7e5e5}.nb-edit-foot button{min-height:42px}
.nb-edit-body{padding:12px 16px;overflow:auto;min-height:0}.nb-edit-body label{display:block;margin-bottom:5px;font-weight:600}.nb-edit-body input,.nb-edit-body textarea{width:100%;box-sizing:border-box;font:inherit;font-size:16px;border:1px solid #c3d5dd;border-radius:8px;padding:10px;margin-bottom:10px}.nb-edit-body textarea{min-height:240px;resize:vertical;line-height:1.6}.nb-edit-body pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#fff9e8;padding:12px}.nb-edit-body p{font-size:13px;margin:0;overflow-wrap:anywhere}
@media(max-width:900px){
 #notebook .nb-layout{grid-template-rows:auto minmax(0,1fr)}#notebook .nb-sidebar{max-height:min(220px,28dvh);padding:8px 10px;scrollbar-gutter:auto}#notebook .nb-sidebar summary{min-height:24px}#notebook .nb-sidebar>label:first-of-type{position:static;padding:0}
}
@media(max-width:600px){
 #notebook .nb-heading h2{font-size:19px}#notebook .nb-heading p{display:none}#notebook .nb-private{font-size:10px;padding:4px 6px}#notebook .nb-heading{flex-wrap:nowrap;align-items:center}
 #notebook .nb-sections{margin-bottom:7px;gap:6px}#notebook .nb-sections button{font-size:13px;padding:7px 6px;min-height:40px}#notebook .nb-layout{gap:7px}#notebook .nb-paper{padding:8px}
 #notebook .nb-toolbar{padding-bottom:6px;margin-bottom:6px}#notebook .nb-toolbar button{min-height:36px}#notebook .nb-toolbar input{min-height:38px}#notebook .nb-scroll{padding-right:0;scrollbar-gutter:auto}
 #notebook .nb-item{padding:9px;margin:7px 0;gap:6px}#notebook .nb-mark{font-size:13px}#notebook .nb-compose{padding:10px}#notebook .nb-note-compose{min-height:110px}#notebook .nb-note-history{gap:10px}
 #notebook.nb-compact .nb-private{display:none}#notebook.nb-compact .nb-heading{margin-bottom:4px}#notebook.nb-compact .nb-toolbar #nbToday,#notebook.nb-compact .nb-toolbar #nbTomorrow{display:none}
 .nb-edit-head,.nb-edit-foot,.nb-edit-body{padding:10px}.nb-edit-body textarea{min-height:180px}.nb-edit-foot button{font-size:12px;flex:1}.nb-edit-head h3{font-size:16px}
}

/* The notebook owns its scroll areas; avoid a second page scrollbar behind them. */
body:has(#appView:not(.hidden) #notebook.active){overflow:hidden}

.nb-edit-dialog{top:var(--nb-dialog-top,12px);bottom:auto;margin:0 auto;max-height:var(--nb-dialog-height,calc(100dvh - 24px))}
.nb-edit-dialog form{max-height:var(--nb-dialog-height,calc(100dvh - 26px))}
@media(max-width:600px){#notebook.nb-compact .nb-heading,#notebook.nb-compact .nb-sidebar:not([open]){display:none}}

/* Independent idea board: categories and notes from every day. */
#nbIdeasWorkspace{display:flex;flex:1;min-height:0;flex-direction:column;gap:10px}.ni-tools{display:flex;gap:8px;flex-wrap:wrap;flex:none}.ni-tools input{flex:1;min-width:140px;padding:10px;border:1px solid #c3d5dd;border-radius:9px;font:inherit;font-size:16px}.ni-tools button{min-height:42px}.ni-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:12px;min-height:0;flex:1}.ni-categories{position:static;top:auto;height:auto;min-height:0;overflow:auto;padding:12px;background:#fff;border:1px solid var(--nb-border);border-radius:12px}.ni-categories h3{font-size:16px;margin:0 0 10px}.ni-categories button{display:flex;justify-content:space-between;gap:8px;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;margin-bottom:6px;min-height:42px}.ni-categories button[aria-pressed=true]{background:#fff1b8;border-color:#e0c665}.ni-content{min-height:0;overflow:auto;padding:0 4px 12px;overscroll-behavior:contain}.ni-content .nb-note-history{margin-top:8px}.ni-content .nb-note-entry p{max-height:220px;overflow:auto}#niStatus{margin:0 0 8px;font-size:13px;color:#526877}#niMore{display:block;margin:10px auto}
@media(max-width:760px){.ni-layout{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:8px}.ni-categories{padding:8px;overflow:hidden}.ni-categories h3{display:none}#niCategories{display:flex;gap:6px;overflow:auto}.ni-categories button{width:auto;flex:none;max-width:220px;margin:0;min-height:40px;font-size:13px}.ni-tools{gap:6px}.ni-tools input{flex-basis:100%;min-height:42px}.ni-tools button{flex:1;font-size:13px}.ni-content{padding:0 0 8px}}

#notebook .nb-danger{color:#a82c35}#niCards .nb-danger{margin-left:8px}#nbDelete{margin-left:auto}
@media(max-width:600px){#nbDelete{grid-column:1/-1;margin-left:0;justify-self:end;padding:6px 12px!important;min-height:36px!important}}

/* Keep-inspired private note board. Metadata lives in the encrypted owner payload. */
.ni-views{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}.ni-views select,.ni-options select{font:inherit;padding:9px;border:1px solid #c6d8ce;border-radius:9px;background:white;color:#254e3c}.ni-views>span{font-size:12px;color:#678073;margin-left:auto}.ni-tools #niSearch{flex:0 1 340px}.ni-tools #niNew{margin-left:auto}.ni-layout{grid-template-columns:190px minmax(0,1fr)}
#niCards{grid-template-columns:repeat(auto-fill,minmax(min(255px,100%),1fr));gap:14px}#niCards.ni-list-view{grid-template-columns:1fr}
#niCards .nb-note-entry{border:1px solid #dce5de;border-radius:14px;padding:17px;box-shadow:0 3px 12px #163d2c05;overflow:hidden}#niCards .ni-color-plain{background:#fff}#niCards .ni-color-yellow{background:#fff3cc}#niCards .ni-color-green{background:#e2f0e5}#niCards .ni-color-blue{background:#e3eef9}#niCards .ni-color-pink{background:#f4e5ee}#niCards .ni-color-sand{background:#f3eadd}
.ni-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.ni-card-head .nb-category-tag{background:#ffffff80;margin-bottom:0}.ni-card-head button{margin:0!important;font-size:12px;min-height:36px!important;background:transparent;border:0}.ni-card-head button[aria-pressed=true]{color:#146449;font-weight:700}.ni-note-body{font-size:15px;line-height:1.7;max-height:280px;overflow:auto;overflow-wrap:anywhere;margin:12px 0}.ni-card-actions{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #25473718;padding-top:8px;margin-top:10px}.ni-card-actions button{font-size:12px;margin:0!important;min-height:38px!important;padding:6px 9px;background:#ffffff85}.ni-progress{font-size:12px;color:#526e5f;margin:10px 0}.ni-options{display:flex;gap:18px;align-items:center;margin:5px 0 15px;flex-wrap:wrap}.ni-options label{flex:1}.ni-options select{display:block;width:100%;margin-top:4px}.ni-options .ni-pin-label{display:flex;align-items:center;gap:8px;font-size:14px}.ni-pin-label input{width:18px;height:18px;margin:0;accent-color:#17674f}
.ni-check{display:flex;gap:9px;align-items:flex-start;min-height:28px;margin:5px 0}.ni-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:5px 0 0!important;padding:0;accent-color:#17674f;cursor:pointer}.ni-check-text{flex:1;min-width:10px;min-height:26px;overflow-wrap:anywhere}.ni-check.is-done>.ni-check-text{color:#718176;text-decoration:line-through}.rich-input .ni-check-text{outline:none}.rich-toolbar [data-command=check]{background:#e7f3eb;color:#17674f;white-space:nowrap}
@media(max-width:760px){.ni-layout{grid-template-columns:1fr}.ni-tools #niSearch{flex:1 1 100%}.ni-tools #niNew{margin-left:0}.ni-views>span{display:none}.ni-views select,.ni-views button{flex:1;min-width:0}.ni-categories{max-height:62px}#niCards{grid-template-columns:1fr}#niCards .nb-note-entry{padding:14px}.ni-note-body{max-height:230px}}

/* Compact note actions: one desktop row and two balanced mobile rows. */
#notebook .nb-sections[hidden]{display:none}
.ni-tools{align-items:center;gap:8px}.ni-tools #niSearch{order:0;flex:1 1 180px;max-width:340px;min-width:120px}.ni-tools #niFilter{order:1}.ni-tools #niLayout{order:2}.ni-tools #niRefresh{order:3}.ni-tools #niNew{order:4;margin-left:auto}.ni-tools select{font:inherit;padding:10px;border:1px solid #c3d5dd;border-radius:9px;background:white;min-width:0}.ni-tools button{white-space:nowrap}
.ni-transfer{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.ni-transfer button{font-size:13px;min-height:40px}.ni-transfer small{flex-basis:100%;color:#587181}.ni-transfer-menu{position:absolute;z-index:10;width:200px;background:white;border:1px solid #c3d5dd;box-shadow:0 6px 24px #18394d33;padding:5px;border-radius:9px}.ni-transfer-menu button{display:block;width:100%;text-align:left;border:0;min-height:42px}
@media(max-width:760px){.ni-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ni-tools #niSearch{grid-column:1/-1;max-width:none;width:100%;box-sizing:border-box}.ni-tools #niFilter,.ni-tools button{width:100%;margin:0;min-width:0;font-size:13px;padding:9px 7px}.ni-tools #niNew{margin:0}.ni-transfer button{flex:1;white-space:normal}}

/* Compact note footer; empty status messages occupy no content space. */
#niEditStatus:empty{display:none}
#niDialog .nb-edit-foot{flex-wrap:nowrap;overflow-x:auto;gap:6px}
#niDialog .nb-edit-foot button{flex:0 0 auto;white-space:nowrap;font-size:12px;padding:8px 10px}

/* Give rich notes the same writing space as plain-text notes. */
#niDialog .rich-input{min-height:clamp(240px,42dvh,520px);max-height:none}
#niDialog .rich-editor{flex-shrink:0}
@media(max-width:600px){#niDialog .rich-input{min-height:clamp(180px,36dvh,360px)}}

#niCards .nb-note-entry[tabindex="0"]{cursor:pointer}
#niCards .nb-note-entry:focus-visible{outline:2px solid #17674f;outline-offset:2px}
