.max-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
}
.max-form .field { flex: 1; margin: 0; }
.max-form input { width: 100%; }
.max-form .btn { flex: none; }
.max-manage { padding: 18px; }
.max-invite { padding: 14px; margin: 12px 0; border-radius: 18px; background: var(--cream); }
.max-invite output { display: block; font-family: var(--font-display); font-weight: 700; font-size: 28px; letter-spacing: .12em; color: var(--ink); }
/* Plain sentence-case labels, never the mono capitals (owner, 2026-11-12). */
.max-form label, .max-invite-login #max-code-form label { font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.max-invite-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.max-access { padding: 12px 14px; }
.max-people .fa-row-t b, #max-invite-recipient { white-space: normal; overflow-wrap: anywhere; }
.max-member-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.max-invite-login #form-sub { overflow-wrap: anywhere; }
.max-invite-login #form-title:focus { outline: none; }
#max-manage-status:empty { display: none; }
@media (max-width: 580px) {
  .max-form { align-items: stretch; flex-direction: column; }
  .max-people .fa-row { flex-wrap: wrap; gap: 8px 12px; }
  /* one button (Remove) stays on the row; two (New code, Cancel invite) go under it */
  .max-people .fa-row:has(.max-member-actions > :nth-child(2)) .max-member-actions { flex-basis: 100%; }
  .max-member-actions .fa-btn { min-height: 44px; }
  .max-invite-login .auth-art { display: none; }
  .max-invite-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Your family on My Account: the people who joined, above the invite line. */
#max-sharing-people { margin: 0 0 12px; }
#max-sharing-copy:empty, #max-sharing-copy[hidden] { display: none; }

/* The people on the plan sit in their own card, above the invite form (2026-11-14). */
.max-people { padding: 8px 10px; }
.max-people .fa-row { padding: 14px 12px; }

/* "Remove Omar?" uses the course's own are-you-sure box: white card, gold Keep,
   red Remove (owner, 2026-11-12: one look everywhere). confirm.css alone draws
   its old dark fallback here, because this page has no course tokens. */
.lsany-confirm-scrim.show { max-width: none; margin: 0; background: rgba(11, 26, 48, .5); }
.lsany-confirm-scrim .lsany-confirm { background: #fff; border: 0; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(11, 26, 48, .65); padding: 26px 22px 20px; max-width: 380px; }
.lsany-confirm-scrim .lsany-confirm .lc-title { font-family: var(--f-disp); font-weight: 800; letter-spacing: -.02em; color: #0E2440; font-size: 20px; }
.lsany-confirm-scrim .lsany-confirm .lc-body { font-family: var(--f-body); color: #4A5B6E; font-size: 15px; }
.lsany-confirm-scrim .lsany-confirm .lc-btn { min-height: 50px; font-family: var(--f-body); font-weight: 700; font-size: 15px; border: 0; border-radius: 999px; box-shadow: none; transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), filter .2s; }
.lsany-confirm-scrim .lsany-confirm .lc-btn:hover { filter: brightness(1.04); }
.lsany-confirm-scrim .lsany-confirm .lc-btn:active { transform: scale(.96); }
.lsany-confirm-scrim .lsany-confirm .lc-cancel, .lsany-confirm-scrim .lsany-confirm .lc-cancel:hover { color: #0E2440; background: linear-gradient(180deg, #FFD95E, #FFC11F 55%, #F5A800); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 12px 22px -12px rgba(245, 168, 0, .9); }
.lsany-confirm-scrim .lsany-confirm .lc-confirm, .lsany-confirm-scrim .lsany-confirm .lc-confirm:hover,
.lsany-confirm-scrim .lsany-confirm .lc-btn.lc-danger, .lsany-confirm-scrim .lsany-confirm .lc-btn.lc-danger:hover { color: #fff; background: linear-gradient(180deg, #F0584A, #DC3626); box-shadow: 0 10px 20px -12px rgba(220, 54, 38, .8); }
.lsany-confirm-scrim .lsany-confirm .lc-btn:focus-visible { outline: 3px solid #FFC11F; outline-offset: 3px; }

/* Page fixes (Ali, 2026-11-14): Open the course sits beside the title instead
   of alone at the bottom, the empty footer collapses, and the invite card says
   how the code works. */
.max-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; }
.max-hero h1 { margin: 0; }
.max-foot:not(:has(#max-manage-status:not(:empty), #max-join-link:not([hidden]))) { display: none; }
.max-steps { margin: 4px 0 10px; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.max-steps li::marker { font-weight: 700; color: #C77800; }
.max-steps[hidden], .max-apple[hidden] { display: none; }
.max-apple { margin-top: 0; }
.max-expired .fa-meta { color: #B5520B; }
@media (max-width: 580px) {
  .max-hero { flex-direction: column; align-items: flex-start; }
}
