/* Contract Pilot Connection — small additions for the real-accounts pages (/app/).
 * Everything else comes from ../styles.css so the app matches the site. */
.setup-note, .app-alert {
  padding: 14px 18px; margin: 0 0 18px; border-radius: var(--radius-sm); font-size: 0.92rem;
  background: rgba(232, 180, 74, 0.12); border: 1px solid rgba(232, 180, 74, 0.5);
}
.app-alert.is-info { background: rgba(91, 163, 217, 0.1); border-color: rgba(91, 163, 217, 0.35); }
.app-alert.is-ok { background: rgba(80, 180, 120, 0.12); border-color: rgba(80, 180, 120, 0.45); }
.app-loading { color: var(--cream-muted); font-size: 0.92rem; padding: 18px 0; }
.auth-tabs { margin-top: 6px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--cream-muted); font-size: 0.82rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); }
.google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 12px 18px; border-radius: 999px; font-weight: 600; background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0;
}
.google-btn:hover:not(:disabled) { background: #f4f6f8; }
.google-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.google-btn svg { width: 18px; height: 18px; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 6px; }
.role-pick label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(7, 20, 34, 0.45); cursor: pointer;
}
.role-pick label:has(input:checked) { border-color: var(--gold); background: var(--gold-dim); }
.role-pick small { display: block; color: var(--cream-muted); font-size: 0.8rem; }
.coming-later {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.86rem;
  border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--cream-muted); background: rgba(7, 20, 34, 0.35);
}
.coming-later strong { color: var(--cream); }
.vetting-box {
  margin-top: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: rgba(7, 20, 34, 0.55); border: 1px solid rgba(201, 162, 39, 0.35);
}
.vetting-box h4 { color: var(--gold-light); margin-bottom: 8px; font-size: 1rem; }
.vetting-box ol { margin: 6px 0 10px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; }
.contact-box {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(80, 180, 120, 0.1); border: 1px solid rgba(80, 180, 120, 0.4);
}
.contact-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 0.92rem; margin-top: 6px; }
.contact-box dt { color: var(--cream-muted); }
.trip-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 16px; }
.trip-list button {
  text-align: left; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(7, 20, 34, 0.4);
}
.trip-row { display: flex; align-items: stretch; gap: 8px; }
.trip-row > button { flex: 1; min-width: 0; }
.trip-match { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 2px; flex: 0 0 auto; font-size: 0.85rem; text-align: right; }
.trip-match a { color: var(--gold); white-space: nowrap; }
.trip-row > .trip-del { flex: 0 0 auto; align-self: center; text-align: center; padding: 6px 12px; border-radius: var(--radius-sm); }
.trip-match-status { font-size: 0.75rem; color: var(--sky); white-space: nowrap; }
@media (max-width: 560px) {
  .trip-row { flex-direction: column; gap: 4px; }
  .trip-row > .trip-del { align-self: flex-end; }
  .trip-match { align-items: center; justify-content: flex-start; text-align: left; padding: 0 4px; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .trip-match a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid rgba(201, 162, 39, 0.45); border-radius: 999px; font-weight: 600; }
}
.trip-list button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-dim); }
.saved-chip { font-size: 0.72rem; color: var(--sky); margin-left: 8px; }
.ack-inline { margin: 10px 0; }
.hidden-toggle { margin-top: 12px; }

/* Member page tabs (owner: Trips / Aircraft; pilot: Availability / Pilot Profile) */
.app-tabs { display: flex; gap: 6px; margin: 0 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.app-tabs[hidden] { display: none; }
.app-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: inherit; opacity: 0.7; font: inherit; font-weight: 600; padding: 10px 16px; margin-bottom: -1px; cursor: pointer; }
.app-tab:hover { opacity: 1; }
.app-tab.is-active { opacity: 1; color: var(--gold-light); border-bottom-color: var(--gold-light); }
.app-tab:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; border-radius: 4px; }
.tab-nudge { margin: 0 0 16px; }
.tab-nudge[hidden] { display: none; }

/* Disclaimer reminder when someone confirms without ticking the box */
.ack-reminder { color: var(--gold); font-size: 0.88rem; margin: 6px 0 0; }
.legal-ack.ack-needed { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: var(--radius-sm); }
.legal-ack.ack-flash { animation: ackFlash 0.9s ease 2; }
@keyframes ackFlash { 50% { background: var(--gold-dim); } }
@media (prefers-reduced-motion: reduce) { .legal-ack.ack-flash { animation: none; } }

/* Password-reset banner at the top of the log-in card */
.login-notice { margin: 0 0 16px; font-size: 1rem; font-weight: 600; line-height: 1.45; }
.login-notice.is-ok { background: rgba(80, 180, 120, 0.18); border: 1px solid rgba(80, 180, 120, 0.65); color: var(--cream); }

/* Wrong-password highlight and the inline "Forgot password?" link in the banner */
input[aria-invalid="true"] { border-color: rgba(232, 180, 74, 0.9) !important; box-shadow: 0 0 0 2px rgba(232, 180, 74, 0.25); }
.login-notice .notice-link { font: inherit; font-weight: 700; text-decoration: underline; color: var(--gold-light, var(--gold)); padding: 0; }

/* Phones: the site hides the top nav links under 820px; on member pages keep
 * "My aircraft & trips" / "Matches" / "Intro requests" as a second row. */
@media (max-width: 820px) {
  .nav-inner:has(.app-nav) { height: auto; min-height: var(--nav-h); flex-wrap: wrap; padding: 8px 0; row-gap: 6px; }
  .nav-links.app-nav { display: flex; order: 3; width: 100%; margin-left: 0; gap: 18px; overflow-x: auto; padding-bottom: 2px; }
  .nav-links.app-nav a { font-size: 0.88rem; padding: 6px 0; }
  .nav-inner:has(.app-nav) .nav-session { margin-left: auto; }
}

/* —— Post-trip follow-up (update 2026-10-18k) —— */
.trip-fb { font-weight: 600; }
.trip-fb-done { color: var(--cream-muted); font-size: 0.82rem; }
.post-trip-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.post-trip-due { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 20px; }
.post-trip-due p { margin: 0; }
#fbList { display: flex; flex-direction: column; gap: 10px; }
.narrow-page { max-width: 720px; }
.flew-choice { border: none; padding: 0; margin: 4px 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.flew-choice legend { font-weight: 600; margin-bottom: 8px; color: var(--cream); }
.flew-choice .check-row { flex: 1 1 200px; align-items: center; }
.flew-choice .check-row:has(input:checked) { border-color: var(--gold); background: var(--gold-dim); color: var(--cream); }
.rating-wrap .stars-label { margin: 0; font-size: 0.85rem; }
.field-note.is-error { color: #E8B44A; }
@media (max-width: 560px) {
  .trip-fb { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid rgba(201, 162, 39, 0.45); border-radius: 999px; }
  .post-trip-due .btn { width: 100%; justify-content: center; }
}

/* —— Confirmed trips on calendars (update 2026-10-18l) —— */
.cal-day.booked, .cal-day.booked.in-range {
  cursor: not-allowed; color: #0B1D33; font-weight: 700;
  background: repeating-linear-gradient(135deg, #7FB8E6 0 6px, #A9D0F0 6px 12px);
  border-color: #7FB8E6; box-shadow: none;
}
.cal-day.booked:hover { border-color: #7FB8E6; }
.cal-legend { font-size: 0.85rem; color: var(--cream-muted); margin: 0 0 10px; line-height: 1.5; }
.booked-swatch { display: inline-block; vertical-align: -4px; margin-right: 4px; width: 18px; height: 18px; border-radius: 5px; background: repeating-linear-gradient(135deg, #7FB8E6 0 4px, #A9D0F0 4px 8px); flex-shrink: 0; }
.booked-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.booked-item { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 10px 14px;
  border: 1px solid rgba(127, 184, 230, 0.45); border-left: 4px solid #7FB8E6; border-radius: var(--radius-sm); background: rgba(127, 184, 230, 0.08); font-size: 0.9rem; }
.trip-row { flex-wrap: wrap; }
.trip-crew { flex: 1 0 100%; order: 10; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; padding: 2px 4px 4px; font-size: 0.85rem; }
.crew-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 600;
  color: #9FE0B5; background: rgba(76, 175, 110, 0.14); border: 1px solid rgba(76, 175, 110, 0.45); }
.cal-add { position: relative; font-size: 0.85rem; }
.cal-add > summary { cursor: pointer; color: var(--gold); font-weight: 600; list-style: none; display: inline-flex; align-items: center; min-height: 32px; }
.cal-add > summary::-webkit-details-marker { display: none; }
.cal-add > summary::before { content: "+"; margin-right: 6px; font-weight: 700; }
.cal-add[open] > summary { color: var(--gold-light); }
.cal-add-menu { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-sm); background: rgba(7, 20, 34, 0.9); }
.cal-add-menu a, .cal-add-menu .link-btn { color: var(--cream); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.cal-add-menu .field-note { margin: 0; font-size: 0.78rem; }
.contact-box + .cal-add { margin-top: 10px; }
@media (max-width: 560px) {
  .trip-row > .trip-del { order: 11; }
  .trip-crew { padding: 0 4px; }
}

/* —— Remove match dialog —— */
.remove-dlg {
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 14px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  background: var(--slate, #1E2A3A);
  color: var(--cream, #F4F1EA);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.remove-dlg::backdrop { background: rgba(7, 20, 34, 0.72); }
.remove-dlg-inner { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.remove-dlg-inner h3 { margin: 0; font-size: 1.15rem; color: var(--gold-light, #E0C05A); }
.remove-dlg .form-actions { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.remove-actions { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 560px) {
  .remove-dlg { width: calc(100% - 24px); }
  .remove-dlg .form-actions .btn { flex: 1 1 auto; }
}

/* —— Owner matches: filter panel —— */
.filter-panel { margin: 0 0 16px; padding: 0; }
.filter-panel > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--gold-light, #E0C05A);
}
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary::after { content: " ▾"; font-weight: 400; opacity: 0.7; }
.filter-panel[open] > summary::after { content: " ▴"; }
.filter-body { padding: 0 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.filter-grid .check-row { grid-column: 1 / -1; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.filter-count { margin: 0; font-size: 0.9rem; color: var(--cream-muted, #C8C4BB); }
.role-badge {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(91, 163, 217, 0.15); color: var(--sky, #5BA3D9); border: 1px solid rgba(91, 163, 217, 0.35);
}
@media (max-width: 700px) {
  .filter-grid { grid-template-columns: 1fr; }
}

/* Crew selection (update 2026-10-19i) */
.intro-status.is-selected { background: rgba(110, 200, 140, 0.10); border-color: rgba(110, 200, 140, 0.45); }
.trip-match-status.needs-pick { color: var(--gold-light); font-weight: 600; }
