/* Configuration controls share one toolbar; the page owns vertical scrolling. */
.main:has(#configView.is-active) { padding: 20px 28px 40px; }
#configView { max-width: 1500px; }
#configView > .page-header { min-height: 40px; margin-bottom: 16px; gap: 16px; }
#configView > .page-header h1 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
#configView .config-tabs { margin: 0; padding: 3px; border: 0; background: #eaf0f4; border-radius: 8px; }
#configView .config-tab-button { min-height: 32px; padding: 0 13px; border: 0; font-size: 12px; }
#configView .config-tab-button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 5px #253e5010; }
.config-workspace-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #dfe8ee; }
.config-workspace-picker { display: flex; align-items: center; gap: 8px; flex: 0 1 290px; min-width: 170px; }
.config-workspace-picker > svg { width: 19px; height: 19px; color: #5a7b8b; }
.config-workspace-picker select { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line-strong); border-radius: 7px; padding: 6px 10px; background: #fff; font-size: 13px; font-weight: 550; }
#configView .config-search-toolbar { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 9px; min-width: 0; margin: 0; }
#configView .config-search-toolbar[hidden] { display: none; }
#configView .config-search-field { flex: 0 1 290px; min-width: 100px; }
#configView .config-search-field input { height: 38px; min-height: 38px; padding-left: 34px; font-size: 12px; background: #fff; }
#configView .config-search-field svg { left: 10px; width: 15px; height: 15px; }
.config-filter-menu { position: relative; flex: 0 0 auto; }
.config-filter-menu > summary { display: flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: #607885; font-size: 12px; }
.config-filter-menu > summary::-webkit-details-marker { display: none; }
.config-filter-menu > summary svg { width: 16px; height: 16px; }
.config-filter-menu.is-filtered > summary { color: var(--teal); border-color: #80b6c9; background: #f1fafd; }
.config-filter-menu.is-filtered > summary::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.config-filter-options { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; display: grid; gap: 12px; width: 240px; max-width: calc(100vw - 36px); padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 32px #243e541c; }
.config-filter-options label { display: grid; gap: 5px; color: #657b89; font-size: 11px; }
.config-filter-options select { width: 100%; min-height: 36px; font-size: 12px; }
.config-filter-options .button { font-size: 12px; }
#configView .config-browser { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
#configView .config-module-nav { padding: 0; gap: 5px; border: 0; box-shadow: none; background: transparent; top: 88px; }
#configView .config-module-button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 10px; border: 0; border-radius: 8px; }
#configView .config-module-button > svg { width: 18px; height: 18px; color: #8196a2; }
#configView .config-module-copy strong { font-size: 12px; font-weight: 500; }
#configView .config-module-button.is-active { box-shadow: none; color: var(--teal-hover); background: #e2f1f6; }
#configView .config-module-button.is-active > svg { color: var(--teal); }
#configView .config-module-button.is-active strong { font-weight: 650; }
#configView .config-module-count { display: none; }
#configView .config-field-list { max-height: none; padding-right: 0; overflow: visible; align-items: start; scrollbar-gutter: auto; }
#configView .config-field-list.is-audio-mode { grid-template-columns: 1fr; gap: 16px; }
#configView .config-results:has(.is-audio-mode) { display: flex; flex-direction: column; }
#configView .config-results:has(.is-audio-mode) > .config-results-header { order: 2; justify-content: flex-end; margin: 0; padding: 12px 16px; }
#configView .config-results:has(.is-audio-mode) > .config-results-header > div:first-child, #configView .config-results:has(.is-audio-mode) #configResultsCount { display: none; }
#configView .config-results:has(.config-audio-processing:not([open])) > .config-results-header { display: none; }
.config-audio-processing { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.config-audio-processing > summary { display: flex; align-items: center; gap: 9px; padding: 14px 17px; color: #718592; font-size: 12px; list-style: none; cursor: pointer; }
.config-audio-processing > summary::-webkit-details-marker { display: none; }
.config-audio-processing > summary svg { width: 16px; height: 16px; }
.config-audio-processing > summary .config-disclosure { margin-left: auto; transition: transform .15s; }
.config-audio-processing[open] .config-disclosure { transform: rotate(90deg); }
.config-processing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 16px 16px; }
#configView .config-field-card { min-height: 120px; padding: 14px; box-shadow: none; }
#configView .config-processing-grid .config-field-card { border: 0; padding: 0; min-height: 0; gap: 10px; }
#configView .config-processing-grid .config-field-key, #configView .config-processing-grid .config-tag { display: none; }
#configView .config-scope-bar { display: inline-flex; width: auto; min-width: 280px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; }
#configView .config-scope-bar .field { width: 280px; }
#configView .config-scope-bar label { font-size: 11px; }
@media (max-width: 1200px) {
  .main:has(#configView.is-active) { padding: 18px 20px 32px; }
  #configView .config-browser { grid-template-columns: 136px minmax(0, 1fr); gap: 14px; }
  #configView .config-module-button { gap: 7px; padding: 8px; }
}
@media (max-width: 950px) {
  #configView .config-browser { grid-template-columns: 1fr; gap: 14px; }
  #configView .config-module-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  #configView .config-module-button { width: auto; flex: 0 0 auto; padding: 8px 11px; }
}
@media (max-width: 680px) {
  .main:has(#configView.is-active) { padding: 16px 12px 28px; }
  #configView > .page-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  #configView > .page-header h1 { font-size: 21px; }
  #configView .config-tabs { width: 100%; }
  .config-workspace-toolbar { flex-wrap: wrap; gap: 10px; margin-bottom: 14px; padding-bottom: 14px; }
  .config-workspace-picker { flex: 1 1 100%; }
  #configView .config-search-toolbar { flex-basis: 100%; }
  #configView .config-search-field { flex: 1; }
  .config-processing-grid { grid-template-columns: 1fr; }
  #configView .config-results-actions { flex-wrap: wrap; gap: 6px; }
  #configView .config-results-actions .button { font-size: 12px; }
}
