/* Public screener layout (extends gcp-ui tokens from admin.css) */
body.gcp-ui.screener-ui {
  --screener-main-pad: 16px 20px 24px;
}

.screener-ui .screener-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.screener-ui .screener-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--screener-main-pad);
  box-sizing: border-box;
}

.screener-ui .screener-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.screener-ui .screener-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gcp-text-heading);
}

.screener-ui .lang-toggle {
  display: flex;
  gap: 4px;
}

.screener-ui .lang-toggle button {
  border: 1px solid var(--gcp-border);
  background: var(--gcp-card);
  color: var(--gcp-text);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
}

.screener-ui .lang-toggle button.active {
  background: var(--gcp-nav-active-bg);
  border-color: var(--gcp-primary);
  color: var(--gcp-primary);
}

.screener-ui .filter-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screener-ui .filter-panel details {
  border-bottom: 1px solid var(--gcp-border);
  padding-bottom: 8px;
}

.screener-ui .filter-panel summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--gcp-text-heading);
  margin-bottom: 8px;
}

.screener-ui .filter-group {
  margin-bottom: 10px;
}

.screener-ui .filter-group label {
  display: block;
  font-size: 0.8125rem;
  color: var(--gcp-text-secondary);
  margin-bottom: 4px;
}

.screener-ui .filter-group input[type="range"] {
  width: 100%;
}

/* Single-track dual-thumb range slider (Streamlit-style) */
.screener-ui .dual-range {
  position: relative;
  height: 32px;
  margin: 4px 0 8px;
}

.screener-ui .dual-range input[type="range"] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  pointer-events: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  height: 32px;
}

.screener-ui .dual-range input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--gcp-border);
  border-radius: 2px;
}

.screener-ui .dual-range input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--gcp-border);
  border-radius: 2px;
}

.screener-ui .dual-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gcp-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.35);
  margin-top: -6px;
  cursor: pointer;
}

.screener-ui .dual-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gcp-primary);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.35);
  cursor: pointer;
}

.screener-ui .range-pair {
  display: none;
}

.screener-ui .filter-group input[type="number"],
.screener-ui .filter-group select,
.screener-ui .filter-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
}

.screener-ui .filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.screener-ui .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.screener-ui .btn-primary {
  background: var(--gcp-primary);
  color: #fff;
}

.screener-ui .btn-primary:hover {
  background: var(--gcp-primary-hover);
}

.screener-ui .btn-secondary {
  background: var(--gcp-card);
  color: var(--gcp-primary);
  border: 1px solid var(--gcp-border);
}

.screener-ui .results-meta {
  margin-bottom: 8px;
  color: var(--gcp-text-secondary);
  font-size: 0.9375rem;
}

.screener-ui .alert {
  padding: 10px 12px;
  border-radius: var(--gcp-radius);
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.screener-ui .alert-warn {
  background: #fef7e0;
  color: #5f4400;
}

.screener-ui .alert-info {
  background: var(--gcp-nav-active-bg);
  color: var(--gcp-text);
}

.screener-ui .alert-error {
  background: #fce8e6;
  color: var(--gcp-danger);
}

.screener-ui .footer-caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--gcp-text-secondary);
}

.screener-ui #screener-table {
  border: 1px solid var(--gcp-border);
  border-radius: var(--gcp-radius);
  background: var(--gcp-card);
}

.screener-ui .tabulator {
  font-size: 0.8125rem;
  border: none;
}

.screener-ui .tabulator .tabulator-header {
  background: var(--gcp-surface);
  border-bottom: 1px solid var(--gcp-border);
}

.screener-ui .tabulator-row.tabulator-row-even {
  background: #fff;
}

.screener-ui .tabulator-row.tabulator-row-odd {
  background: #fafafa;
}

.screener-ui .bm-multiselect {
  min-height: 80px;
}

.screener-ui .bookmark-checklist {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid var(--gcp-border);
  border-radius: 4px;
  padding: 4px 6px;
  background: var(--gcp-card);
}

.screener-ui .bookmark-check-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  padding: 2px 0;
  cursor: pointer;
}

.screener-ui .tabulator .bm-star-cell {
  cursor: pointer;
  color: var(--gcp-primary);
  font-size: 1.1rem;
  user-select: none;
}

@media (max-width: 768px) {
  .screener-ui .screener-shell {
    flex-direction: column;
  }
  .screener-ui .suite-sidebar {
    max-width: 100%;
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--gcp-border);
  }
  .screener-ui .suite-sidebar-resizer {
    display: none;
  }
}
