/* Sidebar Sections and their drag grips. The drag look itself is pointer-drag.css (shared); this file maps the app theme onto its tokens
   and styles only what is the sidebar's own. */
#left-sidebar { --paper: var(--surface); --blue: var(--accent); --ink: var(--text); --ink-3: var(--text-dim); --pl-r: 8px; --pd-shadow: 0 12px 30px var(--menu-shadow-color); }
.pd-lifted.sidebar-section > .sidebar-section-entries { display: none !important; }
.pd-lifted.team-entry-wrapper .team-nested-members { display: none !important; }
.pd-lifted .nlc-grip { opacity: 1; }
.pd-lifted .session-menu-btn { display: none; }
.nlc-grip { touch-action: none; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 16px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-3); cursor: grab; opacity: 0; transition: opacity .12s ease-out, background-color .12s ease-out, color .12s ease-out; }
.nlc-grip svg { width: 8px; height: 13px; }
.nlc-grip.nlc-grip { opacity: .38; }
.team-entry:hover .nlc-grip, .session-entry:hover > .nlc-grip, .sidebar-section-header:hover .nlc-grip, .nlc-grip:focus-visible { opacity: 1; }
.nlc-grip:hover, .nlc-grip:focus-visible { color: var(--ink); background: var(--menu-item-hover-bg); }
.nlc-grip:active { cursor: grabbing; }
.nlc-grip:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.sidebar-section-header .nlc-grip { position: static; transform: none; width: 22px; height: 22px; flex: none; border-radius: 6px; }
.section-header-action { display: flex; align-items: center; gap: 2px; }
@media (hover: none) { .nlc-grip { opacity: .75; width: 20px; } }
.nlc-sec { margin: 8px 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: transparent; overflow: hidden; }
.nlc-sec > .sidebar-section-header { background: transparent; padding: 8px 6px 8px 12px; }
.nlc-sec .section-header-main { text-transform: none; letter-spacing: 0; min-width: 0; }
.nlc-sec .section-arrow { color: var(--ink-3); }
.nlc-sec-name { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nlc-sec .section-count { font-size: 11px; letter-spacing: 0; color: var(--ink-3); }
.nlc-sec > .sidebar-section-entries { border-top: 1px solid var(--border); }
.nlc-sec > .sidebar-section-entries > .session-entry:last-child { border-bottom: 0; }
.nlc-sec.is-collapsed > .sidebar-section-entries { display: none; }
.nlc-sec-empty { display: none; padding: 14px 12px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--ink-3); }
.nlc-sec.is-empty > .sidebar-section-entries > .nlc-sec-empty { display: block; }
.nlc-sec-x.nlc-sec-x { opacity: 0; width: 22px; height: 22px; border-radius: 6px; font-size: 15px; line-height: 1; color: var(--ink-3); transition: opacity .12s ease-out, background-color .12s ease-out; }
.sidebar-section-header:hover .nlc-sec-x, .nlc-sec-x:focus-visible { opacity: 1; }
.nlc-sec-x:hover { color: var(--ink); background: var(--menu-item-hover-bg); }
.nlc-sec-input { width: 100%; min-width: 0; box-sizing: border-box; padding: 2px 6px; border: 1px solid var(--blue); border-radius: 5px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; outline: 0; }
.pd-lifted.nlc-sec { background: var(--paper); }
.nlc-newsec-btn { display: block; width: calc(100% - 16px); margin: 2px 8px 10px; padding: 7px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: background-color .12s ease-out, color .12s ease-out; }
.nlc-newsec-btn:hover, .nlc-newsec-btn:focus-visible { color: var(--ink); background: var(--menu-item-hover-bg); }
.nlc-newsec-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
body.pd-dragging .nlc-newsec-btn { display: none; }
.nlc-newsec-drop { margin: 8px 8px 10px; padding: 16px 10px; border: 1px dashed var(--border); border-radius: var(--pl-r, 10px); text-align: center; font-size: 12px; color: var(--ink-3); animation: nlc-fade .16s ease-out; transition: background-color .15s ease-out, color .15s ease-out; }
.nlc-newsec-drop.pd-into { background: color-mix(in srgb, var(--blue) 10%, transparent); color: var(--ink); }
@keyframes nlc-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nlc-newsec-drop { animation: none; } .nlc-grip, .nlc-sec-x, .nlc-newsec-btn, .nlc-newsec-drop { transition: none; } }
