/* Note reliability fits the existing white/teal portal, not a new design. */
.sr-note{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#ned [hidden],#ned-d [hidden]{display:none!important}
.notes-syncbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);background:var(--soft);margin-bottom:10px}
.notes-syncbar>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.notes-syncbar strong{font-size:13px;font-weight:600;color:var(--text)}
.notes-syncbar span{font-size:12px;color:#52666a;overflow-wrap:anywhere}
.notes-help{margin:0 0 18px;color:#52666a;font-size:12px;line-height:1.6;max-width:880px}
.notes-help summary{cursor:pointer;min-height:32px;display:list-item;padding:6px 0}
.notes-help p{margin:6px 0}
.notes-drafts-filter{display:flex;gap:8px;align-items:center;color:#52666a;font-size:12px;min-height:32px;cursor:pointer}
.notes-drafts-filter input{width:18px;height:18px;accent-color:var(--accent)}
.nv-list,.nv-ed,.nv-it{min-width:0}
.nv-mob .chip{min-height:36px;color:#52666a}
#nb-add-mobile{border:1px solid var(--line-strong);cursor:pointer;background:var(--surface);font-weight:600}
button.nv-item{width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);font:inherit;text-align:left;color:var(--text)}
button.nv-item.on{background:var(--accent-soft)}
button.nv-item:hover{background:var(--soft)}
.nv-it .s,.nv-it .m{color:#52666a;overflow:hidden}
.nv-tags .chip,.nv-side .faint,.nv-side .lbl,.ne-view .ck.on span{color:#52666a}
.note-local-label{color:#84521b;font-weight:600}
.ne-sticky{position:sticky;top:60px;z-index:4;background:var(--surface);padding-top:2px;margin-bottom:18px}
.ne-sticky .ne-bar{margin-bottom:0;padding-bottom:8px}
.ne-save{display:flex;gap:12px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:10px 0 12px;min-height:66px}
.ne-save>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.ne-save strong{font-size:12px;font-weight:600;color:#315958;line-height:1.4}
.ne-save span{font-size:12px;line-height:1.45;color:#52666a;overflow-wrap:anywhere}
.ne-save[data-state="local"] strong,.ne-save[data-state="offline"] strong,.ne-save[data-state="warning"] strong{color:#84521b}
.ne-save[data-state="danger"] strong,.ne-save[data-state="conflict"] strong{color:#a02d2b}
.ne-save[data-state="danger"]{background:#fff1ef;padding:10px;border-radius:var(--r-sm)}
.ne-save[data-state="sending"] strong::before{content:"";display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-right:7px}
.ne-save .btn{flex:none}
.ne-conflict{padding:16px;background:#fff7ee;border:1px solid #e9c9a5;border-radius:var(--r);margin:0 0 18px;font-size:13px;line-height:1.6;color:#513d2e}
.ne-conflict h3{font-size:15px;margin:0 0 6px}
.ne-conflict p{margin:6px 0 12px}
.ne-conflict details{border-top:1px solid #e9c9a5;padding:10px 0;margin-bottom:6px}
.ne-conflict summary{cursor:pointer;min-height:32px;font-weight:600}
.ne-conflict pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;font:inherit;background:var(--surface);padding:12px;border-radius:6px;margin:8px 0}
.ne-title{font-size:21px;line-height:1.45}
.ne-text,.ne-view{font-size:16px;line-height:1.7}
.ne-title:focus-visible,.ne-text:focus-visible,.ne-tag-in:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}
.ne-text{min-height:240px}
.ne-bar .btn,.ne-bar .icon-btn,.ne-bar select{min-height:36px}
.ne-bar select{max-width:170px}
.ne-photo-control.disabled{opacity:.55;cursor:not-allowed}
.ne-tag-remove{border:0;background:none;font:inherit;color:inherit;cursor:pointer;min-width:24px;min-height:28px}
.ne-tag-in{min-height:36px;font-size:13px}
.ne-tags .chip{display:inline-flex;align-items:center;gap:3px}
.ne-foot{gap:12px;flex-wrap:wrap}
.ne-photo-message{font-size:12px;color:#52666a;line-height:1.5}
.ne-photo-message:empty{display:none}
#ned-d .ne-sticky{top:-22px;padding-top:18px}
#ned-d .ne-bar{position:static}
.overlay:has(#ned-d) .drawer{width:min(680px,100%);height:100dvh;padding-bottom:max(28px,env(safe-area-inset-bottom))}
@media(max-width:700px){
  .notes-syncbar{align-items:flex-start;gap:10px;padding:12px}
  .notes-syncbar .btn{font-size:12px;min-height:44px;padding:0 10px}
  .notes-syncbar strong{font-size:12px}
  .notes-help summary,.notes-drafts-filter{min-height:44px}
  .overlay:has(#ned-d) .drawer{padding:14px 16px 28px;border-left:0}
  #ned-d .ne-sticky{top:-14px;padding-top:12px}
  .ne-bar{gap:6px}
  #ned-d .ne-bar{display:grid;grid-template-columns:minmax(0,1fr) repeat(3,44px)}
  .ne-bar select{max-width:100%;min-width:0;font-size:13px}
  #ned-d #ne-nb{grid-area:1 / 1}
  #ned-d #ne-pin{grid-area:1 / 2}
  #ned-d .ne-photo-control{grid-area:1 / 3}
  #ned-d #ne-x{grid-area:1 / 4}
  #ned-d #ne-ck{grid-area:2 / 1 / 3 / 3}
  #ned-d #ne-mode{grid-area:2 / 3 / 3 / 5}
  .ne-bar .btn,.ne-bar .icon-btn,.ne-bar select{min-height:44px}
  .ne-bar .icon-btn{min-width:44px}
  .ne-bar #ne-x{margin-left:0}
  .ne-bar #ne-ck{font-size:12px;padding:0 10px}
  .ne-save{min-height:74px;align-items:flex-start}
  .ne-save .btn,.ne-foot .btn{min-height:44px}
  .ne-title{font-size:21px}
  .ne-tag-in,.ne-tag-remove{min-height:44px}
  .ne-view .ck{min-height:44px;align-items:center}
  .ne-view .ck input{margin:0;width:22px;height:22px}
  .nv-lh select{min-height:44px}
}
@media(max-height:520px){
  .ne-sticky,#ned-d .ne-sticky{position:relative;top:0}
}
