/* Shared opt-in controls, matching the analysis toolbar. */
.ui-page-settings-row { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.ui-page-topbar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px; }
#app .ui-page-settings { flex: 0 0 auto; margin-left: auto; padding: 5px 10px; min-height: 30px; border: 1px solid #dbe3ec; border-radius: 6px; background: #fff; color: #64748b; font: inherit; font-size: 12px; font-weight: 600; line-height: 18px; cursor: pointer; white-space: nowrap; }
#app .ui-page-settings:hover { background: #f1f5f9; color: #334155; }
#app .ui-page-settings:focus-visible { outline: 2px solid #0077c7; outline-offset: 2px; }
.ui-filter-bar.ui-filter-bar {
  box-sizing: border-box; min-width: 0; margin-bottom: 18px; padding: 12px 14px;
  border: 1px solid #dbe6f2; border-radius: 12px; background: #f8fbff;
  box-shadow: none; color: #334155; font-family: var(--app-font-family, sans-serif);
}
.ui-filter-heading.ui-filter-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 16px; margin: 0 0 10px; padding: 0; border: 0;
}
.ui-filter-heading :is(h2, h3, h4) { margin: 0; font-size: 13px; font-weight: 700; }
:is(h2, h3, h4).ui-filter-heading { font-size: 13px; font-weight: 700; }
.ui-filter-heading p { margin: 3px 0 0; color: #71839a; font-size: 11px; }
.ui-filter-fields.ui-filter-fields {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 12px; min-width: 0;
}
.ui-filter-field.ui-filter-field {
  display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 0;
  color: #60738d; font-size: 12px; font-weight: 600;
}
.ui-filter-bar :is(input:not([type="checkbox"]):not([type="radio"]), select) {
  box-sizing: border-box; min-height: 34px; max-width: 100%; padding: 6px 9px;
  border: 1px solid #cbd8e6; border-radius: 7px; background: #fff; color: #24344d;
  font-family: inherit; font-size: 13px;
}
.ui-segmented.ui-segmented {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 3px;
  width: fit-content; max-width: 100%; padding: 3px; border: 0; border-radius: 8px;
  background: #eef3f8; box-shadow: none;
}
.ui-segmented .ui-segmented-button {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 1 auto;
  min-height: 34px; margin: 0; padding: 7px 14px; border: 1px solid transparent;
  border-radius: 6px; background: transparent; box-shadow: none; color: #60738d;
  font-family: var(--app-font-family, sans-serif); font-size: 13px; font-weight: 700;
  line-height: 1.3; text-decoration: none; cursor: pointer;
}
.ui-segmented .ui-segmented-button::after { display: none; }
.ui-segmented .ui-segmented-button:hover { background: #ffffffb8; color: #0879c9; }
.ui-segmented .ui-segmented-button:is(.is-active, .active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: #c9e4f7; background: #fff; color: #0879c9; box-shadow: 0 1px 2px #0f172a1f;
}
.ui-segmented .ui-segmented-button:disabled { opacity: .5; cursor: not-allowed; }
:is(.ui-filter-bar, .ui-filter-fields, .ui-filter-field, .ui-segmented, .ui-segmented-button)[hidden] { display: none !important; }
.ui-segmented-button:focus-visible, .ui-filter-bar :is(input, select, button):focus-visible {
  outline: 3px solid #0879c947; outline-offset: 2px;
}
@media (max-width: 640px) {
  .ui-filter-bar.ui-filter-bar { padding: 12px; }
  .ui-filter-field.ui-filter-field { flex-basis: 140px; }
  .ui-segmented .ui-segmented-button { padding-inline: 10px; }
}
