@import url("/shared/passport-tokens.css");

/* Document and accessibility */
body.hub-account-opened {
  overflow: hidden;
}
body.hub-account-opened chat-widget {
  visibility: hidden;
}
/* Navigation and page layout */
.staff-bar nav {
  display: flex;
  gap: var(--space-3);
}
.staff-bar nav a {
  color: white;
  text-decoration: none;
}
.staff-nav-toggle {
  display: none;
}
.staff-bar:has(.staff-nav-toggle[aria-expanded="true"]) nav {
  display: flex;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 100;
  flex-wrap: wrap;
  padding: var(--space-3);
  background: var(--color-accent);
}
.staff-bar nav a:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
/* Goals and evidence */
.goal-evidence-media {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.staff-goal-row {
  grid-template-columns: 110px minmax(0,1fr) repeat(3,80px);
}
.evidence-picker {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.evidence-candidate {
  border-bottom: 1px solid var(--color-divider);
  padding: var(--space-3) 0;
}
/* Media and comparisons */
.comparison-source-grid img,.comparison-source-grid video {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
/* Dialogs and inspector */
.inspector-media {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 520px;
}
.modal-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
/* Surface details */
700;900&display=swap');


.hub-reserve-account {
  display: block!important;
  margin: 0 0 var(--space-4)!important;
  color: var(--color-text);
  font-family: var(--font-body);
}
.hub-reserve-account * {
  box-sizing: border-box;
}
.hub-reserve-account button,.hub-reserve-account a {
  font: inherit;
}
.hub-reserve-account :focus-visible {
  outline: 2px solid var(--color-accent)!important;
  outline-offset: 2px!important;
}
.hub-member-lookup:has(.hub-reserve-account) {
  max-width: 1200px;
  padding: 0;
}
.hub-member-lookup:has(.hub-reserve-account)>.hub-member-lookup-title,.hub-member-lookup:has(.hub-reserve-account)>.hub-member-lookup-control,.hub-member-lookup:has(.hub-reserve-account)>.hub-member-lookup-results,.hub-member-lookup:has(.hub-reserve-account)>.hub-member-lookup-hint {
  display: none!important;
}
.hub-booking-bar {
  width: 100%;
  max-width: 1200px;
  min-height: 64px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-bg);
}
.hub-booking-name {
  min-height: 44px;
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 200px;
  min-width: 0;
}
.hub-booking-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent-700);
  font-size: var(--text-xs);
  font-weight: 900;
}
.hub-booking-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hub-booking-copy strong {
  overflow: hidden;
  font-size: var(--text-base);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-booking-dogs {
  min-width: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hub-booking-divider {
  width: 1px;
  height: 24px;
  flex: 0 0 1px;
  background: var(--color-divider);
}
.hub-booking-passport {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.hub-booking-passport::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background: var(--color-accent-2);
}
.hub-account-kicker {
  display: block;
  color: color-mix(in srgb,var(--color-text) 58%,transparent);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hub-account-kicker.coral {
  color: var(--color-accent-2-700);
}
.hub-account-open,.hub-account-close,.hub-account-row,.hub-change-member,.hub-account-balance-action {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hub-account-open {
  min-height: 40px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}
.hub-account-overlay[hidden] {
  display: none;
}
.hub-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 1999;
}
.hub-account-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: color-mix(in srgb,var(--color-accent-900) 40%,transparent);
}
.hub-account-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(440px,92vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--color-divider);
  background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.hub-account-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.hub-account-head>div {
  flex: 1;
}
.hub-account-head h2 {
  margin: 2px 0;
  font-family: var(--font-heading)!important;
  font-size: var(--text-xl)!important;
  line-height: 1.15;
  font-weight: 900!important;
}
.hub-account-head p {
  margin: 0;
  color: color-mix(in srgb,var(--color-text) 60%,transparent);
  font-size: var(--text-xs);
}
.hub-change-member {
  min-height: 44px;
  padding: 0;
  color: var(--color-accent-700);
  font-weight: 700;
  text-decoration: underline;
}
.hub-account-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: var(--text-2xl);
  line-height: 1;
}
.hub-reserve-account .hub-passport-preview {
  margin: var(--space-4) var(--space-6);
  padding: var(--space-3);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: transparent;
  min-height: 0;
  position: relative;
}
.hub-reserve-account .hub-passport-preview-title {
  margin-top: var(--space-1);
  font-family: var(--font-heading)!important;
  font-size: var(--text-lg)!important;
  font-weight: 900!important;
}
.hub-reserve-account .hub-member-sub {
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.45;
}
.hub-reserve-account .hub-passport-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  order: 3;
}
.hub-reserve-account .hub-member-button {
  min-height: 44px!important;
  border: 1px solid var(--color-divider)!important;
  border-radius: var(--radius-md)!important;
  background: transparent!important;
  color: var(--color-text)!important;
}
.hub-reserve-account .hub-passport-actions .hub-member-button:first-child {
  border: 1.5px solid var(--color-accent)!important;
  color: var(--color-accent-700)!important;
}
.hub-reserve-account .hub-passport-thumbnails {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--space-2);
  order: 1;
}
.hub-reserve-account .hub-passport-thumb {
  width: auto;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 6px solid var(--color-surface);
  border-radius: var(--radius-sm);
  outline: 1px solid var(--color-divider);
  background: var(--color-surface);
  box-sizing: border-box;
}
.hub-passport-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg,var(--color-surface) 0 6px,var(--color-bg) 6px 12px);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hub-passport-new {
  top: 5px;
  right: 5px;
  background: var(--color-accent-2);
  font-size: var(--text-xs);
}
.hub-account-section {
  margin: 0 var(--space-6);
  border-top: 1px solid var(--color-text);
}
.hub-account-section+.hub-account-section {
  border-top-color: var(--color-divider);
}
.hub-account-row {
  width: 100%;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  text-align: left;
}
.hub-account-row strong,.hub-account-row small {
  display: block;
}
.hub-account-row strong {
  margin-top: 2px;
  font-size: var(--text-base);
  font-weight: 700;
}
.hub-account-row small {
  margin-top: 2px;
  color: var(--color-accent-2-700);
  font-size: var(--text-xs);
}
.hub-account-chevron {
  font-size: var(--text-xl);
  transition: transform .15s;
}
.hub-account-row[aria-expanded=true] .hub-account-chevron {
  transform: rotate(90deg);
}
.hub-account-panel {
  padding: 0 0 var(--space-3);
}
.hub-account-panel[hidden] {
  display: none;
}
.hub-account-detail {
  margin-bottom: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}
.hub-account-balance-action {
  min-height: 44px;
  padding: 0;
  color: var(--color-accent-700);
  font-weight: 700;
  text-decoration: underline;
}
.hub-reserve-account .hub-household-bar {
  display: grid;
  padding: 0;
  border: 0;
  background: transparent;
}
.hub-reserve-account .hub-household-dogs {
  display: grid;
}
.hub-reserve-account .hub-dog-chip {
  border-radius: var(--radius-md);
  background: transparent;
}
.hub-account-footer {
  margin-top: auto;
  padding: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-sm);
}
.hub-account-footer a {
  color: var(--color-accent-700);
}
.hub-reserve-account [hidden] {
  display: none!important;
}
.hub-reserve-account .hub-passport-count {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-700);
  font-size: var(--text-xs);
  font-weight: 700;
}
.hub-reserve-account .hub-passport-preview .hub-member-label {
  color: var(--color-accent-700);
  font-weight: 700;
}
.hub-reserve-account .hub-account-close {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
}
.hub-reserve-account .hub-account-ack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.hub-reserve-account .hub-ack-compact {
  display: block;
}
.hub-reserve-account .hub-account-drawer>* {
  flex-shrink: 0;
}
.hub-reserve-account .hub-account-ack-row .hub-member-button {
  width: auto;
  min-width: 64px;
  min-height: 44px;
}
.hub-reserve-account [data-passport-preview-status] {
  order: 2;
}
.hub-reserve-account .hub-account-row small {
  color: var(--color-muted);
}
.hub-reserve-account .hub-account-row [data-account-dogs-note] {
  color: var(--color-accent-2-700);
}

@media (max-width:640px) {
  /* Surface details */
  .hub-booking-bar {
    padding: var(--space-2) var(--space-2);
  }
  .hub-account-drawer {
    width: 92vw;
  }
  .hub-account-head {
    padding: var(--space-12) var(--space-3) var(--space-3);
  }
  .hub-booking-dogs,.hub-booking-divider,.hub-booking-passport {
    display: none;
  }
  .hub-reserve-account .hub-passport-preview,.hub-account-section {
    margin-left: var(--space-3);
    margin-right: var(--space-3);
  }
  .hub-reserve-account .hub-member-button,.hub-account-row,.hub-account-open,.hub-account-close,.hub-change-member {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion:reduce) {
  /* Surface details */
  .hub-account-chevron {
    transition: none;
  }
}
