/* Shared conversation and note explorer. Rows own their hit areas. */
.shell[data-view="notes"] .topbar{display:none}
.page[data-view="notes"]{height:var(--vh)}
.explorer{min-width:0;background:var(--rail)}
.explorer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:2px;padding:8px 8px 4px;flex-shrink:0}
.explorer-toolbar>div{display:flex;flex-shrink:0}
.explorer-toolbar button.icon{width:44px;min-width:44px;min-height:44px;padding:13px;border:0;border-radius:3px}
.explorer-toolbar button.icon .ico{width:18px;height:18px}
.explorer-toolbar .explorer-root{flex:1;min-width:44px;min-height:44px;justify-content:flex-start;padding:8px;font-size:13px;font-weight:550;border:0;border-radius:3px;color:var(--muted)}
.explorer-root[aria-pressed="true"]{color:var(--text)}
.explorer .collection-tools{padding:4px 12px 12px;border:0;display:block}
.explorer .history-search{width:100%;padding:0}
.explorer .history-search input{border-radius:4px}
.explorer .explorer-list{padding:0 6px 16px;min-width:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#434343 transparent}
.explorer-tree,.explorer-children{list-style:none;padding:0;margin:0;min-width:0}
.explorer-children{margin-left:15px;padding-left:9px;border-left:1px solid #323232}
.explorer-children[hidden]{display:none}
.explorer-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:stretch;min-width:0;margin:0;border-radius:3px;position:relative}
.explorer-row:hover{background:#262626}
.explorer-row.active,.explorer-row.active:hover{background:#2f2f2f}
.explorer-row.active:before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:2px;background:#b1b1b1;border-radius:1px;pointer-events:none}
.explorer-row.folder-selected{background:#272727}
.explorer .explorer-item{display:flex;align-items:center;gap:6px;min-width:0;width:100%;min-height:44px;border:0;border-radius:3px;padding:8px;margin:0;background:transparent;text-align:left;color:var(--text)}
.explorer .collection-item{padding-left:28px}
.explorer .collection-item.active,.explorer .collection-item:hover{background:transparent}
.explorer .explorer-item strong{flex:1;min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;line-height:1.5}
.explorer .explorer-item>.ico{width:16px;height:16px;flex-shrink:0;color:#b3b3b3}
.explorer .folder-item>.ico{color:#b8b8b8}
.folder-chevron{display:flex;align-items:center;justify-content:center;width:14px;flex-shrink:0}
.folder-chevron .ico{width:14px;height:14px;color:var(--muted)}
.folder-chevron.open .ico{transform:rotate(90deg)}
.explorer .history-menu{align-self:stretch;width:44px;min-width:44px;min-height:44px;padding:13px;border:0;border-radius:3px;background:transparent;color:var(--muted)}
.explorer .history-menu:hover{background:#373737;color:var(--text)}
.explorer .history-menu .ico{width:18px;height:18px}
.explorer .history-status{margin-left:2px}
.explorer-empty{padding:12px 8px 12px 28px;color:var(--muted);font-size:12px;list-style:none}
.explorer .drop-target{background:#343434;outline:1px solid var(--focus);outline-offset:-1px}
.explorer .dragging{opacity:.5}
.explorer button:focus-visible{outline:2px solid var(--focus);outline-offset:-2px;z-index:1}
.explorer-toolbar button:hover{background:#2a2a2a}
.collection-toggle{display:none;flex-shrink:0;color:var(--muted)}
.collection-toggle[aria-expanded="false"] .ico{transform:scaleX(-1)}
@media(min-width:761px){
  .collection-toggle{display:inline-flex;width:44px;min-width:44px;min-height:44px}
  .agent-head{grid-template-columns:44px minmax(0,1fr) auto}
  .page[data-view]>.split.collection-collapsed{grid-template-columns:minmax(0,1fr)}
  .split.collection-collapsed>.collection-pane{display:none}
}
@media(max-width:760px){
  .explorer .explorer-item,.explorer .history-menu{min-height:48px}
  .explorer .explorer-item strong{font-size:14px}
  .explorer .history-search input{font-size:16px}
  .explorer .explorer-toolbar{padding-top:6px}
  .history-drawer .explorer-toolbar{display:flex}
  .explorer .explorer-children{margin-left:15px;padding-left:7px}
}
