/* Find-a-control overlay. Chrome, not a screen: available on every signed-in
   page. Auth screens keep `.nav.hide`, and the header button is suppressed
   there so a parent who is not in yet is not offered a directory of rooms
   they cannot enter. */

.jump-open {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--dusk);
  color: var(--cloud);
  font-weight: 700;
  cursor: pointer;
}
.jump-open-rail {
  width: 100%;
  text-align: left;
  margin: 4px 0 10px;
}

.wrap:has(.nav.hide) #jumpOpenHeader { display: none; }

@media (min-width: 900px) {
  #jumpOpenHeader { display: none; }
}
@media (max-width: 899.98px) {
  #jumpOpenRail { display: none; }
}

.jump-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}
.jump-overlay.hide { display: none; }

.jump-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8vh;
  padding: 16px 16px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--dusk);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 40%, transparent);
}
.jump-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.jump-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.jump-sub {
  margin: 4px 0 0;
  color: var(--haze);
  font-size: 13px;
  line-height: 1.4;
}
.jump-close { flex: 0 0 auto; }
.jump-query { width: 100%; min-height: 44px; }
.jump-list {
  overflow: auto;
  min-height: 120px;
  max-height: min(52vh, 420px);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.jump-group {
  margin: 8px 0 2px;
  padding: 0 10px;
  color: var(--haze);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.jump-row {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cloud);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.jump-row[aria-selected="true"],
.jump-row:hover { background: var(--dusk2); }
.jump-empty {
  margin: 12px 10px;
  color: var(--haze);
  font-size: 14px;
  line-height: 1.4;
}
