.window-content:has(>.notes-shell) { container:notes / inline-size; overflow:hidden; }
.notes-shell {
  --notes-gold:#9b6900; --notes-selected:#edb73535; --writing-paper:#fffefa;
  height:100%; display:flex; flex-direction:column; min-height:0; color:var(--ink); direction:rtl;
}
:root:is([data-theme=dark],[data-theme=dim]) .notes-shell {
  --notes-gold:#f4ca68; --notes-selected:#e5b23c28; --writing-paper:color-mix(in srgb,var(--paper) 96%,#b39250);
}
.notes-toolbar { display:flex; justify-content:space-between; flex:none; align-items:center; gap:8px; padding:5px 13px; min-height:42px; background:color-mix(in srgb,var(--chrome) 55%,transparent); border-bottom:1px solid var(--line); }
.notes-bar-group { display:flex; align-items:center; gap:6px; }
.notes-toolbar .icon-btn { width:32px; height:29px; border-radius:8px; color:var(--muted); }
.notes-toolbar .notes-compose,.notes-toolbar [aria-pressed=true],.notes-recover { color:var(--notes-gold); }
.notes-toolbar [aria-pressed=true] { background:var(--notes-selected); }
.notes-recover { padding:0 7px; font-size:12px; }
.notes-move { border:0; background:transparent; color:var(--muted); max-width:98px; font-size:12px; }
.notes-desk { flex:1; display:grid; grid-template-columns:minmax(132px,.7fr) minmax(172px,1fr) minmax(235px,2.05fr); min-height:0; }
.notes-folders,.notes-list,.notes-editor,.notes-paper { min-width:0; min-height:0; }
.notes-folders,.notes-list,.notes-paper { display:flex; flex-direction:column; }
.notes-folders { padding:15px 8px 8px; background:color-mix(in srgb,var(--sidebar) 44%,transparent); }
.notes-side-head { padding:0 7px 12px; font-size:13px; font-weight:650; color:var(--muted); }
.notes-folder-rows,.notes-rows { overflow:auto; scrollbar-width:thin; }
.notes-folder { display:flex; align-items:center; gap:7px; padding:6px 7px; width:100%; border-radius:7px; text-align:start; }
.notes-folder span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.notes-folder svg,.notes-new-folder { color:var(--notes-gold); }
.notes-folder small { margin-inline-start:auto; color:var(--muted); font-size:11px; }
.notes-folder[aria-pressed=true],.notes-row[aria-pressed=true] { background:var(--notes-selected); }
.notes-folder:hover:not([aria-pressed=true]),.notes-row:hover:not([aria-pressed=true]) { background:var(--hover); }
.notes-folder-foot { margin-top:auto; padding:9px 1px 0; }
.notes-new-folder { display:flex; align-items:center; gap:6px; padding:5px; font-size:12px; }
.notes-folder-form { display:flex; align-items:center; gap:2px; }
.notes-folder-form input { min-width:0; flex:1; background:var(--paper); border:1px solid var(--line); padding:4px 6px; border-radius:5px; }
.notes-folder-form .icon-btn { width:22px; flex:none; }
.notes-list { background:color-mix(in srgb,var(--paper) 82%,transparent); border-inline:1px solid var(--line); padding:13px 9px 5px; }
.notes-list-head { display:flex; align-items:baseline; gap:7px; padding-inline:4px; }
.notes-list-head h2 { font-size:16px; }
.notes-count { color:var(--muted); font-size:11px; }
.notes-list .searchbox { margin:7px 0 10px; width:100%; }
.notes-row { display:flex; flex-direction:column; gap:2px; width:100%; text-align:start; padding:9px 11px; border-radius:9px; }
.notes-row+ .notes-row { margin-top:2px; }
.notes-row strong,.notes-row span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; width:100%; text-align:start; }
.notes-row strong { font-size:13px; }
.notes-row strong svg { display:inline; vertical-align:middle; margin-inline-start:5px; color:var(--notes-gold); }
.notes-row span,.notes-row time,.notes-no-results { color:var(--muted); font-size:12px; }
.notes-row time { font-size:10px; }
.notes-no-results { text-align:center; padding:18px 4px; }
.notes-editor { position:relative; display:flex; background:var(--writing-paper); }
.notes-paper { width:100%; padding:12px clamp(14px,3cqw,34px) 7px; }
.notes-date,.notes-status { text-align:center; font-size:10px; color:var(--muted); }
.notes-date { margin-bottom:12px; }
.notes-title,.notes-body { width:100%; resize:none; border:0; background:transparent; padding:0; text-align:start; outline:none!important; }
.notes-title { font-size:23px; font-weight:700; margin-bottom:6px; }
.notes-body { flex:1; min-height:0; line-height:1.95; font-size:15px; }
.notes-title::placeholder,.notes-body::placeholder { color:var(--muted); opacity:.65; }
.notes-save { display:flex; justify-content:end; align-items:center; min-height:22px; }
.notes-empty { margin:auto; text-align:center; }
.notes-empty i { display:grid; place-items:center; color:var(--notes-gold); width:62px; height:62px; margin:0 auto 12px; border-radius:18px; background:var(--notes-selected); }
.notes-empty h3 { font-weight:550; font-size:15px; }
.notes-empty-add { color:var(--notes-gold); font-size:13px; margin-top:5px; }
@container notes (min-width:700px) {
  .notes-bar-group:first-child>.icon-btn:nth-child(2) { display:none; }
  .notes-shell.folders-collapsed .notes-desk { grid-template-columns:minmax(172px,1fr) minmax(235px,2.05fr); }
  .notes-shell.folders-collapsed .notes-folders { display:none; }
}
@container notes (min-width:520px) and (max-width:699px) {
  .notes-desk { grid-template-columns:minmax(160px,.85fr) minmax(230px,1.65fr); }
  .notes-folders { display:none; }
  .notes-shell[data-pane=folders] .notes-folders { display:flex; }
  .notes-shell[data-pane=folders] .notes-list { display:none; }
}
@container notes (max-width:519px) {
  .notes-desk { display:flex; }
  .notes-desk> * { display:none; width:100%; }
  .notes-shell[data-pane=folders] .notes-folders,.notes-shell[data-pane=list] .notes-list,.notes-shell[data-pane=editor] .notes-editor { display:flex; }
  .notes-toolbar { padding-inline:7px; }
  .notes-bar-group { gap:2px; }
}
.notes-writing { display:flex; flex:1; min-height:0; flex-direction:column; overflow:auto; scrollbar-width:thin; }
.notes-writing.has-checklist .notes-body { flex:0 0 clamp(55px,20%,120px); }
.notes-check-row { display:flex; align-items:center; gap:7px; min-height:29px; }
.notes-check-row input[type=checkbox] { accent-color:var(--notes-gold); }
.notes-check-row input[type=text] { flex:1; min-width:0; padding:2px; border:0; background:transparent; color:var(--ink); }
.notes-check-row.done input[type=text] { text-decoration:line-through; color:var(--muted); }
.notes-check-row .icon-btn { width:22px; height:22px; opacity:0; }
.notes-check-row:hover .icon-btn,.notes-check-row:focus-within .icon-btn { opacity:1; }
