/* Notes: slim sticky toolbar, chapter jump chips, section cards and smooth branch opening. Loaded after site-polish. */
html body .notes-page{display:flex;flex-direction:column;gap:14px}
html body .notes-page>*{margin-top:0!important;margin-bottom:0!important}
html body .notes-page .notes-page-header{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:24px 26px;border-radius:22px;border:1px solid var(--hairline);background:radial-gradient(90% 140% at 0% 0%,color-mix(in srgb,var(--cyan) 13%,transparent),transparent 60%),radial-gradient(70% 120% at 100% 100%,color-mix(in srgb,var(--green) 10%,transparent),transparent 65%),var(--ground-2);animation:nv-rise .55s cubic-bezier(.2,.8,.2,1) both}
html body .notes-page .notes-page-header h1{margin:4px 0 6px!important}
html body .notes-page .notes-page-header p{margin:0!important;max-width:58ch}
html body .notes-page .notes-import-summary strong{font-size:40px;line-height:1;background:linear-gradient(90deg,var(--cyan),var(--green));-webkit-background-clip:text;background-clip:text;color:transparent}

/* Toolbar */
html body .notes-page .notes-toolbar{position:sticky;top:calc(var(--shell-h,58px) + 8px);z-index:15;display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:8px;border-radius:16px;border:1px solid var(--hairline);background:color-mix(in srgb,var(--ground-2) 84%,transparent);-webkit-backdrop-filter:saturate(170%) blur(18px);backdrop-filter:saturate(170%) blur(18px);box-shadow:0 14px 34px -24px rgba(0,0,0,.7)}
html body .notes-page .notes-toolbar .notes-filters{position:static!important;flex:1 1 560px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important}
html body .notes-page .notes-toolbar label{gap:0!important;position:relative}
html body .notes-page .notes-toolbar input,html body .notes-page .notes-toolbar select{height:40px;padding:0 12px!important;border-radius:11px!important;font-size:13.5px;transition:border-color .2s,box-shadow .2s}
html body .notes-page .notes-toolbar input{padding-left:36px!important}
html body .notes-page .notes-toolbar input:focus,html body .notes-page .notes-toolbar select:focus{outline:none;border-color:var(--cyan)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--cyan) 22%,transparent)}
html body .notes-page .notes-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--ink-2);pointer-events:none}
html body .notes-page .notes-view-picker{display:inline-flex;gap:2px;padding:3px;margin:0!important;border-radius:12px;background:color-mix(in srgb,var(--ink) 6%,transparent);border:0}
html body .notes-page .notes-view-picker button{border:0!important;background:none!important;border-radius:9px!important;padding:8px 12px!important;min-height:0!important;font-size:13px;font-weight:600;color:var(--ink-2);white-space:nowrap;transition:background .2s,color .2s}
html body .notes-page .notes-view-picker button[aria-pressed=true]{background:var(--cyan)!important;color:var(--ground,#06070a)!important}

/* Chapter jump chips */
html body .notes-page .notes-jump{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 6px;scrollbar-width:thin}
html body .notes-page .notes-jump[hidden]{display:none}
html body .notes-page .notes-jump button{flex:none;display:inline-flex;align-items:center;gap:8px;padding:7px 12px 7px 7px;border-radius:999px;border:1px solid var(--hairline);background:var(--ground-2);color:var(--ink);font-size:12.5px;min-height:0;transition:transform .18s,border-color .18s,background .18s;animation:nv-rise .45s cubic-bezier(.2,.8,.2,1) both}
html body .notes-page .notes-jump button:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--cyan) 45%,var(--hairline));background:color-mix(in srgb,var(--cyan) 7%,var(--ground-2))}
html body .notes-page .notes-jump button b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:11.5px;background:color-mix(in srgb,var(--cyan) 18%,transparent);color:var(--cyan)}
html body .notes-page .notes-jump button small{color:var(--ink-2);font-size:11px;padding-left:6px;border-left:1px solid var(--hairline)}
html body .notes-page .notes-jump button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}

/* Results */
html body .notes-page .notes-results-heading{display:flex;align-items:center;gap:10px}
html body .notes-page .notes-results-heading #notes-count{margin:0 auto 0 0}
html body .notes-page .notes-scope-note{font-size:12.5px;color:var(--muted)}
html body .notes-page .notes-coverage{border-radius:14px}
html body .notes-page #notes-results{display:flex;flex-direction:column;gap:10px}
html body .notes-page .notes-chapter-branch{scroll-margin-top:calc(var(--shell-h,58px) + 80px);border-radius:18px!important;transition:border-color .25s,background .25s}
html body .notes-page .notes-chapter-branch[open]{border-color:color-mix(in srgb,var(--cyan) 28%,var(--hairline))!important}
html body .notes-page .notes-chapter-branch>summary{transition:background .2s}
html body .notes-page .notes-chapter-branch>summary:hover{background:color-mix(in srgb,var(--ink) 3%,transparent)}
html body .notes-page .notes-chapter-branch>summary .notes-chapter-index{transition:background .25s,color .25s,transform .25s}
html body .notes-page .notes-chapter-branch[open]>summary .notes-chapter-index{background:var(--cyan);color:var(--ground,#06070a);transform:scale(1.06)}
html body .notes-page .notes-branch-body{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:8px;padding:4px 16px 16px!important;animation:nv-open .35s cubic-bezier(.2,.8,.2,1) both}
html body .notes-page .notes-branch-body>:not(.notes-outline-read){grid-column:1/-1}
html body .notes-page .notes-outline-read{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:left;padding:12px 14px!important;margin:0!important;border:1px solid var(--hairline)!important;border-radius:13px!important;background:color-mix(in srgb,var(--ground) 40%,transparent)!important;transition:transform .2s cubic-bezier(.2,.8,.2,1),border-color .2s,background .2s}
html body .notes-page .notes-outline-read:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--cyan) 45%,var(--hairline))!important;background:color-mix(in srgb,var(--cyan) 6%,var(--ground))!important}
html body .notes-page .notes-outline-read strong{font-size:14px;line-height:1.35}
html body .notes-page .notes-outline-read small{display:block;margin-top:3px;font-size:11.5px;color:var(--ink-2)}
html body .notes-page .notes-outline-read>span[aria-hidden]{color:var(--ink-2);transition:transform .2s,color .2s}
html body .notes-page .notes-outline-read:hover>span[aria-hidden]{transform:translate(2px,-2px);color:var(--cyan)}

@keyframes nv-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@keyframes nv-open{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){html body .notes-page *{animation:none!important;transition:none!important}}
html[data-motion=reduced] body .notes-page *{animation:none!important;transition:none!important}
html[data-theme=light] body .notes-page .notes-toolbar{background:color-mix(in srgb,#fff 86%,transparent);box-shadow:0 12px 28px -22px rgba(15,23,42,.4)}
html[data-theme=light] body .notes-page .notes-view-picker button[aria-pressed=true],html[data-theme=light] body .notes-page .notes-chapter-branch[open]>summary .notes-chapter-index{background:#0e7490!important;color:#fff!important}
html[data-theme=light] body .notes-page .notes-jump button b{color:#0e7490}

@media (max-width:900px){
 html body .notes-page .notes-page-header{flex-direction:column;align-items:flex-start;padding:18px}
 html body .notes-page .notes-toolbar{position:static}
 html body .notes-page .notes-toolbar .notes-filters{grid-template-columns:1fr;flex-basis:100%}
 html body .notes-page .notes-view-picker{width:100%}
 html body .notes-page .notes-view-picker button{flex:1}
 html body .notes-page .notes-branch-body{grid-template-columns:1fr;padding:4px 10px 12px!important}
}
html body .notes-page .notes-coverage>summary{font-size:12.5px;color:var(--ink-2)}
