body.boarding-pass-variant .app-bar {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

body.boarding-pass-variant .app-bar__title {
  grid-column: 2;
  max-width: 100%;
}

body.boarding-pass-variant[data-active-view="home"] .app-bar__title {
  grid-column: 1 / 3;
  padding-right: 8px;
}

.app-bar__actions {
  display: flex;
  grid-column: 3;
  grid-row: 1;
  min-width: 48px;
  align-items: center;
  gap: 2px;
}

body.boarding-pass-variant .app-bar__share {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

body.boarding-pass-variant .app-bar__share[hidden] { display: none; }
.app-bar__share svg { width: 20px; height: 20px; }
body.boarding-pass-variant .app-bar__share:active { background: #ffffff29; }
body.family-share-open { overflow: hidden; }

.family-share-dialog {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 430px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 auto;
  padding: 10px 24px max(24px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px 28px 0 0;
  background: #fff;
  color: #191f28;
  font: inherit;
  box-shadow: 0 -12px 48px #0000001a;
}

.family-share-dialog::backdrop { background: #12182299; }
.family-share-handle { width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #d1d6db; }
.family-share-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.family-share-heading h2 { margin: 0; font-size: 23px; line-height: 1.4; letter-spacing: -.7px; }
.family-share-heading h2:focus { outline: none; }
.family-share-close { display: grid; place-items: center; flex: 0 0 44px; height: 44px; margin-right: -12px; border: 0; border-radius: 50%; background: transparent; color: #6b7684; cursor: pointer; }
.family-share-close svg { width: 22px; height: 22px; }
.family-share-description { margin: 10px 0 24px; color: #6b7684; font-size: 15px; line-height: 1.65; word-break: keep-all; }
.family-share-card { display: flex; align-items: center; gap: 14px; padding: 20px 16px; border: 1px solid #e5e8eb; border-radius: 18px; background: #f9fafb; }
.family-share-card-icon { display: grid; flex: 0 0 48px; height: 48px; place-items: center; border-radius: 14px; background: #fee500; color: #102a4c; }
.family-share-card-icon svg { width: 26px; height: 26px; }
.family-share-card p { margin: 0 0 4px; font-size: 12px; line-height: 1.5; color: #6b7684; }
.family-share-card strong { display: block; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.family-share-scope { margin: 14px 2px 24px; color: #6b7684; font-size: 13px; line-height: 1.7; word-break: keep-all; }
.family-share-buttons { display: grid; gap: 10px; }
.family-share-buttons button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.family-share-buttons svg { width: 20px; height: 20px; }
.family-share-primary { background: #fee500; color: #191f28; }
.family-share-secondary { background: #f2f4f6; color: #333d4b; }
.family-share-buttons button:disabled { opacity: .5; cursor: wait; }
.family-share-status { margin: 14px 0 0; color: #4e5968; font-size: 13px; line-height: 1.6; }
.family-share-status:empty { display: none; }
.family-share-manual { margin-top: 16px; }
.family-share-manual label { display: block; margin-bottom: 6px; color: #6b7684; font-size: 13px; }
.family-share-manual input { width: 100%; padding: 12px; border: 1px solid #d1d6db; border-radius: 10px; font: inherit; font-size: 13px; }
.family-share-dialog button:focus-visible, .family-share-dialog input:focus-visible { outline: 2px solid #1265e9; outline-offset: 2px; }

@media (max-width: 360px) {
  body.boarding-pass-variant .app-bar { padding-inline: 8px; }
  body.boarding-pass-variant[data-active-view="home"] .app-bar__title { padding-left: 8px; font-size: 15px; }
  body.boarding-pass-variant .app-bar__share { padding-inline: 5px; gap: 4px; }
  .family-share-dialog { padding-inline: 20px; }
}
