.project-note-layout{display:flex;align-items:flex-start;gap:.4rem}.project-note-layout>.note-list-section{flex:1;min-width:0}.project-note-sidebar{flex:0 0 2rem;width:2rem;position:sticky;top:.5rem;border:0;padding:0;z-index:5}.project-note-sidebar[hidden]{display:none}.project-note-sidebar>details{position:relative;margin:0;border:0;padding:0}.project-note-sidebar>details>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;width:2rem;height:2rem;padding:0;border:0;border-radius:.35rem;color:var(--muted);background:transparent}.project-note-sidebar>details>summary::-webkit-details-marker{display:none}.project-note-sidebar>details>summary::marker{content:''}.project-note-sidebar>details>summary:hover,.project-note-sidebar>details>summary:focus-visible{color:var(--ink);background:var(--field)}.project-note-sidebar>details>summary svg{transition:transform .15s ease}.project-note-sidebar>details[open]>summary svg{transform:rotate(180deg)}.project-note-sidebar>details>nav{position:absolute;left:0;top:2.3rem;width:min(18rem,calc(100vw - 5rem));max-height:60vh;overflow-y:auto;padding:.8rem;background:var(--surface);border:1px solid var(--line);border-radius:.5rem;box-shadow:0 .5rem 1.5rem #0005;animation:note-area-open .15s ease-out}.project-note-sidebar h4{font-size:.85rem;color:var(--muted);margin:.8rem 0 .35rem}.project-note-sidebar p{font-size:.8rem;color:var(--muted)}.project-note-choice{display:block;text-align:left;width:100%;white-space:normal;overflow-wrap:anywhere;margin:.2rem 0;padding:.45rem;font-size:.85rem}.project-note-choice[aria-pressed=true]{font-weight:700;border-color:var(--blue)}.project-note-selection{color:var(--muted);font-size:.85rem;margin:.2rem 0 .6rem;overflow-wrap:anywhere}.project-note-card-context{color:var(--muted);font-size:.8rem;overflow-wrap:anywhere;margin:.35rem 0}@keyframes note-area-open{from{opacity:0;transform:translateX(-.4rem)}to{opacity:1;transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.project-note-sidebar>details>nav{animation:none}.project-note-sidebar>details>summary svg{transition:none}}

/* Keep selector popups closed independently of global nav/display styles. */
.project-note-sidebar>details:not([open])>nav{display:none!important}
.project-note-sidebar>details[open]>nav{display:block!important}
.project-note-sidebar .project-area-branch{position:relative;margin:5px 0;padding:0;border:0;background:transparent}
.project-note-sidebar .project-area-summary{display:flex;align-items:center;justify-content:flex-start;gap:5px;list-style:none;cursor:pointer;width:auto;min-height:32px;padding:4px 2px;border-radius:5px;color:var(--ink);font-size:.82rem;line-height:1.4;overflow-wrap:anywhere}
.project-note-sidebar .project-area-summary::-webkit-details-marker{display:none}.project-note-sidebar .project-area-summary::marker{content:''}
.project-note-sidebar .project-area-summary:before{content:'▸';flex:none;width:14px;color:var(--muted)}
.project-note-sidebar .project-area-branch[open]>.project-area-summary:before{content:'▾'}
.project-note-sidebar .project-area-summary:hover,.project-note-sidebar .project-area-summary:focus-visible{background:var(--field);outline:1px solid var(--line)}
.project-note-sidebar .project-area-summary>.project-note-choice{flex:1;min-width:0;width:auto;margin:0;border:0;padding:3px 2px;text-align:left;background:transparent;color:inherit;box-shadow:none}
.project-note-sidebar .project-area-children{margin-left:8px;padding-left:10px;border-left:1px solid var(--line)}
.project-note-sidebar .project-area-branch:not([open])>.project-area-children{display:none!important}
.project-note-sidebar .project-area-branch[open]>.project-area-children{display:block}
/* The other project disclosures also respect their closed native state. */
.execution-fold:not([open])>:not(summary),.project-members-dropdown:not([open])>.project-members-options{display:none!important}

/* Direct content and descendant content remain distinguishable on collapsed nodes. */
.project-note-sidebar .project-area-content-legend{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 8px;font-size:.72rem}
.project-area-choice-label{flex:1;min-width:0;overflow-wrap:anywhere}
.project-note-sidebar .project-area-summary>.project-area-choice-label{font-weight:600}
.project-note-sidebar .project-area-children>.project-note-choice{display:flex;align-items:center;gap:6px}
.project-note-sidebar .project-area-summary>.project-note-choice{display:flex;align-items:center;gap:6px}
.project-area-content-badges{display:inline-flex;flex:none;flex-wrap:wrap;justify-content:flex-end;gap:4px;margin-left:auto}
.project-area-content-badge{font-size:.7rem;line-height:1.5;border:1px solid currentColor;border-radius:5px;padding:0 4px;white-space:nowrap}
.project-note-sidebar .area-direct{color:#9ddab7}.project-note-sidebar .area-descendants{color:#a4caff}.project-note-sidebar .area-empty{color:var(--muted);border-color:var(--line)}
.project-note-sidebar .project-area-summary.area-has-direct,.project-note-sidebar .project-note-choice.area-has-direct{box-shadow:inset 3px 0 0 #67b48a;background:color-mix(in srgb,#67b48a 12%,var(--surface))}
.project-note-sidebar .project-area-summary.area-has-descendants:not(.area-has-direct),.project-note-sidebar .project-note-choice.area-has-descendants:not(.area-has-direct){box-shadow:inset 3px 0 0 #7aa9dc;background:color-mix(in srgb,#7aa9dc 10%,var(--surface))}
.project-note-sidebar .area-content-empty>.project-area-choice-label{color:var(--muted)}
.project-note-sidebar .project-area-summary>.project-note-choice{padding-left:5px}
.project-note-sidebar .project-note-choice[aria-pressed="true"]{outline:1px solid var(--blue);outline-offset:-1px}
html[data-light-design="true"] .project-note-sidebar .area-direct{color:#216643}html[data-light-design="true"] .project-note-sidebar .area-descendants{color:#285f9a}
