/* Compact cross-page workspace navigation; scrolls horizontally on small phones. */
.workspace-shortcuts {
  width: 100%;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}
.workspace-shortcuts-inner {
  max-width: var(--max);
  margin: auto;
  min-width: 0;
  padding: 10px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.workspace-shortcuts-label {
  flex: none;
  font-size: .75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.workspace-shortcuts-links {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.workspace-shortcuts-links a {
  white-space: nowrap;
  flex: none;
  scroll-snap-align: start;
  font-size: .84rem;
  font-weight: 600;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 40px;
}
.workspace-shortcuts-links a:hover,
.workspace-shortcuts-links a:focus-visible {
  background: var(--surface-2);
  color: var(--text);
}
.workspace-shortcuts-links a[aria-current="page"] {
  color: var(--gold-soft);
  border-color: var(--line);
  background: var(--surface-2);
}
@media (max-width: 700px) {
  .workspace-shortcuts-inner { padding: 8px 12px; display: block; }
  .workspace-shortcuts-label { display: block; margin: 0 0 3px 8px; }
  .workspace-shortcuts-links a { min-height: 44px; }
}

/* Accessible, bounded identity search on mobile, including Safari. */
.parent-identity-results { display: grid; gap: 4px; margin-top: 5px; max-height: min(280px, 42dvh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.parent-identity-results[hidden] { display: none !important; }
.parent-identity-option { display: grid; gap: 4px; width: 100%; min-height: 52px; text-align: left; padding: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line-soft); border-radius: 7px; cursor: pointer; touch-action: manipulation; }
.parent-identity-option small { color: var(--muted); overflow-wrap: anywhere; }
.parent-identity-option:hover, .parent-identity-option:focus-visible { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 1px; }
.parent-identity-selection { display: block; min-height: 1.3em; margin-top: 6px; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.parent-identity-selection[data-selected="true"] { color: var(--text); font-weight: 600; }
.parent-identity-selection[data-error="true"] { color: var(--error, #bc5151); }
@media (max-width: 760px) { .parent-identity-results { max-height: min(260px, 36dvh); } input[data-parent-search-visible] { font-size: 16px !important; } }


/* Staff edit destinations remain discoverable from the mobile Menu, not only
   the horizontally scrolling workspace shortcuts. */
.mobile-nav-panel .mobile-staff-edit-links {
  display: grid;
  gap: 2px;
  margin-block: 12px;
  padding-block: 12px;
  border-block: 1px solid var(--line-soft);
}
.mobile-nav-panel .mobile-staff-edit-links > strong {
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.mobile-nav-panel .mobile-staff-edit-links > a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
}
