/* Sign-in screen. Uses the app's own colour tokens so it follows light/dark. */
body.cb-locked #app, body.cb-locked #sticky, body.cb-locked #drop, body.cb-locked #scrim { display: none !important; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth[hidden] { display: none; }
.auth-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: grid; gap: 14px; }
.auth-brand { font-weight: 700; font-size: 24px; letter-spacing: -0.01em; margin: 0; }
.auth-sub { color: var(--muted); margin: -8px 0 4px; font-size: 14px; }
.auth-card form { display: grid; gap: 12px; }
.auth-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
.auth-card input { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 15px; color: var(--ink); width: 100%; }
.auth-card .btn.primary { width: 100%; padding: 11px 12px; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.auth-card .btn.primary:disabled { opacity: .6; cursor: wait; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.auth-links button { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.auth-msg { font-size: 14px; border-radius: 8px; padding: 9px 12px; background: var(--accent-soft); color: var(--ink); }
.auth-msg.err { background: var(--warn-soft); color: var(--warn); }
.auth-msg:empty { display: none; }
.mi-acct { padding: 8px 12px 2px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 4px; overflow-wrap: anywhere; }
.auth-devices { display: grid; gap: 12px; }
.auth-devices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auth-devices li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.auth-devices li div { display: grid; flex: 1; min-width: 0; }
.auth-devices small { color: var(--muted); font-size: 12px; }
.auth-sub-box { display: grid; gap: 8px; }
.auth-pay { display: grid; gap: 10px; padding-bottom: 6px; }
.auth-pay p { margin: 0; font-size: 14px; }
.auth-terms { margin: 0; font-size: 12px; color: var(--muted); }
.auth-terms a, .auth-foot a { color: var(--muted); text-underline-offset: 2px; }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
a.mi { color: inherit; text-decoration: none; }
.pay-card { display: grid; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px; background: var(--bg); }
.pay-card.early { border: 2px solid var(--accent); background: var(--accent-soft); }
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pay-badge { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.pay-save { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--accent); color: var(--accent-ink); }
.pay-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; line-height: 1; }
.pay-amount s { font-size: 20px; font-weight: 600; color: var(--muted); text-decoration-thickness: 2px; }
.pay-amount strong { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.pay-amount span { font-size: 15px; color: var(--muted); }
.auth-pay .pay-note { margin: 0; font-size: 14px; color: var(--ink); }
.pay-spots { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.pay-spots .bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pay-spots .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
/* Team invite on the sign-in card */
.auth-join { display: grid; gap: 12px; }
.auth-join[hidden] { display: none; }
.join-team { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); border-radius: 12px; padding: 12px; }
.join-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.join-team small { display: block; color: var(--muted); font-size: 13px; }
.join-team strong { display: block; font-size: 19px; font-weight: 800; overflow-wrap: anywhere; }
.join-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.join-list li { display: flex; gap: 8px; align-items: flex-start; }
.join-list li::before { content: ''; flex: none; width: 12px; height: 7px; margin: 5px 2px 0; border: solid var(--accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.auth-join .btn { width: 100%; padding: 11px 12px; }
.join-no { background: none; border: 0; padding: 2px; color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; justify-self: center; }
/* "My songs | team" above the song list */
.libswitch { display: grid; gap: 6px; }
.libswitch[hidden] { display: none; }
.lib-pills { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); overflow-x: auto; scrollbar-width: none; }
.lib-pills::-webkit-scrollbar { display: none; }
.lib-pills button { flex: 1 0 auto; min-height: 36px; max-width: 100%; border: 0; background: transparent; border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; position: relative; }
.lib-pills button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lib-pills button.new::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.lib-note { font-size: 12px; color: var(--muted); line-height: 1.35; }
/* Team screen */
.team-modal { gap: 12px; }
.tm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tm-head h2 { overflow-wrap: anywhere; }
.tm-body { display: grid; gap: 12px; }
.tm-muted { margin: 0; color: var(--muted); font-size: 14px; }
.tm-card { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.tm-card.tm-invite { border: 2px solid var(--accent); background: var(--accent-soft); }
.tm-card p { margin: 0; }
.tm-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.tm-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.tm-form input, .tm-inv input, .tm-sel { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--bg); color: var(--ink); min-width: 0; }
.tm-pick { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tm-pick .tm-sel { flex: 1; }
.tm-places { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.tm-places .bar { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tm-places .bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.tm-lab { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.tm-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; }
.tm-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.tm-list li:first-child { border-top: 0; }
.tm-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; flex: none; }
.tm-av.lead { background: var(--accent); color: var(--accent-ink); }
.tm-av.inv { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); }
.tm-acts { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.tm-who { flex: 1 1 140px; min-width: 0; overflow-wrap: anywhere; display: grid; }
.tm-who small { color: var(--muted); font-size: 12px; }
.tm-list .tm-sel { height: 34px; }
.tm-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.tm-chip.lead { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tm-chip.co { color: var(--accent); border-color: var(--accent); }
.tm-ok { background: var(--accent-soft); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.tm-err { background: var(--warn-soft); color: var(--warn); border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.tm-share { display: grid; gap: 8px; border: 2px solid var(--accent); border-radius: 12px; padding: 14px; font-size: 14px; }
.tm-share p { margin: 0; color: var(--muted); }
.tm-share p.tm-mailerr { color: var(--ink); font-weight: 600; }
.tm-share.sent strong::before { content: '✓ '; color: var(--accent); }
.tm-share textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; resize: vertical; }
#tmLeave { justify-self: start; }
@media (max-width: 480px) {
  .tm-inv { grid-template-columns: minmax(0, 1fr) auto; }
  .tm-inv input { grid-column: 1 / -1; }
}

/* Plan picker (Just me | Team of 5 | Team of 10) and buying a team plan from the team screen */
.pay-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.pay-plans button { display: grid; gap: 2px; justify-items: center; text-align: center; min-height: 52px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 7px 6px; cursor: pointer; font: inherit; }
.pay-plans button strong { font-size: 14px; }
.pay-plans button span { font-size: 12px; color: var(--muted); }
.pay-plans button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pay-plans button[aria-checked="true"] span { color: var(--ink); }
.tm-buy { gap: 10px; }
.tm-buy .pay-note { margin: 0; font-size: 14px; color: var(--ink); }
.pay-amount.long strong, .tm-buy .pay-amount strong { font-size: 38px; }
.tm-buy .btn.primary { width: 100%; padding: 11px 12px; }
.auth-promo { display: grid; gap: 8px; }
.promo-toggle { background: none; border: 0; padding: 2px; color: var(--accent); font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; justify-self: start; }
.promo-form { display: flex; gap: 8px; }
.promo-form[hidden] { display: none; }
.promo-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.promo-form .btn { flex: none; padding: 10px 16px; }
#payPlans { display: block; }
#payPlans[hidden] { display: none; }
/* Phone number: country code + number (Create account, and the one-time ask after sign-in) */
.phone-in { display: flex; gap: 8px; }
.auth-card .phone-in input:first-child { width: 4.8em; flex: none; text-align: center; }
.auth-phone { display: grid; gap: 12px; }
.auth-phone[hidden] { display: none; }
.auth-phone .btn { width: 100%; padding: 11px 12px; }

/* ProChorus™ wordmark and the loading screen */
.tm { font-size: .45em; font-weight: 600; vertical-align: super; line-height: 0; margin-left: 1px; letter-spacing: 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.auth-card.loading { background: transparent; border-color: transparent; justify-items: center; text-align: center; gap: 18px; }
.auth-card.loading .auth-brand { flex-direction: column; gap: 14px; font-size: 28px; }
.auth-card.loading .auth-brand img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.auth-card.loading .auth-msg { background: transparent; color: var(--muted); padding: 0; }
.auth-card.loading::after, .boot-spin { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: cbSpin .8s linear infinite; }
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg, #f4f6f9); color: var(--ink, #141a24); z-index: 50; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; }
.boot img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.boot-spin { margin-top: 6px; }
@keyframes cbSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-card.loading::after, .boot-spin { animation-duration: 2.4s; } }
.auth-card.loading .auth-foot { display: none; }
