/* ============================================================
   Score7 — the account screens (C01 to C04)

   Global rather than colocated, and that is the one place in this app where it is. The four
   screens share a shell, a field and a gauge, and they are static-SSR components: scoped CSS
   is scoped per component, so a shared class would need ::deep from every one of them. One
   sheet is the smaller thing.
   ============================================================ */

/* ---- The two-column shell ------------------------------------ */
.s7-auth {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}

.s7-auth__form {
    padding: 30px 34px 26px;
    background: var(--cream-panel);
}

.s7-auth__aside {
    padding: 30px 34px 26px;
    background: var(--cream);
    border-left: 1px solid var(--teal-cream-edge);
}

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

.s7-auth--single .s7-auth__aside {
    border-left: none;
    border-top: 1px solid var(--teal-cream-edge);
}

.s7-auth__title {
    margin: 0;
    font-size: 30px;
    font-weight: var(--weight-bold);
    color: var(--ink-900);
}

.s7-auth__intro {
    margin: 8px 0 22px;
    max-width: 46ch;
    font-size: 13px;
    line-height: 1.7;
    color: var(--neutral-500);
}

/* ---- Fields --------------------------------------------------- */
/* Not ".s7-field" either: that one belongs to the Fluent text fields, whose overrides style
   their inner ::part(root). A bare rule here reached every input in the game and spaced them
   all out by 18px. Same mistake, quieter symptom. */
.s7-authfield {
    margin-bottom: 18px;
}

.s7-authfield__label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: var(--weight-bold);
    color: var(--ink-900);
}

.s7-authfield__input {
    width: 100%;
    box-sizing: border-box;
    /* 44px is the floor for a finger, and these forms are filled on a phone at a table. */
    min-height: 46px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink-900);
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
}

.s7-authfield__input:focus-visible {
    outline: 2px solid var(--azure-500);
    outline-offset: 1px;
    border-color: var(--azure-500);
}

.s7-authfield__input--wrong {
    border-color: var(--danger-500);
}

.s7-authfield__help {
    margin: 7px 0 0;
    font-size: 12px;
    color: var(--neutral-500);
}

.s7-authfield__error {
    margin: 7px 0 0;
    font-size: 13px;
    color: var(--danger-600);
}

/* ---- The password row: reveal, then the gauge ------------------ */
.s7-password {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.s7-password__toggle {
    flex: none;
    min-height: 38px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 13px;
    color: var(--ink-900);
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.s7-password__toggle:hover {
    background: var(--surface-sunken);
}

.s7-gauge {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.s7-gauge__track {
    display: flex;
    flex: 1;
    gap: 7px;
    min-width: 0;
}

.s7-gauge__step {
    flex: 1;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--neutral-200);
}

/* Set by the script from the length of what has been typed. Nothing is sent anywhere to
   decide this: the gauge is arithmetic in the page. */
.s7-gauge__step[data-lit="weak"] { background: var(--danger-500); }
.s7-gauge__step[data-lit="fair"] { background: var(--warning-500); }
.s7-gauge__step[data-lit="good"],
.s7-gauge__step[data-lit="strong"] { background: var(--success-600); }

.s7-gauge__label {
    flex: none;
    font-size: 13px;
    font-weight: var(--weight-bold);
    color: var(--neutral-500);
}

.s7-gauge__label[data-lit="weak"] { color: var(--danger-600); }
.s7-gauge__label[data-lit="fair"] { color: var(--warning-700); }
.s7-gauge__label[data-lit="good"],
.s7-gauge__label[data-lit="strong"] { color: var(--success-700); }

/* ---- Actions: the button, and the way past it ------------------ */
/* A column, because the design stacks them: the button, then the way past it underneath. Side
   by side they read as a pair of equal choices, which is not what the second one is — it is the
   same choice, declined. */
.s7-auth__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 22px;
}

/* Also worn by an <a> on the welcome screen, where the "button" is a link to a form. Hence the
   inline-flex and the reset of the link's own decoration. */
.s7-auth__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 52px;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 17px;
    font-weight: var(--weight-bold);
    color: var(--text-on-brand);
    background: var(--azure-600);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-brand);
    cursor: pointer;
}

.s7-auth__submit:hover {
    background: var(--azure-700);
}

.s7-auth__submit:focus-visible {
    outline: 2px solid var(--azure-500);
    outline-offset: 3px;
}

/* Not a small grey link under a big blue button. The account is optional, and a screen that
   whispers the way out is a screen that has stopped saying so. */
.s7-auth__decline {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 12px;
    font-size: 17px;
    font-weight: var(--weight-bold);
    color: var(--ink-900);
    text-decoration: none;
}

.s7-auth__decline:hover {
    text-decoration: underline;
}

.s7-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 4px;
}

.s7-auth__stay {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink-900);
}

.s7-auth__legal {
    margin: 22px 0 0;
    max-width: 52ch;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-subtle);
}

/* ---- The aside: what the account is for ------------------------ */
.s7-auth__panel {
    padding: 18px 20px;
    background: var(--neutral-0);
    border: 2px solid var(--game-ink);
    border-radius: var(--radius-lg);
    box-shadow: 3px 3px 0 var(--game-ink-22);
}

.s7-auth__panel + .s7-auth__panel {
    margin-top: 16px;
}

.s7-auth__note {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--surface-sunken);
    border: 1px dashed var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: 13px;
    line-height: 1.7;
    color: var(--game-ink-soft);
}

.s7-auth__note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink-900);
}

.s7-steps--numbered {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.s7-steps--numbered li {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    background: var(--cream-panel);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
}

.s7-steps--numbered b {
    display: block;
    font-size: 14px;
    color: var(--ink-900);
}

.s7-steps--numbered p {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--game-ink-soft);
}

.s7-steps__badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-circle);
    background: var(--game-ink);
    color: var(--neutral-0);
    font-size: 13px;
    font-weight: var(--weight-bold);
}

/* ---- C01: the teal table the welcome screen sits on -------------
   The same surface as E01's, written again rather than shared: E01's lives in a scoped
   stylesheet, and scoped means scoped. Two declarations of one surface is the cost of that,
   and it is smaller than ::deep reaching across a component boundary to borrow it. */
/* `1 0 auto`, not `1`. The fourth copy of the teal board, and the same reasoning as the other
   three: `flex: 1` is `1 1 0%`, so a clipping surface takes its scroller's height rather than
   its content's and cuts off the rest with no scrollbar to reach it. */
.s7-welcome-board {
    position: relative;
    flex: 1 0 auto;
    overflow: hidden;
    padding: 40px 44px;
    background: var(--board-teal);
}

/* Below the breakpoint it stops filling and stops clipping, exactly as E01's, the victory
   board and the tiebreak board already do.
   This block was the part the copy did not carry: filling the screen is `flex: 1`, and a box
   with `flex: 1` is the height of its container rather than of its content. Clip that, and
   everything past the fold is cut off — with no scrollbar, because the scroller above it sees
   a child that fits. « Bienvenue » stopped at « Continuer sans compte » and the phone could
   not reach the rest. */
@media (max-width: 1023px) {
    .s7-welcome-board {
        flex: none;
        overflow: visible;
        padding: 20px 16px;
    }

    /* The drawn frame goes with the fill: inset 16px on a box that now runs past the screen is
       a rule nobody sees the bottom of. */
    .s7-welcome-board__rule {
        display: none;
    }
}

.s7-welcome-board__rule {
    position: absolute;
    inset: 16px;
    border: 2px solid var(--board-rule);
    border-radius: 12px;
    pointer-events: none;
}

.s7-welcome-board__inner {
    position: relative;
}

.s7-welcome-board__eyebrow {
    display: inline-block;
    padding: 5px 13px;
    border-radius: var(--radius-pill);
    background: var(--cream);
    font-size: 10px;
    font-weight: var(--weight-semibold);
    letter-spacing: .18em;
    color: var(--game-ink);
}

.s7-welcome-board__wordmark {
    margin-top: 18px;
}

/* ---- C01: the two ways in, side by side ------------------------ */
.s7-welcome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 26px;
}

.s7-welcome__card {
    display: flex;
    flex-direction: column;
    padding: 22px 24px 24px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--game-ink);
    box-shadow: 3px 3px 0 var(--game-ink-22);
}

.s7-welcome__card--without {
    background: var(--cream);
}

.s7-welcome__card--with {
    background: var(--neutral-0);
}

.s7-welcome__title {
    margin: 6px 0 16px;
    font-size: 25px;
    font-weight: var(--weight-bold);
    color: var(--ink-900);
}

.s7-welcome__badge {
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    background: var(--flip7-yellow);
    color: var(--game-ink);
    font-size: 11px;
    font-weight: var(--weight-bold);
    letter-spacing: .04em;
}

.s7-welcome__points {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 15px;
    line-height: 1.5;
    color: var(--game-ink);
}

.s7-welcome__points li {
    display: flex;
    gap: 12px;
}

.s7-welcome__points li::before {
    content: "\2713";
    flex: none;
    color: var(--success-600);
}

/* The two lines that are costs rather than features. A dash, not a tick: a list where the
   limits wear the same mark as the benefits is a list nobody reads to the end of. */
.s7-welcome__points li[data-cost]::before {
    content: "\2014";
    color: var(--danger-500);
}

.s7-welcome__intro {
    margin: 14px 0 0;
    max-width: 58ch;
    font-size: 17px;
    line-height: 1.6;
    color: var(--neutral-0);
}

.s7-welcome__footnote {
    margin-top: 22px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .14);
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--neutral-0);
}

/* ---- CM02: the aside folds instead of stacking ------------------
   Not a layout tweak with different words: the phone genuinely says less, because three cards
   stacked under a form is three cards nobody scrolls to. Both are rendered and one is hidden,
   which is what "the same component under a breakpoint" means when the copy differs. */
.s7-only-phone {
    display: none;
}

.s7-auth__fold {
    padding: 14px 16px;
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
}

.s7-auth__fold summary {
    cursor: pointer;
}

.s7-auth__fold summary b {
    display: block;
    font-size: 15px;
    color: var(--ink-900);
}

.s7-auth__fold summary span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--game-ink-soft);
}

/* ---- Phone: one column, CM02's shape --------------------------- */
@media (max-width: 767px) {
    .s7-auth,
    .s7-welcome {
        grid-template-columns: 1fr;
    }

    .s7-auth__aside {
        border-left: none;
        border-top: 1px solid var(--teal-cream-edge);
    }

    .s7-auth__form,
    .s7-auth__aside {
        padding: 20px 16px;
    }

    .s7-auth__title {
        font-size: 25px;
    }

    .s7-auth__submit {
        width: 100%;
    }

    .s7-auth__decline {
        display: block;
        text-align: center;
    }

    .s7-only-phone {
        display: block;
    }

    .s7-only-wide {
        display: none;
    }
}


/* ---- C05: the import offer ------------------------------------- 
   A list of rows that are checkboxes first and cards second: the whole screen is one decision
   repeated, and the label has to be the hit area for it. */
.s7-import {
    max-width: 760px;
    padding: 26px 4px 8px;
}

.s7-import__list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.s7-import__row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--cream-panel);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
}

/* The game being played is the one whose loss would be felt, so it is the one that looks
   different — and it is pre-checked. */
.s7-import__row[data-in-progress] {
    background: var(--azure-50);
    border-color: var(--azure-500);
    box-shadow: 0 0 0 1px var(--azure-500) inset;
}

.s7-import__row[data-taken] {
    opacity: 0.62;
}

.s7-import__pick {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.s7-import__row[data-taken] .s7-import__pick {
    cursor: default;
}

.s7-import__pick input {
    width: 24px;
    height: 24px;
    flex: none;
    accent-color: var(--azure-500);
}

.s7-import__what {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.s7-import__what b {
    font-size: 16px;
    color: var(--ink-900);
}

.s7-import__who {
    font-size: 13px;
    color: var(--game-ink-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.s7-import__score {
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--ink-900);
    flex: none;
}

.s7-import__all {
    margin-top: 14px;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--azure-600);
    cursor: pointer;
}

@media (max-width: 767px) {
    .s7-import {
        padding: 18px 0 8px;
    }

    .s7-import__row {
        padding: 12px 14px;
    }
}


/* ---- C16 / CM16: the account screen -----------------------------
   Four sections on one page: Vous, Connexion, Appareils, Données. Two screens until lot 23,
   each with a link apologising for the other; the split was an author's distinction and
   nobody arriving here ever had to choose between the two.

   Two columns on a wide screen, one on a phone. The left is the wider of the two — it holds
   the forms — and the two grounds differ by a shade so that the fold between them reads
   without a rule doing the work.

   Shaped like E15 rather than floated inside the card: `flex: 1` to take the card's height,
   the cream ground under both columns, and the screen's padding carried here. */
.s7-account {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: var(--cream);
}

.s7-account__column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 22px 24px;
}

.s7-account__column:first-child {
    background: var(--cream-panel);
}

.s7-account__column + .s7-account__column {
    border-left: 1px solid var(--teal-cream-edge);
}

/* A section title needs more air above it than the gap inside a section, or the four sections
   read as one long list of cards. */
.s7-account__column > .s7-eyebrow {
    margin-top: 12px;
    color: var(--game-ink-soft);
}

.s7-account__column > .s7-eyebrow:first-child {
    margin-top: 0;
}

/* A button in a column of stretched children is a button the width of the column. It is an
   action, not a section. */
.s7-account__column > .s7-account__button {
    align-self: flex-start;
}

/* The four anchors in the teal band. A jump, not a table of contents: the page is one scroll
   long on a desktop, so what they save is the scrolling and not the finding. */
.s7-account__index {
    display: flex;
    gap: 10px;
}

.s7-account__index a {
    font-size: 13px;
    font-weight: var(--weight-medium);
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.s7-account__index a:hover {
    color: var(--neutral-0);
}

/* The bar is fixed above the body, so an anchor lands under it without this. */
.s7-account [id] {
    scroll-margin-top: 76px;
}

/* ---- Vous ------------------------------------------------------
   One head card where there were two: C06's identity card, with its « Mon profil » button,
   and C11's « Photo et pseudo » block. The hard offset with no blur is the material's own
   signature and is never to be swapped for a soft shadow. */
.s7-account__you {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    background: var(--neutral-0);
    border: 2px solid var(--game-ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--panel-lift);
}

.s7-account__youText {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.s7-account__name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: var(--weight-bold);
    color: var(--ink-900);
}

.s7-account__blurb {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--neutral-600);
}

.s7-account__youActions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.s7-account__email {
    font-size: 11px;
    color: var(--neutral-500);
    overflow: hidden;
    text-overflow: ellipsis;
}

.s7-account__said {
    font-size: 13px;
    font-weight: var(--weight-semibold);
}

.s7-account__said--ok {
    color: var(--success-600);
}

/* The pseudo's own form, opened from the card above it. */
.s7-account__form {
    padding: 18px 20px;
    background: var(--cream-panel);
    border: 1px solid var(--game-ink-22);
    border-radius: var(--radius-lg);
}

/* ---- Connexion: three rows, one open at a time -----------------
   One card with rules between the rows rather than three cards: what they have in common —
   « this is how you get in » — is the reason they were pulled out of two screens into one
   section, and three floating cards would say the opposite. */
.s7-account__rows {
    display: flex;
    flex-direction: column;
    background: var(--neutral-0);
    border: 1px solid var(--game-ink-22);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.s7-account__rows > .s7-account__row + .s7-account__row {
    border-top: 1px solid var(--neutral-100);
}

.s7-account__rows > .s7-account__row {
    display: block;
    padding: 0;
    background: none;
    border-radius: 0;
}

.s7-account__rowHead {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.s7-account__rowHead .s7-account__rowWhat {
    flex: 1;
}

/* Unfolded, the head stays where it was and the ground under it changes. Nothing moves: a row
   that jumped as it opened would take the pointer that opened it with it. */
.s7-account__row--open > .s7-account__rowHead {
    background: var(--cream-panel);
}

.s7-account__rowBody {
    padding: 0 20px 20px;
    background: var(--cream-panel);
    border-top: 1px solid var(--game-ink-22);
}

/* Two fields side by side, and the row's own button under them.

   Doubled up with the form class it always accompanies, because that class is a flex column and
   is declared in a sheet loaded after this one. Equal specificity loses to the later file, and
   what that looked like was two fields stacked down a row wide enough for both. */
.s7-profile__form.s7-account__pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.s7-account__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Everything after the pair of fields runs the full width under them. */
.s7-account__pair > *:not(.s7-account__field) {
    grid-column: 1 / -1;
}

/* A word and never only a colour: « Confirmée » says it, and the green agrees. */
.s7-account__state {
    font-size: 11px;
    font-weight: var(--weight-semibold);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.s7-account__state--ok {
    color: var(--success-500);
}

.s7-account__state--waiting {
    color: var(--warning-600);
}

/* ---- The phone's index -----------------------------------------
   Hidden on a desktop, where the rows above unfold in place and there is nothing to navigate
   to. A row here is a link and opens a screen of its own — one form at a time, because three
   forms stacked on a 393px screen is three consequences a thumb can confuse. */
.s7-account__index--phone {
    display: none;
    flex-direction: column;
    background: var(--neutral-0);
    border: 1px solid var(--game-ink-22);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.s7-account__phoneRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 14px 15px;
    text-decoration: none;
}

.s7-account__phoneRow + .s7-account__phoneRow {
    border-top: 1px solid var(--neutral-100);
}

.s7-account__chevron {
    font-size: 12px;
    font-weight: var(--weight-bold);
    color: var(--text-subtle);
}

/* ---- Appareils --------------------------------------------------
   Every row carries a readable name now. It did not before: nothing in the application had
   ever written one, so the list said « Cet appareil » against each of them and « Déconnecter »
   was a coin toss. See DeviceNames. */
.s7-account__devices {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.s7-account__device,
.s7-account__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 15px;
    background: var(--neutral-0);
    border: 1px solid var(--neutral-100);
    border-radius: var(--radius-md);
}

.s7-account__device[data-current] {
    background: var(--azure-50);
    border: 2px solid var(--azure-600);
}

.s7-account__deviceWhat,
.s7-account__rowWhat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.s7-account__deviceWhat b,
.s7-account__rowWhat b {
    font-size: 12.5px;
    color: var(--ink-900);
}

.s7-account__deviceWhat span,
.s7-account__rowWhat span {
    font-size: 11px;
    line-height: 1.5;
    color: var(--neutral-500);
}

.s7-account__caveat {
    font-size: 11px;
    line-height: 1.6;
    color: var(--neutral-500);
}

.s7-account__link {
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    font-size: 11px;
    font-weight: var(--weight-semibold);
    color: var(--azure-600);
    cursor: pointer;
    white-space: nowrap;
}

/* ---- Votre bilan ------------------------------------------------ */
.s7-account__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.s7-account__tile {
    padding: 14px 16px;
    background: var(--neutral-0);
    border: 2px solid var(--game-ink);
    border-radius: var(--radius-md);
    box-shadow: var(--card-lift-sm);
}

.s7-account__tile b {
    display: block;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--game-ink);
}

.s7-account__tile span {
    font-size: 10.5px;
    color: var(--game-ink-72);
}

/* ---- Où votre photo se voit -------------------------------------
   The one survivor of C11's aside, and it earns the room: it answers « why is this app asking
   me for a photo » at the moment the question is being asked, two sections to the left. */
.s7-account__where {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px;
    background: var(--neutral-0);
    border: 2px solid var(--game-ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--panel-lift);
}

.s7-account__seat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--azure-50);
    border: 1px solid var(--azure-600);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--ink-900);
}

/* ---- Vos données ------------------------------------------------
   Two rows, not three. Signing out left this section for the identity menu: it is a session
   action and had no business standing between the export and the deletion. */
.s7-account__data {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    background: var(--neutral-0);
    border: 1px solid var(--game-ink-22);
    border-radius: var(--radius-lg);
}

.s7-account__data > .s7-account__row {
    padding: 12px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--neutral-100);
    border-radius: 0;
}

.s7-account__row--danger b {
    color: var(--danger-500);
}

/* Named for the screen it belongs to, and that is not a cosmetic choice.
   ".s7-button" is an established class in this app: the Fluent buttons wear it, and
   score7-fluent-overrides.css styles their inner ::part(control) while leaving the host alone.
   A plain rule on the host, loaded after those overrides, gave every button in the game a white
   box around a blue fill that no longer reached its edges. */
.s7-account__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--control-h-sm);
    padding: 0 16px;
    background: var(--neutral-0);
    border: 1px solid var(--ink-900);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 13px;
    font-weight: var(--weight-semibold);
    color: var(--ink-900);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.s7-account__button--danger {
    background: var(--danger-500);
    border-color: var(--danger-600);
    color: var(--neutral-0);
}

.s7-account__phoneOnly {
    display: none;
}

/* 1023px, like E14, E15 and the history — not the 900 this screen used to fold at. One
   app, one width where two columns become one; a third value here was only ever the number
   that happened to be typed. */
@media (max-width: 1023px) {
    .s7-account {
        grid-template-columns: minmax(0, 1fr);
    }

    .s7-account__column {
        padding: 16px;
    }

    .s7-account__column + .s7-account__column {
        border-left: 0;
        border-top: 1px solid var(--teal-cream-edge);
    }
}

/* ---- CM16: the phone --------------------------------------------
   The accordion becomes a list of links, the bilan goes to /statistiques where it says the
   same in more room, and the head card comes down to who this is. */
@media (max-width: 767px) {
    .s7-account__deskOnly {
        display: none;
    }

    .s7-account__phoneOnly {
        display: block;
    }

    /* The two ways into the same three forms, and only one of them is reachable with a thumb:
       a row that unfolds under a keyboard on a 393px screen is a form nobody can see the
       bottom of. */
    .s7-account__rows {
        display: none;
    }

    .s7-account__index--phone {
        display: flex;
    }

    /* Who this is, and the way to change it. The blurb and the three buttons belong to the
       desktop card; here the « Photo et pseudo » screen carries them. */
    .s7-account__you {
        align-items: center;
        gap: 14px;
        padding: 16px;
    }

    /* The size arrives as an inline custom property, set per call site, and an inline
       declaration is not something a stylesheet can outbid. So the box is set directly
       instead — two selectors deep, which beats the component's own rule. */
    .s7-account__you .s7-avatar {
        inline-size: 52px;
        block-size: 52px;
        font-size: 23px;
    }

    .s7-account__youText {
        flex: 1;
    }

    .s7-account__name {
        font-size: 16px;
    }

    .s7-account__index {
        display: none;
    }

    .s7-profile__form.s7-account__pair {
        grid-template-columns: minmax(0, 1fr);
    }
}


/* ---- C07: filtering the history, and where a game lives ---------
   The grid gains a sixth column only when there is an account to make the distinction mean
   something. Signed out there is nothing to distinguish, so the column is not there at all
   rather than there and empty. */
.s7-history__filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.s7-history__filter .s7-eyebrow {
    margin-right: 6px;
}

.s7-history__pill {
    min-height: 38px;
    padding: 0 16px;
    background: var(--neutral-0);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-pill);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-900);
    cursor: pointer;
}

.s7-history__pill--on {
    border-color: var(--azure-500);
    box-shadow: 0 0 0 1px var(--azure-500) inset;
    color: var(--azure-700);
}

.s7-history__state {
    justify-self: end;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--success-700);
    white-space: nowrap;
}

.s7-history__state[data-where="OnThisDeviceOnly"] {
    color: var(--ink-900);
}


/* One line, at the top of the home screen, for the browser that was signed out from another. */
.s7-app__notice {
    margin: 0 auto;
    max-width: 1180px;
    padding: 12px 18px;
    background: var(--cream);
    border-bottom: 1px solid var(--neutral-200);
    font-size: 14px;
    color: var(--ink-900);
}
