/* ── Selector bar (filters + action buttons) ─────────────────────────────────
 * Floating glass capsule on a light canvas. Controls inherit a frosted look
 * with translucent fills and a soft blue focus ring.
 * ─────────────────────────────────────────────────────────────────────────── */
.selector-bar {
  position: relative;
  z-index: 5;
  padding: 24px var(--container-pad) 4px;
}
.selector-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Left area: wraps freely across multiple rows */
.sel-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 14px;
  align-items: flex-end;
  flex: 1;
  min-width: 0;
}

/* Right area: action buttons */
.sel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  align-self: center;
  padding-top: 2px;
}

.sel-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sel-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sel-ctrl {
  padding: 11px 36px 11px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color .25s, background-color .25s, box-shadow .25s, transform .15s;
  min-height: var(--touch-target);
  width: 100%;
  max-width: 100%;
}
.sel-ctrl:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 48, 135, 0.20);
}
.sel-ctrl:focus {
  outline: none;
  border-color: rgba(0, 48, 135, 0.50);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 48, 135, 0.12), 0 4px 16px rgba(0, 48, 135, 0.10);
}
.sel-ctrl.wide { min-width: 240px; }

.sel-ctrl option {
  background-color: #ffffff;
  color: var(--text);
}

.sel-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.sel-inline .sel-ctrl { min-width: 120px; flex: 1; }

.range-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  min-height: var(--touch-target);
  transition: border-color .2s, background .2s;
}
.range-toggle:hover {
  border-color: rgba(0, 48, 135, 0.20);
  background: #fff;
}
.range-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* ── Action buttons ──────────────────────────────────────────────────────── */
.btn-view {
  position: relative;
  border: 1px solid transparent;
  padding: 11px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  height: 44px;
  min-height: var(--touch-target);
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s, filter .25s;
  letter-spacing: 0.2px;
  overflow: hidden;
  isolation: isolate;
}
/* Sheen sweep on hover */
.btn-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .65s ease;
  pointer-events: none;
  z-index: 1;
}
.btn-view:hover::before { transform: translateX(120%); }

.btn-view {
  background: linear-gradient(135deg, #003087 0%, #4d8bff 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 48, 135, 0.32), inset 0 1px 0 rgba(255,255,255,0.25);
  border-color: rgba(255, 255, 255, 0.18);
}
.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 48, 135, 0.40), inset 0 1px 0 rgba(255,255,255,0.3);
  filter: brightness(1.08);
}
.btn-view:active { transform: translateY(0); }
