/* ============================================================
   FC AI — Platform chrome components
   ============================================================
   Layout language reverse-engineered from the brand source-of-truth:
     • static/leicester/brian/index.html (Stuart-approved wireframe)
     • output/multi_session_feedback/*.html (Nathan, Miled)

   Discipline:
     - Sharp radii (4/8px max — never 12+ except pills)
     - Hairline borders rgba(244,244,244,0.10)
     - Mono micro-eyebrows in caps with wide tracking
     - Seeker italic ExtraBold for display moments
     - Tenant accent reserved for highlights + CTAs (never as
       a body fill — the navy ground does the heavy lifting)
     - 120ms ease-out for everything
     - Period-as-full-stop on display titles, coloured in accent
   ============================================================ */

/* ── Shell ──────────────────────────────────────────────── */
.fc-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--fc-s-10) var(--fc-s-12) var(--fc-s-24);
    min-height: 100vh;
}

/* ── Page header (eyebrow + display title + meta col) ──── */
.fc-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--fc-s-8);
    margin-bottom: var(--fc-s-10);
    padding-bottom: var(--fc-s-6);
    border-bottom: 1px solid var(--fc-border);
}
.fc-page-header__left { flex: 1; min-width: 0; }
.fc-page-header__meta {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4px 16px;
    font-family: var(--fc-font-mono);
    font-size: var(--fc-fs-xs);
    color: var(--fc-fg-dim);
}
.fc-page-header__meta dt {
    text-transform: uppercase;
    letter-spacing: var(--fc-tr-xwide);
    font-size: 10px;
    color: var(--fc-fg-dim);
}
.fc-page-header__meta dd {
    color: var(--fc-fg);
    text-align: right;
    font-weight: 500;
}

.fc-display-title {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--fc-fg);
    margin-top: var(--fc-s-3);
    text-wrap: balance;
}
.fc-display-title .accented,
.fc-display-title .fc-accented { color: var(--fc-focus-1); }

/* ── Sidebar (rebuilt) ──────────────────────────────────── */
.fc-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 260px;
    flex-shrink: 0;
    background: var(--fc-bg-alt);
    border-right: 1px solid var(--fc-border);
    padding: var(--fc-s-8) var(--fc-s-6) var(--fc-s-6);
    display: flex;
    flex-direction: column;
    gap: var(--fc-s-6);
    z-index: 10;
}

.fc-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: var(--fc-s-4);
    border-bottom: 1px solid var(--fc-border);
}
.fc-sidebar__crest {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}
.fc-sidebar__brand-mark {
    height: 22px;
    width: auto;
    display: block;
}
.fc-sidebar__brand-divider {
    width: 1px;
    height: 24px;
    background: var(--fc-border-strong);
    flex-shrink: 0;
}
.fc-sidebar__brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.fc-sidebar__brand-name {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--fc-fg);
    /* Allow wrap to 2 lines — "Leicester City" / "Watford FC" both fit
       in the remaining ~155px column at 14px italic uppercase. Drop the
       ellipsis so we never lose the second word silently. */
    overflow-wrap: anywhere;
}
.fc-sidebar__brand-sub {
    font-family: var(--fc-font-mono);
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fc-focus-1);
    font-weight: 600;
}

.fc-sidebar__eyebrow {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    font-weight: 500;
    padding: 0 var(--fc-s-3);
    margin-bottom: var(--fc-s-2);
}

.fc-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fc-sidebar__link {
    display: flex;
    align-items: center;
    gap: var(--fc-s-3);
    padding: var(--fc-s-3) var(--fc-s-3);
    color: var(--fc-fg-muted);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-sm);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--fc-r-sm);
    border-left: 2px solid transparent;
    transition: color var(--fc-dur-fast) var(--fc-ease-out),
                background var(--fc-dur-fast) var(--fc-ease-out),
                border-color var(--fc-dur-fast) var(--fc-ease-out);
    position: relative;
}
.fc-sidebar__link:hover {
    color: var(--fc-fg);
    background: rgba(244, 244, 244, 0.03);
}
.fc-sidebar__link.is-active {
    color: var(--fc-fg);
    background: rgba(244, 244, 244, 0.04);
    border-left-color: var(--fc-focus-1);
}
.fc-sidebar__link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

/* Stacked label inside a nav link — "Players" + "Coming soon" below.
   Mirrors the integration tiles' status sub but keeps the standard
   nav-link footprint (same hover surface, same active stripe).
   Per Nick 2026-05-20. */
.fc-sidebar__link--has-sub { align-items: center; }
.fc-sidebar__link-stack {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
    min-width: 0;
}
.fc-sidebar__link-name { font: inherit; color: inherit; }
.fc-sidebar__link-status {
    /* Mirror .fc-sidebar__integration-status exactly so 'COMING SOON'
       reads at the same weight + density wherever it appears. */
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    font-weight: 400;
}

.fc-sidebar__footer {
    margin-top: auto;
    padding-top: var(--fc-s-4);
    border-top: 1px solid var(--fc-border);
    display: flex;
    flex-direction: column;
    gap: var(--fc-s-3);
}

/* Integrations strip in the sidebar footer — branded coming-soon tiles.
   The same tile pattern is also used for the in-nav Players placeholder
   (see .fc-sidebar__integration--feature) so all coming-soon items
   read consistently. */
.fc-sidebar__integrations {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: var(--fc-s-3);
    border-bottom: 1px solid var(--fc-border);
}
.fc-sidebar__integrations-label {
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    font-weight: 700;
    padding: 0 var(--fc-s-2);
    margin-bottom: 4px;
}
.fc-sidebar__integration {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border-radius: var(--fc-r-sm);
    text-decoration: none;
    color: inherit;
    transition: background var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-sidebar__integration:hover { background: var(--fc-surface-card); }
.fc-sidebar__integration-mark {
    width: 26px; height: 26px;
    display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 6px;
    font-family: var(--fc-font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    flex-shrink: 0;
}
/* Brand-coloured tiles. Stand in for real logos until assets land. */
.fc-sidebar__integration-mark[data-brand="kitman"]   { background: #1B2545; }      /* KitMan deep navy */
.fc-sidebar__integration-mark[data-brand="whatsapp"] { background: #25D366; }      /* WhatsApp brand green */
.fc-sidebar__integration-mark[data-brand="players"]  { background: var(--fc-focus-1); color: var(--fc-navy); }   /* FC AI first-party feature — tenant accent */
.fc-sidebar__integration-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1;
    min-width: 0;
}
.fc-sidebar__integration-name {
    font-family: var(--fc-font-sans);
    font-size: 12px;
    font-weight: 600;
    color: var(--fc-fg);
}
.fc-sidebar__integration-status {
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
}
.fc-sidebar__user {
    display: flex;
    align-items: center;
    gap: var(--fc-s-3);
    padding: var(--fc-s-2);
}
.fc-sidebar__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--fc-surface-subtle);
    border: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fc-focus-1);
    flex-shrink: 0;
}
.fc-sidebar__avatar svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.fc-sidebar__user-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.fc-sidebar__user-name {
    font-family: var(--fc-font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--fc-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-sidebar__user-title {
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
}
.fc-sidebar__signout {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    text-decoration: none;
    padding: var(--fc-s-2) var(--fc-s-3);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-sm);
    text-align: center;
    transition: color var(--fc-dur-fast) var(--fc-ease-out),
                border-color var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-sidebar__signout:hover {
    color: var(--fc-fg);
    border-color: var(--fc-border-strong);
}

/* Theme toggle — bottom of sidebar footer. Cycles dark ⇄ light
   and persists to localStorage("fc-ai-theme"). Icon swaps with
   the data-theme attribute via CSS — no extra JS branching. */
.fc-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--fc-s-3);
    padding: var(--fc-s-2) var(--fc-s-3);
    background: transparent;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-sm);
    color: var(--fc-fg-dim);
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--fc-dur-fast) var(--fc-ease-out),
                border-color var(--fc-dur-fast) var(--fc-ease-out),
                background var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-theme-toggle:hover {
    color: var(--fc-fg);
    border-color: var(--fc-border-strong);
}
.fc-theme-toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    flex-shrink: 0;
}
/* Icon visibility flips by data-theme so we don't need JS to swap. */
[data-theme="dark"]  .fc-theme-toggle .icon-dark  { display: none; }
[data-theme="dark"]  .fc-theme-toggle .icon-light { display: block; }
[data-theme="light"] .fc-theme-toggle .icon-dark  { display: block; }
[data-theme="light"] .fc-theme-toggle .icon-light { display: none; }
[data-theme="dark"]  .fc-theme-toggle .label::before  { content: "Light"; }
[data-theme="light"] .fc-theme-toggle .label::before  { content: "Dark"; }
.fc-theme-toggle .label::after { content: " mode"; }

/* ── App layout (sidebar + main) ────────────────────────── */
.fc-app {
    display: flex;
    min-height: 100vh;
    /* Force full viewport width. The legacy base.html has body{display:flex}
       so .fc-app would otherwise size to its intrinsic content (~683px on
       /coaches) and leave most of the viewport empty. flex:1 + width:100%
       claims the whole row in any wrapping context. */
    width: 100%;
    flex: 1;
    background: var(--fc-bg);
    color: var(--fc-fg);
    font-family: var(--fc-font-sans);
}
/* Selector bumped to `main.fc-app__main` so it beats the legacy
   `.main` rule in base.html's inline <style> block on specificity.
   That legacy rule was written for a position:fixed sidebar and
   carries `margin-left: 260px` + `max-width: calc(1320px + sidebar)`
   — both of which break the new flex layout (margin shifts main
   right by another sidebar-width, max-width caps content at 1580px
   leaving dead space on the right of 1920px monitors). */
main.fc-app__main {
    flex: 1;
    min-width: 0;
    margin-left: 0;
    max-width: none;
    padding: var(--fc-s-8) var(--fc-s-10) var(--fc-s-20);
}

@media (max-width: 880px) {
    .fc-app { flex-direction: column; }
    .fc-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--fc-border);
        padding: var(--fc-s-5) var(--fc-s-5);
        gap: var(--fc-s-4);
    }
    .fc-sidebar__footer { margin-top: var(--fc-s-3); }
    .fc-app__main { padding: var(--fc-s-6) var(--fc-s-5) var(--fc-s-16); }
}

/* ── Login surface ──────────────────────────────────────── */
.fc-login {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--fc-bg);
    color: var(--fc-fg);
    font-family: var(--fc-font-sans);
}
.fc-login__hero {
    padding: var(--fc-s-12) var(--fc-s-16);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--fc-border);
}
.fc-login__hero::before {
    /* faint accent glow upper-left */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 18%,
        color-mix(in oklch, var(--fc-focus-1) 12%, transparent) 0%,
        transparent 55%);
    pointer-events: none;
}
.fc-login__brand {
    display: flex;
    align-items: center;
    gap: var(--fc-s-4);
    position: relative;
    z-index: 1;
}
.fc-login__crest { width: 56px; height: 56px; object-fit: contain; }
.fc-login__brand-divider { width: 1px; height: 36px; background: var(--fc-border-strong); }
.fc-login__brand-text { display: flex; flex-direction: column; gap: 2px; }
.fc-login__brand-name {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--fc-fg);
}
.fc-login__brand-sub {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-focus-1);
    font-weight: 600;
}
.fc-login__display {
    position: relative;
    z-index: 1;
    align-self: flex-start;
}
.fc-login__eyebrow {
    font-family: var(--fc-font-mono);
    font-size: 11px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    margin-bottom: var(--fc-s-4);
}
.fc-login__display-title {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 800;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--fc-fg);
    margin: 0;
    text-wrap: balance;
}
.fc-login__display-title .fc-accented { color: var(--fc-focus-1); }
.fc-login__display-sub {
    margin-top: var(--fc-s-6);
    max-width: 460px;
    font-size: var(--fc-fs-lg);
    line-height: 1.45;
    color: var(--fc-fg-muted);
}
.fc-login__footer-meta {
    position: relative;
    z-index: 1;
    font-family: var(--fc-font-mono);
    font-size: var(--fc-fs-xs);
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    display: flex;
    gap: var(--fc-s-6);
    flex-wrap: wrap;
}
.fc-login__footer-meta .sep { opacity: 0.4; }

.fc-login__form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--fc-s-12) var(--fc-s-10);
    background: var(--fc-bg-alt);
}
.fc-login__form {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: var(--fc-s-5);
}
.fc-login__form-eyebrow {
    font-family: var(--fc-font-mono);
    font-size: var(--fc-fs-eyebrow);
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    font-weight: 600;
}
.fc-login__form-title {
    font-family: var(--fc-font-sans);
    font-size: 28px;
    font-weight: 700;
    color: var(--fc-fg);
    letter-spacing: -0.01em;
    margin-top: -8px;
}
.fc-field { display: flex; flex-direction: column; gap: 6px; }
.fc-field__label {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    font-weight: 600;
}
.fc-field__input {
    width: 100%;
    padding: 12px 14px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-sm);
    color: var(--fc-fg);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-body);
    transition: border-color var(--fc-dur-fast) var(--fc-ease-out),
                background var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-field__input:focus {
    outline: none;
    border-color: var(--fc-focus-1);
    background: var(--fc-surface-card);
}
.fc-field__input::placeholder { color: var(--fc-fg-dim); }
.fc-btn--primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: var(--fc-s-2);
    padding: 14px 20px;
    background: var(--fc-focus-1);
    color: var(--fc-navy);
    border: none;
    border-radius: var(--fc-r-sm);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-body);
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: filter var(--fc-dur-fast) var(--fc-ease-out),
                transform var(--fc-dur-fast) var(--fc-ease-out);
    text-decoration: none;
}
.fc-btn--primary:hover { filter: brightness(1.05); }
.fc-btn--primary:active { transform: translateY(1px); }

.fc-error {
    min-height: 1.2em;
    color: var(--fc-orange);
    font-family: var(--fc-font-mono);
    font-size: var(--fc-fs-xs);
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
}

@media (max-width: 880px) {
    .fc-login { grid-template-columns: 1fr; }
    .fc-login__hero { border-right: none; border-bottom: 1px solid var(--fc-border); padding: var(--fc-s-10) var(--fc-s-8); }
    .fc-login__form-wrap { padding: var(--fc-s-10) var(--fc-s-6); }
}

/* ── Coach grid ─────────────────────────────────────────── */
.fc-grid {
    display: grid;
    /* Narrower minmax → more cards per row on common 1400/1920 viewports,
       cards feel denser. Per Nick 2026-05-19 (third pass on size). */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--fc-s-3);
}
/* Card = 3 equal sections (header / metrics / footer). Auto-fill grid
   on the parent stretches all cards in a row to the same height, so
   no min-height needed — cards size to content and stay aligned
   without feeling oversized. Per Nick 2026-05-19. */
.fc-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
    padding: 0;
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    transition: border-color var(--fc-dur-fast) var(--fc-ease-out),
                background var(--fc-dur-fast) var(--fc-ease-out),
                transform var(--fc-dur-fast) var(--fc-ease-out);
    position: relative;
    overflow: hidden;
}
.fc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--fc-focus-1);
    opacity: 0;
    transition: opacity var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-card:hover {
    background: var(--fc-surface-card);
    border-color: var(--fc-border-strong);
    transform: translateY(-1px);
}
.fc-card:hover::before { opacity: 1; }

/* ── Top third: header (initials disc + 2-line name + meta line) ── */
.fc-card__head {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-content: center;
    align-items: center;
    padding: 14px 14px 10px;
}
.fc-card__initials {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--fc-surface-card);
    border: 1px solid var(--fc-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fc-font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--fc-focus-1);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    align-self: center;
}
.fc-card__name {
    display: flex;
    flex-direction: column;
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--fc-fg);
    text-transform: uppercase;
    line-height: 1.0;
    min-width: 0;
}
.fc-card__name-first,
.fc-card__name-rest {
    display: block;
    overflow-wrap: anywhere;
}
.fc-card__name-rest { font-weight: 800; }
.fc-card__sub {
    grid-column: 1 / -1;
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    margin-top: 10px;
    line-height: 1.3;
}
.fc-card__sub strong { color: var(--fc-fg-muted); font-weight: 600; }

/* ── Middle third: hero metrics, no decimals ── */
.fc-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-content: center;
    padding: 8px 14px;
}
.fc-card__metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.fc-card__metric-label {
    font-family: var(--fc-font-mono);
    font-size: 8px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    line-height: 1;
}
.fc-card__metric-value {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    color: var(--fc-fg);
    letter-spacing: -0.02em;
}
.fc-card__metric-value.is-accent { color: var(--fc-focus-1); }
.fc-card__metric-value .unit {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    font-style: italic;
}

/* ── Bottom third: session count + bolder CTA ── */
.fc-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px 12px;
}
.fc-card__sessions {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
}
.fc-card__sessions strong { color: var(--fc-fg); font-weight: 700; }
.fc-card__footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--fc-focus-1);
    color: var(--fc-navy);
    border-radius: var(--fc-r-pill);
    font-family: var(--fc-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: filter var(--fc-dur-fast) var(--fc-ease-out),
                transform var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-card__footer-cta svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.fc-card:hover .fc-card__footer-cta { filter: brightness(1.06); transform: translateX(2px); }

/* ── Session list ───────────────────────────────────────── */
.fc-session-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--fc-border);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
    overflow: hidden;
}
.fc-session-row {
    display: grid;
    /* date | title | coach | BRT | ILM | OQ | duration | chev */
    grid-template-columns: 90px minmax(0, 1fr) 130px 70px 60px 60px 80px 24px;
    gap: var(--fc-s-4);
    padding: var(--fc-s-4) var(--fc-s-5);
    background: var(--fc-surface);
    text-decoration: none;
    color: inherit;
    align-items: center;
    transition: background var(--fc-dur-fast) var(--fc-ease-out);
    position: relative;
}
.fc-session-row::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 2px;
    background: var(--fc-focus-1);
    opacity: 0;
    transition: opacity var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-session-row:hover { background: var(--fc-surface-card); }
.fc-session-row:hover::before { opacity: 1; }
.fc-session-row__date {
    font-family: var(--fc-font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--fc-fg-muted);
}
.fc-session-row__title {
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-body);
    font-weight: 600;
    color: var(--fc-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-session-row__title-sub {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    margin-top: 2px;
}
.fc-session-row__coach {
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-sm);
    color: var(--fc-fg-muted);
}
.fc-session-row__age {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
}
.fc-session-row__duration {
    font-family: var(--fc-font-mono);
    font-size: 12px;
    color: var(--fc-fg);
    text-align: right;
}
/* Per-row hero metrics — replaces the old focus-pill column.
   Per Nick 2026-05-21. */
.fc-session-row__metric {
    font-family: var(--fc-font-mono);
    font-size: 11px;
    color: var(--fc-fg-muted);
    text-align: right;
    line-height: 1;
    white-space: nowrap;
}
.fc-session-row__metric strong {
    font-family: var(--fc-font-display);
    font-style: italic;
    font-weight: 800;
    font-size: 16px;
    color: var(--fc-fg);
    letter-spacing: -0.01em;
}
.fc-session-row__metric .lbl {
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    margin-left: 3px;
}
.fc-session-row__chev {
    color: var(--fc-fg-dim);
    transition: color var(--fc-dur-fast) var(--fc-ease-out),
                transform var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-session-row:hover .fc-session-row__chev {
    color: var(--fc-focus-1);
    transform: translateX(2px);
}

/* Mobile: collapse to a friendlier 2-column row */
@media (max-width: 720px) {
    .fc-session-row {
        grid-template-columns: 1fr auto;
        row-gap: var(--fc-s-2);
    }
    .fc-session-row__date    { grid-column: 1; }
    .fc-session-row__title   { grid-column: 1 / -1; }
    .fc-session-row__coach   { grid-column: 1; }
    .fc-session-row__age,
    .fc-session-row__duration,
    .fc-session-row__metric,
    .fc-session-row__chev    { display: none; }
}

/* ── Filter / search bar ────────────────────────────────── */
.fc-filterbar {
    display: flex;
    align-items: center;
    gap: var(--fc-s-3);
    margin-bottom: var(--fc-s-5);
    flex-wrap: wrap;
}
.fc-search {
    flex: 1;
    min-width: 220px;
    position: relative;
}
.fc-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-sm);
    color: var(--fc-fg);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-sm);
    transition: border-color var(--fc-dur-fast) var(--fc-ease-out);
}
.fc-search input:focus { outline: none; border-color: var(--fc-focus-1); }
.fc-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fc-fg-dim);
    pointer-events: none;
}
.fc-search__icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.fc-meta-tag {
    font-family: var(--fc-font-mono);
    font-size: 10px;
    letter-spacing: var(--fc-tr-xwide);
    text-transform: uppercase;
    color: var(--fc-fg-dim);
    padding: 6px 10px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-sm);
    white-space: nowrap;
}
.fc-meta-tag strong { color: var(--fc-fg); font-weight: 600; }

/* ── Floating pill (chrome-level context indicator) ─────── */
/* Reserves view-transition-name from the Half 1 plumbing.
   Shows tenant + user identity bottom-right, doubles as the
   anchor we'll hang quick actions off in later iterations. */
.fc-pill {
    position: fixed;
    bottom: var(--fc-s-5);
    right: var(--fc-s-5);
    display: inline-flex;
    align-items: center;
    gap: var(--fc-s-3);
    padding: 10px 16px 10px 12px;
    background: var(--fc-focus-1);
    color: var(--fc-navy);
    border-radius: var(--fc-r-pill);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    font-family: var(--fc-font-sans);
    font-weight: 600;
    font-size: 13px;
    z-index: 20;
    view-transition-name: fc-pill;
    transition: filter var(--fc-dur-fast) var(--fc-ease-out),
                transform var(--fc-dur-fast) var(--fc-ease-out);
    text-decoration: none;
    max-width: calc(100vw - 32px);
    overflow: hidden;
}
.fc-pill:hover { filter: brightness(1.05); transform: translateY(-1px); }
.fc-pill__crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.fc-pill__divider {
    width: 1px;
    height: 16px;
    background: rgba(18, 31, 56, 0.18);
}
.fc-pill__label {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 1px;
}
.fc-pill__name { font-weight: 700; font-size: 12px; }
.fc-pill__sub {
    font-family: var(--fc-font-mono);
    font-size: 9px;
    letter-spacing: var(--fc-tr-wide);
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 500;
}
@media (max-width: 600px) {
    .fc-pill__sub { display: none; }
    .fc-pill { padding: 8px 14px 8px 10px; }
}

/* ── Empty + placeholder states ─────────────────────────── */
.fc-empty {
    text-align: center;
    padding: var(--fc-s-16) var(--fc-s-6);
    color: var(--fc-fg-muted);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-body);
    border: 1px dashed var(--fc-border);
    border-radius: var(--fc-r-md);
}

/* ── Mobile warning banner ───────────────────────────────── */
/* Hidden by default via the `hidden` attribute on the element.
   JS reveals it only on viewports ≤768px if not yet dismissed. */
.fc-mobile-warning {
    position: fixed;
    top: var(--fc-s-4);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: min(calc(100vw - var(--fc-s-8)), 400px);
}

.fc-mobile-warning__inner {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--fc-r-lg);
    box-shadow: var(--fc-shadow-lg);
    padding: var(--fc-s-5) var(--fc-s-6);
    font-family: var(--fc-font-sans);
    color: var(--fc-fg);
    display: flex;
    flex-direction: column;
    gap: var(--fc-s-2);
}

.fc-mobile-warning__inner strong {
    font-size: var(--fc-fs-sm);
    font-weight: 600;
}

.fc-mobile-warning__inner p {
    font-size: var(--fc-fs-xs);
    color: var(--fc-fg-muted);
    line-height: var(--fc-lh-body);
    margin: 0;
}

.fc-mobile-warning__dismiss {
    align-self: flex-end;
    margin-top: var(--fc-s-1);
    padding: var(--fc-s-2) var(--fc-s-4);
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--fc-r-md);
    background: var(--fc-bg-raised, var(--fc-navy-700));
    color: var(--fc-fg);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-xs);
    font-weight: 500;
    cursor: pointer;
    transition: background var(--fc-dur-fast) var(--fc-ease-out);
}

.fc-mobile-warning__dismiss:hover {
    background: var(--fc-surface-card);
}
.fc-empty .fc-eyebrow { color: var(--fc-fg-dim); display: block; margin-bottom: var(--fc-s-2); }

/* ── Branded error pages (404 / 500) ────────────────────── */
.fc-error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: var(--fc-s-16) var(--fc-s-6);
    gap: var(--fc-s-4);
}
.fc-error-card__code {
    font-family: var(--fc-font-display);
    font-size: 7rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    letter-spacing: var(--fc-tr-tight);
    color: var(--fc-focus-1);
    margin-bottom: var(--fc-s-2);
}
.fc-error-card__headline {
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-h2);
    font-weight: 700;
    line-height: var(--fc-lh-snug);
    letter-spacing: var(--fc-tr-tight);
    color: var(--fc-fg);
    margin: 0;
}
.fc-error-card__message {
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-body);
    line-height: var(--fc-lh-body);
    color: var(--fc-fg-muted);
    margin: 0;
    max-width: 36ch;
}
.fc-error-card__back {
    display: inline-block;
    margin-top: var(--fc-s-4);
    padding: 10px 20px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
    font-family: var(--fc-font-sans);
    font-size: var(--fc-fs-sm);
    font-weight: 600;
    color: var(--fc-fg);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.fc-error-card__back:hover {
    border-color: var(--fc-focus-1);
    color: var(--fc-focus-1);
}
