/* My Crew uses ORBIT's palette while giving schedules a calm reading surface. */
body[data-view="crew"] .app-shell {
  max-width: 1060px;
  margin: auto;
  padding: 0 max(22px, env(safe-area-inset-left)) 110px;
}
body[data-view="crew"] .topbar {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: 84px;
  pointer-events: auto;
}
body[data-view="crew"] .brand {
  background: none;
  padding: 0;
  font-size: 1.1rem;
}
body[data-view="crew"] .brand .brand-mark {
  display: block;
}
body[data-view="crew"] .heading {
  display: none;
}
body[data-view="crew"] .map-card,
body[data-view="crew"] .map-card[hidden] {
  display: none !important;
}
#crew-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  color: var(--text);
}
.crew-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
}
.crew-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 650;
}
.crew-heading h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.crew-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}
.crew-card,
.crew-flight {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.crew-card {
  padding: 24px;
  margin-bottom: 18px;
}
.crew-card h2 {
  font-size: 1.2rem;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.crew-card p.quiet {
  font-size: 0.95rem;
  line-height: 1.6;
}
.crew-intro {
  max-width: 600px;
  padding: 36px;
  margin: 20px 0;
}
.crew-intro > svg {
  width: 54px;
  height: 54px;
  color: var(--accent);
  margin-bottom: 20px;
}
.crew-intro h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.crew-intro > p {
  line-height: 1.7;
  color: var(--muted);
  max-width: 420px;
}
.crew-intro a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin: 12px 0;
  min-height: 48px;
}
.crew-tabs {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 16px;
  gap: 4px;
  margin: 0 0 26px;
}
.crew-tabs button {
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 24px;
  border-radius: 11px;
  color: var(--muted);
}
.crew-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.crew-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}
.crew-toolbar > div,
.crew-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.crew-flights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crew-flight {
  padding: 20px 22px;
  min-width: 0;
}
.crew-flight-top,
.crew-flight-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--muted);
}
.crew-status {
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--text);
}
.crew-status.crew-airborne {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.crew-route {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
}
.crew-route > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.crew-route > div:last-child {
  text-align: right;
}
.crew-route strong {
  font-size: 2.15rem;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.crew-route span {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.crew-route svg {
  width: 70px;
  height: 24px;
  color: var(--accent);
}
.crew-flight-bottom {
  border-top: 1px solid var(--border);
  padding-top: 15px;
}
.crew-flight-bottom > span:first-child {
  font-weight: 600;
  color: var(--text);
}
.crew-flight-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.crew-flight-actions .text-button {
  font-size: 0.875rem;
  padding: 7px 0;
  min-height: 44px;
}
.crew-event-time {
  font-size: 0.875rem;
  color: var(--accent);
  margin: 12px 0 0;
}
.crew-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 24px;
  border: 1px dashed var(--border);
  border-radius: 22px;
}
.crew-empty svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 18px;
}
.crew-empty h3 {
  font-size: 1.3rem;
  font-weight: 550;
  margin: 0 0 10px;
}
.crew-empty p {
  max-width: 370px;
  color: var(--muted);
  margin: auto;
  font-size: 1rem;
  line-height: 1.7;
}
.crew-footnote {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 18px 0;
}
.crew-note,
.crew-message {
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.crew-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.crew-section-heading h2,
.crew-section-heading h3 {
  margin: 0;
  font-size: 1.2rem;
}
.crew-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.crew-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  flex-shrink: 0;
}
.crew-person-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-wrap: anywhere;
}
.crew-person-copy span {
  color: var(--muted);
  font-size: 0.875rem;
}
.crew-person-actions {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
}
.crew-profile {
  display: flex;
  align-items: end;
  gap: 12px;
}
.crew-profile label {
  margin: 0;
  flex: 1;
}
.crew-profile button {
  margin: 0 0 1px;
  min-height: 48px;
}
.crew-preferences {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 16px 0;
}
.crew-preferences label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
  min-height: 44px;
}
.crew-preferences input,
.crew-import-row input {
  width: 21px;
  height: 21px;
  min-height: 21px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.crew-followed {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.crew-followed > .crew-flight {
  margin-bottom: 12px;
}
.crew-chip {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.crew-dialog {
  width: min(94vw, 560px);
  padding: 26px;
  max-height: 88dvh;
}
.crew-dialog label {
  font-size: 0.9rem;
  line-height: 1.5;
  display: block;
  margin: 16px 0 8px;
}
.crew-dialog input,
.crew-dialog select,
.crew-dialog textarea,
.crew-profile input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  min-height: 48px;
  margin-top: 6px;
}
.crew-dialog textarea {
  resize: vertical;
  font-family: inherit;
}
.crew-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.crew-form-grid > * {
  min-width: 0;
}
.crew-dialog details > summary {
  padding: 14px 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.crew-dialog details {
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.crew-dialog .crew-preferences label {
  display: flex;
  margin: 0;
}
.crew-dialog .crew-preferences input {
  width: 21px;
  min-height: 21px;
  height: 21px;
  margin: 0;
}
.crew-dialog .crew-button-row {
  margin-top: 20px;
}
.crew-upload {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  color: var(--accent);
}
.crew-upload input {
  border: 0;
  background: none;
  padding: 8px 0;
  font-size: 0.85rem;
}
.crew-import-summary {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 22px 0 10px;
}
label.crew-import-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.crew-import-row input {
  width: 21px;
  height: 21px;
  min-height: 21px;
  margin: 0;
}
.crew-import-row span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.crew-import-row strong {
  font-size: 0.95rem;
}
.crew-import-row small {
  font-size: 0.8125rem;
  color: var(--muted);
}
#crew-import-issues {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
#crew-import-issues code {
  white-space: pre-wrap;
  font-size: 0.8125rem;
}
@media (max-width: 620px) {
  body[data-view="crew"] .app-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
  .crew-heading {
    padding-top: 12px;
    align-items: start;
  }
  .crew-heading h1 {
    font-size: 2.15rem;
  }
  .crew-heading > button {
    padding: 7px 10px;
  }
  .crew-flights {
    grid-template-columns: 1fr;
  }
  .crew-toolbar {
    align-items: start;
  }
  .crew-toolbar > span {
    padding-top: 12px;
    white-space: nowrap;
  }
  .crew-toolbar > div {
    gap: 8px;
  }
  .crew-toolbar button {
    font-size: 0.875rem;
    padding: 10px 12px;
  }
  .crew-card {
    padding: 20px;
  }
  .crew-intro {
    padding: 26px;
  }
  .crew-section-heading {
    flex-wrap: wrap;
  }
  .crew-person {
    flex-wrap: wrap;
  }
  .crew-person-actions {
    margin-left: 58px;
  }
  .crew-dialog {
    padding: 22px;
  }
  .crew-flight {
    padding: 18px 20px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  body[data-view="crew"] .topbar {
    height: 70px;
    min-height: 70px;
  }
  body[data-view="crew"] .crew-heading {
    padding-top: 0;
  }
}

.crew-alert-choice {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.crew-alert-choice input {
  width: 20px;
  min-height: 20px;
}
.crew-flight:target,
.crew-flight.crew-highlight {
  outline: 2px solid var(--accent);
}

.tabbar {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(470px, calc(100% - 24px));
}
@media (max-width: 520px) {
  .tabbar button {
    flex-direction: column;
    gap: 3px;
    padding: 5px 2px;
    font-size: 0.7rem;
  }
  .tabbar button svg {
    width: 20px;
    height: 20px;
  }
}
@media (orientation: landscape) and (max-height: 600px) {
  .tabbar {
    width: 208px;
  }
}
