/* ═══════════════════════════════════════════════════════
   Flourished theme — palette carried over from the
   Strategence Capitals prototype, everything else rebuilt.
   ═══════════════════════════════════════════════════════ */

:root {
    /* ── the one org-settable colour ──
       An organization overrides --fl-primary (and its --fl-accent partner) inline on <html>.
       Everything tinted below derives from those two with color-mix, so a single pair of values
       repaints surfaces, borders, focus rings and buttons across the whole app. */
    --fl-primary: #20679a;
    --fl-accent: #8dd5f0;
    --fl-primary-hover: color-mix(in srgb, var(--fl-primary) 85%, #ffffff);

    /* Brand */
    --fl-blue-deep: var(--fl-primary);
    --fl-blue-sky: var(--fl-accent);
    --fl-teal: #0ab387;

    /* Teal and gold as *text*. On the dark ground they are the brand colours as-is; on the light
       ground the same values land near 2.5:1, so the light block darkens these and leaves the
       fills alone. */
    --fl-teal-text: var(--fl-teal);
    --fl-gold-text: var(--fl-gold);
    --fl-yellow: #efed86;
    --fl-gold: #c8a84b;
    --fl-gold-soft: color-mix(in srgb, var(--fl-gold) 12%, transparent);
    --fl-purple: #a898d8;
    --fl-purple-deep: #7b6fcc;
    --fl-gray-dark: #4d5053;

    /* Surfaces */
    --fl-bg: #0e1e2b;
    --fl-bg-raised: #132738;
    --fl-surface: color-mix(in srgb, var(--fl-accent) 5.5%, transparent);
    --fl-surface-strong: color-mix(in srgb, var(--fl-accent) 10%, transparent);
    --fl-border: color-mix(in srgb, var(--fl-accent) 16%, transparent);
    --fl-border-strong: color-mix(in srgb, var(--fl-accent) 32%, transparent);
    --fl-nav-bg: color-mix(in srgb, var(--fl-bg) 90%, transparent);

    /* Recessed ground for inputs and wells — deeper than --fl-bg in dark, lighter in light. */
    --fl-ink: #080e18;

    /* Text */
    --fl-text: #e8f4fb;
    --fl-text-soft: #c5dced;
    --fl-text-muted: #9fbdd2;

    /* Maximum-contrast text: headings, values, chip labels. The single most theme-dependent
       token in the file — it is white on the dark ground and near-black on the light one. */
    --fl-text-strong: #ffffff;

    /* Text on a saturated fill. Neither flips with the theme: the fill is the same colour in
       both, so the text on it has to be too. --fl-on-primary rides the brand colour (buttons),
       --fl-on-accent rides the bright teal and gold chips. */
    --fl-on-primary: #ffffff;
    --fl-on-accent: #06121b;

    --fl-radius: 8px;
    --fl-radius-sm: 4px;
    --fl-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
    --fl-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.24);
    --fl-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --fl-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

    color-scheme: dark;

    /* Bootstrap overrides — admin tables/forms inherit the palette for free. */
    --bs-body-bg: var(--fl-bg);
    --bs-body-color: var(--fl-text);
    --bs-body-font-family: var(--fl-sans);
    --bs-border-color: var(--fl-border);
    --bs-primary: var(--fl-primary);
    /* ponytail: Bootstrap wants channels, and CSS cannot decompose a var into r,g,b. A handful of
       Bootstrap utilities (.text-bg-primary and friends) therefore keep the default brand blue
       even for a rebranded org. Swap for relative colour syntax once Safari ships it broadly. */
    --bs-primary-rgb: 32, 103, 154;
    --bs-secondary-color: var(--fl-text-muted);
    --bs-link-color: var(--fl-accent);
    --bs-link-hover-color: color-mix(in srgb, var(--fl-accent) 75%, #ffffff);
    --bs-emphasis-color: var(--fl-text-strong);
    --bs-border-radius: var(--fl-radius-sm);
}

/* ── light theme ──
   Tokens only. Every .fl-* class reads from the vars above, so nothing else changes.
   Set by App.razor from the organization's Theme column. */
:root[data-theme="light"] {
    --fl-accent: var(--fl-primary);
    --fl-primary-hover: color-mix(in srgb, var(--fl-primary) 85%, #000000);

    --fl-bg: #f7fafc;
    --fl-bg-raised: #ffffff;
    --fl-surface: color-mix(in srgb, var(--fl-primary) 4%, transparent);
    --fl-surface-strong: color-mix(in srgb, var(--fl-primary) 9%, transparent);
    --fl-border: color-mix(in srgb, var(--fl-primary) 18%, transparent);
    --fl-border-strong: color-mix(in srgb, var(--fl-primary) 38%, transparent);
    --fl-nav-bg: color-mix(in srgb, var(--fl-bg-raised) 92%, transparent);

    --fl-ink: #dfe8ef;

    --fl-text: #14232e;
    --fl-text-soft: #37505f;
    --fl-text-muted: #4f6a7b;
    --fl-text-strong: #071620;

    --fl-teal-text: color-mix(in srgb, var(--fl-teal) 58%, #000000);
    --fl-gold-text: color-mix(in srgb, var(--fl-gold) 55%, #000000);
    --fl-purple: #5f52a0;

    --fl-shadow: 0 2px 8px rgba(16, 38, 54, 0.10);
    --fl-shadow-sm: 0 1px 3px rgba(16, 38, 54, 0.08);

    color-scheme: light;

    --bs-link-hover-color: color-mix(in srgb, var(--fl-accent) 75%, #000000);
}

html {
    background: var(--fl-bg);
}

body {
    background: var(--fl-bg);
    color: var(--fl-text);
    font-family: var(--fl-sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.fl-heading,
.fl-hero-title,
.fl-question-text {
    font-family: var(--fl-serif);
    letter-spacing: 0.01em;
}

.fl-eyebrow {
    font-family: var(--fl-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--fl-text-muted);
    margin: 0 0 0.35rem;
}

.fl-caption {
    font-size: 0.85rem;
    color: var(--fl-text-muted);
}

.fl-page-head > .fl-caption:first-child,
.fl-cap-intro > .fl-caption:first-child,
.fl-question > .fl-caption:first-child,
.fl-commit-card > .fl-caption:first-child,
.fl-tier-card > .fl-caption:first-child,
.fl-domain-note > .fl-caption:first-child {
    margin: 0 0 0.4rem;
}

/* ── shell ─────────────────────────────────────────── */

.fl-shell {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.fl-main {
    flex: 1;
    width: min(1080px, 100% - 2.5rem);
    margin: 0 auto;
    padding: 2.5rem 0 4rem;
}

.fl-footer {
    border-top: 1px solid var(--fl-border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--fl-text-muted);
}

/* ── nav ───────────────────────────────────────────── */

.fl-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
    background: var(--fl-nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--fl-border);
}

.fl-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--fl-text);
    font-family: var(--fl-serif);
    font-size: 1.15rem;
}

.fl-brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    color: var(--fl-teal);
}

.fl-brand-mark svg {
    width: 68%;
    height: 68%;
    display: block;
}

.fl-nav-burger { display: none; }

.fl-nav-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.fl-nav-links a,
.fl-nav-signout {
    padding: 0.4rem 0.75rem;
    border-radius: var(--fl-radius-sm);
    color: var(--fl-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    background: none;
    border: none;
    cursor: pointer;
}

.fl-nav-links a:hover,
.fl-nav-signout:hover {
    background: var(--fl-surface);
    color: var(--fl-text);
}

.fl-nav-links a.active {
    color: var(--fl-blue-sky);
    background: var(--fl-surface-strong);
}

.fl-nav-admin {
    border: 1px solid var(--fl-border-strong);
}

/* More and account dropdowns. The lists are plain [hidden] toggles; the mobile panel shows them
   inline instead. */
.fl-nav-menu { position: relative; }

.fl-nav-menu-toggle {
    padding: 0.4rem 0.75rem;
    border-radius: var(--fl-radius-sm);
    border: none;
    background: none;
    color: var(--fl-text-soft);
    font-size: 0.92rem;
    cursor: pointer;
}

.fl-nav-menu-toggle:hover,
.fl-nav-menu-toggle[aria-expanded="true"] {
    background: var(--fl-surface);
    color: var(--fl-text);
}

.fl-nav-menu-toggle span { font-size: 0.7rem; margin-left: 0.2rem; }

.fl-nav-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 13rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem;
    background: var(--fl-bg-raised);
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    box-shadow: var(--fl-shadow);
}

.fl-nav-menu-list[hidden] { display: none; }
.fl-nav-menu-list form { margin: 0; }
.fl-nav-menu-list .fl-nav-signout { width: 100%; text-align: left; }

.fl-nav-account { margin-left: 0.75rem; }

.fl-nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--fl-border-strong);
    background: var(--fl-surface);
    color: var(--fl-text-strong);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.fl-nav-avatar:hover,
.fl-nav-avatar[aria-expanded="true"] { background: var(--fl-surface-strong); }

.fl-nav-user {
    display: block;
    padding: 0.4rem 0.75rem 0.5rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid var(--fl-border);
    font-size: 0.8rem;
    color: var(--fl-text-muted);
    max-width: 22ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .fl-nav-burger {
        display: block;
        margin-left: auto;
        font-size: 1.4rem;
        cursor: pointer;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid transparent;
        border-radius: var(--fl-radius-sm);
        background: transparent;
        color: var(--fl-text);
        line-height: 1;
    }

    .fl-nav-burger:hover,
    .fl-nav-burger:focus-visible {
        border-color: var(--fl-border-strong);
        background: var(--fl-surface);
    }

    .fl-nav-links {
        display: none;
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .fl-nav-links.open { display: flex; }

    /* Inside the burger panel every menu is simply listed. */
    .fl-nav-menu-toggle,
    .fl-nav-avatar { display: none; }

    .fl-nav-menu-list,
    .fl-nav-menu-list[hidden] {
        display: flex;
        position: static;
        min-width: 0;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
    }

    .fl-nav-account {
        margin: 0.5rem 0 0;
        padding-top: 0.5rem;
        border-top: 1px solid var(--fl-border);
    }

    .fl-nav { flex-wrap: wrap; }
}

/* ── generic blocks ────────────────────────────────── */

.fl-page-head { margin-bottom: 2rem; }
.fl-page-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

.fl-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.fl-loading,
.fl-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--fl-text-muted);
}

/* Static SSR boot shell (App.razor #app-shell) while WASM downloads.
   Fixed overlay so Blazor can paint underneath; first interactive frame
   removes it — no blank gap between shell and app. */
#app-shell {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--fl-bg);
}

.fl-boot {
    display: grid;
    place-items: center;
    gap: 1.25rem;
    min-height: 40vh;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--fl-text-muted);
}

.fl-boot-label {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.fl-boot-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--fl-border);
    border-top-color: var(--fl-blue-sky);
    animation: fl-spin 0.8s linear infinite;
}

@keyframes fl-spin {
    to { transform: rotate(360deg); }
}

.fl-empty h1, .fl-empty h2 {
    font-family: var(--fl-serif);
    color: var(--fl-text);
    margin-bottom: 0.75rem;
}

.fl-empty p { margin-bottom: 1.5rem; }
.fl-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

.fl-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    margin-bottom: 2rem;
    border: 1px solid color-mix(in srgb, var(--fl-teal) 35%, transparent);
    border-radius: var(--fl-radius-sm);
    background: color-mix(in srgb, var(--fl-teal) 8%, transparent);
}

/* ── buttons ───────────────────────────────────────── */

.btn-primary {
    --bs-btn-bg: var(--fl-blue-deep);
    --bs-btn-border-color: var(--fl-border-strong);
    --bs-btn-hover-bg: var(--fl-primary-hover);
    --bs-btn-hover-border-color: var(--fl-border-strong);
    --bs-btn-active-bg: var(--fl-primary-hover);
    --bs-btn-active-border-color: var(--fl-border-strong);
    --bs-btn-color: var(--fl-on-primary);
    --bs-btn-hover-color: var(--fl-on-primary);
    --bs-btn-active-color: var(--fl-on-primary);
    --bs-btn-disabled-bg: var(--fl-blue-deep);
    --bs-btn-disabled-border-color: var(--fl-border-strong);
}

.btn.fl-btn-primary {
    background: var(--fl-blue-deep);
    border: 1px solid var(--fl-border-strong);
    color: var(--fl-on-primary);
    border-radius: var(--fl-radius-sm);
}

.btn.fl-btn-primary:hover:not(:disabled) {
    background: var(--fl-primary-hover);
    color: var(--fl-on-primary);
}

.btn.fl-btn-ghost {
    background: transparent;
    border: 1px solid var(--fl-border);
    color: var(--fl-text-soft);
    border-radius: var(--fl-radius-sm);
}

.btn.fl-btn-ghost:hover:not(:disabled) {
    background: var(--fl-surface);
    color: var(--fl-text);
    border-color: var(--fl-border-strong);
}

.btn:disabled { opacity: 0.45; }

/* Bootstrap's --bs-btn-focus-box-shadow resolves transparent against this
   palette, which left keyboard focus invisible. Same outline idiom the
   rating buttons already use. */
.btn:focus-visible,
.fl-brand:focus-visible,
.fl-nav-links a:focus-visible,
.fl-nav-signout:focus-visible,
.fl-nav-menu-toggle:focus-visible,
.fl-nav-avatar:focus-visible,
.fl-linkish:focus-visible {
    outline: 2px solid var(--fl-blue-sky);
    outline-offset: 2px;
    box-shadow: none;
}

/* Every other clickable surface is a bare <button> or <a> whose hover state carries
   all the affordance, which leaves a keyboard user with no idea where they are.
   Card-shaped targets are inset so the ring is not clipped by a neighbour. */
.fl-option:focus-visible,
.fl-pill:focus-visible,
.fl-value-chip:focus-visible,
.fl-mode-btn:focus-visible,
.fl-rhythm-opt:focus-visible,
.fl-check-row:focus-visible,
.fl-nav-burger:focus-visible {
    outline: 2px solid var(--fl-blue-sky);
    outline-offset: 2px;
}

.fl-stage-card:focus-visible {
    outline: 2px solid var(--fl-blue-sky);
    outline-offset: 2px;
}

.fl-focus:focus-visible,
.fl-side-item:focus-visible,
.fl-cap-dot:focus-visible,
.fl-profile-link:focus-visible,
.fl-download-card a:focus-visible {
    outline: 2px solid var(--fl-blue-sky);
    outline-offset: -2px;
}

/* Reflective, unhurried reading is the point of this product; honour a stated
   preference for less movement rather than animating anyway. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── home ──────────────────────────────────────────── */

.fl-hero {
    padding: clamp(2rem, 7vw, 4.5rem) 0 2rem;
    max-width: 42rem;
}

/* Landing hero — ported from prototype home-left */
.fl-hero-landing {
    max-width: min(52rem, 100%);
    padding-top: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 760px) {
    .fl-hero-landing {
        text-align: center;
    }
    .fl-hero-landing .fl-hero-verse {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }
}

.fl-hero-title {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.fl-hero-title-display {
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    line-height: 1.12;
    font-weight: 400;
    color: var(--fl-text-strong);
    margin-bottom: 1.5rem;
}

.fl-hero-title-display em {
    font-style: italic;
    color: var(--fl-gold-text);
    font-weight: 400;
}

/* Ruled, not filled — a 6% gold wash on this ground just reads as a grey slab,
   and the rule already says "quoted". Matches .fl-inline-quote. */
.fl-hero-verse {
    border-left: 2px solid var(--fl-gold);
    padding: 0.2rem 0 0.2rem 1.25rem;
    margin: 0 0 1.75rem;
    max-width: 40rem;
}

.fl-hero-verse p {
    font-style: italic;
    font-size: 0.98rem;
    color: color-mix(in srgb, var(--fl-text-strong) 82%, transparent);
    line-height: 1.7;
    margin: 0 0 0.45rem;
}

.fl-hero-verse cite {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fl-gold-text);
}

.fl-hero-tagline {
    font-size: 1.02rem;
    color: var(--fl-text-soft);
    line-height: 1.75;
    max-width: 40rem;
    margin: 0 auto 0;
}

.fl-hero-follow {
    max-width: min(52rem, 100%);
    padding-top: 1.5rem;
    border-top: 1px solid var(--fl-border);
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.fl-hero-follow .fl-heading {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    margin-bottom: 0.85rem;
}

.fl-hero-body {
    font-size: 1.05rem;
    color: var(--fl-text-soft);
    max-width: 40rem; /* the 52rem section width is a ~95ch line; cap the prose */
    margin-bottom: 2rem;
}

.fl-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.fl-hero-landing .fl-hero-actions { margin-top: 2rem; }

@media (min-width: 760px) {
    .fl-hero-landing .fl-hero-actions,
    .fl-hero-follow .fl-hero-actions {
        justify-content: center;
    }
}

.fl-cap-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 2.25rem 0 1rem;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.fl-cap-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--fl-text-soft);
    font-size: 0.9rem;
}

.fl-cap-icon { color: var(--cap, var(--fl-blue-sky)); }

.fl-focus {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.15rem;
    margin-top: 1.25rem;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    background: color-mix(in srgb, var(--cap) 8%, transparent);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.fl-focus:hover {
    border-color: var(--cap);
    background: color-mix(in srgb, var(--cap) 14%, transparent);
    color: inherit;
}
/* ── assessment ────────────────────────────────────── */

.fl-progress {
    height: 4px;
    border-radius: 999px;
    background: var(--fl-surface-strong);
    overflow: hidden;
}

.fl-progress-fill {
    width: 100%;
    height: 100%;
    background: var(--fl-teal);
    transform-origin: left center;
    transition: transform 0.25s ease-out;
}

.fl-progress-label {
    margin: 0.5rem 0 2rem;
    font-size: 0.8rem;
    color: var(--fl-text-muted);
}

.fl-cap-intro,
.fl-question {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--fl-radius);
    border: 1px solid color-mix(in srgb, var(--cap) 28%, var(--fl-border));
    background: var(--fl-bg-raised);
}

.fl-cap-intro h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.fl-cap-intro-body { color: var(--fl-text-soft); margin-bottom: 1.5rem; }

.fl-quote {
    margin: 0 0 1.75rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--cap);
    font-style: italic;
    color: var(--fl-text-soft);
}

.fl-quote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.83rem;
    color: var(--fl-text-muted);
}

.fl-question-text {
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    line-height: 1.45;
    margin-bottom: 1.75rem;
}

.fl-options { display: flex; flex-direction: column; gap: 0.6rem; }

.fl-option {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-radius: var(--fl-radius-sm);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
    color: var(--fl-text-soft);
    font-size: 0.98rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.fl-option:hover:not(:disabled) {
    border-color: var(--cap);
    background: color-mix(in srgb, var(--cap) 9%, transparent);
    color: var(--fl-text);
}

.fl-option.selected {
    border-color: var(--cap);
    background: color-mix(in srgb, var(--cap) 16%, transparent);
    color: var(--fl-text-strong);
}

.fl-rating-buttons {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 0.5rem;
}

.fl-rating-button {
    min-width: 0;
    min-height: 48px;
    padding: 0.55rem 0.25rem;
    border: 1px solid var(--fl-border-strong);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    color: var(--fl-text-soft);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fl-rating-button:hover:not(:disabled) {
    border-color: var(--cap);
    background: color-mix(in srgb, var(--cap) 12%, transparent);
    color: var(--fl-text-strong);
}

.fl-rating-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--cap) 55%, transparent);
    outline-offset: 2px;
}

.fl-rating-button.selected {
    border-color: var(--cap);
    background: color-mix(in srgb, var(--cap) 30%, var(--fl-bg-raised));
    color: var(--fl-text-strong);
}

.fl-rating-button:disabled { cursor: wait; }

.fl-rating-mobile { display: none; }

.fl-rating-labels {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--fl-text-muted);
    margin-top: 0.75rem;
}

.fl-rating-labels span { max-width: 45%; }
.fl-rating-labels span:last-child { text-align: right; }
.fl-rating-labels strong { color: var(--cap-text, var(--fl-text)); }

.fl-scale-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.fl-scale-example {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.55rem;
    align-items: baseline;
    padding-top: 0.65rem;
    border-top: 1px solid var(--fl-border);
    color: var(--fl-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.fl-scale-example strong {
    color: var(--cap-text, var(--fl-text));
    font-size: 0.95rem;
}

@media (max-width: 639px) {
    .fl-rating-buttons { display: none; }
    .fl-rating-mobile { display: block; }

    .fl-rating-mobile input[type='range'] {
        width: 100%;
        height: 44px;
        margin: 0;
        appearance: none;
        background: transparent;
        cursor: grab;
        touch-action: pan-y;
    }

    .fl-rating-mobile input[type='range']:active { cursor: grabbing; }

    .fl-rating-mobile input[type='range']::-webkit-slider-runnable-track {
        height: 10px;
        border-radius: 999px;
        background: var(--fl-surface-strong);
        border: 1px solid var(--fl-border-strong);
    }

    .fl-rating-mobile input[type='range']::-webkit-slider-thumb {
        width: 32px;
        height: 32px;
        margin-top: -12px;
        appearance: none;
        border: 3px solid var(--fl-bg-raised);
        border-radius: 50%;
        background: var(--cap);
        box-shadow: var(--fl-shadow-sm);
    }

    .fl-rating-mobile input[type='range']::-moz-range-track {
        height: 10px;
        border-radius: 999px;
        background: var(--fl-surface-strong);
        border: 1px solid var(--fl-border-strong);
    }

    .fl-rating-mobile input[type='range']::-moz-range-thumb {
        width: 28px;
        height: 28px;
        border: 3px solid var(--fl-bg-raised);
        border-radius: 50%;
        background: var(--cap);
        box-shadow: var(--fl-shadow-sm);
    }

    .fl-rating-mobile input[type='range']:focus-visible {
        outline: 3px solid color-mix(in srgb, var(--cap) 55%, transparent);
        outline-offset: 2px;
        border-radius: 999px;
    }

    .fl-rating-value {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.2rem;
        margin: 0.25rem 0 0;
        color: var(--fl-text-muted);
    }

    .fl-rating-value strong {
        font-family: var(--fl-serif);
        font-size: 1.8rem;
        color: var(--cap-text, var(--fl-text));
    }

    .fl-rating-labels { margin-top: 0.35rem; }
    .fl-scale-examples { grid-template-columns: 1fr; margin-top: 1.25rem; }
}

.fl-question-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.fl-finish {
    margin-top: 2rem;
    text-align: center;
}

/* ── assessment review ─────────────────────────────── */

.fl-review .fl-page-head { margin-bottom: 1.5rem; }

.fl-review-capital {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: var(--fl-radius);
    border: 1px solid color-mix(in srgb, var(--cap) 28%, var(--fl-border));
    background: var(--fl-bg-raised);
}

.fl-review-capital-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-family: var(--fl-serif);
    font-size: 1.2rem;
    color: var(--cap-text, var(--fl-text));
}

.fl-review-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fl-review-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--fl-radius-sm);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
}

.fl-review-item.unanswered {
    border-style: dashed;
    border-color: color-mix(in srgb, var(--fl-border-strong) 70%, transparent);
}

.fl-review-item-body { min-width: 0; flex: 1; }

.fl-review-question {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--fl-text-soft);
}

.fl-review-answer {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cap-text, var(--fl-text));
}

.fl-review-item.unanswered .fl-review-answer {
    font-weight: 500;
    color: var(--fl-text-muted);
}

.fl-review-change {
    flex-shrink: 0;
    align-self: center;
}

.fl-review-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.fl-review-note {
    margin-top: 1rem;
    text-align: center;
}

/* ── results ───────────────────────────────────────── */

.fl-results { display: flex; flex-direction: column; gap: 2.5rem; }

.fl-focus {
    padding: 1.6rem 1.8rem;
    border-radius: var(--fl-radius);
    border: 1px solid color-mix(in srgb, var(--cap) 28%, var(--fl-border));
    background: color-mix(in srgb, var(--cap) 4%, var(--fl-bg-raised));
}

.fl-focus h2 { font-size: 1.5rem; color: var(--cap-text, var(--fl-text-strong)); margin-bottom: 0.5rem; }
.fl-focus-body { color: var(--fl-text-soft); margin: 0; }

.fl-radar-panel { text-align: center; }

.radar { width: min(660px, 100%); height: auto; }
.radar-ring { fill: none; stroke: var(--fl-border); stroke-width: 1; }
.radar-spoke { stroke: var(--fl-border); stroke-width: 1; }
.radar-area { fill: color-mix(in srgb, var(--fl-accent) 14%, transparent); stroke: var(--fl-blue-sky); stroke-width: 2; }
.radar-label { font-size: 12px; font-weight: 600; }
.radar-value { font-size: 11px; }

.fl-cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.1rem;
}

.fl-cap-card {
    padding: 1.4rem;
    border-radius: var(--fl-radius);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
}

.fl-cap-card header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.fl-cap-card header h3 { font-size: 1.05rem; margin: 0; color: var(--cap-text, var(--fl-text-strong)); }
.fl-cap-stage { margin: 0; font-size: 0.8rem; color: var(--cap-text); }

.fl-cap-score {
    margin-left: auto;
    font-family: var(--fl-serif);
    font-size: 1.9rem;
    color: var(--fl-text-strong);
}

.fl-cap-bar {
    height: 5px;
    border-radius: 999px;
    background: var(--fl-surface-strong);
    overflow: hidden;
    margin-bottom: 1rem;
}

.fl-cap-bar-fill { height: 100%; background: var(--cap); }

.fl-cap-narrative { font-size: 0.93rem; color: var(--fl-text-soft); margin-bottom: 0.75rem; }

.fl-cap-scripture {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--fl-text-muted);
    margin: 0;
}

/* ── progress ──────────────────────────────────────── */

.fl-trend { margin-bottom: 2.5rem; }
.fl-trend-chart { width: 100%; height: 300px; }
.fl-trend-grid { stroke: var(--fl-border); stroke-width: 1; }
.fl-trend-axis { font-size: 10px; fill: var(--fl-text-muted); }
.fl-trend-line { fill: none; stroke-width: 2; }

.fl-trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    color: var(--fl-text-soft);
}

.fl-trend-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.fl-swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

.fl-table { --bs-table-bg: transparent; --bs-table-color: var(--fl-text-soft); }
.fl-table thead th { color: var(--fl-text-muted); font-weight: 600; font-size: 0.82rem; }
.fl-delta { display: block; font-size: 0.72rem; color: var(--fl-text-muted); }

/* ── downloads ─────────────────────────────────────── */

.fl-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.fl-download-card {
    padding: 1.3rem;
    border-radius: var(--fl-radius);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
}

.fl-download-card h2 { font-size: 1.05rem; font-family: var(--fl-serif); }
.fl-download-card p { font-size: 0.9rem; color: var(--fl-text-soft); }

/* ── admin ─────────────────────────────────────────── */

.fl-admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--fl-border);
}

.fl-admin-nav a {
    padding: 0.35rem 0.8rem;
    border-radius: var(--fl-radius-sm);
    color: var(--fl-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.fl-admin-nav a:hover { background: var(--fl-surface); color: var(--fl-text); }
.fl-admin-nav a.active { background: var(--fl-surface-strong); color: var(--fl-blue-sky); }

.fl-admin-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.fl-admin-list { display: flex; flex-direction: column; gap: 0.9rem; }

.fl-admin-card {
    padding: 1.2rem;
    border-radius: var(--fl-radius);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
    margin-bottom: 1.5rem;
}

.fl-admin-card.inactive { opacity: 0.55; }

.fl-admin-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.fl-admin-card-head h2 { font-size: 1.05rem; margin: 0; }
.fl-admin-card-head .fl-admin-actions { margin-left: auto; }

.fl-admin-subhead {
    font-family: var(--fl-serif);
    font-size: 1rem;
    margin: 1.5rem 0 0.75rem;
}

.fl-admin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* Row actions sit on one line regardless of how long the question text is. */
.fl-admin-card-head .fl-admin-actions { margin-top: 0; flex-wrap: nowrap; flex-shrink: 0; }
.fl-admin-card-head .fl-admin-actions .btn { white-space: nowrap; }
.fl-admin-card-head > div { min-width: 0; }

.fl-admin-search {
    display: flex;
    gap: 0.5rem;
    max-width: 32rem;
    margin-bottom: 1.5rem;
}

/* ── admin: text editor ────────────────────────────── */

.fl-text-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.fl-text-count { opacity: 0.6; font-size: 0.8em; margin-left: 0.3rem; }

.fl-text-key {
    font-size: 0.82rem;
    color: var(--fl-blue-sky);
    background: var(--fl-surface-strong);
    padding: 0.15rem 0.4rem;
    border-radius: var(--fl-radius-sm);
}

.fl-text-preview {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: var(--fl-text-muted);
    line-height: 1.5;
}

.fl-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 1rem 0 0.5rem;
}

.fl-text-panel { margin-top: 0.75rem; }

.fl-text-rendered,
.fl-text-default {
    margin-top: 0.3rem;
    padding: 0.65rem 0.8rem;
    border: 1px dashed var(--fl-border);
    border-radius: var(--fl-radius-sm);
    font-size: 0.92rem;
    line-height: 1.6;
}

.fl-text-rendered { color: var(--fl-text); }
.fl-text-rendered > :last-child { margin-bottom: 0; }
.fl-text-default { color: var(--fl-text-muted); white-space: pre-wrap; }

.fl-q-number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface-strong);
    font-size: 0.85rem;
    color: var(--fl-text-muted);
}

.fl-q-text { font-size: 0.98rem; font-weight: 500; line-height: 1.5; }

.fl-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}

.fl-stat {
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    border-radius: var(--fl-radius);
    border: 1px solid var(--fl-border);
    background: var(--fl-surface);
    color: var(--fl-text-muted);
    font-size: 0.85rem;
}

.fl-stat-value { font-family: var(--fl-serif); font-size: 2rem; color: var(--fl-text-strong); line-height: 1.1; }

.fl-score-inline { display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; }
.fl-score-input { max-width: 6rem; flex: 0 0 6rem; }

/* Bootstrap form controls on a dark ground */
.form-control, .form-select {
    background: var(--fl-bg);
    border-color: var(--fl-border);
    color: var(--fl-text);
}

.form-control:focus, .form-select:focus {
    background: var(--fl-bg);
    color: var(--fl-text);
    border-color: var(--fl-border-strong);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--fl-primary) 25%, transparent);
}

.form-label { font-size: 0.82rem; color: var(--fl-text-muted); margin-bottom: 0.25rem; }

/* ── formation pages (Practices, Calling, Plan) ─────── */

.fl-narrow { max-width: 660px; margin: 0 auto; }
.fl-lead { color: var(--fl-text-soft); line-height: 1.75; margin-bottom: 1.25rem; }
.fl-subhead { font-family: var(--fl-serif); font-size: 1.25rem; color: var(--fl-text-strong); margin: 0 0 0.75rem; }
.fl-section-label {
    font-family: var(--fl-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--fl-text-strong);
    margin: 2rem 0 0.75rem;
}
.fl-section-foot {
    border-top: 1px solid var(--fl-border);
    margin-top: 2rem;
    padding-top: 1.25rem;
}
.fl-section-foot .btn { margin-top: 0.75rem; }

.fl-panel {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    background: var(--fl-surface);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1.25rem;
}

.fl-callout {
    border: 1px solid var(--fl-border);
    border-color: color-mix(in srgb, var(--fl-teal) 30%, var(--fl-border));
    border-radius: var(--fl-radius-sm);
    background: color-mix(in srgb, var(--fl-teal) 6%, transparent);
    padding: 1rem 1.2rem;
    margin-bottom: 1.25rem;
}
.fl-callout-gold {
    border-color: color-mix(in srgb, var(--fl-gold) 30%, var(--fl-border));
    background: var(--fl-gold-soft);
}
/* A finished commitment stays legible but steps back behind the active one. */
.fl-callout-ended {
    border-color: var(--fl-border);
    background: transparent;
}
.fl-callout-ended .fl-exercise-title { color: var(--fl-text-soft); }
.fl-callout-purple {
    border-color: color-mix(in srgb, var(--fl-purple) 30%, var(--fl-border));
    background: color-mix(in srgb, var(--fl-purple-deep) 8%, transparent);
}
.fl-quote-text {
    font-style: italic;
    color: color-mix(in srgb, var(--fl-text-strong) 88%, transparent);
    line-height: 1.7;
    margin: 0.35rem 0 0;
}
.fl-callout cite, .fl-inline-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--fl-gold-text);
    margin-bottom: 0.35rem;
}
.fl-inline-quote {
    border-left: 2px solid var(--fl-gold);
    padding: 0.2rem 0 0.2rem 1rem;
    margin: 0.75rem 0;
}
.fl-inline-quote.purple { border-left-color: var(--fl-purple); }
.fl-inline-quote.purple cite { color: var(--fl-purple); }

/* steps (home guest) */
.fl-steps {
    display: grid;
    gap: 1.5rem 2.5rem;
    margin: 1.75rem 0 0;
    padding: 0 0 0 1.35rem;
    color: var(--fl-gold-text);
    font-family: var(--fl-serif);
}
@media (min-width: 720px) {
    .fl-steps { grid-template-columns: repeat(3, 1fr); }
}
.fl-step { padding: 0; }
.fl-step-t {
    font-family: var(--fl-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--fl-text-strong);
    margin: 0 0 0.35rem;
}
.fl-step-s {
    font-family: var(--fl-sans);
    font-size: 0.9rem;
    color: var(--fl-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* today (dashboard) — one practice to keep, the capitals beside it, everything else below */
.fl-today-head { margin-bottom: 1.75rem; }
.fl-today-head .fl-caption { font-size: 0.95rem; max-width: 56ch; margin: 0.4rem 0 0; }

.fl-today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.fl-today-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

@media (max-width: 900px) {
    .fl-today-grid { grid-template-columns: minmax(0, 1fr); }
}

.fl-today-card {
    background: var(--fl-surface);
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    padding: 1.4rem;
}

.fl-today-card-title { font-size: 1.3rem; margin: 0; color: var(--fl-text-strong); }
.fl-today-card > .fl-caption { margin: 0.15rem 0 0; }

.fl-today-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--fl-border);
    font-size: 0.85rem;
}

.fl-today-card-foot a:last-child { margin-left: auto; }

/* the task panel: the one surface on the page that carries a shadow */
.fl-today-focus {
    position: relative;
    /* clip, not hidden: a hidden box can still be scrolled by focus moves, which hid the title */
    overflow: clip;
    background: var(--fl-bg-raised);
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.fl-today-focus::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--cap, var(--fl-accent)) 20%, transparent), transparent 70%);
    pointer-events: none;
}

.fl-today-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--cap-text, var(--fl-text-soft));
    background: color-mix(in srgb, var(--cap, var(--fl-accent)) 14%, transparent);
}

.fl-today-title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    line-height: 1.2;
    margin: 0.9rem 0 0;
    color: var(--fl-text-strong);
    max-width: 22ch;
}

.fl-today-body { color: var(--fl-text-soft); margin: 0.6rem 0 0; max-width: 52ch; }

.fl-today-cue {
    margin: 1.1rem 0 0;
    padding: 0.7rem 0.9rem;
    border-left: 2px solid var(--fl-gold);
    border-radius: 0 var(--fl-radius-sm) var(--fl-radius-sm) 0;
    background: var(--fl-gold-soft);
    font-family: var(--fl-serif);
    font-style: italic;
    color: var(--fl-text-soft);
}

.fl-today-cue span {
    display: block;
    font: 600 0.68rem var(--fl-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fl-gold-text);
    font-style: normal;
}

.fl-week {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 1.3rem 0 0;
}

.fl-week li {
    width: 2.25rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--fl-text-muted);
}

.fl-week li > span[aria-hidden] {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.2rem;
    border-radius: 50%;
    border: 1px dashed var(--fl-border-strong);
}

.fl-week li.kept > span[aria-hidden] { border: 0; background: color-mix(in srgb, var(--fl-teal) 85%, transparent); }
.fl-week li.today:not(.kept) > span[aria-hidden] { border: 1.5px solid var(--fl-accent); }

.fl-today-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 0.75rem;
    margin-top: 1.4rem;
}

.fl-today-done { color: var(--fl-teal-text); font-weight: 600; }

/* capitals list, lowest first */
.fl-cap-list { list-style: none; padding: 0; margin: 0.9rem 0 0; }

.fl-cap-list a {
    display: grid;
    grid-template-columns: 1.1rem 1fr auto;
    gap: 0.15rem 0.75rem;
    align-items: center;
    padding: 0.55rem 0.5rem;
    border-radius: var(--fl-radius-sm);
    color: inherit;
    text-decoration: none;
}

.fl-cap-list a:hover { background: var(--fl-surface-strong); }
.fl-cap-list a.focus { background: color-mix(in srgb, var(--cap) 9%, transparent); }
.fl-cap-list .fl-cap-icon { color: var(--cap-text); font-size: 0.9rem; }
.fl-cap-list-name { color: var(--fl-text); font-weight: 500; font-size: 0.92rem; line-height: 1.3; }
.fl-cap-list-name small { display: block; font-weight: 400; font-size: 0.78rem; color: var(--fl-text-muted); }
.fl-cap-list-score { font-family: var(--fl-serif); font-size: 1.4rem; color: var(--fl-text-strong); }

.fl-cap-list-bar {
    grid-column: 2 / 4;
    height: 4px;
    border-radius: 2px;
    background: var(--fl-border);
    overflow: hidden;
}

.fl-cap-list-bar i { display: block; height: 100%; background: var(--cap); border-radius: 2px; }

/* calling journey, three stages around the current one */
.fl-journey { list-style: none; padding: 0; margin: 0.9rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.fl-journey li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.92rem; color: var(--fl-text-muted); }

.fl-journey b {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--fl-border-strong);
    font-size: 0.72rem;
    font-weight: 500;
}

.fl-journey li.done b { background: var(--fl-teal); border-color: transparent; color: var(--fl-on-accent); }
.fl-journey li.now { color: var(--fl-text); }
.fl-journey li.now b { border-color: var(--fl-gold); color: var(--fl-gold-text); }

.fl-today-card .fl-trend-chart { display: block; height: 190px; margin-top: 0.75rem; }
.fl-today-card .fl-trend-legend { margin-top: 0.5rem; }

.fl-today-more-head { margin: 2.5rem 0 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.7rem; font-weight: 600; }

.fl-today-more {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 0.75rem;
}

.fl-today-more a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--fl-border);
    border-radius: 10px;
    color: var(--fl-text-soft);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background-color 150ms, border-color 150ms;
}

.fl-today-more a:hover { background: var(--fl-surface); border-color: var(--fl-border-strong); color: var(--fl-text); }
.fl-today-more small { display: block; font-size: 0.78rem; color: var(--fl-text-muted); }

/* practices */
.fl-commit-card {
    border: 1px solid color-mix(in srgb, var(--fl-gold) 40%, transparent);
    background: color-mix(in srgb, var(--fl-gold) 7%, transparent);
    border-radius: var(--fl-radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}
.fl-commit-card.done {
    border-color: color-mix(in srgb, var(--fl-teal) 45%, transparent);
    background: color-mix(in srgb, var(--fl-teal) 8%, transparent);
}
.fl-commit-title {
    font-family: var(--fl-serif);
    font-size: 1.15rem;
    color: var(--fl-text-strong);
    margin: 0.25rem 0 0.5rem;
}
.fl-commit-when { color: var(--fl-text-soft); margin-bottom: 0.6rem; }
.fl-commit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}
.fl-commit-ok { color: var(--fl-teal-text); font-weight: 600; }

.fl-pill-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
}
.fl-pill {
    flex-shrink: 0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.fl-pill:hover { color: var(--fl-text-strong); background: var(--fl-surface); }
.fl-pill.active {
    border-color: var(--cap, var(--fl-teal));
    background: color-mix(in srgb, var(--cap, var(--fl-teal)) 14%, transparent);
    color: var(--cap-text, var(--fl-teal));
}

.fl-domain-note {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}
.fl-domain-note p { margin: 0.25rem 0 0; color: var(--fl-text-soft); font-size: 0.9rem; }

.fl-tier-card {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.9rem;
}
.fl-tier-card.current {
    border-color: color-mix(in srgb, var(--cap) 55%, var(--fl-border));
    background: color-mix(in srgb, var(--cap) 7%, transparent);
}
.fl-tier-title { font-size: 1.05rem; font-weight: 600; color: var(--fl-text-strong); margin: 0.25rem 0 0.4rem; }
.fl-tier-body { color: var(--fl-text-soft); line-height: 1.65; margin-bottom: 0.6rem; }
.fl-tier-cue { font-size: 0.85rem; color: var(--fl-text-muted); margin-bottom: 0.85rem; }
.fl-tier-cue span { color: var(--cap, var(--fl-teal)); }
.fl-tier-form {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--fl-border);
}

.fl-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fl-text-soft);
    margin-bottom: 0.4rem;
}
.fl-input, .fl-textarea {
    width: 100%;
    background: color-mix(in srgb, var(--fl-ink) 45%, transparent);
    border: 1px solid var(--fl-border);
    color: var(--fl-text-strong);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--fl-radius-sm);
    outline: none;
    line-height: 1.6;
    margin-bottom: 0.65rem;
}
.fl-textarea { resize: vertical; min-height: 5rem; }
.fl-input:focus, .fl-textarea:focus {
    border-color: var(--fl-border-strong);
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--fl-primary) 25%, transparent);
}

.fl-linkish {
    background: none;
    border: none;
    color: var(--fl-text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.fl-linkish:hover { color: var(--fl-blue-sky); }

/* calling layout */
.fl-side-layout {
    display: grid;
    gap: 1.5rem;
}
@media (min-width: 900px) {
    .fl-side-layout {
        grid-template-columns: 220px 1fr;
        align-items: start;
    }
}
.fl-side-nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    background: var(--fl-bg-raised);
    padding: 1rem 0.75rem;
    /* Clears the top nav even when it wraps to two rows (~108px), and scrolls on its
       own so a long list (Practice Room) never runs past the fold. */
    position: sticky;
    top: 7.25rem;
    max-height: calc(100dvh - 8.25rem);
    overflow-y: auto;
    scrollbar-width: thin;
}
.fl-side-brand { padding: 0 0.5rem 0.75rem; border-bottom: 1px solid var(--fl-border); margin-bottom: 0.5rem; }
.fl-side-title { font-family: var(--fl-serif); color: var(--fl-text-strong); font-size: 0.95rem; line-height: 1.3; }
.fl-side-item {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: var(--fl-radius-sm);
    color: var(--fl-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
}
.fl-side-item:hover { background: var(--fl-surface); color: var(--fl-text); }
.fl-side-item.active {
    background: color-mix(in srgb, var(--fl-teal) 12%, transparent);
    color: var(--fl-teal-text);
    font-weight: 600;
}
.fl-side-item.done::after { content: " ✓"; color: var(--fl-teal-text); }
.fl-side-foot {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--fl-border);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
@media (max-width: 899px) {
    .fl-side-nav {
        position: static;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        overflow-x: auto;
    }
    .fl-side-brand, .fl-side-foot { width: 100%; }
}
/* Phone: a tabbed side nav collapses to one scrollable row of tabs. */
@media (max-width: 600px) {
    .fl-side-tabs { flex-wrap: nowrap; padding: 0.4rem; overflow-y: hidden; }
    .fl-side-tabs :is(.fl-side-brand, .fl-side-label, .fl-side-foot) { display: none; }
    .fl-side-tabs .fl-side-item { white-space: nowrap; flex: none; }
    /* Practice Room: the row holds Overview plus the open group's items; groups
       dissolve so their links sit in the row (older engines just stack them). */
    .fl-side-tabs .fl-pr-group { display: contents; }
    .fl-side-tabs .fl-pr-group::details-content { display: contents; }
    .fl-side-tabs .fl-pr-group:not([open]) { display: none; }
}

/* practice room */
.fl-pr-group > summary { cursor: pointer; }
.fl-pr-group > summary::marker { content: "▸  "; }
.fl-pr-group[open] > summary::marker { content: "▾  "; }
.fl-pr-group > summary:focus-visible { outline: 2px solid var(--fl-blue-sky); outline-offset: -2px; }
@media (max-width: 899px) {
    .fl-pr-group { width: 100%; }
}
@media (max-width: 600px) {
    .fl-pr-nav.is-overview { display: none; }
}
.fl-pr-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 600px) {
    .fl-pr-cards { grid-template-columns: 1fr 1fr; }
}
.fl-pr-card {
    display: block;
    margin: 0;
    border-top: 3px solid var(--accent);
    color: inherit;
    text-decoration: none;
}
a.fl-pr-card:hover { background: var(--fl-surface-strong); color: inherit; }
a.fl-pr-card:focus-visible { outline: 2px solid var(--fl-blue-sky); outline-offset: 2px; }
.fl-pr-card-icon { display: block; font-size: 1.2rem; margin-bottom: 0.4rem; }
.fl-pr-card p { color: var(--fl-text-soft); font-size: 0.9rem; }
.fl-pr-steps { padding-left: 1.4rem; }
.fl-pr-steps li { margin-bottom: 0.85rem; line-height: 1.65; }
.fl-pr-steps li::marker { color: var(--fl-teal-text); font-weight: 700; }
.fl-pr-lectio { list-style: none; padding: 0; margin: 0; }
.fl-pr-stage {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-surface);
    margin-bottom: 0.75rem;
}
.fl-pr-stage.is-open { border-color: color-mix(in srgb, var(--fl-teal) 60%, var(--fl-border)); }
.fl-pr-stage-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-align: left;
}
.fl-pr-stage-head:focus-visible { outline: 2px solid var(--fl-blue-sky); outline-offset: -2px; }
.fl-pr-stage-num {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    border: 1px solid color-mix(in srgb, var(--fl-teal) 40%, transparent);
    background: color-mix(in srgb, var(--fl-teal) 12%, transparent);
    color: var(--fl-teal-text);
    font-size: 0.75rem;
}
.fl-pr-stage.is-done .fl-pr-stage-num { background: var(--fl-teal); color: #fff; }
.fl-pr-stage-body { padding: 0 1.1rem 1.1rem 3.4rem; line-height: 1.7; }
.fl-pr-timer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.fl-pr-timer-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--fl-teal-text); min-width: 3.5rem; }
@media (max-width: 575.98px) { .fl-pr-stage-body { padding-left: 1.1rem; } }
.fl-pr-learn { margin-bottom: 2rem; }
.fl-pr-learn > p { color: var(--fl-text-soft); line-height: 1.8; }
.fl-pr-spectrum {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.6rem;
}
.fl-pr-spectrum li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem;
    background: var(--fl-surface);
    border: 1px solid var(--fl-border);
    border-top: 3px solid var(--cap, var(--fl-teal));
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fl-text-soft);
}
.fl-pr-spectrum strong { color: var(--fl-text-strong); }

.fl-scope-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.fl-save-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fl-border);
}
.fl-save-ok { color: var(--fl-teal-text); font-size: 0.85rem; }
.fl-save-pending { color: var(--fl-gold-text); font-size: 0.85rem; }

/* Pinned only while there is something to lose. */
.fl-save-row.sticky {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fl-border-strong);
    border-radius: var(--fl-radius);
    background: var(--fl-bg-raised);
    box-shadow: var(--fl-shadow);
}

.fl-stage-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 1.5rem 0;
    border-top: 1px solid var(--fl-border);
}
.fl-stage-card {
    display: grid;
    grid-template-columns: 2.25rem 1.5rem minmax(0, 1fr) auto;
    grid-template-areas:
        "num icon name action"
        "num icon sub  action";
    column-gap: 0.55rem;
    row-gap: 0.1rem;
    align-items: baseline;
    padding: 0.85rem 0.35rem;
    border: none;
    border-bottom: 1px solid var(--fl-border);
    border-radius: 0;
    background: none;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}
.fl-stage-card:hover {
    background: var(--fl-surface);
    color: inherit;
}
.fl-stage-num {
    grid-area: num;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fl-gold-text);
}
.fl-stage-icon { grid-area: icon; font-size: 1.05rem; }
.fl-stage-name { grid-area: name; font-weight: 600; color: var(--fl-text-strong); }
.fl-stage-sub { grid-area: sub; font-size: 0.82rem; color: var(--fl-text-muted); line-height: 1.45; }
.fl-stage-action {
    grid-area: action;
    align-self: center;
    font-size: 0.8rem;
    color: var(--fl-teal-text);
    margin: 0;
}

.fl-stage-card.started,
.fl-stage-card.done {
    background: none;
}
/* Guest teaser: the journey beyond the demo, visibly there but not yet open. */
.fl-stage-card.locked :is(.fl-stage-num, .fl-stage-name) { color: var(--fl-text-muted); }
.fl-stage-card.locked .fl-stage-icon { font-size: 0.85rem; opacity: 0.7; }
.fl-side-item.locked { opacity: 0.7; }
.fl-side-item.locked::after { content: " 🔒"; font-size: 0.7em; }
.fl-stage-tick {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--fl-teal);
    color: var(--fl-on-accent);
    font-size: 0.7rem;
    letter-spacing: 0;
}

.fl-journey-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    background: var(--fl-surface);
}
.fl-journey-count { margin: 0.15rem 0 0; color: var(--fl-text-soft); }
.fl-journey-count strong { font-family: var(--fl-serif); font-size: 1.5rem; color: var(--fl-text-strong); }

/* Deliberately not a stage card: it is a destination, not a movement. */
.fl-profile-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.15rem;
    border: 1px dashed var(--fl-border-strong);
    border-radius: var(--fl-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.fl-profile-link:hover { border-color: var(--fl-gold); background: var(--fl-surface); color: inherit; }
.fl-profile-link.empty { opacity: 0.65; }
.fl-profile-link > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.fl-profile-icon { font-size: 1.2rem; }
.fl-profile-name { font-weight: 600; color: var(--fl-text-strong); }
.fl-profile-link .fl-stage-action { margin-top: 0; }

/* Context worth keeping, not worth blocking the stage list on every return visit. */
.fl-reading { margin-top: 1.5rem; }
.fl-reading > summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
    list-style: none;
}
/* display:flex drops the native marker in every engine, so the affordance is drawn back on. */
.fl-reading > summary::-webkit-details-marker { display: none; }
.fl-reading > summary::after {
    content: "▸";
    margin-left: auto;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--fl-blue-sky);
    transition: transform 0.15s ease;
}
.fl-reading[open] > summary::after { transform: rotate(90deg); }
.fl-reading > summary:hover { color: var(--fl-text); }
.fl-reading > summary .fl-subhead { margin: 0; font-size: 1.05rem; }
.fl-vmv-head .fl-field-label { display: inline; margin-bottom: 0; }
.fl-callout .fl-subhead,
.fl-root-card .fl-subhead,
.fl-guided-by .fl-subhead { margin: 0 0 0.45rem; }
.fl-reading[open] > summary { margin-bottom: 1rem; }

.fl-cap-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1rem;
}
.fl-cap-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--cap);
    background: color-mix(in srgb, var(--cap) 12%, transparent);
    display: grid;
    place-items: center;
    text-decoration: none;
    font-size: 1rem;
}
.fl-cap-plus, .fl-cap-arrow { color: var(--fl-text-muted); }
.fl-purpose-pill {
    color: var(--fl-gold-text);
    font-family: var(--fl-serif);
    font-weight: 600;
    font-size: 1rem;
}
.fl-guided-by {
    text-align: center;
    margin-top: 2rem;
    padding: 1.25rem;
    border: 1px solid var(--fl-border);
    border-color: color-mix(in srgb, var(--fl-gold) 28%, var(--fl-border));
    border-radius: var(--fl-radius-sm);
    background: color-mix(in srgb, var(--fl-primary) 6%, transparent);
}
.fl-guided-by p:last-child { color: var(--fl-text-soft); font-size: 0.9rem; line-height: 1.7; margin: 0; }

.fl-idol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.fl-idol-card {
    border: 1px solid var(--fl-border);
    border-color: color-mix(in srgb, var(--accent, var(--fl-teal)) 28%, var(--fl-border));
    border-radius: var(--fl-radius-sm);
    padding: 0.9rem;
    background: color-mix(in srgb, var(--fl-ink) 25%, transparent);
}
.fl-idol-card h3 { color: var(--accent); font-size: 1rem; margin: 0 0 0.35rem; }
.fl-idol-card p { font-size: 0.85rem; color: var(--fl-text-soft); margin: 0 0 0.5rem; }
.fl-idol-card ul { list-style: none; padding: 0; margin: 0; font-size: 0.78rem; color: var(--fl-text-muted); }
.fl-idol-card li { margin-bottom: 0.25rem; }

.fl-truth-table { display: grid; gap: 0.5rem; }
.fl-truth-row {
    display: grid;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: color-mix(in srgb, var(--fl-ink) 30%, transparent);
}
@media (min-width: 640px) {
    .fl-truth-row { grid-template-columns: 1fr 1.4fr; }
}
.fl-truth-row .lie { color: var(--fl-text-muted); font-size: 0.88rem; }
.fl-truth-row .truth { color: var(--fl-text-soft); font-size: 0.88rem; line-height: 1.5; }

.fl-exercise, .fl-vision-builder {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius);
    background: var(--fl-bg-raised);
    margin: 1.5rem 0;
    overflow: hidden;
}
.fl-exercise.gold, .fl-vision-builder { border-color: color-mix(in srgb, var(--fl-gold) 30%, var(--fl-border)); }
.fl-exercise-hdr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    background: var(--fl-surface);
    border-bottom: 1px solid var(--fl-border);
}
.fl-exercise.gold .fl-exercise-hdr, .fl-vision-builder .fl-exercise-hdr { background: var(--fl-gold-soft); }
.fl-exercise-title { font-family: var(--fl-serif); font-size: 1.1rem; color: var(--fl-text-strong); margin: 0; }
.fl-exercise.gold .fl-exercise-title, .fl-vision-builder .fl-exercise-title { color: var(--fl-gold-text); }
.fl-exercise-time { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fl-teal-text); }
.fl-exercise-body { padding: 1.25rem; }

.fl-callout-sky {
    border-color: color-mix(in srgb, var(--fl-blue-sky) 30%, var(--fl-border));
    background: color-mix(in srgb, var(--fl-blue-sky) 5%, transparent);
}
.fl-callout-sky cite { color: var(--fl-blue-sky); }
.fl-callout-purple cite { color: var(--fl-purple); }

.fl-teaching {
    border-left: 3px solid var(--fl-teal);
    background: var(--fl-surface);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--fl-text-soft);
    line-height: 1.8;
}
.fl-teaching.purple { border-left-color: var(--fl-purple-deep); }
.fl-teaching em { color: var(--fl-purple); }
.fl-teaching p:last-child, .fl-prompt p:last-child, .fl-caption p:last-child { margin-bottom: 0; }
.fl-attribution { font-size: 0.75rem; font-style: italic; color: var(--fl-text-muted); text-align: right; margin: 0.5rem 0 1.5rem; }
.fl-truth-hdr { background: transparent; border: none; padding-block: 0 0.25rem; }
.fl-truth-hdr span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fl-text-muted) !important; }

.fl-prompt {
    border-left: 2px solid var(--fl-teal);
    padding: 0.2rem 0 0.2rem 1rem;
    margin: 0.25rem 0 1rem;
    color: var(--fl-text-soft);
    line-height: 1.7;
}
.fl-prompt.gold { border-left-color: var(--fl-gold); }
.fl-prompt.gold strong { color: var(--fl-gold-text); }
.fl-prompt strong { color: var(--fl-text-strong); }
.fl-prompt-note { font-size: 0.85rem; font-style: italic; color: var(--fl-text-muted); margin-top: 0.4rem; }

/* per-entry save */
.fl-entry-row { display: flex; align-items: center; gap: 0.75rem; margin-top: -0.25rem; min-height: 2rem; }
.fl-entry-save {
    border: 1px solid color-mix(in srgb, var(--fl-teal) 45%, var(--fl-border));
    background: color-mix(in srgb, var(--fl-teal) 10%, transparent);
    color: var(--fl-teal-text);
    border-radius: var(--fl-radius-sm);
    padding: 0.3rem 0.8rem;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}
.fl-entry-save:hover:not(:disabled) { background: color-mix(in srgb, var(--fl-teal) 20%, transparent); }
.fl-entry-save:disabled { opacity: 0.45; cursor: default; }
.fl-entry-save:focus-visible, .fl-arc-btn:focus-visible, .fl-value-card:focus-visible { outline: 2px solid var(--fl-blue-sky); outline-offset: 2px; }

/* burden triad + vision tests */
.fl-triad { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 720px) { .fl-triad { grid-template-columns: repeat(3, 1fr); } }
.fl-triad-card, .fl-test-card {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    padding: 1.1rem 1rem;
}
.fl-triad-card { border: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); text-align: center; }
.fl-triad-icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.fl-triad-card h3 { font-size: 0.95rem; color: var(--fl-text-strong); margin: 0 0 0.2rem; }
.fl-triad-tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, var(--fl-gold-text)); margin-bottom: 0.4rem; }
.fl-triad-card p { font-size: 0.8rem; color: var(--fl-text-muted); line-height: 1.55; margin: 0; }
.fl-test-card { background: var(--fl-surface); }
.fl-test-q { color: var(--fl-text-strong); font-weight: 600; font-size: 0.92rem; line-height: 1.5; margin-bottom: 0.5rem; }
.fl-intersection {
    border: 1px dashed color-mix(in srgb, var(--fl-gold) 40%, transparent);
    background: color-mix(in srgb, var(--fl-gold) 4%, transparent);
    padding: 0.9rem 1.4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.fl-intersection strong { color: var(--fl-gold-text); }
.fl-intersection p { font-size: 0.88rem; color: var(--fl-text-muted); margin: 0.25rem 0 0; }

/* story arc */
.fl-arc { margin: 1rem 0 0.5rem; }
.fl-arc-row {
    display: grid;
    grid-template-columns: 1.75rem 1fr;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.6rem;
}
.fl-arc-row .fl-input { margin: 0; }
.fl-arc-row > :nth-child(3) { grid-column: 2; }
.fl-arc-type { grid-column: 2; display: flex; gap: 0.35rem; }
.fl-arc-hdr { display: none; }
@media (min-width: 720px) {
    .fl-arc-row { grid-template-columns: 1.75rem 2.5fr 1fr auto; }
    .fl-arc-row > :nth-child(3), .fl-arc-type { grid-column: auto; }
    .fl-arc-hdr { display: grid; margin-bottom: 0.3rem; }
    .fl-arc-hdr span { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fl-text-muted); }
}
.fl-arc-dot {
    width: 1.75rem; height: 1.75rem;
    border-radius: 50%;
    border: 2px solid var(--fl-border-strong);
    display: grid; place-items: center;
    font-size: 0.72rem;
    color: var(--fl-text-muted);
}
.fl-arc-dot.peak { border-color: var(--fl-teal); color: var(--fl-teal-text); }
.fl-arc-dot.valley { border-color: #e07050; color: #e07050; }
.fl-arc-btn {
    border: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-muted);
    border-radius: var(--fl-radius-sm);
    padding: 0.3rem 0.65rem;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}
.fl-arc-btn.peak.on { border-color: var(--fl-teal); background: color-mix(in srgb, var(--fl-teal) 14%, transparent); color: var(--fl-teal-text); }
.fl-arc-btn.valley.on { border-color: #e07050; background: color-mix(in srgb, #e07050 14%, transparent); color: #e07050; }
.fl-themes { margin-top: 1.5rem; }
.fl-themes .fl-eyebrow, .fl-reflections .fl-eyebrow, .fl-cap-align .fl-eyebrow {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fl-teal-text);
}
.fl-eyebrow.gold { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fl-gold-text); }
.fl-theme-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.fl-theme-word { padding: 0.2rem 0.6rem; border: 1px solid var(--c); color: var(--c); font-family: var(--fl-serif); font-style: italic; }

.fl-two-col, .fl-three-col { display: grid; gap: 1rem; }
@media (min-width: 720px) {
    .fl-two-col { grid-template-columns: 1fr 1fr; }
    .fl-three-col { grid-template-columns: repeat(3, 1fr); }
}
.fl-voice-title { font-size: 0.95rem; color: var(--fl-text-strong); margin: 0 0 0.25rem; }

/* vision builder */
.fl-vision-builder .fl-exercise-body .fl-input { border-bottom-color: color-mix(in srgb, var(--fl-gold) 40%, var(--fl-border)); }
.fl-vision-builder .fl-field-label { color: var(--fl-gold-text); margin-bottom: 0.1rem; }
.fl-entry-hint { margin: -0.2rem 0 0.4rem; }
.fl-vision-output {
    border: 1px solid color-mix(in srgb, var(--fl-gold) 35%, transparent);
    background: color-mix(in srgb, var(--fl-gold) 6%, transparent);
    padding: 1.1rem 1.3rem;
    margin-top: 0.5rem;
}
.fl-vision-text { font-family: var(--fl-serif); font-size: 1.15rem; line-height: 1.7; color: var(--fl-text-strong); margin: 0; }
.fl-vision-text .val { color: var(--fl-gold-text); }
.fl-vision-text .val.sky { color: var(--fl-blue-sky); }
.fl-vision-text .val.scale { font-style: italic; }

/* values flip cards */
.fl-values-head { padding: 0.9rem 1.1rem; }
.fl-values-head .fl-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fl-teal-text); }
.fl-values-head .fl-values-tabs { align-items: center; margin: 0; }
.fl-value-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.fl-value-card {
    perspective: 700px;
    height: 5.5rem;
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-align: center;
}
.fl-value-inner { position: relative; display: block; width: 100%; height: 100%; transition: transform 0.45s; transform-style: preserve-3d; }
.fl-value-card:hover .fl-value-inner, .fl-value-card:focus-visible .fl-value-inner { transform: rotateY(180deg); }
.fl-value-front, .fl-value-back {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
    padding: 0.5rem;
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: var(--fl-bg-raised);
    backface-visibility: hidden;
}
.fl-value-back { transform: rotateY(180deg); font-size: 0.75rem; line-height: 1.4; color: var(--fl-text-soft); }
.fl-value-name { color: var(--fl-text-strong); font-weight: 600; font-size: 0.9rem; }
.fl-value-check { font-size: 0.7rem; color: var(--fl-teal-text); }
.fl-value-card.on .fl-value-front, .fl-value-card.on .fl-value-back { border-color: var(--fl-teal); background: color-mix(in srgb, var(--fl-teal) 10%, var(--fl-bg-raised)); }
.fl-value-card.on .fl-value-name { color: var(--fl-teal-text); }
.fl-value-card.core .fl-value-front, .fl-value-card.core .fl-value-back { border-color: var(--fl-gold); background: color-mix(in srgb, var(--fl-gold) 12%, var(--fl-bg-raised)); }
.fl-value-card.core .fl-value-name, .fl-value-card.core .fl-value-check { color: var(--fl-gold-text); }
@media (prefers-reduced-motion: reduce) {
    .fl-value-inner { transition: none; }
}
.fl-core-values { margin-top: 1.5rem; }

/* mission */
.fl-cap-align {
    border: 1px solid color-mix(in srgb, var(--cap) 35%, var(--fl-border));
    border-top: 2px solid var(--cap);
    background: var(--fl-surface);
    padding: 1rem;
}
.fl-cap-align.wide { grid-column: 1 / -1; }
.fl-cap-align .fl-eyebrow { color: var(--cap-text); }
.fl-cap-align .fl-caption { margin-bottom: 0.5rem; }
.fl-reflections { border-top: 3px solid var(--fl-teal); margin-top: 1.5rem; }
.fl-reflection { border-left: 3px solid var(--fl-teal); background: var(--fl-surface); padding: 0.8rem 1rem; margin-bottom: 0.7rem; }
.fl-reflection p { font-style: italic; color: var(--fl-text-soft); margin: 0; line-height: 1.6; }
.fl-side-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fl-text-muted); margin: 0.9rem 0.65rem 0.3rem; }
.fl-summary-arc { padding-left: 1.2rem; color: var(--fl-text-soft); }
.fl-summary-arc li.peak::marker { color: var(--fl-teal); }
.fl-summary-arc li.valley::marker { color: #e07050; }
.fl-journal-field { margin-bottom: 1.15rem; }

.fl-values-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.fl-values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.fl-value-chip {
    border: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-soft);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    cursor: pointer;
    font-family: inherit;
}
.fl-value-chip:hover { border-color: var(--fl-border-strong); color: var(--fl-text-strong); }
.fl-value-chip.on {
    border-color: var(--fl-teal);
    background: color-mix(in srgb, var(--fl-teal) 12%, transparent);
    color: var(--fl-teal-text);
}
.fl-value-chip.on.final {
    border-color: var(--fl-gold);
    background: var(--fl-gold-soft);
    color: var(--fl-gold-text);
}

.fl-summary-stage { margin-bottom: 1rem; }
.fl-summary-field { margin-bottom: 0.75rem; }
.fl-summary-text { color: var(--fl-text-soft); line-height: 1.65; white-space: pre-wrap; }

/* flourishing plan */
.fl-mode-toggle {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.fl-mode-btn {
    flex: 1;
    padding: 0.6rem;
    border-radius: var(--fl-radius-sm);
    border: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.fl-mode-btn.active {
    border-color: var(--fl-teal);
    background: color-mix(in srgb, var(--fl-teal) 14%, transparent);
    color: var(--fl-teal-text);
}

.fl-domain-card {
    border: 1px solid var(--fl-border);
    border-radius: var(--fl-radius-sm);
    background: color-mix(in srgb, var(--fl-primary) 9%, transparent);
    padding: 1.1rem 1.2rem;
    margin-bottom: 0.9rem;
}
.fl-domain-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}
.fl-domain-head h3 { margin: 0; font-size: 0.98rem; }

.fl-range-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.75rem 0;
}
.fl-range-row input[type="range"] { flex: 1; accent-color: var(--cap, var(--fl-teal)); }
.fl-range-val {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    min-width: 1.6rem;
    text-align: right;
}
/* An untouched slider parks at the midpoint; fading it keeps "not read yet" from reading as a 5. */
.fl-range-row.unread input[type="range"] { opacity: 0.55; }
.fl-range-row.unread .fl-range-val { opacity: 0.5; }
.fl-reading-progress { margin: -0.4rem 0 0.9rem; }

.fl-check-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--fl-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    cursor: pointer;
    padding: 0.4rem 0 0;
    margin-top: 0.5rem;
}
.fl-check-row.on { color: var(--fl-teal-text); }
.fl-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid var(--fl-border);
    display: grid;
    place-items: center;
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--fl-on-accent);
}
.fl-check-row.on .fl-check {
    border-color: var(--fl-teal);
    background: var(--fl-teal);
}

.fl-root-callouts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 0.5rem 0 1rem;
}
.fl-root-card {
    flex: 1;
    min-width: 200px;
    border-radius: var(--fl-radius-sm);
    padding: 0.85rem 1rem;
}
.fl-root-card.deep {
    border: 1px solid color-mix(in srgb, var(--fl-teal) 40%, transparent);
    background: color-mix(in srgb, var(--fl-teal) 7%, transparent);
}
.fl-root-card.thirst {
    border: 1px solid color-mix(in srgb, var(--fl-gold) 40%, transparent);
    background: color-mix(in srgb, var(--fl-gold) 6%, transparent);
}
.fl-talk-prompts {
    font-style: italic;
    color: var(--fl-text);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}
.fl-rhythm-list { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.25rem; }
.fl-rhythm-opt {
    text-align: left;
    padding: 0.65rem 0.9rem;
    border-radius: var(--fl-radius-sm);
    border: 1px solid var(--fl-border);
    background: transparent;
    color: var(--fl-text-soft);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
.fl-rhythm-opt.active {
    border-color: var(--fl-teal);
    background: color-mix(in srgb, var(--fl-teal) 10%, transparent);
    color: var(--fl-text-strong);
}
.fl-family-vmv { display: flex; flex-direction: column; gap: 0.9rem; }
.fl-vmv-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 0.25rem;
}
.fl-family-vmv p { color: var(--fl-text); line-height: 1.65; margin: 0; }

/* ── organization branding ──────────────────────────── */

/* An uploaded logo replaces the default wheat mark in the same 34px slot. */
.fl-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

/* Colour swatch beside its hex field, seat count beside its button. */
.fl-inline-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 24rem;
    margin-bottom: 0.5rem;
}
.fl-inline-field .form-control-color { flex: 0 0 3.5rem; }

/* Read-only plan fields in the admin member view. */
.fl-plan-readout dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fl-text-muted);
    margin-top: 0.9rem;
}
.fl-plan-readout dd { margin: 0.2rem 0 0; color: var(--fl-text-soft); }

/* Deactivated organizations stay listed but read as inactive. */
.fl-row-muted { opacity: 0.55; }

/* ── per-capital text on the light theme ──
   Capital.TextColorHex is authored in the database against the dark ground, where it reads at
   7:1 and looks right. The same values land near 2:1 on the light ground. Darkening at the use
   site keeps the hue, keeps the admin's data authoritative, and avoids a second colour column
   per capital. The dark theme is untouched and uses the authored value as-is.
   ponytail: give each capital a real light colour if an org ever needs exact brand hues. */
:root[data-theme="light"] .fl-today-tag,
:root[data-theme="light"] .fl-cap-list .fl-cap-icon,
:root[data-theme="light"] .fl-rating-labels strong,
:root[data-theme="light"] .fl-scale-example strong,
:root[data-theme="light"] .fl-rating-value strong,
:root[data-theme="light"] .fl-review-capital-title,
:root[data-theme="light"] .fl-review-answer,
:root[data-theme="light"] .fl-cap-card header h3,
:root[data-theme="light"] .fl-cap-stage,
:root[data-theme="light"] .fl-domain-title,
:root[data-theme="light"] .fl-range-val,
:root[data-theme="light"] .fl-cap-text,
:root[data-theme="light"] .fl-pill.active {
    color: color-mix(in srgb, var(--cap-text, var(--fl-text)) 45%, #000000);
}

/* Colour carried as a custom property rather than an inline `color:`, so the light theme can
   darken it above. Inline colours win over any stylesheet and cannot be themed. */
.fl-domain-title, .fl-range-val, .fl-cap-text { color: var(--cap-text, var(--fl-text-strong)); }

/* Calling "Print profile": the page, not the app chrome, on paper-coloured ground. */
@media print {
    :root { --fl-bg: #fff; --fl-bg-raised: #fff; --fl-text: #111; --fl-text-soft: #222; --fl-text-strong: #000; --fl-text-muted: #444; }
    body { background: #fff !important; }
    .fl-nav, .fl-footer, .fl-side-nav, .fl-scope-bar, .fl-save-row, .fl-entry-row,
    .fl-page-actions, .fl-linkish, .btn { display: none !important; }
    .fl-side-layout { display: block; }
    .fl-exercise, .fl-panel, .fl-callout, .fl-summary-stage { break-inside: avoid; }
}

/* Ron Blue 4 H's */
.fl-pr-subgroup { margin-left: 0.6rem; }
.fl-fourh-grid { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .fl-fourh-grid { grid-template-columns: 1fr 1fr; } }
.fl-fourh-card {
    padding: 1rem 1.1rem;
    background: var(--fl-surface);
    border: 1px solid var(--fl-border);
    border-left: 3px solid var(--accent, var(--fl-yellow));
    border-radius: var(--fl-radius-sm);
}
.fl-treasure-q { border-left-width: 1px; border-top: 3px solid var(--accent); }
.fl-fourh-q { color: var(--fl-text); line-height: 1.6; }
.fl-fourh-ref {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fl-teal-text);
}
.fl-fourh-note { font-size: 0.88rem; color: var(--fl-text-soft); line-height: 1.6; }
.fl-fourh-action { font-size: 0.85rem; color: var(--fl-teal-text); margin-bottom: 0; }
.fl-fourh-scale-ends { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--fl-text-muted); }
.fl-fourh-dot {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--accent);
}
.fl-fourh-pager { margin: 2rem 0 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--fl-border); }
.fl-margin-meter { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.fl-margin-stage {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem;
    text-align: left;
    font: inherit;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fl-text-soft);
    background: var(--fl-surface);
    border: 1px solid var(--fl-border);
    border-top: 3px solid var(--fl-border-strong);
    border-radius: var(--fl-radius-sm);
}
.fl-margin-stage strong { color: var(--fl-text-strong); }
.fl-margin-stage:hover { background: var(--fl-surface-strong); }
.fl-margin-stage:focus-visible { outline: 2px solid var(--fl-blue-sky); outline-offset: 2px; }
.fl-margin-stage.is-selected {
    border-color: var(--fl-teal);
    background: color-mix(in srgb, var(--fl-teal) 12%, transparent);
}
.fl-treasure-levels { list-style: none; padding: 0; margin: 0; }
.fl-treasure-levels li { font-size: 0.85rem; line-height: 1.55; color: var(--fl-text-soft); margin-bottom: 0.55rem; }
.fl-treasure-badge {
    display: inline-block;
    margin-right: 0.35rem;
    padding: 0 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
    color: var(--fl-text-strong);
}
.fl-pie { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; }
@media (min-width: 1100px) { .fl-pie { grid-template-columns: 1fr 1fr; align-items: start; } }
.fl-pie-row {
    display: grid;
    grid-template-columns: 1fr 7rem 3rem;
    gap: 0.6rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--fl-border);
    font-size: 0.9rem;
}
.fl-pie-row .fl-input { margin: 0; padding: 0.4rem 0.5rem; border-bottom: 2px solid var(--accent); }
.fl-pie-pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fl-pie-total { font-weight: 700; color: var(--fl-teal-text); border-bottom: 0; }
.fl-pie-warn {
    font-size: 0.85rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid color-mix(in srgb, #e07050 40%, transparent);
    background: color-mix(in srgb, #e07050 8%, transparent);
}
.fl-pie-chart svg { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.fl-pie-slice { cursor: crosshair; outline: none; }
.fl-pie-slice path { stroke: var(--fl-bg); stroke-width: 2; opacity: 0.88; }
.fl-pie-slice:hover path, .fl-pie-slice:focus path { opacity: 1; }
.fl-pie-slice:focus-visible path { stroke: var(--fl-text-strong); }
.fl-pie-empty { fill: none; stroke: var(--fl-border-strong); stroke-width: 2; stroke-dasharray: 6 4; }
.fl-pie-chart text { text-anchor: middle; dominant-baseline: middle; }
.fl-pie-label { fill: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.fl-pie-hint { fill: var(--fl-text-muted); font-size: 11px; }
.fl-pie-center { fill: var(--fl-text-strong); font-family: var(--fl-serif); font-size: 13px; font-weight: 700; }
.fl-pie-center.strong { font-size: 15px; }
.fl-pie-center.gold { fill: var(--fl-gold-text); font-size: 10px; letter-spacing: 0.08em; }
.fl-pie-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1rem; list-style: none; padding: 0; margin: 0.75rem 0 1rem; font-size: 0.8rem; }

/* Skip link: off-screen until focused, then pinned above the sticky nav. */
.fl-skip {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 50;
    padding: 0.5rem 0.9rem;
    border-radius: var(--fl-radius-sm);
    background: var(--fl-bg-raised);
    color: var(--fl-text-strong);
    border: 1px solid var(--fl-border-strong);
}
.fl-skip:focus { top: 0.75rem; outline: 2px solid var(--fl-blue-sky); outline-offset: 2px; }
.fl-main:focus { outline: none; }
