/* ============================================================================
 * Heliomath SYSTEM — ported 1:1 from grokkoli_system.css onto the Sunset tokens.
 *
 * PASS 1 (colour port): same selectors, same layout, same document structure,
 * same @keyframes and commented-out blocks as grokkoli_system.css. Every Grokkoli
 * --main-* variable and brand hex was mapped to the nearest Heliomath semantic
 * token (map below) and flagged inline with «was: …».
 *
 * PASS 2a (safe cleanup, this pass): px lengths normalised to rem 1:1 — so type &
 * spacing scale with the user's font-size, with ZERO visual change at default
 * zoom. Dead/commented lines and empty rulesets removed, a few invalid
 * declarations fixed, redundant shorthand collapsed, and font-weights pointed at
 * the --font-weight-* tokens. No geometry shifted. Load order:
 * tokens -> base -> components -> (forms/system/misc). Depends on
 * heliomath_tokens.css; load it first.
 *
 * Kept in px on purpose (matching the tokens file's convention that structure =
 * px, type & spacing = rem): border-radius, border widths, the CSS-triangle
 * notches, box-shadows, transform/perspective, and @media breakpoints.
 *
 * ── STILL DEFERRED TO PASS 2b ──────────────────────────────────────
 *   1. CLASS NAMES: every legacy name is kept verbatim — `.flip-card`,
 *      `.btn-grokkoli-*`, `.grokkoli`/BEM-ish names, ids, everything. Renaming to
 *      the functional (mp-) vocabulary is a separate rename pass.
 *   2. SEMANTIC TOKEN MIGRATION: lengths are rem literals, NOT yet --type-* /
 *      --space-* / --radius-* tokens. Snapping them onto the scale tokens shifts
 *      geometry (fluid sizes, 4px-grid spacing, 16px radii), so it's a redesign,
 *      not this pass.
 *
 * ── COLOUR MAP (Grokkoli -> Sunset) ──────────────────────────────
 *   --main-blue / -hover / -press   -> --accent-primary / -hover / -active
 *   --main-green* / -text / -mint / -> --accent-primary (Sunset has no green; the
 *     -winter-green / -light-green      token doc calls cornflower "positive")
 *   --main-light-winter-green       -> --cornflower-soft (keeps the 2-tone split)
 *   --main-purple / -lavender       -> --accent-primary
 *   --green (undefined bug)         -> --accent-primary
 *   --main-gold (on LIGHT surfaces) -> --flare (coral)
 *   --main-gold / -lemon (on DARK)  -> --flare-on-dark (peach) — e.g. .session_summary*, loader
 *   --main-orange (error/incorrect) -> --flare-active ; is-invalid BORDER -> --flare
 *   greys (steel/light/medium/dark) -> --gray-* / --text-muted / --border(-subtle)
 *     (role-picked: bg->--gray-*, border->--border(-subtle), body text->--text-muted)
 *   --off-white  (page surface)     -> --surface-default
 *   white/#fff/#fafbfc  (card fill) -> --surface-elevated
 *   white text on a dark SURFACE    -> --text-on-dark (body) ; on a FILL -> --text-on-dark-fill
 *   stray hexes (#676869, #888, #212529, #495057, #ced4da, #929799, #eee…) -> per map
 *
 * ⚠ CONSEQUENCE FOR ERIC'S EYE: Sunset has NO green and NO gold, so the ported
 * system loses Grokkoli's green/winter-green (progress bars, dashboards, day
 * blocks, stars) and gold/lemon entirely — success/progress now read as
 * CORNFLOWER and warm/achievement now read as CORAL/PEACH. Every place that
 * happened is flagged inline with «was: …». If you want a real
 * success/warning family instead of reusing cornflower/coral, that's a
 * tokens-file decision — say the word and I'll add a status tier.
 *
 * ⚠ Frosted translucency [ rgba(255,255,255,0.x) ] on the dark surfaces,
 * pure-black overlays/shadows [ rgba(0,0,0,0.x) ], and a couple of decorative
 * one-off values (the navy interstitial button, the teal timeline stop) are kept
 * VERBATIM and flagged «kept» — they're structural/decorative, not brand colour.
 * ========================================================================== */

/*//////////////////*/
/* LEARNER PROFILES */
/*//////////////////*/

.learner-profile-area {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    max-width: 65.9375rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5.9375rem;
}

.learner-profiles-existing {
    margin-bottom: 1.25rem;
}

.learner-profiles {
    justify-content: center;
}

.flip-card {
    background-color: transparent;
    width: 12.5rem;
    height: 12.5rem;
    margin: 1.25rem;
    perspective: 1000px;
  }
  
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 35px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.05);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
/* ...except a DISABLED card (an unprovisioned learner), which stays face-up. Its
 * back carries a "Start Lesson" / "See Progress" pair that is deliberately INERT
 * markup -- learner_profiles.html renders plain <div>s there, not submits -- so
 * flipping to it offers two actions that silently do nothing. Face-up, the grey
 * front is the whole story. (0,4,0), so it out-ranks the rule above; the
 * transition stays declared and simply has nothing to animate. */
.flip-card:hover .flip-card-inner.disabled {
    transform: none;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 35px;
}

.flip-card-front {
    background-color: var(--night);  /* was: --main-blue-press */
    color: var(--text-on-dark);                 /* was: #d8d5e8 (card text on blue) */
    font-size: 1.625rem;
    /* Dark surface. No restatement of --font-weight-regular here, unlike the other dark
     * scopes: the card declares its own weight below, which re-resolves against this
     * ladder (semibold -> 400 on dark) and its label inherits that. */
    --font-weight-light:    var(--font-weight-light-on-dark);
    --font-weight-regular:  var(--font-weight-regular-on-dark);
    --font-weight-medium:   var(--font-weight-medium-on-dark);
    --font-weight-semibold: var(--font-weight-semibold-on-dark);
    --font-weight-bold:     var(--font-weight-bold-on-dark);
    font-weight: var(--font-weight-semibold);
    overflow: hidden;
}
/* Light island: the disabled fill is a LIGHT steel grey, so take the base ladder back. */
.flip-card-inner.disabled .flip-card-front {
    background-color: var(--gray-300);          /* was: --main-medium-steel-grey */
    color: var(--text-on-dark-fill);            /* was: white (label on disabled fill) */
    --font-weight-light:    var(--font-weight-light-on-light);
    --font-weight-regular:  var(--font-weight-regular-on-light);
    --font-weight-medium:   var(--font-weight-medium-on-light);
    --font-weight-semibold: var(--font-weight-semibold-on-light);
    --font-weight-bold:     var(--font-weight-bold-on-light);
}
.flip-card-inner.disabled .flip-card-front:hover {
    cursor: auto;
}
.current-learner .flip-card-front {
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
    background-color: var(--accent-primary-fill);    /* the accent fill (2026-10-12; was --accent-primary-active, true-blue-deeper; before that --main-green-text) */
}
  
.flip-card-back {
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 3px solid var(--night);          /* was: --main-medium-steel-grey */
    transform: rotateY(180deg);
    padding: 0.75rem;
    padding-bottom: 0.5625rem;
}
.current-learner .flip-card-back {
    border: 3px solid var(--accent-primary);    /* was: --main-green */
}
.flip-card-back p {
    margin: 0;
    font-size: 0.875rem;
}
.flip-card-back .btn {
    font-size: 1rem;
    margin: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 10rem;
}
.flip-card-inner.disabled .btn {
    cursor: not-allowed;
}

.flip-card-back .btn.btn-grokkoli-secondary {
    font-size: 0.875rem;
}


.add-learner-block {
    height: 12.5rem;
    width: 12.5rem;
    margin: 1.25rem;
    padding-top: 0.3125rem;
    border-radius: 35px;
    font-size: 7.5rem;
    color: var(--night);               /* was: --main-blue */
    background-color: var(--sand-deep);          /* was: --main-steel-grey (bg) */
}
.add-learner-block:hover {
    cursor: pointer;
    color: var(--accent-primary-hover);         /* was: --main-blue-hover */
    background-color: var(--sand);   /* was: --off-white */
    border: 5px solid var(--sand-deep);            /* was: --main-steel-grey (border) */
    box-sizing: border-box;
    padding-top: 0;
}
.add-learner-block:active {
    cursor: pointer;
    color: var(--accent-primary-active);        /* was: --main-blue-press */
    background-color: var(--surface-default);   /* was: --off-white */
    border: 5px solid var(--sand-deep);            /* was: --main-steel-grey (border) */
    box-sizing: border-box;
}
.add-learner-profile, .confirm-subscription {
    margin: 1.25rem;
}
.confirm-subscription h6 {
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
}
.add-learner-profile li {
    font-size: 0.9375rem;
    margin-right: 1.875rem;
}
.add-learner-profile .field-group > label {
    font-weight: var(--font-weight-semibold);
    margin-top: 0.625rem;
}
@media screen and (min-width: 830px) {
    .add-learner-profile #id_learning_disabilities label {
        margin-bottom: 0.125rem;
    }
}
/* flex-shrink:0 because .single-option-select-field label above is a flex container:
   without it an option whose text wraps to two lines over-constrains the line and
   squashes the box down to its min-width:auto floor -- the UA's intrinsic 13px --
   so single-line options render 16px and wrapped ones 13px. */
.add-learner-profile .single-option-select-field input[type="radio"],
.add-learner-profile .single-option-select-field input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    position: relative;
    top: -0.0625rem;
}
.add-learner-profile .single-option-select-field li label {
    font-weight: var(--font-weight-regular);
    font-size: 0.9375rem;
    margin-top: 0.2rem;
    margin-bottom: 0;
}
.add-learner-profile .btn-grokkoli-primary {
    font-weight: var(--font-weight-semibold);
    float: none;
    width: 100%;
    margin-top: 0.625rem;
}

.learner-profile-entry-container {
    background-color: var(--sand-deep);          /* was: --main-steel-grey (bg) */
    padding: 0.75rem 1.25rem 1.25rem;
    display: inline-block;
    border-radius: 0 38px 38px 38px;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.confirm-subscription .learner-profile-entry-container {
    text-align: center;
}
.confirm-subscription .learner-profile-entry-container form {
    display: flex;
    justify-content: center;
}
.learner-profile-entry-container h4 {
    text-align: left;
}
.learner-profile-entry-container h5 {
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);               /* was: --main-green */
}

.account-prompts {
    margin: 6.25rem auto;
}
.account-prompt {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 2.5rem auto 0;
    max-width: 43.75rem;
    width: 80vw;
    border: 6px dashed var(--sand-deep);    /* was: --main-light-grey (border) */
    border-radius: 40px;
    transition: border-color 0.3s ease;
    padding: 1.875rem 2.5rem 1.25rem;
    background-color: var(--surface-elevated);  /* was: #fafbfc */
}
@media (max-width: 400px) {
    .account-prompt {
        padding: 1.25rem;
    }
}
.account-prompt h4 {
    font-size: calc(1.2rem + 0.5vw);
    margin-bottom: 1.25rem;
}
.account-prompt p {
    font-size: 1.0625rem;
}
.account-prompt a {
    font-size: 1.125rem;
    padding-bottom: 0.5rem;
}

.referral-highlight {
    color: var(--accent-primary);               /* was: --green (undefined) */
    font-size: 1.25rem;
}
.referral-code {
    color: var(--accent-primary);               /* was: --main-purple */
    font-size: 1.25rem;
}
.referral-link-container {
    display: table;
    background-color: var(--sand-deep);          /* was: #eee */
    margin-left: auto;
    margin-right: auto;
    padding: 0.5em 1.2em;
    border-radius: 20px;
    margin-bottom: 0.9375rem;
}
.referral-link {
    font-size: 0.9375rem;
    display: table-cell;
    padding-right: 1em;
}

.referral-link-copy-container {
    display: table-cell;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    color: var(--accent-primary);               /* was: blue */
}
.referral-link-copy {
    background-image: url("../img/clipboard.591844d019e6.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-primary);               /* was: blue */
}
.referral-link-copy-check {
    background-image: url("../img/check.03a3eee9ad50.svg");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    display: none;
}
.referral-show-details {
    color: var(--accent-primary);               /* was: --main-blue */
    cursor: pointer;
    font-size: 1.125rem;
    line-height: 2.5rem;
    /* text-align: center; */
}

.referral-details {
    display: none;
    /* text-align: center; */
}

.referral-status {
    margin-top: 1em;
    font-size: 1.25rem;
    color: var(--accent-primary);               /* was: --green (undefined) */
}

.referral-status-list {
    padding-left: 1.25rem;
}
.referral-status-list li {
    margin-bottom: 0;
}
.referral-status-title {
    width: 10em;
    display: inline-block;
}

.feedback-prompt-area .btn-grokkoli-secondary {
    font-size: 1.25rem;
    margin-top: 0.3125rem;
    margin-left: auto;
    margin-right: auto;
}
.feedback-prompt-area .text-area {
    margin-left: auto;
    margin-right: auto;
}
.feedback-prompt-area h2 {
    color: var(--flare-active);                 /* was: --main-orange */
}

/*/////////////////*/
/* LESSON PROGRESS */
/*/////////////////*/

/* Centred inside the top bar (--question-bar-height, figureone.css). Everything
   inside the pill is in em, so this font-size scales the whole pill: it grows
   with the viewport width up to 16px at 960px, then stops, and keeps shrinking
   on narrower screens. The min() also keeps it short enough to fit the bar
   (1.35em tall) and narrow enough to fit the screen beside the user icon
   (~34em wide). The plain calc() / 1rem lines are for browsers without min(). */
.lesson-progress-area-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: -moz-max-content;
    width: max-content;
    font-size: calc(0.375rem + 1vw);
    font-size: min(calc(0.375rem + 1vw),
                   calc((var(--question-bar-height, 2.5rem) - 6px) / 1.35),
                   calc((100vw - 4.5rem) / 34));
}
@media screen and (min-width: 960px) {
    .lesson-progress-area-container {
        font-size: 1rem;
        font-size: min(1rem, calc((var(--question-bar-height, 2.5rem) - 6px) / 1.35));
    }
}
.lesson-progress-area-container.lesson-progress-chrome-hidden {
    display: none;
}
.lesson-progress-area .correct-answer-count.correct-answer-count-hidden {
    display: none;
}
/* width:fit-content so the pill is sized BY its contents rather than filling its
   parent. As a block-level flex container it took the parent's width, so when the
   row was wider than that -- which Heliomath reaches first, same CSS but a wider
   font -- the star count's digits rendered outside the rounded border. Sizing to
   content also stops justify-content:space-between stretching the three groups
   apart across a box wider than they need. */
.lesson-progress-area {
    position: relative;
    display: flex;
    justify-content: space-between;
    border-radius: 999px;          /* always a true pill — see heliomath_app.css */
    background-color: var(--surface-elevated);  /* was: white (card) */
    padding: 0 0.875em;
    line-height: 1.2;
    min-width: 23.75em;
    width: fit-content;
}
/* Every group keeps the width of its own content -- nothing is given a fixed width
   that under-reports its size to the flex algorithm (a 34px .star-count holding 68px
   of star + digits is exactly how the digits ended up outside the pill). */
.lesson-progress-area > * {
    flex: 0 0 auto;
}


.lesson-progress-area .progress-indicator, .lesson-progress-area .correct-answer-count {
    display: flex;
    align-items: center;
    margin-right: 2.2em;
}
.lesson-progress-area .progress-bar-area {
    min-width: 9.7em;
    width: 100%;
    max-width: 11em;
    height: 0.75em;
    background: var(--gray-200);                /* was: --main-medium-light-grey */
    border-radius: 0.375em;
    margin-top: 0.0625em;
    margin-left: 0.55em;
}
.lesson-progress-area .progress-bar-area .progress-bar {
    height: 0.75em;
    min-width: 0.75em;
    background-color: var(--accent-primary-fill);    /* was: --main-green */
    border-radius: 0.375em;
}
.lesson-progress-area .progress-bar-area .progress-bar.golden {
    background-color: var(--flare);             /* was: --main-gold (on light) */
}
.lesson-progress-area .progress-bar-area .progress-bar-golden {
    background-color: var(--flare);             /* was: --main-gold (on light) */
}

.progress-bar-golden {
    background-color: var(--flare);             /* was: --main-gold (on light) */
}

.lesson-progress-area .correct-answer-count, .lesson-progress-area .star-count {
    display: flex;
    align-items: center;
}
.lesson-progress-area .progress-indicator .label,
.lesson-progress-area .correct-answer-count .label {
    font-size: 0.95em;
    width: max-content;
    color: var(--text-muted);                   /* was: #676869 */
}
.lesson-progress-area .correct-answer-count .correct-answer-count-value, .lesson-progress-area .star-count .star-count-value {
    display: inline-flex;
    font-family: 'Helvetica Neue', arial, sans-serif;
    font-size: 110%;
    color: var(--accent-primary);               /* was: --main-green-text */
    font-weight: var(--font-weight-bold);
    padding-left: 0.45em;
}
.lesson-progress-area .star-count .star-count-value {
    color: var(--flare);                        /* was: --main-gold (on light) */
}

/* Regular progress increment: glow pulse */
.lesson-progress-area .progress-bar-area .progress-bar.increasing {
    animation: greenGlowPulse 1.2s ease;
}
.lesson-progress-area .answer-count .correct-answer-count-value.increasing {
    animation: greenGlowPulse 1.2s ease;
}
@keyframes greenGlowPulse {
    0%   { background-color: var(--accent-primary-fill); }  /* was: --main-green */
    50%  { background-color: var(--accent-primary-fill-hover); }  /* lighter dusk-muted (was --accent-primary-hover; before that --main-light-green) */
    100% { background-color: var(--accent-primary-fill); }  /* was: --main-green */
}

.lesson-progress-area .star-count .star-icon {
    height: 1.125em;
    width: 1.125em;
    /* The icon must CREATE width: as a flex item it otherwise shrinks out of
       the min-content calculation, and the pill ends up exactly one icon-width
       too narrow -- which is how the digits landed outside the border. */
    flex-shrink: 0;
}

/* Star conversion: gold star bulge when green star dissolves into it */
@keyframes starBulge {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.lesson-progress-area .star-count .star-icon.bulging {
    animation: starBulge 0.4s ease;
}

/* Star conversion: "+1" indicator */
.lesson-progress-area .star-count {
    position: relative;
}
.lesson-progress-area .star-count .plus-one {
    position: absolute;
    top: -0.125rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    font-weight: var(--font-weight-bold);
    font-size: 80%;
    color: var(--accent-primary);               /* was: --main-green-text */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.lesson-progress-area .star-count .plus-one.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(-1.1em);
}
.lesson-progress-area .star-count .plus-one.fading {
    opacity: 0;
    transform: translateX(-50%) translateY(-1.7em);
}

/*////////*/
/* SPEECH */
/*////////*/

#main .speaker_container {
    /* background-color: var(--main-medium-light-grey); */
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
}
#main .speaker_container_white {
    background-color:rgba(255, 255, 255, 0.25); /* frosted — kept */
}


/*///////////////*/
/* INTERSTITIALS */
/*///////////////*/

.interstitial {
    z-index: 20;
    /* Making this element position: absolute; hides key buttons on the signup flow for users with very small devices!!! */
    /* position: absolute; */
    overflow: overlay;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    align-items: center;
    text-align: center;
    padding-top: calc(0.5rem + 1vh);
    padding-bottom: calc(1.0625rem + 1vh);
    animation-iteration-count: infinite;
}
@media screen and (min-width: 0px) {
    .interstitial {
        min-height: calc(100vh - 6.5rem - 3.125rem);
    }
}
@media screen and (min-width: 640px) {
    .interstitial {
        min-height: calc(100vh - 6.5rem - 3.125rem);
    }
}

.interstitial-message {
    opacity: 0.85;
    font-size: calc(1.7rem + 1.3vw);
    color: var(--text-on-dark);                 /* was: white (on dark) */
    width: 80vw;
    max-width: calc(45rem + 2vw);
}
.interstitial-message.onboarding-check h2 {
    font-size: calc(1.25rem + 1vw);
    font-weight: 200;
    margin-bottom: 1.25rem;
}
.interstitial-message h3 {
    opacity: 1;
    font-size: calc(1rem + 0.9vw);
    font-weight: 200;
    color: var(--cornflower-softest);
}
.interstitial-message h4 {
    margin-top: 1.875rem;
    margin-bottom: 2.1875rem;
    opacity: 0.6;
}
.interstitial .semi-transparent {
    opacity: 0.5;
    font-size: calc(1.5rem + 1.3vw);
}
/* The quiet action inside an interstitial ("Resend Email" on the confirmation-wait
 * page): the same pill as a primary CTA, dialled back. Deliberately NOT keyed on
 * `.btn-secondary` — bootstrap.min.css owns that class on alpha_base, and its
 * `:hover` / `:not(:disabled):not(.disabled):active` rules out-rank a single-class
 * variant, so the pill turned grey (#5a6268 / #545b62) on hover and press. The
 * label is pinned here rather than inherited: the .btn base label is midnight,
 * which the dimmed fill on this dark field does not carry. */
.interstitial .btn--quiet {
    font-size: min(calc(1.3rem + 0.8vw), 1.875rem);
    opacity: 0.6;
}
.interstitial #say-btn {
    font-size: min(calc(1rem + 1.2vw), 2.1875rem);
}
.interstitial .btn-grokkoli-secondary {
    background-color: rgba(0,35,95,0.8);        /* dark navy translucent — kept */
    border: none;
    opacity: 0.4;
}

/* RECAP DETAILS */

.recap-details {
    display: flex;
    flex-wrap: nowrap;
    margin-top: 8em;
    height: 40%;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}
.lesson-recap-block {
    max-width: 28.125rem;
    background-color: rgb(255, 255, 255, 0.07); /* frosted — kept */
    margin: 3vw 1.5vw 0;
    padding: 2vw 3vw 1vw;
    text-align: left;
    border-radius: 20px;
    font-size: 0.9em;
    /* font-size: calc(9px + 0.6vw); */
}
.badge-title {
    font-size: 1.2em;
}
.lesson-recap-block.centered {
    margin-top: 0;
    margin-bottom: 1.875rem;
    max-width: 20rem;
    min-width: 25vw;
}
.lesson-recap-block .lesson-name {
    color: var(--text-on-dark);                 /* was: white (on dark) */
    font-size: 100%;
    margin-bottom: 0.9375rem;
}
.lesson-recap-block h4 {
    color: var(--accent-primary-hover);         /* was: --main-light-green (on dark) */
}

/*////////////////*/
/* GENERIC PROMPT */
/*////////////////*/

.standard-prompt-area {
    background: var(--surface-elevated);        /* was: white (card) */
    padding: 1.25rem 1.875rem;
    border-radius: 35px;
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    align-items: center;
}

.standard-prompt-area h4{
    margin-top: 0.9em;
    margin-bottom: 0.9em;
}

.vertically-aligned {
    align-items: center;
    margin-top: 2.5rem;
}

.lets-get-started-notifier {
    margin-top: 1.25rem
}

/*//////////////////*/
/* ACCOUNT SETTINGS */
/*//////////////////*/

.settings-box {
    display: flex;
    flex-direction: column;
    max-width: 43.75rem;
    width: 90vw;
    text-align: left;
    background-color: var(--sand-deep);
    margin-top: 1.875rem;
}
.settings-box h3 {
    padding: calc(0.5rem + 1vw) calc(1rem + 1.5vw);
    margin: 0;
    font-size: 1.4rem;
}
.collapsable {
    overflow: hidden;
}
.setting-set {
    display: flex;
    justify-content: space-between;
    padding: calc(0.5rem + 1vw) calc(1rem + 1.5vw);
    border-top: 1px solid var(--sand-deep); /* was: --main-light-grey (border) */
    background-color: var(--surface-elevated);  /* was: white (card) */
}
@media screen and (max-width: 500px) {
    .setting-set.individual-learner-profile-settings {
        flex-direction: column;
        align-items: stretch !important;
    }
}
@media screen and (max-width: 540px) {
    .setting-set.individual-learner-profile-settings.charged {
        flex-direction: column;
        align-items: stretch !important;
    }
}
.setting-set.global {
    align-items: center;
}
/* Three flex children (h5, explanatory <p>, .setting-options holding the button) whose
 * min-content widths sum past the card on phones; with nowrap the button was pushed off
 * the right edge. Gated to narrow screens so desktop sizing is unchanged. See the
 * matching comment in grokkoli_system.css. */
@media screen and (max-width: 620px) {
    .setting-set.global {
        flex-wrap: wrap;
        row-gap: calc(0.5rem + 0.5vw);
    }
    .setting-set.global .setting-options {
        margin-left: auto;
    }
}
.setting-set h5 {
    margin-top: 0.25rem;
    margin-right: calc(0.625rem + 2vw);
    margin-bottom: 0;
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);               /* was: --main-green */
}
.setting-set.individual-learner-profile-settings h5 {
    margin-bottom: 0.625rem;
}
.setting-set.global h5 {
    margin-top: 0;
    font-size: 1.1rem;
}
.learner-settings {
    display: flex;
    flex-direction: column;
}
.setting-set .setting-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: calc(0.95rem + 0.1vw);
}
.setting-set .setting-option.wide {
    align-items: flex-start !important;
}
.setting-set .setting-option.wide p {
    margin-top: 0.25rem;
    margin-bottom: 0.625rem;
}
.setting-set .setting-option.subtitle p {
    font-weight: var(--font-weight-bold);
    margin-top: 1.5em;
}

@media screen and (max-width: 620px) {
    .setting-set .setting-option.wide {
        flex-direction: column;
        align-items: stretch !important;
    }
}
.setting-set .setting-option .multi-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

}

.setting-set .setting-option:not(:last-child) {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
}
.setting-set p {
    margin-bottom: 0;
    margin-right: calc(0.625rem + 0.5vw);
}

.multi-toggle .btn-group-toggle {
    margin-bottom: 0.8125rem;
}

.btn-group-toggle .btn-secondary {
    border: 1px;
    margin-right: 0;
    font-size: calc(0.5625rem + 1vw);
    background-color: var(--gray-300);          /* was: --main-medium-steel-grey */
    padding: calc(0.25rem + 0.2vw) calc(0.6875rem + 0.6vw);
    border-radius: 0;
}
@media screen and (min-width: 600px) {
    .btn-group-toggle .btn-secondary {
        font-size: 0.9375rem;
        padding: 0.3125rem 0.9375rem;
    }
}
.setting-option .btn-group-toggle input[type="radio"] {
    display: none;
}
.setting-option .btn-secondary {
    font-weight: var(--font-weight-semibold);
}
.setting-option .btn-secondary:not(:disabled).active {
    background-color: var(--accent-primary-fill);    /* was: --main-green */
}
.setting-option .btn-secondary.active {
    border-left: 0 solid var(--surface-elevated) !important;  /* was: #fff */
}
.setting-option .on-off-toggle .btn-secondary:last-child:not(.disabled).active {
    background-color: var(--gray-500);          /* was: --main-dark-grey (bg) */
}
.setting-option .btn-secondary:not(:first-child) {
    border-left: 1px solid var(--border);       /* was: #929799 (toggle border) */
}

.skip_question_button {
    font-size: 1em;
    border: none;
    background-color: var(--gray-200);          /* was: --main-medium-light-grey */
    color: var(--accent-primary);               /* was: --main-purple */
    padding-left: 0.8em;
    padding-right: 0.8em;
    padding-top: 0.4em;
    padding-bottom: 0.4em;
    border-radius: 1em;
    font-weight: var(--font-weight-bold);
}

.btn-group-toggle .btn-secondary:first-child {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}
.btn-group-toggle .btn-secondary:last-child {
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}
.warning-popup form .btn-secondary {
    color: var(--accent-primary);               /* was: --main-purple */
}

.right-justified {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- Learner-centric settings: selector + per-learner card --- */
.learner-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: calc(0.5rem + 1vw) calc(1rem + 1.5vw);
    background-color: var(--surface-elevated);  /* was: white (card) */
    border-top: 1px solid var(--border-subtle); /* was: --main-light-grey (border) */
}
.learner-tab {
    border: 1px solid var(--gray-300);          /* was: --main-medium-steel-grey */
    background-color: var(--surface-elevated);  /* was: white (card) */
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
    font-weight: var(--font-weight-semibold);
    font-size: calc(0.9rem + 0.1vw);
    padding: 0.4em 1.1em;
    border-radius: 2em;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.learner-tab:hover {
    border-color: var(--accent-primary);        /* was: --main-green */
    color: var(--accent-primary);               /* was: --main-green */
}
.learner-tab.active {
    background-color: var(--accent-primary-fill);    /* was: --main-green */
    border-color: var(--accent-primary);        /* was: --main-green */
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
}
.learner-panel {
    display: none;
}
.learner-panel.active {
    display: block;
}
/* Each subsection of a learner card stacks vertically (overrides .setting-set's row) */
.learner-card-section {
    flex-direction: column;
    align-items: stretch;
}
.setting-subhead {
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
    margin: 0 0 0.875rem 0;
}
.profile-field-help {
    font-size: 0.75em;
    color: var(--text-caption);                 /* was: #888 */
    margin-top: -0.5rem;
    margin-bottom: 0.875rem;
}
.profile-field .profile-field-control {
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.profile-field .learner-name-input {
    min-width: 8em;
    max-width: 12em;
    border-radius: 0.25rem !important;
}
.profile-field .learner-grade-select {
    min-width: 9em;
    border-radius: 0.25rem !important;
}
.profile-save-btn {
    border-radius: 3em;
    min-width: 5em;
    border: none;
    background-color: var(--btn-accent-fill);   /* true-blue button ramp (was dusk-muted; before that --main-green) */
    color: var(--text-on-dark-fill);            /* was: #fff (on accent fill) */
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    padding: 0.4em 0.9em;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
}
/* Navigation buttons keep the same appearance before and after visiting. */
.learner-profile-area a.profile-save-btn,
.learner-profile-area a.profile-save-btn:visited {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: var(--text-on-dark-fill);
}
.profile-save-btn:not(.profile-save-disabled):hover {
    filter: brightness(0.93);
}
.profile-save-btn.profile-save-disabled {
    background-color: var(--gray-200);          /* was: --main-medium-light-grey */
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
    opacity: 0.6;
    cursor: default;
}
.profile-field-message {
    font-size: 0.8em;
    color: var(--accent-primary);               /* was: --main-green */
    margin: 0;
}
.profile-field-message.profile-field-error {
    color: var(--flare-active);                 /* was: --main-orange */
}

/* Initial assessment: the retake button and its confirmation dialog. Amber rather than
   the accent Save look, because this resets the learner's placement and should read as
   a caution -- the same treatment as the dashboard's Retake Assessment button. */
/* The row button copies .rtd__learner__honing_btn (rt_dashboard.css) exactly. Clear
   Account shares the shape, in red: it is the more destructive of the two. */
.retake-assessment-btn,
.clear-account-btn {
    padding: 0.5em 1em;
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}
.retake-assessment-btn,
.settings-dialog-actions .retake-assessment-confirm {
    background: #fff3cd;
    color: #754500;
    border: 1px solid #b7791f;
}
.retake-assessment-btn:hover:not(:disabled),
.settings-dialog-actions .retake-assessment-confirm:hover:not(:disabled) {
    background: #ffe3a3;
    border-color: #754500;
}
.retake-assessment-btn:focus-visible,
.settings-dialog-actions .retake-assessment-confirm:focus-visible {
    outline: 2px solid #754500;
    outline-offset: 3px;
}
.retake-assessment-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}
.clear-account-btn {
    background: #fde8e8;
    color: #7a1a1a;
    border: 1px solid #c53030;
}
.clear-account-btn:hover:not(:disabled) {
    background: #f9caca;
    border-color: #7a1a1a;
}
.clear-account-btn:focus-visible {
    outline: 2px solid #7a1a1a;
    outline-offset: 3px;
}
/* Dialog buttons: the dashboard's .rtd__placement_dialog_actions layout on top of
   .password_check__overlay_submit -- both fill the row, Cancel outlined in the accent. */
.settings-dialog-actions .password_check__overlay_submit {
    flex: 1;
    width: auto;
}
.settings-dialog-actions .settings-dialog-cancel {
    background: transparent;
    color: var(--accent-primary);               /* was: --main-blue */
    border: 1px solid var(--accent-primary);    /* was: --main-blue */
}
/* Clear Account's confirm: red, like the button that opened the dialog. */
.settings-dialog-actions .clear-account-confirm {
    background: #fde8e8;
    color: #7a1a1a;
    border: 1px solid #c53030;
}
.settings-dialog-actions .clear-account-confirm:hover:not(:disabled) {
    background: #f9caca;
    border-color: #7a1a1a;
}
.settings-dialog-actions .clear-account-confirm:focus-visible {
    outline: 2px solid #7a1a1a;
    outline-offset: 3px;
}
.retake-assessment-dialog {
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
}
.retake-assessment-dialog h5 {
    text-align: center;
}
.retake-assessment-warning {
    font-weight: var(--font-weight-bold, 700);
}
.retake-assessment-intro {
    font-size: 0.85em;
    margin-bottom: 1em;
}
.retake-assessment-survey {
    min-width: 0;
    margin: 0 0 0.5em;
    padding: 0;
    border: 0;
    font-size: 0.9em;
}
.retake-assessment-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}
.retake-assessment-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
}
.retake-assessment-details {
    margin-top: 12px;
    font-size: 0.95em;
    resize: vertical;
}
.retake-assessment-error {
    margin-bottom: 0.5em;
    overflow-wrap: anywhere;
}
.warning-popup .options.settings-dialog-actions {
    flex-wrap: nowrap;
    gap: 12px;
}

/* Learning differences (family accounts): a wrapping row of checkboxes above Save. */
.learning-differences-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.2em;
    margin: 0.4em 0 0.8em;
    font-size: calc(0.95rem + 0.1vw);  /* matches .setting-set .setting-option */
}
.learning-differences-control {
    display: flex;
    align-items: center;
    gap: 0.6em;
}
.learning-differences-message {
    font-size: 0.85em;
}
.learning-differences-options label {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    cursor: pointer;
}
/* Dim notifications when global emails are off */
.notifications-disabled {
    opacity: 0.45;
    pointer-events: none;
}
.notifications-off-hint {
    display: none;
}
.notifications-disabled .notifications-off-hint {
    display: block;
}

/* .drop-down-selector-container {
    display: none;
    height: 0;
    width: 75px;
    animation: fadein 1s ease-in-out;
    animation-name: container-fade-in;
    animation-duration: 1s;
}
.drop-down-selector-container.show {
    display: inline-block;
    height: 56px;
}
@keyframes container-fade-in {
    from {height: 0}
    to {height: 56px}
} */
.drop-down-selector-container select {
    /* opacity: 0; */
    appearance: none;
    /* safari */
    -webkit-appearance: none;
    /* other styles for aesthetics */
    font-size: 1.15rem;
    font-weight: var(--font-weight-semibold);
    color: var(--accent-primary);               /* was: --main-green-text */
    padding: 0.675em 1em 0.675em 1em;
    border: 2px solid var(--accent-primary);    /* was: --main-green-text */
    border-radius: 0.6rem;
    cursor: pointer;
    text-align: center;
}
/* .drop-down-selector-container select.show {
    opacity: 1;
    animation: fadein 1s ease-in-out;
    animation-name: select-fade-in;
    animation-duration: 1s;
}
@keyframes select-fade-in {
    from {opacity: 0}
    to {opacity: 1}
} */
.drop-down-selector-container select.success {
    border: 2px solid var(--accent-primary);    /* was: --main-green-text */
    color: var(--accent-primary);               /* was: --main-green-text */
}

/*////////*/
/* LOADER */
/*////////*/

.loader {
  background-color: transparent;                /* was: --main-color (undefined) */
  overflow: hidden;
  width: 100%;
  height: 100%;
  top: 6.25rem;
  left: 0;
  /* position: absolute; */
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  z-index: 0;
}

.loader__element {
  opacity: 0.7;
  border-radius: 100%;
  border: 3px solid var(--accent-primary-on-dark-active);       /* was: --main-lemon */
  margin: 0.375rem;
}

.loader__element:nth-child(1) {
  animation: preloader .6s ease-in-out alternate infinite;
}
.loader__element:nth-child(2) {
  animation: preloader .6s ease-in-out alternate .2s infinite;
}

.loader__element:nth-child(3) {
  animation: preloader .6s ease-in-out alternate .4s infinite;
}

@keyframes preloader {
  100% { transform: scale(2); }
}

/*///////////////////*/
/* LEARNING PROGRESS */
/*///////////////////*/

.family-learning-progress {
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4.375rem;
    max-width: 56.25rem;
}
.family-learning-progress h1 {
    text-align: center;
}

.family-learning-progress .top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.family-learning-progress .top-row h2 {
    margin-right: 1.25rem;
}
.family-learning-progress .achievement-stars {
    display: flex;
    align-items: center;
    float: right;
}
.family-learning-progress .achievement-stars .stars {
    background-image: url("../img/star-empty-dark-grey.b8f61353ce4f.svg");
    background-size: calc(1.25rem + 1vw);
    opacity: 0.9;
    height: calc(1.25rem + 1vw);
    width: calc(1.25rem + 1vw);
}
.family-learning-progress .achievement-stars .count {
    margin-left: 0.5rem;
    font-size: 1.875rem;
    color: var(--accent-primary);               /* was: --main-winter-green */
    font-weight: var(--font-weight-bold);
}

.learner-progress {
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 1px solid var(--border);            /* was: --main-steel-grey (border) */
    padding: calc(1.5625rem + 1.5vw);
    margin-bottom: 1.875rem;
    border-radius: 4px;
}
@media screen and (min-width: 1000px) {
    .learner-progress {
        padding: 2.5rem;
    }
}
.learner-progress h2 {
    font-size: 2.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);               /* was: --main-winter-green */
    margin-top: 0.625rem;
}
.learner-progress h5 {
    margin-top: 1.875rem;
    margin-right: 0.625rem;
}
.learner-progress p {
    font-size: 0.8125rem;
    margin: 0;
}
.learner-progress strong {
    font-size: 115%;
}
.learner-progress .rolling-7-days {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.875rem;
}
.learner-progress .day-block {
    display: flex;
    flex-direction: column;
    /* height: calc(35px + 3vw);
    width: calc(35px + 3vw); */
    margin-right: 0.625rem;
    margin-bottom: 0.625rem;
    padding: calc(0.3rem + 0.3vw) calc(0.2rem + 0.3vw);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    background-color: var(--gray-100);          /* was: --main-light-grey (bg) */
    border-radius: 3px;
    width: 5.5rem;
    height: 5.5rem;
}

.learner-progress .day-block-day-date {
    font-size: 0.8em;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5em;
}
.learner-progress .day-block.active-day {
    justify-content: center;
    /* height: calc(60px + 4vw);
    width: calc(60px + 4vw); */
    margin-right: 0.625rem;
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
    background-color: var(--accent-primary-fill);    /* was: --main-winter-green */
    width: 5.5rem;
    height: 5.5rem;
    opacity: 0.85;
}
.learner-progress .day-block.active-day:hover {
    opacity: 1;
}
.learner-progress .day-block .correct-answer-count {
    font-size: calc(1rem + 0.8vw);
    line-height: calc(0.9375rem + 1.3vw);
}
@media screen and (min-width: 1000px) {
    /* .learner-progress .day-block {
        height: 65px;
        width: 65px;
    } */
    .learner-progress .day-block.active-day {
        height: 6.25rem;
        width: 6.25rem;
        padding: calc(0.3rem + 0.1875rem);
    }
    .learner-progress .day-block .correct-answer-count {
        font-size: 1.5rem;
        line-height: 1.75rem;
    }
}
.learner-progress .rolling-7-days p {
    max-width: 18.75rem;
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
}
.learner-progress .day-block p {
    font-size: 0.75rem;
    line-height: 0.875rem;
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
}
.learner-progress .grade-progress,
.learner-progress .fact-progress {
    margin-top: 2.5rem;
}
.learner-progress .grade-completion-bar {
    min-width: 13.75rem;
    width: 100%;
    max-width: 31.25rem;
    height: 0.625rem;
    background: var(--gray-200);                /* was: --main-medium-light-grey */
    border-radius: 5px;
    margin-bottom: 3.75rem;
}
.learner-progress .fact-completion-bar {
    min-width: 13.75rem;
    width: 100%;
    max-width: 31.25rem;
    height: 0.625rem;
    background: var(--gray-200);                /* was: --main-medium-light-grey */
    border-radius: 5px;
    margin-right: 0.625rem;
}
.learner-progress .fact-row {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    margin-bottom: 3.75rem;
}
.learner-progress .fact-completion-bar .fact-started-bar {
    position: relative;
    display: flex;
    width: 0.625rem;
    height: 0.625rem;
    background: var(--flare);                   /* was: --main-gold (on light) */
    border-radius: 5px;
}
.learner-progress .fact-completion-bar .fact-completed-bar {
    position: relative;
    width: 0.625rem;
    height: 0.625rem;
    background: var(--cornflower-soft);         /* was: --main-light-winter-green */
    border-radius: 5px;
}
.learner-progress .fact-completion-bar .fact-count-container {
    position: relative;
}
.learner-progress .fact-completion-bar .fact-count {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0%);
    top: 0.75rem;
    text-align: center;
    min-width: 5.625rem;
}
.learner-progress .grade-completion-bar .newly-completed {
    position: relative;
    width: 0.625rem;
    height: 0.625rem;
    background: var(--cornflower-soft);         /* was: --main-light-winter-green */
    border-radius: 5px;
}
.learner-progress .grade-completion-bar .previously-completed {
    width: 0.625rem;
    height: 0.625rem;
    background: var(--accent-primary-fill);          /* was: --main-winter-green */
    border-radius: 5px;
}

.learner-progress .grade-completion-bar .notch {
    position: absolute;
    top: -0.3125rem;
    right: calc(50% - 0.25rem);
    height: 0;
    width: 0;
    border-bottom: 5px solid var(--accent-primary);  /* was: --main-winter-green */
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}
.learner-progress .grade-completion-bar .percent-completed {
    position: absolute;
    top: 0.9375rem;
    right: -1.375rem;
    opacity: 0.85;
    padding: 0.1875rem 0.625rem;
    border-radius: 3px;
    background-color: var(--accent-primary-fill);    /* was: --main-winter-green */
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
    font-size: 1.125rem;
    font-weight: var(--font-weight-bold);
}
.learner-progress ul {
    list-style: none;
    margin-left: 1.25rem;
    padding-left: 0;
}
.learner-progress ul li {
    display: flex;
    align-items: center;
    margin-top: 0.9375rem;
}
.learner-progress ul li:before {
    content: '★';
    margin-right: 0.625rem;
    color: var(--flare);                        /* was: --main-gold (on light) */
    font-size: 90%;
}

.learning-sessions-table {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.learning-sessions-table .learning-session-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.125rem;
    min-width: 6.375rem;
    padding: 0.3125rem 0.625rem;
    font-size: 0.6875rem;
    color: var(--accent-primary);               /* was: --main-winter-green */
    border-radius: 2px;
    border: 1px solid var(--accent-primary);    /* was: --main-winter-green */
}
.learning-sessions-table .learning-session-cell:hover {
    opacity: 0.75;
    cursor: pointer;
}
.learning-sessions-table .learning-session-cell .answers {
    display: flex;
    align-items: baseline;
    flex-direction: row;
}
.learning-sessions-table .learning-session-cell .answers .answer-count {
    font-size: 1.3125rem;
}
.learning-sessions-table .learning-session-cell .minutes {
    font-size: 0.8125rem;
}
.learning-sessions-table .see-more {
    min-width: 6.125rem;
    line-height: 3.125rem;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--accent-primary);               /* was: --main-blue */
}
.learning-sessions-table .see-more:hover {
    cursor: pointer;
    color: var(--accent-primary-hover);         /* was: --main-blue-hover */
}

.math-abilities {
    margin-top: -0.625rem;
    margin-bottom: 3.75rem;
}
.table.math-abilities tr {
    border-bottom: 1px solid var(--border);     /* was: --main-steel-grey (border) */
}
.table.math-abilities th {
    text-align: center;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    border: none;
    padding: 0.5625rem 0;
}
.table.math-abilities thead th {
    padding: 0.75rem 0.625rem;
}
.table.math-abilities th.first-column {
    text-align: left;
    padding: 0.5625rem 0;
    min-width: 21vw;
}
@media screen and (max-width: 800px) {
    .table.math-abilities thead th:not(.first-column) {
        position: relative;
        height: 6.75rem;
        max-width: 0.625rem;
        padding: 0;
    }
    .potential-vertical {
        position: absolute;
        max-width: 0.625rem;
        top: 5.5rem;
        left: 4.3vw;
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
        transform: rotate(-90deg);
        -webkit-transform-origin: 5% 50%;
        -moz-transform-origin: 5% 50%;
        -ms-transform-origin: 5% 50%;
        -o-transform-origin: 5% 50%;
        transform-origin: 5% 50%;
    }
    .table.math-abilities th.first-column {
        min-width: 35vw;
    }
}
@media screen and (min-width: 1000px) {
    .table.math-abilities th.first-column {
        min-width: 21.875rem;
    }
    .table.math-abilities th.first-column {
        min-width: 13.125rem;
    }
}
.table.math-abilities td {
    text-align: center;
    width: 1.875rem;
    font-size: 1.25rem;
    padding: 1.25rem 0;
}
.table.math-abilities th, .table.math-abilities td {
    line-height: 0.9375rem;
    vertical-align: middle;
}

.no-data-state {
    text-align: center;
    font-size: 1.5rem;
    color: var(--accent-primary);               /* was: --main-purple */
    padding: 1.875rem 0 3.75rem 0;
    padding-left: 15%;
    padding-right: 15%;
}
.rolling-weekly-question-count-graph {
    display: flex;
    margin-top: 0.625rem;
}
.week {
    display: flex;
    /* flex-direction: column;
    width: 10%; */
}
.rolling-weekly-question-count-graph .vertical-bar {
    position: relative;
    height: 5.3125rem;
    border-bottom: 1px solid var(--border);     /* was: --main-steel-grey (border) */
}
.rolling-weekly-question-count-graph .week .weekly-question-count {
    position: absolute;
    bottom: -0.0625rem;
    width: 30%;
    background-color: var(--cornflower-soft);   /* was: --main-light-winter-green */
    margin-left: 35%;
    margin-right: 35%;
}
.rolling-weekly-question-count-graph .week:last-child .weekly-question-count {
    background-color: var(--accent-primary-fill);    /* was: --main-winter-green */
}
.rolling-weekly-question-count-legend {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.3125rem;
    text-align: center;
    line-height: 1rem;
    font-size: 0.75rem;
}

/* DETAILED SESSION RECAP */

.session-recap {
    max-width: none;
    margin-top: 4.6875rem;
    margin-bottom: 6.25rem;
    padding-top: 0.625rem;
    padding-left: 4vw;
    padding-right: 4vw;
}
.question-stack {
    height: 70vh;
    overflow-y: auto;
}
.question-stack table {
    max-width: 62.5rem;
    margin-left: auto;
    margin-right: auto;
}
.question-stack table thead {
    position: sticky;
    top: 0;
    font-weight: var(--font-weight-bold);
    background-color: var(--surface-default);   /* was: --off-white */
}
.question-stack table thead td {
    font-size: 85%;
}
.question-stack table tr.kludgy-border  {
    height: 0.125rem;
    background: var(--gray-100);                /* was: --main-steel-grey (bg) */
    padding: 0;
}
.question-stack table tr.kludgy-border td  {
    height: 0;
    padding: 0;
}
.question-stack table tr {
    padding: 0;
}
.question-stack table td {
    text-align: center;
    padding: 0.625rem;
}
.question-stack table td:first-child {
    min-width: 30vw;
    max-width: 50vw;
    text-align: left;
}
.question-stack table tr.learning-mode-change td {
    background-color: var(--gray-100);          /* was: --main-steel-grey (bg) */
    padding-top: 0.1875rem;
    padding-bottom: 0.1875rem;
    text-align: center;
}
.learning-mode-change td:first-child {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}
.learning-mode-change td:last-child {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
.learning-mode-change {
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
}
.mode_NEW_LEARNING, .mode_GENERALIZING {
    color: var(--accent-primary);               /* was: --main-green */
}
/* .mode_CONFIRM_CONFUSION, .mode_REASK_QUESTION {
    color: var(--main-gold);
} */
.mode_TROUBLESHOOTING, .mode_REMEDIATION {
    color: var(--flare-active);                 /* was: --main-orange */
}

/* NOT ENTIRELY SURE WHAT THIS IS...*/

#math-step-list {
    opacity: 0;
    transition: opacity .25s;
    -webkit-transition: opacity .25s;
    font-size: 0.8125rem;
}

.table#math-step-list tr {
    border-bottom: 1px solid var(--gray-200);   /* was: --main-medium-grey */
}

.table#math-step-list th {
    font-size: 0.8125rem;
    font-weight: var(--font-weight-semibold);
    border: none;
    padding: 0.5625rem;
}

#math-step-list span {
    color: var(--gray-400);                     /* was: --main-medium-dark-grey */
}

#math-step-list td .row {
    justify-content: left;
}

#math-step-list td .row .col {
    display: inline-block;
    flex-grow: unset;
    white-space: nowrap;
}

#math-step-list td .row .col.expand-to-available-width {
    flex-grow: 1;
    white-space: normal;
}

#math-step-list td.table-button-cell {
    width: 3.125rem;
}

#math-step-list span {
    color: var(--text-primary);                 /* was: #212529 */
}

#math-step-list .math-lesson {
    max-width: 15.625rem;
}

#math-step-list .example-question {
    max-width: 15.625rem;
}


#math-step-list .template-example {
    max-width: 21.875rem;
}


/* Admin Options styles */

.admin-options-area .btn-grokkoli-secondary {
    color: var(--flare-active);                 /* was: --main-orange */
    font-size: 1rem;
}
.admin-options-area .btn-grokkoli-secondary:hover {
    color: var(--flare-active);                 /* was: --main-orange */
}
.admin-options-area .btn-grokkoli-secondary:active {
    color:  var(--flare-active);                /* was: --main-orange */
}

/*//////////////*/
/* SUBSCRIPTION */
/*//////////////*/

.payment-issue-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    max-width: 46.875rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5.9375rem;
}
.payment-issue-container p {
    font-size: calc(1rem + 0.25vw);
}
.payment-issue-container a {
    font-weight: var(--font-weight-bold);
}

/*/////////////////////*/
/* LEARNING OBJECTIVES */
/*/////////////////////*/

.learner-search-container {
    background-color: var(--gray-100);          /* was: --main-steel-grey (bg) */
    padding: 1.25rem;
    display: inline-block;
    border-radius: 0 38px 38px 38px;
    margin-bottom: 1.25rem;
}
.learner-search-container .row {
    align-items: flex-end;
}
.learner-search-container .field-group {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}
.learner-search-container .form-control {
    height: calc(1.75em + .75rem + 0.125rem);
    padding: 0.4rem 1rem;
    font-size: 1rem;
    border-radius: 20px;
}
.learner-search-container .field-group input {
    max-width: 25rem;
    min-width: 18.75rem;
}
.learner-search-container .btn {
    max-height: 3.75rem;
}

.question-answer-history {
    margin-top: 2.1875rem;
}

.question-answer-history .question-answer {
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--gray-200);   /* was: --main-medium-grey */
}
.question-answer-history .question-answer.header {
    font-size: 1.0625rem;
    font-weight: var(--font-weight-bold);
}

.question-answer-history .learning-mode {
    font-weight: var(--font-weight-bold);
    padding-left: 0;
}
.question-answer-history .question {
    text-align: center;
}

.question-answer-history .answer-correctness {
    font-size: 2.625rem;
}
.question-answer-history .answer-correctness.correct {
    color: var(--accent-primary);               /* was: --main-green */
}
.question-answer-history .answer-correctness.incorrect {
    color: var(--flare-active);                 /* was: --main-orange */
}

/*///////*/
/* POPUP */
/*///////*/

.warning-mask {
    z-index: 1050!important;
    position: fixed;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .1);              /* dim overlay — kept */
    height: 100vh;
    width: 100vw;
    text-align: center;
}
.warning-popup {
    max-width: 25rem;
    width: 50vw;
    min-width: 17.1875rem;
    background-color: var(--surface-elevated);  /* was: #fff (card) */
    padding: 1.875rem;
    border-radius: 25px;
}
.warning-popup .options {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.warning-popup .btn {
    font-size: calc(0.8rem + 0.25vw);
    padding: calc(0.125rem + 0.25vw) calc(0.9375rem + 0.25vw);
    margin-top: 0.625rem;
    margin-right: 0;
    background-color: var(--gray-100);          /* was: --main-steel-grey (bg) */
    border: none;
    color: var(--accent-primary);               /* was: --main-blue */
}

/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/
/* FEEDBACK WIDGET */
/*////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

#feedback-widget-container {
    z-index: 1050;
    position: fixed;
    /* Centre vertically rather than pinning the TOP at 35% — see the matching comment
     * in grokkoli_system.css. The widget is ~475px tall (the form's min-height sets
     * that even while slid off-screen), so top:35% ran it off the bottom of any
     * viewport shorter than ~731px, taking the Feedback tab with it. The cap that
     * handles viewports shorter than the form lives on .feedback-form-container, not
     * here — capping this container makes it a scroll box that hides the tab.
     * feedback_widget.js animates `left` only, so this is safe open and closed. */
    top: 50%;
    transform: translateY(-50%);
    left: -24.375rem;
    width: 28.4375rem;
    padding: 0;
}

.user-feedback-widget {
    align-items: flex-end;
    margin: 0;
}
.feedback-form-container {
    font-size: 0.875rem;
    background-color: var(--surface-elevated);  /* was: white (card) */
    max-width: 24.375rem;
    min-height: 18.75rem;
    /* Cap to the viewport and scroll internally so the widget (and the Feedback tab
     * bottom-aligned against it) fits a phone in landscape. See grokkoli_system.css. */
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.25rem;
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    border-radius: 0 2rem 0 0;
    box-shadow: 2px 5px 10px rgb(0 0 0 / 4%);   /* shadow — kept */
}
.feedback-form-container label.section-label {
    font-weight: var(--font-weight-bold);
}
.feedback-form-container .notifier {
    position: absolute;
    top: 33%;
    width: 21.875rem;
    font-size: 1.4rem;
    text-align: center;
}
.feedback-form-container .single-option-select-field {
    justify-content: space-between;
}
.feedback-form-container .text-entry-field {
    height: 9.375rem;
    font-size: 0.875rem;

    display: block;
    width: 100%;
    margin-left: 0;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: var(--font-weight-regular);
    line-height: 1.5;
    color: var(--text-primary);                 /* was: #495057 (feedback ink) */
    background-color: var(--surface-elevated);  /* was: #fff (card) */
    background-clip: padding-box;
    border: 1px solid var(--border);            /* was: #ced4da (input border) */
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.feedback-form-container .terms-accepted-text {
    margin: 0.625rem 0;
    max-width: 21.875rem;
    color: var(--gray-500);
}
.feedback-form-container #submit-feedback {
    position: relative;
    float: right;
    margin-right: 0;
    font-size: 1.1rem;
}
.feedback-form-container .invalid-feedback {
    display: inline-block;
    float: right;
    width: fit-content;
    font-size: 85%;
    margin-top: 0.125rem;
}
.feedback-form-container .text-entry-field.is-invalid {
    border-color: var(--flare);                 /* was: --main-orange (is-invalid border) */
}

.share-feedback-prompt {
    color: var(--accent-primary);               /* was: --main-blue */
    font-size: 1.4rem;
    font-weight: var(--font-weight-semibold);
    width: 3.125rem;
    height: 11.25rem;
    padding: 0.6rem;
    background-color: var(--surface-elevated);  /* was: white (card) */
    border-radius: 0 1.6rem 1.6rem 0;
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    border-left: none;
    box-shadow: 2px 5px 10px rgb(0 0 0 / 4%);   /* shadow — kept */
    z-index: 101;
}
.share-feedback-prompt:hover {
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    border-left: none;
}
.share-feedback-prompt:active {
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    border-left: none;
}
.share-feedback-prompt:focus {
    background-color: var(--surface-elevated);  /* was: white (card) */
    border: 1px solid var(--border-subtle);     /* was: --main-light-grey (border) */
    border-left: none;
}

.vertical-text {
    position: absolute;
    transform: rotate(-90deg);
    bottom: 4.5rem;
    left: 22.1875rem;
    padding-bottom: 10px;
}

/* SESSION SUMMARY */

.session_summary_container {
    display: table;
    margin-top: 3.5em;
    margin-left: auto;
    margin-right: auto;
}

.session_summary {
    display: inline-block;
    background-color: rgb(255, 255, 255, 0.07); /* frosted — kept */
    padding: 1.2em 2em;
    border-radius: 20px;
    font-family: montserrat, sans-serif;
    font-weight: lighter;
    color: var(--text-on-dark);                 /* was: white (on dark) */
    font-size: 0.85em;
}

.session_summary_title {
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

.session_summary ul {
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}
.session_summary ul li:before {
    content: '☆';
    font-size: 1.2em;
    color: var(--accent-primary);               /* was: --main-green (on dark) */
    margin-left: 0.3125rem;
    margin-right: 0.5rem;
}

.session_summary__row {
    display: table;
    margin-bottom: 0;
    padding-top: 0.2em;
    padding-bottom: 0.2em;
}
.session_summary__value {
    display: table-cell;
    color: var(--flare-on-dark);                /* was: --main-gold (on dark surface) */
    font-size: 1.25em;
    /* vertical-align: middle; */
    text-align: right;
    padding-right: 0.3em;
    padding-left: 0.3em;
    font-family: arial, montserrat, sans-serif;
}


/* DISSOLVE ACCOUNT */

.white-success-checkmark {
    opacity: 0;
}

/* Social Network Referral Program */

.program-description-area {
    width: 86vw;
    max-width: 71.875rem;
    margin-top: 4.6875rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5.9375rem;
}

.program-description .option {
    background-color: var(--surface-elevated);  /* was: white (card) */
    padding: 1.875rem 1.875rem 1.25rem 1.875rem;
    border-radius: 20px;
    margin-top: 2.1875rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); /* shadow — kept */
}
.program-description-area .earn-credit {
    font-weight: var(--font-weight-semibold);
}
.program-description-area .progress-accent {
    color: var(--accent-primary);               /* was: --main-winter-green */
    font-weight: var(--font-weight-bold);
    font-size: 105%;
}
.program-description-area .progress-bold {
    font-weight: var(--font-weight-semibold);
}
.program-description-area .progress-list {
    list-style: none;
    padding-left: 0;
    margin: 0.9375rem 0;
}
.program-description-area .progress-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-top: 1.875rem;
    margin-bottom: 0.5rem;
    max-width: 54.375rem;
}
.program-description-area .progress-list li::before {
    content: "\2605";
    position: absolute;
    left: 0;
    color: var(--accent-primary);               /* was: --main-winter-green */
}
.program-description .credit-badge {
    float: right;
    margin-left: 0.9375rem;
    margin-bottom: 0.625rem;
    background-color: var(--accent-primary-fill);    /* was: --main-winter-green */
    color: var(--text-on-dark-fill);            /* was: white (on accent fill) */
    border-radius: 10px;
    padding: 0.75rem 1.3125rem;
    text-align: center;
    line-height: 1.1;
}
.program-description .credit-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: var(--font-weight-bold);
}
.program-description .credit-dollar {
    font-size: 1.1rem;
    vertical-align: top;
}
.program-description .credit-label {
    display: block;
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.program-description-area h1 {
    font-weight: var(--font-weight-bold);
    margin-bottom: 1.25rem;
}
.program-description-area > .program-description > p {
    max-width: 56.25rem;
    margin-bottom: 2.1875rem;
}
.program-description-area h2 {
    font-size: calc(1.3rem + 0.8vw);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.625rem;
}
.program-description-area .option h2 {
    color: var(--accent-primary);               /* was: --main-winter-green */
}
.program-description-area h2 span {
    font-weight: var(--font-weight-semibold);
}
.program-description-area h3 {
    font-size: calc(1rem + 0.3vw);
    font-weight: var(--font-weight-bold);
    margin-top: 1.5625rem;
    color: var(--text-muted);                   /* was: --main-dark-steel */
}
.program-description-area li {
    max-width: 50rem;
}
.program-description-area .steps {
    list-style: none;
    padding-left: 1.75em;
}
.program-description-area .steps li {
    font-size: calc(1rem + 0.2vw);
    margin-top: 1.25rem;
}
.program-description-area .steps li::before {
    content: "\2794";
    margin-right: 0.5em;
    margin-left: -1.5em;
}
.program-description-area .guidelines h3 {
    color: var(--text-caption);                 /* was: #8a969e (guidelines) */
}
.program-description-area .guidelines li {
    font-size: calc(0.9rem + 0.3vw);
    margin-top: 0.75rem;
    color: var(--text-caption);                 /* was: #8a969e (guidelines) */
}
.program-description-area .options-and-tips {
    display: flex;
    gap: 2.8125rem;
    align-items: flex-start;
    justify-content: space-between;
}
.program-description-area .options {
    flex: 1;
    min-width: 0;
    max-width: 40.625rem;
}
.program-description-area .privacy-tips {
    position: sticky;
    top: 1.875rem;
    max-width: 25.9375rem;
    flex-shrink: 0;
    margin-top: 2.1875rem;
}
.program-description-area .privacy-tips img {
    max-width: 100%;
    margin-bottom: 1.25rem;
}
@media (max-width: 1100px) {
    .program-description-area .options-and-tips {
        flex-direction: column;
    }
    .program-description-area .privacy-tips {
        position: static;
        max-width: 40.625rem;
        margin-top: 0.9375rem;
    }
}




.page_title {
    font-size: calc(1.9rem + 1vw);
    margin-top: 1em;
    margin-bottom: 1em;
    text-align: center;
    width: 100%;
}

.page_title h1 {
    max-width: 100%;
}
.page_title h2 {
    margin-top: 2em;
    font-size: 0.35em;
}

.add_learner__pin_subtext {
    font-size: 0.8em;
    color: var(--text-muted);                   /* was: --main-dark-grey (text) */
    margin-left: 0.25rem;
    margin-bottom: 0.5em;
}

.add_learner__section {
    margin-bottom: 0.8em;
}

.icon_plus_white {
    background-image: url("../img/plus-white.594ec3345f6e.svg");
    background-position: center;
    background-size: contain;
    background-size: 80%;
    background-repeat: no-repeat;
}

.learning_progress_skills_in_progress {
    padding-top: 1em;
}

.learning_progress_skills_mastered {
    border-top: 1px solid var(--border);        /* was: --main-steel-grey (border) */
    border-bottom: 1px solid var(--border);     /* was: --main-steel-grey (border) */
    margin-top: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

.learning_progress_skills_mastered_skill {
    border: none;
    font-size: 0.75rem;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}

.learning_progress_skills_mastered_skill_hide {
    display: none;
}

#learning_progress_skills_mastered_see_all {
    margin-top: 1em;
    font-size: 0.8125rem;
    color: var(--accent-primary);               /* was: --main-blue */
    padding-left: 1em;
}

#learning_progress_skills_mastered_see_all:hover {
    cursor: pointer;
    color: var(--accent-primary-hover);         /* was: --main-blue-hover */
}

/* ============================================================================
 * FIRST-LEARNER POPUP  (.flp-*)
 *
 * The "add a learning-plan" / "ready to start" overlay on the learner-profiles
 * page (accounts/templates/accounts/learner_profiles.html), plus its dimmer and
 * tooltip. Lifted verbatim out of an inline <style> block in that template so it
 * can be themed per brand.
 *
 * PARALLEL COPY: the same block exists in grokkoli_system.css. The two are
 * INTENTIONALLY allowed to diverge -- that is the point of the split. This copy is Heliomath's and is being converted onto the Sunset tokens;
 * the hard-coded greys below are the un-migrated starting point.
 * Do not assume a change here applies there.
 * ========================================================================== */
    .flp-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease;
    }
    .flp-panel {
        background: #fff;
        border-radius: 12px;
        width: min(90vw, 420px);
        padding: 40px 28px 30px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        text-align: center;
    }
    .flp-heading {
        font-size: calc(22px + 0.3vw);
        font-weight: 700;
        margin-bottom: 30px;
        color: var(--accent-primary);
    }
    .flp-title {
        font-size: calc(16px + 0.3vw);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 24px;
        color: var(--gray-500);
        line-height: 1.35;
    }
    .flp-sub-title {
        font-size: calc(12px + 0.2vw);
        font-weight: var(--font-weight-medium);
        margin-bottom: 24px;
        color: var(--gray-400);
        line-height: 1.4;
    }
    .flp-credentials {
        background: var(--surface-default);
        border-radius: 8px;
        padding: 4px 20px;
        margin-bottom: 28px;
        text-align: left;
    }
    .flp-credentials .flp-cred-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 13px 0;
        border-bottom: 1px solid var(--sand-deep);
    }
    .flp-credentials .flp-cred-row:last-child {
        border-bottom: none;
    }
    @media (max-width: 380px) {
        .flp-credentials .flp-cred-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }
    }
    .flp-credentials .flp-cred-label {
        color: var(--gray-600);
        font-size: 1rem;
    }
    .flp-credentials .flp-cred-value {
        font-weight: var(--font-weight-bold);
        font-size: 1rem;
    }
    .flp-buttons {
        display: flex;
        gap: 12px;
        justify-content: center;
    }
    .flp-buttons .btn {
        min-width: 120px;
        white-space: nowrap;
        padding: 0.6em 1.4em;
        font-size: 16px;
        letter-spacing: normal;
        margin: 0;
    }
    #flp-step-2 .flp-buttons .btn {
        min-width: 90px;
    }
    .flp-icon {
        font-size: 72px;
        margin-top: -20px;
        margin-bottom: 10px;
        line-height: 1;
    }
    .flp-dimmer {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        z-index: 9998;
    }
    .flp-tooltip {
        position: absolute;
        bottom: calc(100% + 16px);
        left: 50%;
        transform: translateX(-50%);
        z-index: 10000;
        background: #fff;
        border-radius: 16px;
        padding: 28px 28px 22px;
        width: min(85vw, 400px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        text-align: center;
    }
    .flp-tooltip .flp-down-arrow {
        position: absolute;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 18px solid transparent;
        border-right: 18px solid transparent;
        border-top: 16px solid #fff;
    }
    .account-prompt.flp-elevated {
        z-index: 9999;
        border-color: transparent;
    }
    .flp-tooltip-text {
        font-size: calc(15px + 0.2vw);
        color: #444;
        line-height: 1.4;
        margin-bottom: 20px;
    }
    .flp-tooltip .flp-buttons .btn {
        min-width: 110px;
        padding: 9px 26px;
        font-size: 16px;
    }
