/* Directory controls share one neutral style; their active state is explicit. */
.workspace-file-pathbar > button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px;
  width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; margin: 0;
  border: 1px solid transparent; border-radius: 6px; background: transparent;
  color: var(--lm-text-muted, var(--muted)); box-shadow: none; font-size: 13px; line-height: 1;
}
.workspace-file-pathbar > button > i { font-size: 13px; color: inherit; }
.workspace-file-pathbar > button:hover:not(:disabled) { background: var(--panel-soft); color: var(--lm-text-strong, var(--text)); }
.workspace-file-pathbar > button[aria-expanded="true"] { color: var(--lm-primary, var(--accent)); background: var(--lm-primary-soft, var(--panel-soft)); }
.workspace-file-pathbar > button:focus-visible { outline: 2px solid var(--lm-primary, var(--accent)); outline-offset: 1px; }
.workspace-file-pathbar > button:disabled { opacity: .4; cursor: default; }
#workspaceFilesPanel.directory-search-enabled { grid-template-rows: auto auto auto auto minmax(0,1fr) auto; }
#workspaceFilesPanel.directory-search-enabled:has(> .directory-search-form:not([hidden])) { grid-template-rows: auto auto auto auto auto minmax(0,1fr) auto; }
#workspaceFilesPanel.directory-search-enabled:has(> .directory-search-tools:not([hidden])) { grid-template-rows: auto auto auto auto auto auto minmax(0,1fr) auto; }
.directory-search-form { display: flex; flex: 0 0 auto; gap: 6px; align-items: center; padding: 8px 12px; min-width: 0; }
.directory-search-form input {
  min-width: 0; flex: 1; width: 0; height: 34px; padding: 6px 9px;
  border: 1px solid var(--lm-divider, var(--line)); border-radius: 6px;
  background: var(--panel); color: var(--lm-text, var(--text)); font: inherit; font-size: 12px;
}
.directory-search-form input:focus-visible { outline: 2px solid var(--lm-primary, var(--accent)); outline-offset: 1px; }
.directory-search-form .directory-search-close { flex: 0 0 28px; width: 28px; min-width: 28px; height: 30px; min-height: 30px; padding: 0; border-color: transparent; background: transparent; color: var(--lm-text-muted, var(--muted)); font-size: 20px; }
.directory-search-tools { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 6px; padding: 0 12px 6px; }
.directory-search-tools button { min-height: 28px; padding: 3px 9px; font-size: 12px; }
.directory-search-form[hidden], .directory-search-tools[hidden] { display: none; }
.directory-search-result-path { grid-column: 1 / -1; display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 400; color: var(--lm-text-muted, var(--muted)); text-align: left; }
.workspace-file-status[data-state="warning"] { color: var(--lm-text-muted, var(--muted)); }
.file-browser-card .directory-search-form, .file-browser-card .directory-search-tools { padding-inline: 0; }
@media (max-width:600px) {
  .file-browser-heading { align-items:center; gap:8px; }
  .file-browser-heading > div:first-child { flex:1; min-width:0; }
  .file-browser-heading .eyebrow { display:none; }
  .file-browser-heading h2 { white-space:nowrap; font-size:18px; }
  .file-browser-heading .dialog-heading-actions { display:flex; flex-shrink:0; gap:4px; }
  .file-browser-heading .header-action-button, .file-browser-heading .dialog-close {
    position:static; display:inline-flex; align-items:center; justify-content:center;
    flex:0 0 30px; width:30px; min-width:30px; height:32px; min-height:32px; padding:0; margin:0;
  }
  .file-browser-heading .header-action-button > span { display:none; }
  .file-browser-card .file-list-header, #fileList .file-entry { grid-template-columns:minmax(0,1fr) 70px; }
  .file-browser-card .file-list-header > :nth-child(3), #fileList .file-entry > :nth-child(3) { display:none; }
}
