:root {
    /* FitCrew Branding v1.0 — primitive brand tokens */
    --fc-royal-blue: #1e40af;
    --fc-energy-orange: #ff6a00;
    --fc-deep-navy: #0d1b3d;
    --fc-steel-gray: #6b7280;
    --fc-light-gray: #f2f4f7;
    --fc-white: #ffffff;

    /* Production support tokens */
    --fc-blue-hover: #17378f;
    --fc-action-orange: #ff7a1a;
    --fc-action-orange-hover: #ff8a33;
    --fc-danger: #b42318;
    --fc-success: #067647;
    --fc-warning: #9a5b13;
    --fc-text: #0d1b3d;
    --fc-text-muted: #536174;
    --fc-border: #d8dee9;
    --fc-border-strong: #bbc5d5;
    --fc-surface: #ffffff;
    --fc-surface-soft: #f7f9fc;
    --fc-surface-blue: #eef3ff;
    --fc-focus: #1e40af;

    /* Semantic UI tokens */
    --color-page: var(--fc-light-gray);
    --color-surface: var(--fc-surface);
    --color-surface-soft: var(--fc-surface-soft);
    --color-text: var(--fc-text);
    --color-muted: var(--fc-text-muted);
    --color-border: var(--fc-border);
    --color-brand: var(--fc-royal-blue);
    --color-energy: var(--fc-energy-orange);
    --color-strong: var(--fc-deep-navy);

    /* Typography */
    --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --font-interface: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Layout / shape */
    --content-max: 1320px;
    --content-wide: 1520px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --shadow-sm: 0 8px 24px rgba(13, 27, 61, 0.08);
    --shadow-md: 0 18px 52px rgba(13, 27, 61, 0.12);
    --shadow-strong: 0 24px 70px rgba(4, 12, 32, 0.28);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-interface);
    color: var(--color-text);
    background: var(--color-page);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--color-brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(30, 64, 175, 0.35);
    outline-offset: 3px;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--color-strong);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(13, 27, 61, 0.08);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
}

.site-header-inner {
    position: relative;
    width: min(var(--content-wide), calc(100% - 2rem));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
    color: var(--fc-deep-navy);
}

.brand-lockup:hover {
    text-decoration: none;
}

.brand-lockup-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 11px;
    box-shadow: 0 7px 18px rgba(13, 27, 61, 0.16);
}

.brand-lockup-type {
    display: grid;
    line-height: 1;
}

.brand-lockup-type strong {
    display: flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 1.95rem;
    font-weight: 400;
    letter-spacing: 0.025em;
    line-height: 0.82;
}

.brand-lockup-type strong span {
    color: var(--fc-royal-blue);
}

.brand-lockup-type strong em {
    color: var(--fc-energy-orange);
    font-style: normal;
}

.brand-lockup-type small {
    margin-top: 0.24rem;
    color: var(--fc-deep-navy);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.29em;
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 1.8vw, 1.45rem);
    font-size: 0.9rem;
    font-weight: 700;
}

.site-nav > a:not(.nav-action) {
    position: relative;
    color: var(--fc-deep-navy);
}

.site-nav > a:not(.nav-action)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.4rem;
    height: 2px;
    background: var(--fc-energy-orange);
    transition: right 160ms ease;
}

.site-nav > a:not(.nav-action):hover {
    color: var(--fc-royal-blue);
    text-decoration: none;
}

.site-nav > a:not(.nav-action):hover::after {
    right: 0;
}

.nav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 0.95rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.nav-action:hover {
    text-decoration: none;
}

.nav-action-outline {
    border: 1px solid var(--fc-royal-blue);
    color: var(--fc-royal-blue);
    background: var(--fc-white);
}

.nav-action-outline:hover {
    color: var(--fc-white);
    background: var(--fc-royal-blue);
}

.nav-action-energy {
    color: var(--fc-deep-navy);
    background: var(--fc-energy-orange);
    border: 1px solid var(--fc-energy-orange);
}

.nav-action-energy:hover {
    color: var(--fc-deep-navy);
    background: #ff8530;
    border-color: #ff8530;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-sm);
    background: var(--fc-white);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    width: 20px;
    height: 2px;
    background: var(--fc-deep-navy);
    border-radius: var(--radius-pill);
}

.app-header-context {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1rem;
    border-left: 1px solid var(--fc-border);
}

.context-label {
    color: var(--fc-text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* General UI */
.eyebrow {
    margin-bottom: 0.7rem;
    color: var(--fc-royal-blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #d7e3ff;
}

.button,
button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 0.5rem;
    padding: 0.76rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover,
.button:focus-visible {
    text-decoration: none;
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    color: var(--fc-white);
    background: var(--fc-royal-blue);
    border-color: var(--fc-royal-blue);
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.2);
}

.button-primary:hover {
    background: var(--fc-blue-hover);
    border-color: var(--fc-blue-hover);
}

.button-energy {
    color: var(--fc-deep-navy);
    background: var(--fc-energy-orange);
    border-color: var(--fc-energy-orange);
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.22);
}

.button-energy:hover {
    background: var(--fc-action-orange-hover);
    border-color: var(--fc-action-orange-hover);
}

.button-secondary {
    color: var(--fc-royal-blue);
    background: var(--fc-white);
    border-color: var(--fc-border-strong);
}

.button-secondary:hover {
    border-color: var(--fc-royal-blue);
}

.button-on-dark {
    color: var(--fc-white);
    background: transparent;
    border-color: rgba(255, 255, 255, 0.56);
}

.button-on-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--fc-white);
}

.button-full {
    width: 100%;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 0.38rem;
    padding: 0.38rem 0.62rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.status-chip-neutral {
    color: #49566a;
    background: #eef1f5;
    border: 1px solid #d9dfe8;
}

.flash {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 1rem auto 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    color: #744210;
    background: #fff7e9;
    border: 1px solid #f4d49a;
    font-weight: 700;
}

.text-link {
    font-size: 0.84rem;
    font-weight: 800;
}

/* Public */
.page-shell {
    min-height: 60vh;
}

.public-body {
    background: var(--fc-white);
}

.home-hero {
    position: relative;
    width: min(1720px, calc(100% - 1.5rem));
    min-height: 500px;
    margin: 0.65rem auto 0;
    overflow: hidden;
    border-radius: 20px;
    color: var(--fc-white);
    background-color: #07142f;
    background-image: url("/assets/img/hero/fitcrew-hero-1.1.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 20px 55px rgba(13, 27, 61, 0.17);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(4, 12, 31, 0.14), rgba(4, 12, 31, 0.03) 42%, rgba(4, 12, 31, 0.08) 100%);
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    width: min(650px, 46%);
    min-height: 500px;
    padding: clamp(2.6rem, 4.2vw, 4.8rem) clamp(2.2rem, 5vw, 5.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
}

.home-hero-visual {
    display: none;
}

.home-hero-visual::before {
    display: none;
}

.home-hero h1 {
    max-width: 720px;
    margin-bottom: 0.9rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 4.8vw, 5.65rem);
    font-weight: 400;
    letter-spacing: 0.012em;
    line-height: 0.86;
    color: var(--fc-white);
}

.home-hero h1 span {
    display: block;
    white-space: nowrap;
}

.home-hero h1 span:nth-child(2) {
    color: #dbe6ff;
}

.home-hero h1 span:nth-child(3) {
    color: var(--fc-energy-orange);
}

.hero-brand-statement {
    margin-bottom: 0.8rem;
    color: #ff9145;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
    font-weight: 800;
}

.lead {
    max-width: 670px;
    color: var(--fc-text-muted);
    font-size: clamp(1.02rem, 1.15vw, 1.14rem);
    line-height: 1.62;
}

.lead-light {
    color: #d8e1f2;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.45rem;
}

.home-section {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.8rem 0;
}

.home-section-soft {
    width: 100%;
    padding-inline: max(1rem, calc((100vw - var(--content-max)) / 2));
    background: var(--fc-light-gray);
}

.home-how {
    padding-top: 2.6rem;
    padding-bottom: 2.7rem;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 1.35rem;
}

.section-heading-centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2,
.privacy-band h2 {
    margin-bottom: 0.55rem;
    font-family: var(--font-display);
    font-size: clamp(2.35rem, 3.4vw, 3.55rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.98;
}

.section-heading p:not(.eyebrow) {
    max-width: 820px;
    margin-inline: auto;
    margin-bottom: 0;
    color: var(--fc-text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-top: 2px solid var(--fc-energy-orange);
    border-bottom: 1px solid var(--fc-border);
    background: var(--fc-white);
}

.step-card {
    min-width: 0;
    padding: 1.15rem 1.3rem 1.2rem;
    border-right: 1px solid var(--fc-border);
    background: var(--fc-white);
}

.step-card:last-child {
    border-right: 0;
}

.step-index {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-bottom: 0.7rem;
    border-radius: 50%;
    color: var(--fc-white);
    background: var(--fc-deep-navy);
    font-size: 0.72rem;
    font-weight: 800;
}

.step-card:nth-child(even) .step-index {
    background: var(--fc-royal-blue);
}

.step-card h3 {
    margin-bottom: 0.38rem;
    font-size: 1rem;
    line-height: 1.3;
}

.step-card p {
    margin-bottom: 0;
    color: var(--fc-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.privacy-band {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 1.8rem auto 2.2rem;
    padding: 1.6rem clamp(1.5rem, 3vw, 2.3rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1.1rem, 2.5vw, 1.8rem);
    border-radius: 20px;
    color: var(--fc-white);
    background: linear-gradient(115deg, var(--fc-deep-navy), #173879);
    box-shadow: var(--shadow-md);
}

.privacy-mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.24);
    border-radius: 16px;
    color: var(--fc-energy-orange);
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}

.privacy-band .eyebrow {
    margin-bottom: 0.4rem;
}

.privacy-band h2 {
    margin-bottom: 0.38rem;
    color: var(--fc-white);
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.privacy-copy p:last-child {
    max-width: 820px;
    margin-bottom: 0;
    color: #d4deef;
    font-size: 0.88rem;
    line-height: 1.58;
}

.privacy-cta {
    min-width: 148px;
}

/* Auth */
.auth-shell {
    width: min(var(--content-max), calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
}

.auth-layout {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    min-height: 610px;
    border: 1px solid var(--fc-border);
    border-radius: 28px;
    background: var(--fc-white);
    box-shadow: var(--shadow-md);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 3.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--fc-white);
    background:
        radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.45), transparent 34%),
        linear-gradient(145deg, #07142f, var(--fc-deep-navy) 55%, #153677);
}

.auth-brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -14% -20% 25%;
    height: 190px;
    border-top: 6px solid rgba(255, 106, 0, 0.5);
    transform: rotate(-18deg);
}

.auth-brand-panel img {
    width: min(100%, 345px);
    margin: 0 auto 1rem;
}

.auth-brand-panel > p {
    margin: 0 auto 1.8rem;
    max-width: 340px;
    color: #e5ebf6;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.auth-brand-points {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.auth-brand-points span {
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.7rem;
    font-weight: 700;
}

.auth-content {
    display: grid;
    place-items: center;
    padding: clamp(1.6rem, 5vw, 4rem);
}

.auth-card {
    width: min(100%, 500px);
}

.auth-card .status-chip {
    margin-bottom: 1.3rem;
}

.auth-card h1 {
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(3.1rem, 7vw, 4.9rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.96;
}

.auth-intro,
.placeholder-note {
    color: var(--fc-text-muted);
    line-height: 1.65;
}

.placeholder-note {
    margin-top: 0.8rem;
    font-size: 0.76rem;
}

.form-placeholder {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-placeholder label {
    display: grid;
    gap: 0.42rem;
    color: var(--fc-deep-navy);
    font-size: 0.8rem;
    font-weight: 800;
}

.form-placeholder input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--radius-sm);
    color: var(--fc-deep-navy);
    background: #f9fafc;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.auth-create-account-callout {
    margin-top: 1.4rem;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid #dce4f2;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.auth-create-account-callout h2 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    line-height: 1.25;
}

.auth-create-account-callout p {
    margin: 0 0 0.8rem;
    color: var(--fc-text-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

/* Generic placeholder panel */
.panel {
    width: min(820px, calc(100% - 2rem));
    margin: clamp(2rem, 6vw, 5rem) auto;
    padding: clamp(1.6rem, 5vw, 3rem);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-lg);
    background: var(--fc-white);
    box-shadow: var(--shadow-md);
}

.panel h1 {
    margin: 0 0 0.8rem;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.3rem);
    font-weight: 400;
    line-height: 0.95;
}

.panel > p:not(.eyebrow) {
    color: var(--fc-text-muted);
    line-height: 1.7;
}

.placeholder-panel .status-chip {
    margin-bottom: 1.2rem;
}

.placeholder-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* App shell */
.app-body {
    background: #edf1f7;
}

.app-shell {
    width: min(var(--content-wide), calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.5rem 0 3rem;
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 1.25rem;
}

.app-sidebar,
.app-content {
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-lg);
    background: var(--fc-white);
    box-shadow: var(--shadow-sm);
}

.app-sidebar {
    align-self: start;
    position: sticky;
    top: 94px;
    overflow: hidden;
}

.sidebar-brand-block {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--fc-border);
    background: #f8faff;
}

.sidebar-brand-block img {
    width: 52px;
    height: auto;
}

.sidebar-label {
    margin: 0 0 0.15rem;
    color: var(--fc-text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-brand-block strong,
.sidebar-brand-block span {
    display: block;
}

.sidebar-brand-block strong {
    font-size: 0.9rem;
}

.sidebar-brand-block span:not(.sidebar-label) {
    margin-top: 0.15rem;
    color: var(--fc-text-muted);
    font-size: 0.68rem;
}

.sidebar-nav {
    display: grid;
    gap: 0.25rem;
    padding: 0.8rem;
}

.sidebar-nav a,
.sidebar-link-disabled {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--fc-deep-navy);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-current {
    text-decoration: none;
    color: var(--fc-royal-blue);
    background: var(--fc-surface-blue);
}

.sidebar-link-disabled {
    color: #7b8798;
}

.sidebar-link-disabled em {
    margin-left: auto;
    color: #8a94a3;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.sidebar-note {
    margin: 0.8rem;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    background: var(--fc-deep-navy);
}

.sidebar-note p {
    margin: 0.65rem 0 0;
    color: #cdd7e7;
    font-size: 0.68rem;
    line-height: 1.55;
}

.app-content {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.app-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--fc-border);
}

.app-page-heading h1 {
    margin-bottom: 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 0.95;
}

.app-page-heading p:not(.eyebrow) {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--fc-text-muted);
    line-height: 1.65;
}

.app-context-card {
    margin-top: 1.4rem;
    padding: 1.2rem 1.35rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.2rem;
    border: 1px solid #d6e0f3;
    border-radius: var(--radius-md);
    background: #f5f8ff;
}

.context-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--fc-royal-blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.app-context-card strong {
    font-size: 0.92rem;
}

.app-context-card p {
    margin: 0.28rem 0 0;
    color: var(--fc-text-muted);
    font-size: 0.72rem;
}

.context-divider {
    width: 1px;
    background: #d6e0f3;
}

.app-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.app-card {
    min-height: 300px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    background: var(--fc-white);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1rem;
}

.card-icon-blue {
    color: var(--fc-royal-blue);
    background: #edf2ff;
}

.card-icon-orange {
    color: #9a4300;
    background: #fff0e6;
}

.card-icon-navy {
    color: var(--fc-white);
    background: var(--fc-deep-navy);
}

.card-kicker {
    margin-bottom: 0.4rem;
    color: var(--fc-royal-blue);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.app-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

.app-card p:not(.card-kicker) {
    margin-bottom: 0;
    color: var(--fc-text-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.app-card .status-chip,
.app-card .text-link {
    margin-top: auto;
}

/* Footer */
.site-footer {
    color: #c9d3e5;
    background: #08152f;
}

.site-footer-inner {
    width: min(var(--content-wide), calc(100% - 2rem));
    margin: 0 auto;
    padding: 2.2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand {
    display: inline-flex;
    gap: 0.35rem;
    color: var(--fc-white);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-brand span {
    color: var(--fc-energy-orange);
    font-weight: 600;
}

.footer-brand:hover {
    text-decoration: none;
}

.footer-tagline,
.footer-copy p {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
    line-height: 1.58;
}

.footer-copy {
    max-width: 430px;
    text-align: right;
}

.footer-copy p:first-child {
    color: #ff9a52;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1120px) {
    .home-hero h1 {
        font-size: clamp(3.75rem, 5.7vw, 5.25rem);
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-card:nth-child(2) {
        border-right: 0;
    }

    .step-card:nth-child(-n + 2) {
        border-bottom: 1px solid var(--fc-border);
    }

    .app-card-grid {
        grid-template-columns: 1fr;
    }

    .app-card {
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .site-header-inner {
        min-height: 66px;
    }

    .brand-lockup-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .brand-lockup-type strong {
        font-size: 1.72rem;
    }

    .fitcrew-js-ready .nav-toggle {
        display: inline-flex;
    }

    .fitcrew-js-ready .site-nav {
        display: none;
    }

    .fitcrew-js-ready .site-nav.is-open {
        position: absolute;
        top: 66px;
        left: -1rem;
        right: -1rem;
        display: grid;
        gap: 0;
        padding: 0.7rem 1rem 1rem;
        border-bottom: 1px solid var(--fc-border);
        background: var(--fc-white);
        box-shadow: var(--shadow-md);
    }

    .site-nav.is-open > a {
        padding: 0.8rem 0.5rem;
    }

    .site-nav.is-open > a:not(.nav-action)::after {
        display: none;
    }

    .site-nav.is-open .nav-action {
        margin-top: 0.4rem;
    }

    .app-header-context {
        display: none;
    }

    .home-hero {
        min-height: 510px;
        background-position: 58% center;
    }

    .home-hero-copy {
        width: min(670px, 78%);
        min-height: 510px;
        padding: 3.2rem clamp(1.5rem, 6vw, 3.2rem);
        background: none;
    }

    .home-hero h1 {
        font-size: clamp(3.75rem, 9.8vw, 5.2rem);
    }

    .privacy-band {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .privacy-band .button {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 315px;
    }

    .auth-brand-panel img {
        width: 245px;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-sidebar {
        position: static;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-header-inner {
        width: min(100% - 1.1rem, var(--content-wide));
    }

    .brand-lockup {
        gap: 0.55rem;
    }

    .brand-lockup-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 9px;
    }

    .brand-lockup-type strong {
        font-size: 1.5rem;
    }

    .brand-lockup-type small {
        font-size: 0.43rem;
        letter-spacing: 0.25em;
    }

    .home-hero {
        width: calc(100% - 0.75rem);
        min-height: 520px;
        margin-top: 0.4rem;
        border-radius: 15px;
        background-position: 61% center;
    }

    .home-hero-copy {
        width: 100%;
        min-height: 520px;
        align-self: flex-start;
        padding: 2.7rem 1.2rem 2.3rem;
        background: linear-gradient(180deg, rgba(7, 20, 47, 0.16) 0%, rgba(7, 20, 47, 0.08) 56%, rgba(7, 20, 47, 0.26) 100%);
    }

    .home-hero h1 {
        font-size: clamp(3.15rem, 14vw, 4.55rem);
    }

    .home-hero h1 span {
        white-space: normal;
    }

    .lead-light {
        max-width: 94%;
        font-size: 0.92rem;
    }

    .actions {
        max-width: 310px;
    }

    .actions .button {
        width: 100%;
    }

    .home-section,
    .privacy-band,
    .auth-shell,
    .app-shell,
    .site-footer-inner {
        width: min(100% - 1.25rem, var(--content-max));
    }

    .home-section-soft {
        width: 100%;
        padding-inline: 0.625rem;
    }

    .home-how {
        padding-top: 2rem;
        padding-bottom: 2.1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        border-top-width: 2px;
    }

    .step-card,
    .step-card:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--fc-border);
    }

    .step-card:last-child {
        border-bottom: 0;
    }

    .privacy-band {
        grid-template-columns: 1fr;
        margin-top: 1.2rem;
        margin-bottom: 1.4rem;
    }

    .privacy-mark {
        width: 56px;
        height: 56px;
        font-size: 1.45rem;
    }

    .privacy-band .button {
        width: 100%;
        justify-self: stretch;
    }

    .auth-shell {
        padding-top: 1rem;
    }

    .auth-layout {
        border-radius: 20px;
    }

    .auth-brand-panel {
        min-height: 270px;
        padding: 1.5rem;
    }

    .auth-brand-panel img {
        width: 210px;
    }

    .auth-content {
        padding: 1.5rem;
    }

    .auth-links,
    .site-footer-inner {
        flex-direction: column;
    }

    .footer-copy {
        text-align: left;
    }

    .sidebar-nav {
        grid-template-columns: 1fr;
    }

    .app-page-heading {
        flex-direction: column;
    }

    .app-context-card {
        grid-template-columns: 1fr;
    }

    .context-divider {
        width: 100%;
        height: 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Phase 2A2 — provider-neutral account entry */
.provider-choice-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.provider-choice {
    width: 100%;
    min-height: 64px;
    padding: 0.75rem 0.9rem;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--radius-md);
    color: var(--fc-deep-navy);
    background: var(--fc-white);
    text-align: left;
}

.provider-choice:disabled {
    opacity: 0.78;
    cursor: not-allowed;
}

.provider-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--fc-white);
    background: var(--fc-deep-navy);
    font-weight: 900;
}

.provider-choice-copy {
    display: grid;
    gap: 0.15rem;
}

.provider-choice-copy strong {
    font-size: 0.92rem;
}

.provider-choice-copy small {
    color: var(--fc-text-muted);
    font-size: 0.7rem;
    font-weight: 650;
}

.provider-status {
    padding: 0.34rem 0.5rem;
    border-radius: var(--radius-pill);
    color: var(--fc-text-muted);
    background: var(--fc-light-gray);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.account-entry-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--fc-energy-orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--fc-surface-blue);
}

.account-entry-note strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--fc-deep-navy);
    font-size: 0.82rem;
}

.account-entry-note p {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.auth-links-single {
    justify-content: flex-start;
}

@media (max-width: 520px) {
    .provider-choice {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .provider-status {
        grid-column: 2;
        justify-self: start;
    }
}

/* Phase 2A3 — Google authentication */
.google-provider-shell {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--radius-md);
    background: var(--fc-white);
}

.google-button-host {
    min-height: 44px;
    display: flex;
    align-items: center;
}

.provider-help {
    margin: 0.55rem 0 0;
    color: var(--fc-text-muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

.google-provider-shell .provider-help {
    margin-top: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-left: 3px solid var(--fc-royal-blue);
    border-radius: var(--radius-sm);
    background: var(--fc-surface-blue);
    color: var(--fc-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.provider-help.is-error {
    color: var(--fc-danger);
    font-weight: 700;
}

.nav-logout-form {
    margin: 0;
}

.nav-logout-button {
    font: inherit;
    cursor: pointer;
}

.authenticated-summary {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    background: var(--fc-surface-blue);
}

.authenticated-summary strong,
.authenticated-summary span {
    display: block;
}

.authenticated-summary span {
    margin-top: 0.25rem;
    color: var(--fc-text-muted);
    font-size: 0.78rem;
}

/* Phase 2A4 — Microsoft authentication */
.microsoft-provider-form {
    margin: 0;
}

.microsoft-provider-form .provider-choice {
    cursor: pointer;
}

.microsoft-provider-form .provider-choice:hover,
.microsoft-provider-form .provider-choice:focus-visible {
    border-color: var(--fc-royal-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.provider-mark-microsoft {
    background: #2f2f2f;
}

/* Wave 1 — Core Product Spine */
.site-header-app .site-nav,
.site-header-app .nav-toggle {
    display: none;
}

.site-header-app .app-header-context {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--fc-text-muted);
    font-size: 0.72rem;
}

.site-header-app .app-header-context strong {
    color: var(--fc-deep-navy);
    font-size: 0.78rem;
}

.site-header-app .app-header-context em {
    overflow: hidden;
    max-width: 320px;
    color: var(--fc-royal-blue);
    font-style: normal;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-context-block {
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid var(--fc-border);
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(255, 106, 0, 0.03)),
        #fbfcff;
}

.sidebar-context-block img {
    width: 50px;
    flex: 0 0 50px;
}

.sidebar-context-block strong,
.sidebar-context-block span {
    display: block;
}

.sidebar-context-block strong {
    overflow: hidden;
    max-width: 145px;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-context-block span {
    overflow: hidden;
    max-width: 145px;
    margin-top: 0.18rem;
    color: var(--fc-text-muted);
    font-size: 0.66rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-secondary {
    display: grid;
    gap: 0.2rem;
    margin: 0.25rem 0.8rem 0.8rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--fc-border);
}

.sidebar-secondary a,
.sidebar-secondary button {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--fc-text-muted);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.sidebar-secondary a:hover,
.sidebar-secondary button:hover {
    color: var(--fc-deep-navy);
    background: var(--fc-surface-soft);
    text-decoration: none;
}

.sidebar-product-note {
    margin: 0.8rem;
    padding: 0.95rem;
    display: grid;
    gap: 0.3rem;
    border-radius: var(--radius-md);
    color: var(--fc-white);
    background: linear-gradient(145deg, var(--fc-deep-navy), #173879);
}

.sidebar-product-note strong {
    color: var(--fc-white);
    font-size: 0.68rem;
    line-height: 1.45;
}

.sidebar-product-note span {
    color: #cdd7e7;
    font-size: 0.61rem;
    line-height: 1.5;
}

.product-hero {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: clamp(1.45rem, 3vw, 2.2rem);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    border-radius: 22px;
    color: var(--fc-white);
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 106, 0, 0.24), transparent 26%),
        linear-gradient(125deg, #0b1734, var(--fc-deep-navy) 50%, #1d429d);
    box-shadow: 0 16px 36px rgba(13, 27, 61, 0.16);
}

.product-hero::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -75px;
    width: 220px;
    height: 160px;
    border: 7px solid rgba(255, 106, 0, 0.34);
    border-radius: 52% 48% 0 0;
    transform: rotate(-14deg);
}

.product-hero > * {
    position: relative;
    z-index: 1;
}

.product-hero .eyebrow,
.product-hero h1,
.product-hero p {
    color: var(--fc-white);
}

.product-hero h1 {
    margin: 0 0 0.6rem;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.1rem);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 0.92;
}

.product-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #d9e1ef;
    font-size: 0.84rem;
    line-height: 1.62;
}

.compact-product-hero {
    min-height: 145px;
    margin-top: 0.9rem;
}

.compact-product-hero h1 {
    font-size: clamp(2.7rem, 5vw, 4rem);
}

.hero-stat,
.lifecycle-badge {
    min-width: 138px;
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.15rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-stat strong {
    color: var(--fc-white);
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 400;
    line-height: 1;
}

.hero-stat span,
.lifecycle-badge span {
    color: #d8e0ee;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.lifecycle-badge strong {
    color: var(--fc-white);
    font-size: 0.85rem;
    line-height: 1.35;
}


.lifecycle-badge-button {
    appearance: none;
    width: auto;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lifecycle-badge-button:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 26px rgba(2, 10, 28, 0.2);
}

.lifecycle-badge-button:focus-visible {
    outline: 3px solid rgba(255, 145, 69, 0.95);
    outline-offset: 3px;
}

.lifecycle-badge-button small {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.lifecycle-badge-button em {
    width: fit-content;
    margin-top: 0.3rem;
    padding: 0.24rem 0.42rem;
    border-radius: var(--radius-pill);
    color: #8f3500;
    background: #fff1e7;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

/* FitCrew modal foundation */
.fc-modal {
    width: min(760px, calc(100% - 2rem));
    max-width: 760px;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 26px;
    color: var(--fc-text);
    background: var(--fc-white);
    box-shadow: 0 32px 90px rgba(3, 12, 31, 0.34);
}

.fc-modal::backdrop {
    background: rgba(5, 13, 31, 0.68);
    backdrop-filter: blur(5px);
}

.fc-modal[open] {
    animation: fc-modal-enter 180ms ease-out;
}

@keyframes fc-modal-enter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fc-modal-panel {
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
}

.fc-modal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.45rem, 4vw, 2.1rem);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--fc-white);
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 106, 0, 0.22), transparent 28%),
        linear-gradient(125deg, #0b1734, var(--fc-deep-navy) 52%, #1d429d);
}

.fc-modal-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -84px;
    width: 230px;
    height: 170px;
    border: 7px solid rgba(255, 106, 0, 0.32);
    border-radius: 52% 48% 0 0;
    transform: rotate(-14deg);
    pointer-events: none;
}

.fc-modal-hero > * {
    position: relative;
    z-index: 1;
}

.fc-modal-hero .eyebrow {
    margin-bottom: 0.48rem;
    color: #ffb27c;
}

.fc-modal-hero h2 {
    margin: 0 0 0.55rem;
    color: var(--fc-white);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 0.92;
}

.fc-modal-hero p:not(.eyebrow) {
    margin: 0;
    color: #dce4f1;
    font-size: 0.82rem;
    font-weight: 700;
}

.fc-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    color: var(--fc-white);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.fc-modal-close:hover {
    transform: rotate(3deg);
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
}

.fc-modal-close:focus-visible {
    outline: 3px solid rgba(255, 145, 69, 0.95);
    outline-offset: 3px;
}

.fc-modal-body {
    padding: clamp(1.2rem, 3vw, 1.75rem);
}

.lifecycle-attention {
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    display: grid;
    gap: 0.2rem;
    border: 1px solid #ffd0ad;
    border-radius: 14px;
    color: #6f2b00;
    background: #fff5ed;
}

.lifecycle-attention strong {
    font-size: 0.76rem;
}

.lifecycle-attention span {
    color: #8a4a25;
    font-size: 0.72rem;
    line-height: 1.5;
}

.lifecycle-timeline {
    margin: 0;
    padding: 0;
    display: grid;
    list-style: none;
}

.lifecycle-step {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.9rem;
    min-height: 76px;
    padding-bottom: 0.9rem;
}

.lifecycle-step:last-child {
    min-height: auto;
    padding-bottom: 0;
}

.lifecycle-step::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 42px;
    bottom: 0;
    width: 2px;
    background: #dce3ef;
}

.lifecycle-step:last-child::before {
    display: none;
}

.lifecycle-step-marker {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid #d4dce9;
    border-radius: 50%;
    color: #748197;
    background: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
}

.lifecycle-step-copy {
    padding: 0.42rem 0 0.85rem;
    border-bottom: 1px solid #edf0f5;
}

.lifecycle-step:last-child .lifecycle-step-copy {
    border-bottom: 0;
}

.lifecycle-step-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lifecycle-step-heading strong {
    color: var(--fc-deep-navy);
    font-size: 0.9rem;
}

.lifecycle-step-heading span {
    flex: 0 0 auto;
    color: #7b8799;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lifecycle-step-copy p {
    margin: 0.25rem 0 0;
    color: var(--fc-text-muted);
    font-size: 0.73rem;
    line-height: 1.52;
}

.lifecycle-step.is-complete::before {
    background: #aabdf5;
}

.lifecycle-step.is-complete .lifecycle-step-marker {
    color: #ffffff;
    border-color: #2d55c7;
    background: #2d55c7;
}

.lifecycle-step.is-complete .lifecycle-step-heading span {
    color: #2d55c7;
}

.lifecycle-step.is-current .lifecycle-step-marker {
    color: #8d3600;
    border-color: #ff8a3d;
    background: #fff1e7;
    box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.1);
}

.lifecycle-step.is-current .lifecycle-step-heading strong,
.lifecycle-step.is-current .lifecycle-step-heading span {
    color: #b64b08;
}

.fc-modal-note {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.22rem;
    border-radius: 15px;
    color: #173268;
    background: #edf2ff;
}

.fc-modal-note strong {
    font-size: 0.75rem;
}

.fc-modal-note span {
    color: #526381;
    font-size: 0.7rem;
    line-height: 1.5;
}

body.fc-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .fc-modal {
        width: calc(100% - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 20px;
    }

    .fc-modal-panel {
        max-height: calc(100dvh - 1rem);
    }

    .fc-modal-hero {
        gap: 0.8rem;
    }

    .fc-modal-hero h2 {
        font-size: clamp(2.35rem, 13vw, 3.2rem);
    }

    .lifecycle-step-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .lifecycle-step {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .lifecycle-step-marker {
        width: 38px;
        height: 38px;
    }

    .lifecycle-step::before {
        left: 18px;
        top: 38px;
    }
}

.status-chip-blue {
    color: #17378f;
    background: #e7edff;
    border-color: #cdd8ff;
}

.status-chip-orange {
    color: #a34100;
    background: #fff1e7;
    border-color: #ffd0ad;
}

.status-chip-success {
    color: var(--fc-success);
    background: #ecfdf3;
    border-color: #abefc6;
}

.empty-state-feature {
    margin-top: 1rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.4rem;
    align-items: center;
    border: 1px solid #d5def0;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff, #f7f9ff);
}

.empty-state-feature h2,
.product-card h2,
.section-bar h2,
.status-action-card h2 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.25;
}

.empty-state-feature p,
.product-card p,
.status-action-card p {
    color: var(--fc-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.empty-state-icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--fc-white);
    background: linear-gradient(145deg, var(--fc-royal-blue), var(--fc-deep-navy));
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(30, 64, 175, 0.2);
}

.overview-grid,
.split-card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.overview-grid-two,
.split-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    border: 1px solid var(--fc-border);
    border-radius: 18px;
    background: var(--fc-white);
    box-shadow: 0 7px 22px rgba(13, 27, 61, 0.045);
}

.product-card-accent-blue {
    border-top: 3px solid var(--fc-royal-blue);
}

.product-card-accent-orange {
    border-top: 3px solid var(--fc-energy-orange);
}

.product-card-dark {
    color: var(--fc-white);
    border-color: transparent;
    background: linear-gradient(145deg, var(--fc-deep-navy), #173879);
}

.product-card-dark h2,
.product-card-dark p,
.product-card-dark .card-kicker {
    color: var(--fc-white);
}

.product-card-dark p {
    color: #d5deec;
}

.product-card-wide,
.next-look-card {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.card-kicker,
.metric-label {
    display: block;
    margin: 0 0 0.3rem;
    color: var(--fc-royal-blue);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.product-card-accent-orange .card-kicker,
.metric-card-orange .metric-label {
    color: #b94900;
}

.metric-card {
    min-height: 150px;
    padding: 1.05rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.28rem;
    border-radius: 18px;
    border: 1px solid var(--fc-border);
    background: var(--fc-white);
}

.metric-card strong {
    color: var(--fc-deep-navy);
    font-size: 1.05rem;
    line-height: 1.3;
}

.metric-card > span:last-child {
    color: var(--fc-text-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.metric-card-blue {
    background: linear-gradient(180deg, #f4f7ff, #ffffff);
    border-top: 3px solid var(--fc-royal-blue);
}

.metric-card-orange {
    background: linear-gradient(180deg, #fff7f0, #ffffff);
    border-top: 3px solid var(--fc-energy-orange);
}

.metric-card-navy {
    color: var(--fc-white);
    border-color: var(--fc-deep-navy);
    background: linear-gradient(145deg, var(--fc-deep-navy), #183979);
}

.metric-card-navy strong,
.metric-card-navy .metric-label {
    color: var(--fc-white);
}

.metric-card-navy > span:last-child {
    color: #d6dfed;
}

.status-action-card {
    margin-top: 1rem;
    padding: 1.15rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(140px, auto);
    gap: 1rem;
    align-items: center;
    border: 1px solid #d8e2f6;
    border-radius: 18px;
    background: linear-gradient(105deg, #f6f8ff, #fff);
}

.status-action-marker {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: var(--fc-white);
    background: var(--fc-royal-blue);
    font-weight: 900;
}

.status-action-meta {
    padding-left: 1rem;
    border-left: 1px solid var(--fc-border);
}

.status-action-meta span,
.status-action-meta strong {
    display: block;
}

.status-action-meta span {
    color: var(--fc-text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-action-meta strong {
    margin-top: 0.25rem;
    font-size: 0.78rem;
}

.context-switcher {
    margin: 1rem 0;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: var(--fc-white);
}

.context-switcher > span {
    margin-right: 0.25rem;
    color: var(--fc-text-muted);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
}

.context-choice {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    color: var(--fc-deep-navy);
    background: var(--fc-white);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.context-choice.is-current {
    color: var(--fc-white);
    border-color: var(--fc-royal-blue);
    background: var(--fc-royal-blue);
}

.section-bar {
    margin-top: 1.15rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.section-bar h2 {
    margin: 0;
}

.section-bar-spaced {
    margin-top: 1.7rem;
}

.member-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.member-card,
.participant-row {
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: var(--fc-white);
}

.member-card.is-muted,
.participant-row.is-muted {
    opacity: 0.62;
}

.avatar-badge {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--fc-white);
    background: linear-gradient(145deg, var(--fc-royal-blue), #315ccc);
    font-size: 0.74rem;
    font-weight: 800;
}

.member-card strong,
.member-card span,
.participant-main strong,
.participant-main span {
    display: block;
}

.member-card strong,
.participant-main strong {
    font-size: 0.76rem;
}

.member-card span,
.participant-main span {
    margin-top: 0.12rem;
    color: var(--fc-text-muted);
    font-size: 0.62rem;
}

.challenge-list,
.participant-list,
.rule-history-list {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.6rem;
}

.challenge-row {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 15px;
    background: var(--fc-white);
}

.challenge-row h3 {
    margin: 0.45rem 0 0.2rem;
    font-size: 0.92rem;
}

.challenge-row p {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 0.65rem;
}

.challenge-row-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.inline-empty-state {
    margin-top: 0.8rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 1px dashed var(--fc-border-strong);
    border-radius: 15px;
    background: #fbfcfe;
}

.inline-empty-state strong {
    font-size: 0.76rem;
}

.inline-empty-state span {
    color: var(--fc-text-muted);
    font-size: 0.68rem;
}

.inline-empty-state .button {
    margin-left: auto;
}

.product-form {
    margin-top: 1rem;
    display: grid;
    gap: 0.85rem;
}

.product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-form label {
    display: grid;
    gap: 0.38rem;
    color: var(--fc-deep-navy);
    font-size: 0.68rem;
    font-weight: 800;
}

.product-form label > span {
    color: var(--fc-text-muted);
    font-size: 0.58rem;
    font-weight: 600;
}

.product-form input[type="text"],
.product-form input[type="date"],
.product-form input[type="number"],
.product-form textarea,
.product-form select {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--fc-border-strong);
    border-radius: 10px;
    color: var(--fc-deep-navy);
    background: #fbfcfe;
}

.product-form textarea {
    resize: vertical;
}

.form-span-2 {
    grid-column: 1 / -1;
}

.checkbox-field {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.checkbox-field input {
    margin-top: 0.15rem;
}

.checkbox-field span {
    font-size: 0.68rem !important;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 0.6rem;
}

.action-cue {
    margin: 0.75rem 0 0.35rem !important;
    color: var(--fc-orange) !important;
    font-size: 0.64rem !important;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setup-section-bar {
    margin-top: 0;
    align-items: flex-start;
}

.setup-progress {
    min-width: 150px;
    display: grid;
    gap: 0.2rem;
    justify-items: end;
    color: var(--fc-text-muted);
    text-align: right;
}

.setup-progress > span:first-child {
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.setup-progress strong {
    color: var(--fc-deep-navy);
    font-size: 0.75rem;
}

.setup-progress-track {
    width: 112px;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--fc-border);
}

.setup-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fc-orange);
}

.checkbox-field span {
    display: grid;
    gap: 0.12rem;
}

.checkbox-field span strong {
    color: var(--fc-deep-navy);
    font-size: 0.68rem;
}

.checkbox-field span small {
    color: var(--fc-text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.45;
}

.button-small {
    min-height: 38px;
    padding: 0.55rem 0.8rem;
    font-size: 0.68rem;
}

.challenge-subnav {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.45rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: var(--fc-white);
    scrollbar-width: thin;
}

.challenge-subnav a,
.challenge-subnav .is-unavailable {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0.55rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 10px;
    color: var(--fc-deep-navy);
    font-size: 0.68rem;
    font-weight: 700;
}

.challenge-subnav a:hover,
.challenge-subnav a.is-current {
    color: var(--fc-royal-blue);
    background: var(--fc-surface-blue);
    text-decoration: none;
}

.challenge-subnav .is-unavailable {
    color: #8b96a6;
    cursor: not-allowed;
}

.challenge-subnav small {
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
}

.participant-callout,
.quiet-action {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.participant-row .status-chip {
    margin-left: auto;
}

.quiet-action {
    padding: 0.9rem 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: var(--fc-surface-soft);
}

.quiet-action strong,
.quiet-action span {
    display: block;
}

.quiet-action strong {
    font-size: 0.72rem;
}

.quiet-action span {
    margin-top: 0.2rem;
    color: var(--fc-text-muted);
    font-size: 0.62rem;
}

.rule-facts {
    margin: 1rem 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.rule-facts div {
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--fc-surface-soft);
}

.rule-facts dt {
    color: var(--fc-text-muted);
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.rule-facts dd {
    margin: 0.28rem 0 0;
    color: var(--fc-deep-navy);
    font-size: 0.7rem;
    font-weight: 700;
    word-break: break-word;
}

.scoring-explainer,
.locked-standard {
    margin-top: 0.9rem;
    padding: 0.9rem;
    border-left: 3px solid var(--fc-royal-blue);
    border-radius: 0 12px 12px 0;
    background: #f4f7ff;
}

.scoring-explainer strong,
.locked-standard span,
.locked-standard strong,
.locked-standard small {
    display: block;
}

.scoring-explainer strong,
.locked-standard strong {
    font-size: 0.72rem;
}

.scoring-explainer p,
.locked-standard small {
    margin: 0.3rem 0 0;
    color: var(--fc-text-muted);
    font-size: 0.64rem;
    line-height: 1.55;
}

.locked-standard span {
    color: var(--fc-royal-blue);
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
}

.rule-update-action,
.publish-form {
    margin-top: 0.9rem;
}

.rule-history-list article {
    padding: 0.8rem 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    background: var(--fc-white);
}

.rule-history-list strong,
.rule-history-list span {
    font-size: 0.65rem;
}

.rule-history-list span {
    color: var(--fc-text-muted);
}

.mobile-app-nav,
.mobile-more-menu {
    display: none;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 218px minmax(0, 1fr);
    }

    .overview-grid-three,
    .member-grid,
    .rule-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .site-header-app .app-header-context {
        font-size: 0.62rem;
    }

    .site-header-app .app-header-context .context-label,
    .site-header-app .app-header-context > span[aria-hidden="true"] {
        display: none;
    }

    .site-header-app .app-header-context {
        margin-left: auto;
        display: grid;
        justify-items: end;
        gap: 0.05rem;
    }

    .site-header-app .app-header-context em {
        max-width: 175px;
        font-size: 0.58rem;
    }

    .app-shell {
        width: min(100%, calc(100% - 1rem));
        padding: 0.75rem 0 5.8rem;
        display: block;
    }

    .app-sidebar {
        display: none;
    }

    .app-content {
        padding: 0.8rem;
        border-radius: 18px;
    }

    .product-hero {
        min-height: 170px;
        padding: 1.2rem;
        display: block;
    }

    .product-hero h1 {
        font-size: clamp(2.8rem, 15vw, 4rem);
    }

    .product-hero > .status-chip,
    .hero-stat,
    .lifecycle-badge {
        margin-top: 0.9rem;
        width: fit-content;
        min-width: 0;
    }

    .overview-grid-two,
    .overview-grid-three,
    .split-card-grid,
    .member-grid,
    .rule-facts,
    .product-form-grid {
        grid-template-columns: 1fr;
    }

    .form-span-2 {
        grid-column: auto;
    }

    .setup-section-bar {
        display: grid;
        align-items: start;
    }

    .setup-progress {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .setup-progress-track {
        width: 96px;
    }

    .status-action-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .status-action-meta {
        grid-column: 1 / -1;
        padding: 0.75rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--fc-border);
    }

    .challenge-row,
    .participant-callout,
    .quiet-action,
    .product-card-wide,
    .next-look-card,
    .inline-empty-state {
        align-items: stretch;
        flex-direction: column;
    }

    .challenge-row-actions,
    .inline-empty-state .button {
        margin-left: 0;
    }

    .mobile-app-nav {
        position: fixed;
        z-index: 80;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        height: 66px;
        padding: 0.35rem;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.2rem;
        border: 1px solid rgba(13, 27, 61, 0.1);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 14px 38px rgba(13, 27, 61, 0.2);
        backdrop-filter: blur(14px);
    }

    .mobile-app-nav a,
    .mobile-app-nav button {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 0.1rem;
        border: 0;
        border-radius: 12px;
        color: var(--fc-text-muted);
        background: transparent;
        font-weight: 800;
        cursor: pointer;
    }

    .mobile-app-nav a:hover,
    .mobile-app-nav a.is-current,
    .mobile-app-nav button:hover {
        color: var(--fc-royal-blue);
        background: var(--fc-surface-blue);
        text-decoration: none;
    }

    .mobile-app-nav small {
        font-size: 0.52rem;
    }

    .mobile-more-menu {
        position: fixed;
        z-index: 81;
        right: 0.8rem;
        bottom: 5rem;
        width: min(260px, calc(100% - 1.6rem));
        padding: 0.55rem;
        border: 1px solid var(--fc-border);
        border-radius: 14px;
        background: var(--fc-white);
        box-shadow: var(--shadow-md);
    }

    .mobile-more-menu:not([hidden]) {
        display: grid;
        gap: 0.25rem;
    }

    .mobile-more-menu a,
    .mobile-more-menu button {
        width: 100%;
        min-height: 42px;
        padding: 0.6rem 0.7rem;
        border: 0;
        border-radius: 10px;
        color: var(--fc-deep-navy);
        background: transparent;
        font-size: 0.68rem;
        font-weight: 700;
        text-align: left;
    }

    .mobile-more-menu a:hover,
    .mobile-more-menu button:hover {
        background: var(--fc-surface-soft);
        text-decoration: none;
    }
}

.account-facts {
    margin: 0.9rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.account-facts div {
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
    background: var(--fc-surface-soft);
}

.account-facts dt {
    color: var(--fc-text-muted);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-facts dd {
    margin: 0.2rem 0 0;
    color: var(--fc-deep-navy);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Wave 1 Overview Challenge-first hierarchy */
.overview-challenges {
    margin-top: 1rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: 0 8px 26px rgba(13, 27, 61, 0.05);
}

.overview-challenges-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.overview-challenges-heading h2 {
    margin: 0 0 0.3rem;
    color: var(--fc-deep-navy);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    line-height: 1.15;
}

.overview-challenges-heading p:not(.card-kicker) {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.overview-challenge-list {
    display: grid;
    gap: 0.8rem;
}

.overview-challenge-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1.2fr) minmax(330px, 2fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #d7dfef;
    border-left: 4px solid #d7dfef;
    border-radius: 16px;
    background: var(--fc-white);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.overview-challenge-card.is-current {
    border-color: #bfcdf0;
    border-left-color: var(--fc-royal-blue);
    background: linear-gradient(100deg, #f7f9ff, #ffffff 46%);
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.current-challenge-label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--fc-energy-orange);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.overview-challenge-title h3 {
    margin: 0;
    color: var(--fc-deep-navy);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    line-height: 1.2;
}

.overview-challenge-title p {
    margin: 0.3rem 0 0;
    color: var(--fc-text-muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.overview-challenge-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.overview-challenge-facts > div {
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-radius: 12px;
    background: #f7f9fd;
    border: 1px solid #e1e6f0;
}

.overview-challenge-facts span,
.overview-challenge-facts strong {
    display: block;
}

.overview-challenge-facts span {
    margin-bottom: 0.22rem;
    color: var(--fc-text-muted);
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.overview-challenge-facts strong {
    color: var(--fc-deep-navy);
    font-size: 0.72rem;
    line-height: 1.35;
}

.overview-challenge-action {
    justify-self: end;
}

.overview-challenge-action form {
    margin: 0;
}

.overview-challenge-unavailable {
    display: block;
    max-width: 130px;
    color: var(--fc-text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-align: right;
}

.overview-challenge-empty {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border: 1px dashed #bcc9df;
    border-radius: 14px;
    background: #fbfcff;
}

.overview-challenge-empty strong,
.overview-challenge-empty span {
    display: block;
}

.overview-challenge-empty strong {
    color: var(--fc-deep-navy);
    font-size: 0.86rem;
}

.overview-challenge-empty span {
    margin-top: 0.2rem;
    color: var(--fc-text-muted);
    font-size: 0.7rem;
}

@media (max-width: 980px) {
    .overview-challenge-card {
        grid-template-columns: minmax(180px, 1fr) minmax(0, 1.6fr);
    }

    .overview-challenge-action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .overview-challenge-action .button,
    .overview-challenge-action form {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .overview-challenges-heading,
    .overview-challenge-empty {
        align-items: stretch;
        flex-direction: column;
    }

    .overview-challenges-heading .button,
    .overview-challenge-empty .button {
        width: 100%;
    }

    .overview-challenge-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .overview-challenge-facts {
        grid-template-columns: 1fr;
    }

    .overview-challenge-action {
        grid-column: auto;
    }
}

/* Wave 1 browser proof: focused Challenge setup / Rules review */
.challenge-finish-fieldset {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0;
    border: 0;
}

.challenge-finish-fieldset legend {
    margin-bottom: 0.55rem;
    color: var(--fc-deep-navy);
    font-size: 0.78rem;
    font-weight: 800;
}

.challenge-finish-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.challenge-finish-option {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.challenge-finish-option:has(input:checked) {
    border-color: var(--fc-royal-blue);
    box-shadow: 0 0 0 2px rgba(38, 77, 201, 0.08);
}

.challenge-finish-option input {
    margin-top: 0.15rem;
}

.challenge-finish-option span {
    display: grid;
    gap: 0.1rem;
}

.challenge-finish-option strong {
    color: var(--fc-deep-navy);
}

.challenge-finish-option small {
    color: var(--fc-muted);
    line-height: 1.35;
}

.challenge-finish-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: end;
}

.challenge-finish-panel[hidden] {
    display: none;
}

.input-with-suffix {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
}

.input-with-suffix > span {
    color: var(--fc-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.calculated-field {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 0.18rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    background: var(--fc-soft-blue);
}

.calculated-field span {
    color: var(--fc-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calculated-field strong {
    color: var(--fc-deep-navy);
}

.rules-setup-hero {
    margin-top: 0;
}

.rules-setup-card {
    margin-top: 0.85rem;
}

.rule-facts-review {
    margin-top: 1rem;
}

.rules-score-summary {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: var(--fc-soft-blue);
}

.rules-score-summary h3 {
    margin: 0.15rem 0 0.4rem;
    color: var(--fc-deep-navy);
    font-size: 1.15rem;
}

.rules-score-summary p:last-child {
    margin-bottom: 0;
}

.rule-adjust-details {
    margin-top: 1rem;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: #fff;
}

.rule-adjust-details summary {
    padding: 0.85rem 1rem;
    color: var(--fc-royal-blue);
    font-weight: 800;
    cursor: pointer;
}

.rule-adjust-body {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--fc-border);
}

.rule-adjust-body > p {
    margin-top: 0.85rem;
}

.rules-publish-primary {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 760px) {
    .challenge-finish-options,
    .challenge-finish-panel {
        grid-template-columns: 1fr;
    }

    .rules-publish-primary {
        justify-content: stretch;
    }

    .rules-publish-primary .button {
        width: 100%;
    }
}

/* Wave 1 browser proof: Challenge/Crew selection + owner management */
.section-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.member-card-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.member-remove-button {
    margin-left: auto;
    padding: 0.42rem 0.55rem;
    border: 1px solid #f2c7c7;
    border-radius: 9px;
    color: #9f2a2a;
    background: #fff8f8;
    font: inherit;
    font-size: 0.61rem;
    font-weight: 850;
    cursor: pointer;
}

.member-remove-button:hover,
.member-remove-button:focus-visible {
    border-color: #d94a4a;
    background: #fff0f0;
}

.button-danger,
.button-danger-ghost {
    border-color: #b93838;
}

.button-danger {
    color: #fff;
    background: #b93838;
}

.button-danger:hover,
.button-danger:focus-visible {
    background: #992b2b;
}

.button-danger-ghost {
    color: #a32f2f;
    background: #fff;
}

.button-danger-ghost:hover,
.button-danger-ghost:focus-visible {
    color: #842323;
    background: #fff1f1;
}

.fc-modal-hero-danger {
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 138, 61, 0.2), transparent 28%),
        linear-gradient(125deg, #2a0e18, #5d1820 56%, #8e2929);
}

.danger-confirmation-copy {
    padding: 1rem;
    display: grid;
    gap: 0.28rem;
    border: 1px solid #f1c4c4;
    border-radius: 15px;
    color: #712727;
    background: #fff6f6;
}

.danger-confirmation-copy strong {
    font-size: 0.82rem;
}

.danger-confirmation-copy span {
    color: #875151;
    font-size: 0.72rem;
    line-height: 1.55;
}

.fc-modal-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.fc-modal-actions form {
    margin: 0;
}

.form-help {
    margin: 0;
    color: var(--fc-text-muted);
    font-size: 0.7rem;
    line-height: 1.55;
}

.account-id {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.72rem;
}

.challenge-index-groups {
    margin-top: 1rem;
    display: grid;
    gap: 1.25rem;
}

.challenge-index-group,
.challenge-create-panel {
    padding: clamp(1rem, 2vw, 1.35rem);
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff, #f8faff);
    box-shadow: 0 8px 26px rgba(13, 27, 61, 0.05);
}

.challenge-create-panel .section-bar,
.challenge-index-group .section-bar {
    margin-top: 0;
}

.challenge-index-list {
    margin-top: 1rem;
}

.challenge-index-row {
    border-left: 4px solid #d5ddec;
}

.challenge-index-title {
    min-width: 0;
}

/* FitCrew interaction language: cards/tiles move, brighten, and reveal direction. */
.fc-clickable-card,
.fc-action-tile {
    position: relative;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fc-clickable-card:hover,
.fc-clickable-card:focus-visible,
.fc-action-tile:hover,
.fc-action-tile:focus-visible {
    text-decoration: none !important;
    transform: translateY(-3px);
    border-color: #8ea8e8;
    background: linear-gradient(180deg, #ffffff, #f1f5ff);
    box-shadow: 0 16px 34px rgba(30, 64, 175, 0.14);
    outline: none;
}

.fc-clickable-card:focus-visible,
.fc-action-tile:focus-visible {
    box-shadow: 0 0 0 3px rgba(38, 77, 201, 0.18), 0 16px 34px rgba(30, 64, 175, 0.14);
}

.fc-clickable-card:active,
.fc-action-tile:active {
    transform: translateY(-1px);
}

.fc-card-open-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--fc-royal-blue);
    font-size: 0.68rem;
    font-weight: 850;
    white-space: nowrap;
}

.fc-card-open-cue span,
.fc-action-chevron {
    transition: transform 160ms ease;
}

.fc-clickable-card:hover .fc-card-open-cue span,
.fc-clickable-card:focus-visible .fc-card-open-cue span {
    transform: translateX(4px);
}

.fc-action-tile:hover .fc-action-chevron,
.fc-action-tile:focus-visible .fc-action-chevron {
    transform: translate(4px, -50%);
}

.challenge-index-create-action {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--fc-border);
}

.challenge-index-create-action form {
    margin: 0;
}

.challenge-action-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.challenge-action-button {
    min-height: 116px;
    padding: 1rem 3.2rem 1rem 1rem;
    display: grid;
    align-content: center;
    gap: 0.28rem;
    border: 1px solid #d9e1f0;
    border-radius: 16px;
    color: var(--fc-deep-navy);
    background: linear-gradient(180deg, #ffffff, #f8faff);
    box-shadow: 0 6px 18px rgba(13, 27, 61, 0.04);
}

.challenge-action-button > span {
    color: var(--fc-text-muted);
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.challenge-action-button > strong {
    font-size: 1.08rem;
    line-height: 1.2;
}

.challenge-action-button > small {
    color: var(--fc-text-muted);
    font-size: 0.68rem;
    line-height: 1.4;
}

.fc-action-chevron {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff !important;
    background: var(--fc-royal-blue);
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.2);
    font-size: 1rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transform: translateY(-50%);
}

@media (max-width: 820px) {
    .challenge-action-grid {
        grid-template-columns: 1fr;
    }

    .challenge-action-button {
        min-height: 92px;
    }
}

@media (max-width: 620px) {
    .section-bar-actions,
    .fc-modal-actions,
    .challenge-row-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .section-bar-actions .button,
    .fc-modal-actions .button,
    .fc-modal-actions form,
    .challenge-row-actions .button,
    .challenge-row-actions form,
    .challenge-index-create-action .button,
    .challenge-index-create-action form {
        width: 100%;
    }

    .challenge-index-create-action {
        justify-content: stretch;
    }
}

/* Family Alpha: management, personal consent and small-category privacy controls. */
.family-section { margin-top: 1rem; }
.family-section h2 { margin-bottom: .75rem; }
.family-section-bar, .family-view-switch, .family-detail-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.family-notice { border: 1px solid #ccd7ee; border-left: 4px solid #2442c5; background: #f5f7fd; border-radius: 14px; padding: 1rem 1.15rem; margin: 1rem 0; }
.family-notice p { margin: .4rem 0; }
.family-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.family-facts div { padding: .85rem; background: #f6f8fd; border-radius: 12px; }
.family-facts dt { font-weight: 750; font-size: .78rem; }
.family-facts dd { margin: .4rem 0 0; overflow-wrap: anywhere; }
.family-privacy-fields { border: 1px solid #d5def0; border-radius: 14px; padding: 1rem; display: grid; gap: 1rem; min-width: 0; }
.family-privacy-fields legend { font-weight: 800; padding: 0 .4rem; }
.family-privacy-fields select { width: 100%; max-width: 100%; }
.family-privacy-required { background: #f6f8fd; border-radius: 12px; padding: .85rem; }
.family-privacy-required p { font-size: .84rem; margin: .4rem 0 0; line-height: 1.55; }
.product-form label.family-consent { display: grid; grid-template-columns: 1.25rem minmax(0,1fr); gap: .75rem; align-items: start; line-height: 1.6; }
.product-form .family-consent input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; padding: 0; }
.family-control-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.family-history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.family-history-list li { display: grid; gap: .3rem; padding: .8rem 0; border-bottom: 1px solid #dce3f1; }
.family-history-list span, .family-history-list small { font-size: .82rem; }
.family-pending-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid #dce3f1; }
.family-pending-row > div { display: grid; gap: .3rem; }
.family-pending-row span { font-size: .8rem; }
.family-personal-list { display: grid; gap: .8rem; margin-top: 1rem; }
.family-personal-item { position: relative; display: grid; gap: .4rem; padding: 1rem 4rem 1rem 1rem; border: 1px solid #d1dcf3; border-radius: 14px; }
.family-personal-item > span:not(.fc-action-chevron) { font-size: .8rem; }
.family-history-state { color: #7e350d; font-weight: 800; }
@media (max-width: 760px) {
    .family-facts { grid-template-columns: 1fr; }
    .family-control-grid .button, .family-detail-controls .button { flex: 1 1 100%; }
    .family-pending-row form { width: 100%; }
    .family-pending-row .button { width: 100%; }
    .family-privacy-fields { padding: .8rem; }
    .family-privacy-fields select { font-size: .875rem; }
}

/* ========================================================================== */
/* FitCrew UI Foundation v1 — shared semantic roles for new Website surfaces. */
/* ========================================================================== */
:root {
    --fc-type-display: clamp(2.5rem, 5vw, 4.8rem);
    --fc-type-title: clamp(2rem, 3.6vw, 3.4rem);
    --fc-type-section: clamp(1.25rem, 2vw, 1.65rem);
    --fc-type-body: 1rem;
    --fc-type-support: 0.925rem;
    --fc-type-meta: 0.8125rem;
    --fc-line-body: 1.65;
    --fc-control-height: 46px;
    --fc-control-height-small: 38px;
    --fc-focus-ring: 0 0 0 4px rgba(30, 64, 175, 0.18);
    --fc-card-padding: clamp(1.15rem, 2.4vw, 1.75rem);
    --fc-page-gap: clamp(1rem, 2.5vw, 1.75rem);
}

.fc-ui-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--fc-type-title);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.015em;
    color: var(--fc-deep-navy);
}

.fc-ui-section-title {
    margin: 0;
    font-size: var(--fc-type-section);
    line-height: 1.18;
    color: var(--fc-deep-navy);
}

.fc-ui-body {
    margin: 0;
    font-size: var(--fc-type-body);
    line-height: var(--fc-line-body);
    color: var(--fc-text-muted);
}

.fc-ui-help {
    font-size: var(--fc-type-support);
    line-height: 1.5;
    color: var(--fc-text-muted);
}

.fc-ui-eyebrow {
    margin: 0 0 var(--space-2);
    color: var(--fc-energy-orange);
    font-size: var(--fc-type-meta);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fc-ui-card {
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    background: var(--fc-surface);
    box-shadow: var(--shadow-sm);
    padding: var(--fc-card-padding);
}

.fc-ui-card-soft {
    background: var(--fc-surface-soft);
    box-shadow: none;
}

.fc-ui-fieldset {
    display: grid;
    gap: var(--space-4);
    margin: 0;
    padding: var(--space-5);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    background: var(--fc-surface-soft);
}

.fc-ui-fieldset legend {
    padding: 0 var(--space-2);
    font-size: var(--fc-type-section);
    font-weight: 800;
    color: var(--fc-deep-navy);
}

.fc-ui-fieldset label {
    display: grid;
    gap: var(--space-2);
    font-weight: 700;
    color: var(--fc-deep-navy);
}

.fc-ui-fieldset select,
.fc-ui-fieldset input,
.fc-ui-fieldset textarea {
    min-height: var(--fc-control-height);
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--radius-sm);
    background: var(--fc-white);
    padding: 0.7rem 0.8rem;
    color: var(--fc-text);
}

.fc-ui-fieldset select:focus-visible,
.fc-ui-fieldset input:focus-visible,
.fc-ui-fieldset textarea:focus-visible {
    border-color: var(--fc-royal-blue);
    outline: none;
    box-shadow: var(--fc-focus-ring);
}

.fc-notice {
    display: grid;
    gap: 0.25rem;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-sm);
    background: var(--fc-surface-soft);
    color: var(--fc-text-muted);
    font-size: var(--fc-type-support);
    line-height: 1.5;
}

.fc-notice strong {
    color: var(--fc-deep-navy);
}

.fc-notice-info {
    border-color: #bfd0ff;
    background: var(--fc-surface-blue);
}

.fc-notice-account {
    border-color: rgba(255, 106, 0, 0.35);
    background: #fff7f0;
}

.fc-notice-quiet {
    background: var(--fc-white);
}

.challenge-invite-page {
    padding-block: clamp(1.5rem, 5vw, 3.5rem);
}

.challenge-invite-card {
    width: min(1180px, 100%);
    margin-inline: auto;
    display: grid;
    gap: var(--space-6);
}

.challenge-invite-heading {
    display: grid;
    gap: var(--space-3);
    max-width: 900px;
}

.challenge-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fc-page-gap);
}

.challenge-review-section {
    display: grid;
    gap: var(--space-4);
}

.challenge-review-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3) var(--space-5);
    margin: 0;
}

.challenge-review-facts div {
    display: grid;
    gap: 0.18rem;
}

.challenge-review-facts dt {
    font-size: var(--fc-type-meta);
    font-weight: 800;
    color: var(--fc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.challenge-review-facts dd {
    margin: 0;
    font-size: var(--fc-type-body);
    font-weight: 700;
    color: var(--fc-deep-navy);
}

.challenge-account-switch {
    display: flex;
    justify-content: flex-start;
}

.challenge-accept-form {
    display: grid;
    gap: var(--space-5);
}

.challenge-consent {
    align-items: flex-start;
}

.challenge-accept-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
}

@media (max-width: 760px) {
    .challenge-review-grid,
    .challenge-review-facts {
        grid-template-columns: 1fr;
    }

    .challenge-invite-card {
        padding: var(--space-5);
    }

    .challenge-accept-actions .button {
        width: 100%;
    }
}

/* Website cleanup — shared session control, Challenge/Crew shortcuts, invitation balance */
.header-session {
    margin-left: var(--space-2);
    position: relative;
    flex: 0 0 auto;
}
.header-account-menu { position: relative; }
.header-account-menu > summary { list-style: none; }
.header-account-menu > summary::-webkit-details-marker { display: none; }
.header-account-trigger {
    min-height: 42px;
    max-width: 260px;
    padding: 0.5rem 0.72rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.5rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-sm);
    background: var(--fc-white);
    color: var(--fc-deep-navy);
    cursor: pointer;
}
.header-account-trigger > span,
.header-account-trigger > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account-trigger > span { font-size: 0.74rem; font-weight: 800; }
.header-account-trigger > small { grid-column: 1 / 2; color: var(--fc-text-muted); font-size: 0.58rem; }
.header-account-trigger > b { grid-column: 2; grid-row: 1 / span 2; font-size: 0.8rem; }
.header-account-trigger:hover,
.header-account-trigger:focus-visible,
.header-account-menu[open] .header-account-trigger { border-color: var(--fc-royal-blue); box-shadow: var(--fc-focus-ring); outline: none; }
.header-account-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 80;
    width: min(290px, calc(100vw - 2rem));
    padding: 0.55rem;
    display: grid;
    gap: 0.25rem;
    border: 1px solid var(--fc-border);
    border-radius: var(--radius-md);
    background: var(--fc-white);
    box-shadow: var(--shadow-md);
}
.header-account-identity { padding: 0.6rem 0.65rem 0.7rem; display: grid; gap: 0.15rem; border-bottom: 1px solid var(--fc-border); }
.header-account-identity strong { font-size: 0.76rem; }
.header-account-identity span { overflow-wrap: anywhere; color: var(--fc-text-muted); font-size: 0.66rem; }
.header-account-popover > a,
.header-account-popover form button {
    width: 100%; min-height: 40px; padding: 0.55rem 0.65rem; display: flex; align-items: center;
    border: 0; border-radius: var(--radius-sm); color: var(--fc-deep-navy); background: transparent;
    font: inherit; font-size: 0.72rem; font-weight: 750; text-align: left; cursor: pointer;
}
.header-account-popover > a:hover,
.header-account-popover form button:hover,
.header-account-popover > a:focus-visible,
.header-account-popover form button:focus-visible { background: var(--fc-surface-blue); color: var(--fc-royal-blue); text-decoration: none; outline: none; }
.site-header-app .app-header-context { margin-left: auto; }
.app-header-context .context-crew-link,
.app-header-context .context-challenge-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-weight: 750; }
.app-header-context .context-crew-link { color: var(--fc-deep-navy); font-size: 0.78rem; }
.app-header-context .context-challenge-link { max-width: 320px; color: var(--fc-royal-blue); }
.app-header-context .context-crew-link:hover,
.app-header-context .context-challenge-link:hover { text-decoration: underline; text-underline-offset: 0.16rem; }
.challenge-subnav .challenge-subnav-crew { margin-left: auto; border: 1px solid var(--fc-border); color: var(--fc-royal-blue); background: var(--fc-white); }
.member-contact-email,
.participant-contact-email { color: var(--fc-royal-blue) !important; font-size: 0.65rem !important; font-weight: 700; overflow-wrap: anywhere; }
.invitation-account-choice-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.invitation-account-choice-summary > div { padding: var(--space-4); display: grid; gap: 0.2rem; border: 1px solid var(--fc-border); border-radius: var(--radius-sm); background: var(--fc-surface-soft); }
.invitation-account-choice-summary span { color: var(--fc-text-muted); font-size: var(--fc-type-meta); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.invitation-account-choice-summary strong,
.invitation-account-choice-summary small { overflow-wrap: anywhere; }
.invitation-account-choice-actions { align-items: stretch; }
.invitation-account-choice-actions .button,
.invitation-account-choice-actions form { min-width: 0; }
@media (min-width: 900px) {
    .challenge-accept-form .fc-ui-fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .challenge-accept-form .fc-ui-fieldset > .fc-ui-help,
    .challenge-accept-form .fc-ui-fieldset > .fc-notice { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .header-session { margin-left: auto; }
    .header-account-trigger { max-width: 190px; }
    .fitcrew-js-ready .nav-toggle { margin-left: 0; }
}
@media (max-width: 620px) {
    .brand-lockup-type { display: none; }
    .header-account-trigger { max-width: 148px; }
    .header-account-trigger > small { display: none; }
    .invitation-account-choice-summary { grid-template-columns: 1fr; }
    .challenge-subnav .challenge-subnav-crew { margin-left: 0; }
}

/* ========================================================================== */
/* FitCrew UI Foundation v1 — canonical shared scale + Website normalization. */
/* ========================================================================== */
:root {
    /* Typography roles */
    --fc-type-display: clamp(3rem, 6vw, 5.6rem);
    --fc-type-page-title: clamp(2.35rem, 4vw, 3.65rem);
    --fc-type-section-title: clamp(1.35rem, 2vw, 1.65rem);
    --fc-type-card-title: 1.125rem;
    --fc-type-body: 1rem;
    --fc-type-supporting: 0.875rem;
    --fc-type-meta: 0.8125rem;
    --fc-type-micro: 0.6875rem;

    /* Compatibility aliases retained for invitation-era Foundation roles. */
    --fc-type-title: var(--fc-type-page-title);
    --fc-type-section: var(--fc-type-section-title);
    --fc-type-support: var(--fc-type-supporting);

    /* Canonical spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 48px. */
    --fc-space-1: 4px;
    --fc-space-2: 8px;
    --fc-space-3: 12px;
    --fc-space-4: 16px;
    --fc-space-6: 24px;
    --fc-space-8: 32px;
    --fc-space-12: 48px;

    /* Canonical radius scale. */
    --fc-radius-control: 10px;
    --fc-radius-notice: 14px;
    --fc-radius-card: 18px;
    --fc-radius-shell: 24px;
    --fc-radius-pill: 999px;

    /* Canonical control/touch scale. */
    --fc-control-button: 46px;
    --fc-control-input: 48px;
    --fc-control-touch: 44px;
    --fc-control-icon: 44px;
    --fc-control-provider: 64px;

    --fc-focus-outline: 3px solid #1e40af;
    --fc-focus-offset: 3px;
}

/* Semantic typography roles. */
.fc-type-display {
    font-family: var(--font-display);
    font-size: var(--fc-type-display);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.015em;
}

.fc-type-page-title,
.fc-ui-title {
    font-family: var(--font-display);
    font-size: var(--fc-type-page-title);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.015em;
}

.fc-type-section-title,
.fc-ui-section-title {
    font-size: var(--fc-type-section-title);
    font-weight: 800;
    line-height: 1.2;
}

.fc-type-card-title {
    font-size: var(--fc-type-card-title);
    font-weight: 800;
    line-height: 1.3;
}

.fc-type-body,
.fc-ui-body {
    font-size: var(--fc-type-body);
    line-height: 1.65;
}

.fc-type-supporting,
.fc-ui-help {
    font-size: var(--fc-type-supporting);
    line-height: 1.55;
}

.fc-type-meta,
.fc-ui-eyebrow {
    font-size: var(--fc-type-meta);
    line-height: 1.45;
}

.fc-type-micro {
    font-size: var(--fc-type-micro);
    line-height: 1.4;
}

/* Shared component primitives and compatibility aliases. */
.fc-card-standard,
.product-card,
.overview-challenge-card,
.member-card,
.participant-row,
.challenge-row {
    border-radius: var(--fc-radius-card);
}

.fc-card-clickable,
.fc-clickable-card,
.fc-action-tile {
    border-radius: var(--fc-radius-card);
}

.fc-notice,
.family-notice,
.inline-empty-state {
    border-radius: var(--fc-radius-notice);
}

.status-chip {
    border-radius: var(--fc-radius-pill);
    font-size: var(--fc-type-meta);
    line-height: 1.2;
}

.button,
button.button {
    min-height: var(--fc-control-button);
    border-radius: var(--fc-radius-control);
    font-size: var(--fc-type-supporting);
}

.button-small {
    min-height: var(--fc-control-touch);
    padding: 0.62rem 0.9rem;
    font-size: var(--fc-type-supporting);
}

.product-form label,
.fc-ui-fieldset label {
    font-size: var(--fc-type-supporting);
}

.product-form label > span,
.form-help,
.checkbox-field span small {
    font-size: var(--fc-type-supporting);
    line-height: 1.5;
}

.product-form input[type="text"],
.product-form input[type="email"],
.product-form input[type="date"],
.product-form input[type="number"],
.product-form input[type="password"],
.product-form textarea,
.product-form select,
.fc-ui-fieldset input,
.fc-ui-fieldset select,
.fc-ui-fieldset textarea {
    min-height: var(--fc-control-input);
    border-radius: var(--fc-radius-control);
}

/* One visible focus language across Website-owned controls. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
    outline: var(--fc-focus-outline);
    outline-offset: var(--fc-focus-offset);
    box-shadow: none;
}

/* Shared header + navigation scale. */
.site-header-inner { min-height: 70px; }
.brand-lockup-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: var(--fc-radius-control);
}

.site-nav,
.sidebar-nav a,
.sidebar-secondary a,
.sidebar-secondary button,
.challenge-subnav a,
.challenge-subnav .is-unavailable,
.mobile-app-nav a,
.mobile-app-nav button { font-size: 0.875rem; }

.sidebar-nav a,
.sidebar-secondary a,
.sidebar-secondary button,
.challenge-subnav a,
.challenge-subnav .is-unavailable,
.mobile-app-nav a,
.mobile-app-nav button { min-height: var(--fc-control-touch); }

.context-label,
.sidebar-label,
.context-kicker { font-size: var(--fc-type-meta); }

.app-header-context .context-crew-link,
.app-header-context .context-challenge-link,
.sidebar-context-link { font-size: 0.875rem; }

.sidebar-context-link {
    display: block;
    overflow: hidden;
    max-width: 150px;
    color: var(--fc-deep-navy);
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-context-link + .sidebar-context-link { margin-top: 0.2rem; color: var(--fc-text-muted); font-weight: 700; }
.sidebar-context-link:hover,
.sidebar-context-link:focus-visible { color: var(--fc-royal-blue); text-decoration: underline; text-underline-offset: 0.16rem; }

/* Representative application normalization. */
.product-hero,
.app-sidebar,
.app-content,
.fc-modal,
.fc-modal-panel { border-radius: var(--fc-radius-shell); }

.product-hero h1 { font-size: var(--fc-type-page-title); line-height: 0.98; }
.product-hero p:not(.eyebrow),
.product-card p,
.empty-state-feature p,
.status-action-card p,
.overview-challenges-heading p,
.challenge-row p,
.inline-empty-state span,
.participant-main span,
.member-card span,
.quiet-action span,
.family-pending-row span { font-size: var(--fc-type-supporting); line-height: 1.55; }

.section-bar h2,
.empty-state-feature h2,
.product-card h2,
.status-action-card h2 { font-size: var(--fc-type-section-title); line-height: 1.2; }

.overview-challenge-title h3,
.challenge-row h3,
.member-card strong,
.participant-main strong,
.family-pending-row strong { font-size: var(--fc-type-card-title); }

.card-kicker,
.metric-label,
.challenge-action-button > span,
.member-contact-email,
.participant-contact-email { font-size: var(--fc-type-meta) !important; }

.challenge-action-button {
    min-height: 124px;
    padding: var(--fc-space-4) 3.2rem var(--fc-space-4) var(--fc-space-4);
    border-radius: var(--fc-radius-card);
}
.challenge-action-button > strong { font-size: var(--fc-type-card-title); }
.challenge-action-button > small { font-size: var(--fc-type-supporting); line-height: 1.45; }
.challenge-subnav { gap: var(--fc-space-2); padding: var(--fc-space-2); border-radius: var(--fc-radius-notice); }
.challenge-subnav small { font-size: var(--fc-type-micro); }

/* Unified Crew / Challenge People surface. */
.people-summary-grid {
    margin-top: var(--fc-space-4);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fc-space-3);
}
.people-summary-card {
    padding: var(--fc-space-4);
    display: grid;
    gap: var(--fc-space-1);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-card);
    background: var(--fc-surface-soft);
}
.people-summary-card span { color: var(--fc-text-muted); font-size: var(--fc-type-meta); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.people-summary-card strong { color: var(--fc-deep-navy); font-size: var(--fc-type-section-title); }
.people-toolbar { margin-top: var(--fc-space-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--fc-space-3); }
.people-toolbar .people-toolbar-spacer { flex: 1 1 auto; }
.people-list { margin-top: var(--fc-space-4); display: grid; gap: var(--fc-space-3); }
.people-row {
    padding: var(--fc-space-4);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--fc-space-3);
    align-items: center;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-card);
    background: var(--fc-white);
}
.people-row.is-historical { background: var(--fc-surface-soft); }
.people-identity { min-width: 0; display: grid; gap: var(--fc-space-1); }
.people-identity strong { color: var(--fc-deep-navy); font-size: var(--fc-type-card-title); }
.people-identity .people-email,
.people-identity .people-state-copy { overflow-wrap: anywhere; color: var(--fc-text-muted); font-size: var(--fc-type-supporting); }
.people-state-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--fc-space-2); }
.people-actions { grid-column: 2 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--fc-space-2); }
.people-pending-list { display: grid; gap: var(--fc-space-3); }
.people-pending-row {
    padding: var(--fc-space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--fc-space-3);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-card);
    background: var(--fc-surface-soft);
}
.people-pending-copy { min-width: 0; display: grid; gap: var(--fc-space-1); }
.people-pending-copy strong { overflow-wrap: anywhere; font-size: var(--fc-type-card-title); }
.people-pending-copy span,
.people-pending-copy small { color: var(--fc-text-muted); font-size: var(--fc-type-supporting); line-height: 1.5; }
.crew-people-card {
    margin-top: var(--fc-space-4);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--fc-space-4);
    align-items: center;
}
.crew-people-card-copy { display: grid; gap: var(--fc-space-2); }
.crew-people-card-copy p { margin: 0; }

@media (max-width: 760px) {
    .brand-lockup-mark { width: 38px; height: 38px; flex-basis: 38px; }
    .site-header-inner { min-height: 68px; }
    .mobile-app-nav { min-height: 70px; height: auto; }
    .mobile-app-nav small { font-size: 0.875rem; }
    .people-summary-grid,
    .crew-people-card { grid-template-columns: 1fr; }
    .people-row { grid-template-columns: auto minmax(0, 1fr); }
    .people-state-chips,
    .people-actions { grid-column: 1 / -1; justify-content: flex-start; }
    .people-toolbar .button,
    .people-toolbar form,
    .people-actions .button,
    .people-actions form { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Multi-Crew ownership / current-Challenge presentation. */
.crew-index-grid {
    margin-top: var(--fc-space-4);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fc-space-4);
}
.crew-index-card {
    min-height: 220px;
    display: grid;
    align-content: start;
    gap: var(--fc-space-4);
}
.crew-index-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fc-space-3);
}
.crew-index-card h2,
.crew-index-card p { margin: 0; }
.crew-index-facts {
    margin-top: auto;
    display: grid;
    gap: var(--fc-space-2);
    color: var(--fc-text-muted);
    font-size: var(--fc-type-supporting);
}
.crew-index-facts span { display: block; }
.crew-index-facts strong { color: var(--fc-deep-navy); }
.crew-create-card { margin-top: var(--fc-space-6); }
.crew-create-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
    gap: var(--fc-space-3);
    align-items: end;
}
.crew-create-inline .button { min-width: 180px; }
.section-context-link,
.hero-context-link {
    color: inherit;
    text-decoration: none;
}
.section-context-link:hover,
.section-context-link:focus-visible,
.hero-context-link:hover,
.hero-context-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.14em;
}
.manage-summary-grid {
    margin-top: var(--fc-space-4);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--fc-space-3);
}
.manage-summary-card {
    padding: var(--fc-space-4);
    display: grid;
    gap: var(--fc-space-1);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-card);
    background: var(--fc-white);
}
.manage-summary-card > span {
    color: var(--fc-text-muted);
    font-size: var(--fc-type-meta);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.manage-summary-card > strong {
    color: var(--fc-deep-navy);
    font-size: var(--fc-type-card-title);
}
.manage-summary-card > small {
    color: var(--fc-text-muted);
    font-size: var(--fc-type-supporting);
    line-height: 1.45;
}
.manage-primary-grid { align-items: stretch; }
.manage-rule-facts {
    margin: var(--fc-space-4) 0;
    display: grid;
    gap: var(--fc-space-2);
}
.manage-rule-facts span {
    display: flex;
    justify-content: space-between;
    gap: var(--fc-space-3);
    padding: var(--fc-space-2) 0;
    border-bottom: 1px solid var(--fc-border);
    font-size: var(--fc-type-supporting);
}
.manage-rule-facts strong { color: var(--fc-deep-navy); }
.manage-danger-zone {
    border-color: rgba(185, 28, 28, 0.26);
    background: rgba(254, 242, 242, 0.72);
}

@media (max-width: 860px) {
    .crew-index-grid,
    .manage-summary-grid,
    .crew-create-inline {
        grid-template-columns: 1fr;
    }
    .crew-create-inline .button {
        width: 100%;
        min-width: 0;
    }
}

/* Challenge Journey v1: navigable lifecycle rows. */
.lifecycle-timeline {
    gap: var(--space-2);
}

.lifecycle-step-shell {
    list-style: none;
    position: relative;
}

.lifecycle-step-shell::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: calc(-1 * var(--space-2));
    width: 2px;
    background: rgba(148, 163, 184, 0.28);
    pointer-events: none;
}

.lifecycle-step-shell:last-child::before {
    display: none;
}

.lifecycle-step-action {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 28px;
    gap: var(--space-3);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-notice);
    background: rgba(255, 255, 255, 0.035);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.lifecycle-step-action:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.48);
    background: rgba(255, 255, 255, 0.065);
}

.lifecycle-step-action:focus-visible {
    outline: 3px solid var(--focus-ring, #f97316);
    outline-offset: 3px;
}

.lifecycle-step-shell.is-current .lifecycle-step-action {
    border-color: rgba(249, 115, 22, 0.72);
    background: rgba(249, 115, 22, 0.08);
}

.lifecycle-step-shell.is-complete .lifecycle-step-marker {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
}

.lifecycle-step-shell.is-current .lifecycle-step-marker {
    background: rgba(249, 115, 22, 0.16);
    border-color: rgba(249, 115, 22, 0.7);
}

.lifecycle-step-description {
    display: block;
    margin-top: var(--space-1);
    font-size: var(--font-supporting, 0.875rem);
    line-height: 1.5;
    color: var(--text-muted, #64748b);
}

.lifecycle-step-chevron {
    font-size: 1.25rem;
    line-height: 1;
    justify-self: end;
}

.lifecycle-step-details > summary {
    list-style: none;
}

.lifecycle-step-details > summary::-webkit-details-marker {
    display: none;
}

.lifecycle-step-details[open] .lifecycle-step-chevron {
    transform: rotate(90deg);
}

.lifecycle-stage-information {
    margin: var(--space-2) var(--space-4) var(--space-3) 60px;
    padding: var(--space-3) var(--space-4);
    border-left: 3px solid rgba(249, 115, 22, 0.45);
    border-radius: 0 var(--radius-notice) var(--radius-notice) 0;
    background: rgba(15, 23, 42, 0.04);
}

.lifecycle-stage-information p {
    margin: var(--space-1) 0 0;
    font-size: var(--font-supporting, 0.875rem);
    line-height: 1.55;
}

@media (max-width: 640px) {
    .lifecycle-step-action {
        grid-template-columns: 40px minmax(0, 1fr) 24px;
        padding: var(--space-3);
    }

    .lifecycle-stage-information {
        margin-left: 52px;
        margin-right: var(--space-2);
    }
}

.lifecycle-step-action::before {
    display: none;
}

.lifecycle-step-action .lifecycle-step-copy {
    padding: 0;
    border-bottom: 0;
}

.lifecycle-step-action .lifecycle-step-heading strong {
    font-size: var(--font-card-title, 1rem);
}

.lifecycle-step-action .lifecycle-step-heading span {
    font-size: var(--font-meta, 0.8125rem);
}

@media (prefers-reduced-motion: reduce) {
    .lifecycle-step-action {
        transition: none;
    }
}
