/* Effects are part of the selected tab, with no nested panel chrome. */
.mod-tabs-bar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  gap: 0;
  min-width: 0;
}

.tab-fx-strip {
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid #414141;
  container-type: inline-size;
}

.tab-fx-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
}

.tab-fx-toolbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.tab-fx-enable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 4px 0 0;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tab-fx-toolbar .gif-panel-select { flex: 1; width: 0; }
.tab-fx-toolbar .gif-panel-btn { flex: 0 0 auto; }
.tab-fx-toolbar .gif-panel-btn,
.tab-fx-toolbar .gif-panel-select { min-height: 30px; }
.tab-fx-strip [hidden] { display: none !important; }
.tab-fx-search { margin: 0; max-width: 400px; }
.tab-fx-strip .isf-preset-browser-search input[type="search"] { padding: 5px 8px; }

.tab-fx-options { position: relative; align-self: stretch; }
.tab-fx-options > summary {
  cursor: pointer;
  color: #bcbcbc;
  padding: 5px 8px;
  font-size: 0.85em;
  border-radius: 3px;
}
.tab-fx-options > summary:hover { background: #353535; color: #eee; }
.tab-fx-options[open] > summary { color: #e6e6e6; background: #353535; }
.tab-fx-options-body {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 30;
  box-sizing: border-box;
  width: min(360px, 100cqw);
  max-height: min(480px, 65vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid #555;
  border-radius: 5px;
  background: #272727;
  box-shadow: 0 8px 24px #0008;
  display: grid;
  gap: 9px;
}
.tab-fx-options-body .gif-panel-checkbox { display: flex; gap: 6px; align-items: center; }
.tab-fx-options.opens-above .tab-fx-options-body { top: auto; bottom: calc(100% + 5px); }
.tab-fx-options-body .isf-preset-browser-toggle,
.tab-fx-options-body .isf-preset-browser-status { margin: 0; }
.tab-fx-imports { display: flex; flex-wrap: wrap; gap: 6px; }
#tab-fx-audio { display: grid; gap: 8px; border-top: 1px solid #444; padding-top: 10px; }
#tab-fx-audio select { width: 100%; }
#tab-fx-audio small { color: #aaa; }
.tab-fx-status,
.tab-fx-browser > .isf-preset-browser-status { grid-column: 1 / -1; margin: 0; }
.tab-fx-status { color: #a8a8a8; font-size: 0.78em; overflow-wrap: anywhere; }
#isf-presets-status:empty { display: none; }
#isf-presets-status:not(:empty) ~ #isf-file-name { display: none; }
.tab-fx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.tab-fx-strip :is(button, summary, input, select):focus-visible { outline: 2px solid #ffd18f; outline-offset: 2px; }

@media (max-width: 700px) {
  .mod-tabs-row { flex-wrap: wrap; }
  .mod-tab-btn { flex: 1; min-width: 45px; padding: 8px; }
  .mod-tab-copy-paste { margin-left: 0; padding-left: 0; border-left: 0; }
  .mod-tab-hints { display: none; }
}

@container (max-width: 400px) {
  .tab-fx-toolbar { flex-wrap: wrap; }
  .tab-fx-toolbar .gif-panel-select { min-width: 110px; }
  .tab-fx-enable { font-size: 0.85em; }
}
