/* A fixed header/footer and one scrolling project list. No hidden data changes. */
.nf-sidebar.nf-shell-dialog{width:min(320px,88vw);padding:0;border-radius:0 18px 18px 0;overflow:hidden;background:#fbfdff}
.nf-sidebar.nf-shell-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.nf-sidebar-head{position:relative;padding:18px 16px 0;min-width:0}.nf-sidebar-head h2{font-size:18px;line-height:1.6;margin:0 0 18px;padding-inline-end:34px}.nf-sidebar-head .nf-shell-close{inset-inline-end:14px;top:15px;width:32px;height:32px;min-height:32px;min-width:32px;border:0;background:transparent;color:#5e7b92}
.nf-sidebar-actions{grid-template-columns:1fr 1fr;gap:8px}.nf-sidebar-actions button{min-width:0;justify-content:center;padding:10px 6px;border:1px solid #dce8f2;background:white;font-size:13px;font-weight:650;min-height:42px;gap:6px}.nf-sidebar-actions button:first-child{color:#fff;background:#0878df;border-color:#0878df}.nf-sidebar-actions button:first-child:hover{background:#0869c6}.nf-sidebar-actions svg{width:17px;height:17px}
.nf-sidebar .nf-sidebar-search{margin:12px 0 6px!important}.nf-sidebar-search input{margin-top:0!important;border-radius:11px!important;min-height:40px;padding-block:7px!important;font-size:13px!important}.nf-sidebar-search svg{top:11px;width:18px;height:18px}.nf-sidebar .nf-sidebar-status{font-size:10px;line-height:1.7;min-height:18px;margin:7px 2px 10px;color:#788da0}
.nf-sidebar-body{min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:0 12px 12px;scrollbar-width:thin}.nf-sidebar-section-title{font-size:11px;font-weight:600;margin:8px 10px 6px;color:#7f94a5}.nf-project-group{border:0;padding:0;margin-bottom:12px}.nf-project-group>summary{padding:9px 8px;gap:8px;font-size:13px;font-weight:700;min-width:0}.nf-project-group>summary span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nf-project-group>summary>svg{width:18px;height:18px}.nf-project-group>summary small{min-width:20px;padding:1px 5px;border-radius:7px;background:#edf4fa;color:#67849b;text-align:center;font-size:10px}.nf-project-group>summary::after{margin:0 3px 0 0;font-size:13px}
.nf-sidebar .nf-project-group .nf-current-chat{display:grid;grid-template-columns:18px minmax(0,1fr) 7px;align-items:center;gap:8px;width:calc(100% - 12px);margin:3px 12px 3px 0;padding:10px 9px;min-height:42px;max-height:none;border-radius:10px;background:#eaf3fc;font-size:13px;text-align:right;font-weight:600}
.nf-chat-title{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.7}.nf-active-dot{width:6px;height:6px;border-radius:50%;background:#0878df}
.nf-sidebar-chat-row{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:0;padding:0 12px 0 0;min-width:0}.nf-sidebar-chat-row .nf-shell-open{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;margin:1px 0;padding:10px 9px;min-height:42px;min-width:0;width:100%;font-size:13px;font-weight:450}.nf-sidebar-chat-row .nf-shell-open:hover{background:#f0f6fb;border-radius:10px}.nf-sidebar .nf-current-chat>svg,.nf-sidebar-chat-row .nf-shell-open>svg{width:17px;height:17px;color:#6085a2}.nf-sidebar-chat-row .nf-shell-remove{width:28px;min-width:28px;min-height:34px;padding:5px;color:#90a3b3}.nf-sidebar-chat-row .nf-shell-remove:hover{color:#a34656;background:#fff0f2}.nf-sidebar .nf-project-add-chat{margin:2px 30px 2px 0;padding:4px 5px;min-height:28px;font-size:11px;font-weight:500;color:#5d89ac}.nf-project-add-chat svg{width:14px;height:14px}
.nf-sidebar-manage{margin:12px 6px 0;border-top:1px solid #e9f0f6;padding-top:8px}.nf-sidebar-manage>summary{font-size:11px;padding:7px 2px;font-weight:500;color:#7f94a6}.nf-sidebar-manage label{margin:10px 0!important}.nf-sidebar-manage input{font-size:13px!important;min-height:38px}.nf-sidebar-manage button{width:100%;font-size:11px!important;margin:4px 0;min-height:36px}
.nf-sidebar-foot{border-top:1px solid #e4edf5;background:#f7fbff;padding:8px 12px max(10px,env(safe-area-inset-bottom));min-width:0;max-height:38dvh;overflow-y:auto}.nf-sidebar-tools>summary{cursor:pointer;font-size:11px;padding:7px 7px;color:#7790a4}.nf-sidebar-links{border:0;margin:0;padding:3px 0 7px;display:grid;gap:2px}.nf-sidebar-links a{padding:8px 10px;font-size:12px;font-weight:500;gap:9px}.nf-sidebar-links a svg{width:17px;height:17px}.nf-sidebar-account{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:4px}.nf-sidebar-account a,.nf-sidebar-account button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin:0;padding:7px 3px;min-width:0;font:inherit;font-size:11px;font-weight:550;line-height:1.6;color:#4d708d;background:transparent;border:0;border-radius:10px;min-height:48px;text-decoration:none}.nf-sidebar-account a svg,.nf-sidebar-account button svg{width:19px;height:19px}.nf-sidebar-account a:hover,.nf-sidebar-account button:hover{background:#e9f2fb}
@media(max-height:650px){.nf-sidebar-head{padding-top:12px}.nf-sidebar-head h2{margin-bottom:10px}.nf-sidebar-actions button{min-height:38px}.nf-sidebar .nf-sidebar-status{margin-block:4px 7px}.nf-sidebar-account a,.nf-sidebar-account button{min-height:42px}.nf-sidebar-foot{padding-top:4px}}
.nf-sidebar .nf-sidebar-search input:focus-visible{outline:2px solid #1d7ac4;outline-offset:0;border-color:transparent}
