.project-list-heading{display:flex;align-items:center;justify-content:space-between}.project-list-heading button{padding:0 3px;font-size:17px;line-height:20px}.project-heading{display:flex;align-items:center;gap:2px;margin:3px 0 5px}.project-heading>button:first-child{display:flex;align-items:center;gap:5px;min-width:0;flex:1;text-align:left;padding:7px 4px;font-size:11px;font-weight:550}.project-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.project-heading small{color:#8c958b;font-size:10px}.project-options{padding:4px;font-size:18px}.project-empty{color:#8c958b;font-size:11px;padding:0 10px}.project-group{margin-bottom:14px}.project-choices{display:grid;gap:4px;margin:18px 0}.project-choices button{text-align:left;border:1px solid #e5e9e0}.project-new-row{display:flex;gap:8px;margin-top:8px}#dialog input#project-name{border:1px solid #cbd5c4;border-radius:6px;padding:9px;width:100%;min-width:0}#create-project-form,#rename-project-form{display:grid;gap:12px}#new-project-form label{font-size:12px}
/* Compact hierarchy: project headers lead; their documents sit in an inset list. */
#context-list .group{padding:12px 10px 7px;font-size:11px;color:#879080}
#context-list .project-list-heading{padding-top:10px}
#context-list .project-group{margin:0 0 18px}
#context-list .project-heading{position:relative;margin:0 0 4px;min-height:32px}
#context-list .project-heading>button:first-child{font-size:13px;font-weight:550;gap:7px;padding:6px 8px;min-height:32px}
#context-list .project-heading .project-title{font-size:13px;line-height:20px}
.project-folder{flex-shrink:0;color:#66745f}
.project-chevron{display:none}
#context-list .project-heading small{display:none}
#context-list .context-row{position:relative;margin:1px 0;border-radius:6px;min-height:31px}
#context-list .project-group>.context-row{margin-left:24px}
#context-list .context-row .context{padding:5px 7px;gap:5px;min-height:31px}
#context-list .context-title{font-size:12px;line-height:20px;font-weight:400}
#context-list .context-row.active{background:#e5eade}
#context-list .context-score{width:20px;height:20px}
#context-list .context-score>span{width:16px;height:16px;font-size:8px;font-weight:550}
#context-list .context-menu,#context-list .project-options{display:none;padding:3px 4px;font-size:18px;line-height:20px;flex-shrink:0}
#context-list .context-row:hover>.context-menu,#context-list .context-row:focus-within>.context-menu,
#context-list .project-heading:hover>.project-options,#context-list .project-heading:focus-within>.project-options{display:block}
#context-list .project-empty{margin:5px 8px 8px 26px;padding:0;font-size:11px}
@media(hover:none){#context-list .context-menu,#context-list .project-options{display:block}}
#sidebar .new{justify-content:flex-start;gap:10px;padding-left:10px;margin-bottom:12px}
#sidebar .new span{margin:0;text-align:left}
#sidebar .sidebar-heading{margin-bottom:14px}
#sidebar .sidefoot .sidebar-footer-tour{margin:0;padding:0;text-align:left;font-size:11px;color:#7e8d77;align-self:flex-start}
#sidebar .sidefoot .sidebar-footer-tour:hover{background:none;text-decoration:underline;color:#32533e}
#context-list .project-list-heading button{opacity:0}
#context-list .project-list-heading:hover button,#context-list .project-list-heading:focus-within button{opacity:1}
@media(hover:none){#context-list .project-list-heading button{opacity:1}}

.context-score.section-scoring{position:relative;background:#dfe3dc}.context-score.section-scoring::after{content:'';position:absolute;inset:0;border:2px solid transparent;border-top-color:#66814c;border-right-color:#9eae90;border-radius:50%;animation:rewrite-spin 1s linear infinite;pointer-events:none}@media(prefers-reduced-motion:reduce){.context-score.section-scoring::after{animation:none}}

/* Guest tour lives inside the scroll area; its old negative margin clipped hover. */
#context-list>.sidebar-tour{margin:0 0 18px}
#context-list>.sidebar-tour:focus-visible{outline-offset:-2px}
