/* Hosted EveryRole: only what the local app doesn't have. Same tokens (app.css), same calm: color only for meaning. */

/* ---------------------------------------------------------------- header */
.top__spacer { flex: 1; }
.top__nav { display: flex; align-items: center; gap: 18px; font-size: 14.5px; font-weight: 500; }
.top__nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.top__nav a:not(.btn):hover { color: var(--ink); }
.top__app { display: flex; align-items: center; gap: 8px; }
.credits-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px;
                border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500;
                text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.credits-chip:hover { color: var(--ink); border-color: var(--control); }
.credits-chip__n { font-family: var(--mono); color: var(--ink); }
.credits-chip--low .credits-chip__n { color: var(--bad); }
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px;
        height: 32px; border-radius: 8px; text-decoration: none; color: var(--ink-2); border: 1px solid transparent; }
.bell:hover { background: var(--hover); color: var(--ink); }
.bell svg { width: 17px; height: 17px; }
.bell__n { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
           background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 600; display: flex;
           align-items: center; justify-content: center; }

.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 8px;
                cursor: pointer; font-size: 14px; font-weight: 500; max-width: 220px; }
.menu__button:hover, .menu[open] .menu__button { background: var(--hover); }
.menu__ws { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__caret { color: var(--muted); font-size: 11px; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; padding: 6px; border-radius: 10px;
               background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(20, 24, 29, .12);
               display: flex; flex-direction: column; z-index: 10; }
.menu__panel a, .menu__item { display: block; width: 100%; padding: 8px 10px; border-radius: 6px; text-decoration: none;
                              font-size: 14px; color: var(--ink); background: none; border: 0; text-align: left;
                              cursor: pointer; }
.menu__panel a:hover, .menu__item:hover { background: var(--hover); color: var(--ink); }
.menu__panel form { margin: 0; }
.menu__who { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; font-size: 13px;
             border-bottom: 1px solid var(--line-2); overflow: hidden; }
.menu__who strong { font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- small shared bits */
.notice { padding: 12px 14px; border-radius: 10px; background: var(--pass-bg); color: var(--pass); font-weight: 500; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { display: flex; gap: 8px; }
.copy .input { font-size: 13px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
           flex-wrap: wrap; }
.set-row__end { display: flex; align-items: center; gap: 8px; }
.card__head .muted { font-weight: 400; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { width: 18px; height: 18px; accent-color: var(--ink); }

/* ---------------------------------------------------------------- sign in / up */
.auth { min-height: calc(100vh - 56px); display: flex; align-items: flex-start; justify-content: center;
        padding: 10vh 16px 80px; }
.auth__card { width: 100%; max-width: 420px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.auth__alt { font-size: 14px; color: var(--muted); }
.auth__link { font-size: 13px; word-break: break-all; }

/* ---------------------------------------------------------------- settings */
.settings { max-width: 1040px; }
.settings__layout { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.settings__nav { flex: 0 0 180px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 76px; }
.settings__nav a { padding: 8px 10px; border-radius: 7px; text-decoration: none; color: var(--ink-2); font-weight: 500;
                   font-size: 14.5px; }
.settings__nav a:hover { background: var(--hover); color: var(--ink); }
.settings__nav a.is-on { background: var(--shade); color: var(--ink); }
.settings__body { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }

@media (max-width: 640px) {
  .top { gap: 10px; }
  .top__nav { gap: 12px; font-size: 14px; }
  .top__nav a[href="/docs"], .top__nav a[href="/#product"] { display: none; }
  .menu__button { max-width: 130px; padding: 0 6px; }
  .settings__nav { flex: 1 1 100%; flex-direction: row; overflow-x: auto; position: static; }
  .settings__nav a { flex: none; }
  .auth { padding-top: 5vh; }
  .auth__card { padding: 22px 18px; }
  .copy { flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- notifications */
.note-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; text-decoration: none;
            color: var(--ink); }
.note-row:hover { background: #FAFBFC; color: var(--ink); }
.note-row__dot { flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--faint); }
.note-row__dot--broke { background: var(--bad); }
.note-row__dot--fixed, .note-row__dot--first_run { background: var(--pass-bar); }
.note-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.note-row__main strong { font-weight: 500; }
.note-row--new .note-row__main strong { font-weight: 650; }
.note-row__body { font-size: 14px; color: var(--ink-2); }
.note-row__when { flex: none; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- project settings */
.schedule-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.input--select { width: auto; padding-right: 8px; }
.code { margin: 0; padding: 12px 14px; border-radius: 8px; background: #F4F5F7; border: 1px solid var(--line);
        font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; }
.job-state { font-size: 13px; font-weight: 500; color: var(--muted); }
.job-state--done { color: var(--pass); }
.job-state--running, .job-state--queued { color: var(--ink); }
.danger { border-color: var(--bad-line); }
.btn--danger { background: var(--surface); color: var(--bad); border-color: var(--bad-line); }
.btn--danger:hover { background: var(--bad-bg); color: var(--bad); }

/* ---------------------------------------------------------------- plans & credits */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.plan-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.plan-card--current { border: 2px solid var(--ink); }
.plan-card__head { display: flex; flex-direction: column; gap: 2px; }
.plan-card__head strong { font-size: 17px; font-weight: 650; }
.plan-card__price { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
.plan-card__price .muted { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.plan-card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
                   font-size: 14px; color: var(--ink-2); flex: 1; }
.plan-card__list li::before { content: "✓"; color: var(--pass); font-weight: 700; margin-right: 8px; }
.plan-card form, .plan-card .tag { align-self: flex-start; }
.plan-card__for { margin: 0; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--ink-2); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tag--bad { background: var(--bad-bg); color: var(--bad); }
.credits-now { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat__n--sm { font-size: 24px; }
.ledger-amount { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.ledger-amount--plus { color: var(--pass); }

/* The public site (home, pricing, docs) has its own stylesheet: site.css. */

/* ---------------------------------------------------------------- signed-in header on phones */
@media (max-width: 640px) {
  .top { gap: 8px; }
  .top__app { gap: 4px; }
  .credits-chip { padding: 0 8px; }
  .credits-chip__word { display: none; }
  .menu__button { max-width: 112px; }
  .top__sep, .top__project { display: none; }
}

/* ---------------------------------------------------------------- onboarding nudge */
.onboard { max-width: 1120px; margin: 0 auto; padding: 16px 24px 0; }
.shell__main .onboard { max-width: none; margin: 0; padding: var(--space-5) var(--page-inline) 0; }
@media (max-width: 900px) { .shell__main .onboard { padding: var(--space-4) var(--page-gutter-phone) 0; } }
/* the header stays on top and the menu fits the screen below it: its last links always show, nothing empty */
@media (min-width: 901px) {
  .top { position: sticky; top: 0; z-index: 5; }
  .shell .sidebar { top: var(--header-height); height: calc(100dvh - var(--header-height)); }
  .shell .topbar { top: var(--header-height); }
  .shell { min-height: calc(100dvh - var(--header-height)); }  /* a short page doesn't scroll */
}
.onboard__in { padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
               justify-content: space-between; border-color: var(--control); }
.onboard__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-2); }
.onboard__text strong { color: var(--ink); font-size: 15.5px; font-weight: 600; }
.onboard__form { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
@media (max-width: 640px) { .onboard { padding: 12px 16px 0; } }

.card__head { flex-wrap: wrap; }

/* ---------------------------------------------------------------- cookie choice (partials/cookie_banner.html) */
.cookie-banner { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 30; max-width: 440px;
                 display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-5);
                 border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line);
                 box-shadow: var(--toast-shadow); }
.cookie-banner__text { margin: 0; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.cookie-banner__text strong { color: var(--ink); }
.cookie-banner__actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.cookie-banner__actions .btn { flex: 1 1 0; }
@media (max-width: 640px) { .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: none; } }

/* ---------------------------------------------------------------- sign-in pages: split screen (auth/frame.html) */
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.split__form { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-7) var(--space-10); }
.split__brand { align-self: flex-start; }
.split__card { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; gap: var(--space-5); }
.split__head { display: flex; flex-direction: column; gap: var(--space-1-5); }
.split__fields { gap: var(--space-3-5); }
.split__label { display: flex; justify-content: space-between; gap: var(--space-3); }
.split__label a { font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-regular); }
.split__note { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.split__consent { margin: 0; font-size: var(--text-xs); color: var(--faint); }
.split__consent a, .split__legal a { color: inherit; }
.split__legal { margin: 0; font-size: var(--text-xs); color: var(--faint); }
.split__panel { position: relative; overflow: hidden; display: flex; align-items: center; padding: var(--space-12) var(--space-10);
                background: linear-gradient(155deg, var(--brand-700) 0%, var(--site-night) 90%); color: var(--on-brand); }
.split__panel-in { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-5); }
.split__kicker { margin: 0; font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.08em;
                 text-transform: uppercase; color: var(--brand-bright); }
.split__title { margin: 0; font-size: var(--text-6xl); font-weight: var(--weight-heading); line-height: 1.12; letter-spacing: -0.02em; }
.split__host { color: var(--brand-bright); overflow-wrap: anywhere; }
.split__lead { margin: 0; font-size: var(--text-lg); line-height: 1.6; color: var(--brand-100); }
.split__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2-5); }
.split__points li { display: flex; gap: var(--space-2-5); font-size: var(--text-md); color: var(--brand-50); }
.split__points span { color: var(--brand-bright); font-weight: var(--weight-bold); }
.split__shot { width: 100%; border-radius: var(--radius-2xl); box-shadow: var(--site-shadow-shot); }
.split__foot { margin: 0; font-size: var(--text-sm); color: var(--brand-100); }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__panel { display: none; }
  .split__form { padding: var(--space-5) var(--space-4) var(--space-8); gap: var(--space-6); }
  .split__card { margin: 0 auto; }
}

/* ---------------------------------------------------------------- Invite EveryRole on an account card (inbox.py) */
.invite { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3-5) var(--space-4);
          border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.invite__title, .invite__how, .invite__last, .invite__or { margin: 0; }
.invite__how { font-size: var(--text-sm); color: var(--ink-2); }
.invite__row { display: flex; gap: var(--space-2); }
.invite__address { flex: 1 1 auto; min-width: 0; font-size: var(--text-sm); background: var(--surface); }
.invite__last { font-size: var(--text-sm); color: var(--ink-2); overflow-wrap: anywhere; }
.invite__or { font-size: var(--text-xs); color: var(--muted); padding-top: var(--space-1); }

.invite__result { margin: 0; font-size: var(--text-sm); }
.invite__result--ok { color: var(--pass); }
.invite__result--bad { color: var(--bad-ink); }
.invite__note { font-size: var(--text-xs); }

/* ---------------------------------------------------------------- choices (settings → alerts: the check-up email) */
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.choices legend { padding: 0; margin-bottom: var(--space-1-5); }
.choice { display: flex; align-items: flex-start; gap: var(--space-2-5); padding: var(--space-2-5) var(--space-3);
          border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; font-size: var(--text-md); }
.choice:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.choice input { margin-top: var(--space-0-5); accent-color: var(--brand); }
.choice.is-locked { cursor: default; opacity: .7; }
.sep { border: 0; border-top: 1px solid var(--line); margin: var(--space-1) 0; width: 100%; }

.split__or { display: flex; align-items: center; gap: var(--space-3); color: var(--faint); font-size: var(--text-xs);
             text-transform: uppercase; letter-spacing: 0.08em; }
.split__or::before, .split__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.split__providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--space-30)), 1fr));
                    gap: var(--space-2); }

.provider { gap: var(--space-2-5); }
.provider__logo { width: var(--space-4); height: var(--space-4); flex: none; }

/* ---------------------------------------------------------------- the questions after signing up (welcome.html)
   The whole screen, like a modal over the app: who is signed in at the top, one question in the middle. */
.onboarding { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column;
              background: radial-gradient(ellipse at 12% 0%, var(--brand-soft), transparent 55%),
                          radial-gradient(ellipse at 100% 100%, var(--pass-bg), transparent 50%), var(--page); }
.onboarding__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
                   padding: var(--space-5) var(--space-8); }
.onboarding__who { display: inline-flex; align-items: center; gap: var(--space-1-5); font-size: var(--text-sm);
                   color: var(--ink-2); overflow-wrap: anywhere; }
.onboarding__tick { color: var(--pass); font-weight: var(--weight-semibold); }
.onboarding__main { flex: 1; width: 100%; max-width: var(--modal-width); box-sizing: border-box; margin: 0 auto;
                    padding: var(--space-8) var(--space-8) var(--space-10); display: flex; flex-direction: column;
                    justify-content: center; gap: var(--space-4); }
/* each question slides in once when its page shows (no view transition: its snapshot of the old question came back
   over the new one) */
.onboarding__main { animation: question-in calc(var(--page-fade) * 1.5) ease-out both; }
@keyframes question-in { from { opacity: 0; transform: translateX(var(--space-6)); } }
@keyframes onboarding-in { from { opacity: 0; transform: translateY(var(--space-2)); } to { opacity: 1; transform: none; } }
.onboarding__in { margin: 0 0 var(--space-4); align-self: flex-start; padding: var(--space-2-5) var(--space-4);
                  border-radius: var(--radius-full); border: 1px solid var(--pass-bar); background: var(--pass-bg);
                  color: var(--ink); font-size: var(--text-md); }
.onboarding__in::before { content: "✓"; color: var(--pass); font-weight: var(--weight-semibold); margin-right: var(--space-2); }
.onboarding__progress { display: flex; gap: var(--space-1-5); }
.onboarding__progress span { flex: 1; height: var(--space-1-5); border-radius: var(--radius-full); background: var(--line); }
.onboarding__progress span.is-done { background: var(--brand-line); }
.onboarding__progress span.is-now { background: var(--brand); }
.onboarding__count { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.onboarding__title { margin: 0; font-size: var(--site-h2); font-weight: var(--weight-heading); letter-spacing: -0.02em;
                     line-height: 1.15; text-wrap: balance; }
.onboarding__help { margin: 0; font-size: var(--text-lg); color: var(--muted); }
.onboarding__choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--stat-min), 1fr));
                       gap: var(--space-3); margin-top: var(--space-4); }
.onboarding__choice { display: flex; align-items: center; width: 100%; min-height: var(--control-xl); box-sizing: border-box;
                      padding: var(--space-4) var(--space-5); text-align: left; cursor: pointer; list-style: none;
                      font: inherit; font-size: var(--text-lg); font-weight: var(--weight-medium); color: var(--ink);
                      background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
                      transition: border-color var(--page-fade), background var(--page-fade), transform var(--page-fade); }
.onboarding__choice:hover, .onboarding__choice:focus-visible { border-color: var(--brand); background: var(--brand-soft);
                                                               transform: translateY(-1px); outline: none; box-shadow: var(--focus-ring); }
.onboarding__other { grid-column: 1 / -1; }
.onboarding__other summary::-webkit-details-marker { display: none; }
.onboarding__other[open] summary { border-color: var(--brand); background: var(--brand-soft); }
.onboarding__other-row { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.onboarding__other-row .input { flex: 1; min-width: 0; }
.onboarding__foot { padding: var(--space-5) var(--space-8); font-size: var(--text-xs); color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .onboarding__top, .onboarding__foot { padding: var(--space-4) var(--page-gutter-phone); }
  .onboarding__main { justify-content: flex-start; padding: var(--space-4) var(--page-gutter-phone) var(--space-8); }
  .onboarding__choices { grid-template-columns: 1fr; }
  .onboarding__in { border-radius: var(--radius-lg); }
}

/* ---------------------------------------------------------------- after the last question (welcome_done.html) */
.welcome-done { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column;
                align-items: center; justify-content: center; gap: var(--space-5); text-align: center;
                padding: var(--space-10) var(--page-gutter-phone); color: var(--on-brand);
                background: radial-gradient(ellipse at 50% 30%, var(--brand-400), var(--brand) 60%, var(--brand-hover)); }
.welcome-done__logo { display: grid; place-items: center; width: calc(var(--loader-lg) * 1.7); height: calc(var(--loader-lg) * 1.7);
                      border-radius: var(--radius-full); background: var(--surface); box-shadow: var(--toast-shadow); }
.welcome-done__title { margin: 0; font-size: var(--site-display-sm); font-weight: var(--weight-heading); letter-spacing: -0.02em;
                       line-height: 1.15; text-wrap: balance; }
.welcome-done__lead { margin: 0; max-width: 34em; font-size: var(--text-xl); line-height: 1.5; opacity: .92; }
.welcome-done__go { margin-top: var(--space-3); background: var(--surface); color: var(--brand); border-color: var(--surface);
                    font-weight: var(--weight-semibold); }
.welcome-done__go:hover { background: var(--brand-soft); color: var(--brand-hover); }
/* after paying for a plan (billing_welcome.html): what the plan includes, and the waiting state's links */
.welcome-done__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3);
                       width: 100%; max-width: 44em; margin: 0; }
.welcome-done__fact { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-3) var(--space-4);
                      border-radius: var(--radius-lg); background: color-mix(in oklch, var(--on-brand) 12%, transparent);
                      border: 1px solid color-mix(in oklch, var(--on-brand) 22%, transparent); text-align: left; }
.welcome-done__fact dt { font-size: var(--text-sm); opacity: .85; }
.welcome-done__fact dd { margin: 0; font-size: var(--text-xl); font-weight: var(--weight-semibold); }
.welcome-done__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); }
.welcome-done__actions .welcome-done__go { margin-top: 0; }
.welcome-done__alt { color: var(--on-brand); font-weight: var(--weight-medium); text-decoration: underline;
                     text-underline-offset: 3px; }
.welcome-done__alt:hover { color: var(--on-brand); opacity: .85; }
.welcome-done [hidden] { display: none; }
@media (max-width: 640px) {
  .welcome-done__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .welcome-done__fact { padding: var(--space-2-5) var(--space-3); }
  .welcome-done__fact dd { font-size: var(--text-lg); }
}
.welcome-done > * { animation: onboarding-in calc(var(--page-fade) * 3) ease-out both; }
.welcome-done > :nth-child(2) { animation-delay: calc(var(--loader-cycle) * .45); }
.welcome-done > :nth-child(3) { animation-delay: calc(var(--loader-cycle) * .55); }
.welcome-done > :nth-child(4) { animation-delay: calc(var(--loader-cycle) * .65); }
@media (prefers-reduced-motion: reduce) { .onboarding__main, .welcome-done > * { animation: none; } }

/* ---------- Upgrades at their moment (moments.py, partials/upsell.html): the next plan side by side, one button -- */
.upsell { display: flex; flex-direction: column; gap: var(--space-3); }
.onboard__in.upsell { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--space-3); }
.upsell__text { display: flex; flex-direction: column; gap: var(--space-0-5); font-size: var(--text-sm); color: var(--ink-2); }
.upsell__text strong { color: var(--ink); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.upsell__compare { width: 100%; max-width: var(--pop-width); border-collapse: collapse; font-size: var(--text-sm); }
.upsell__compare th, .upsell__compare td { padding: var(--space-1-5) var(--space-3) var(--space-1-5) 0; text-align: left;
  border-top: 1px solid var(--line); font-weight: var(--weight-regular); }
.upsell__compare thead th { border-top: 0; color: var(--muted); font-weight: var(--weight-medium); }
.upsell__compare tbody th { color: var(--muted); }
.upsell__compare td:last-child, .upsell__compare thead th:last-child { color: var(--ink); font-weight: var(--weight-semibold); }
.upsell__now { color: var(--faint); font-weight: var(--weight-regular); }
.upsell__year { margin: 0; font-size: var(--text-xs); color: var(--muted); }
.upsell__soon { font-size: var(--text-sm); color: var(--ink-2); }
.upsell__ways { margin: 0; padding-left: var(--space-5); font-size: var(--text-sm); color: var(--ink-2);
  display: flex; flex-direction: column; gap: var(--space-1); }
.upsell-pop { position: relative; }
.upsell-pop > summary { list-style: none; }
.upsell-pop > summary::-webkit-details-marker { display: none; }
.upsell-pop__panel { position: absolute; right: 0; top: calc(100% + var(--space-1-5)); z-index: var(--layer-toast);
  width: min(var(--pop-width), calc(100vw - 2 * var(--page-gutter-phone))); box-sizing: border-box; padding: var(--space-4);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--toast-shadow); }
.who__locked { margin-top: var(--space-4); }
.who__locked .upsell { padding: var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface); }

@media (max-width: 640px) {  /* phones: the panel opens under its button, in the page, never off the screen's edge */
  .upsell-pop[open] { flex-basis: 100%; }
  .upsell-pop__panel { position: static; width: auto; margin-top: var(--space-2); box-shadow: none; }
}
