/* ==========================================================================
   AI Trainer — focused chat surface.

   Scoped owner: #screen-ai-coach only. This file intentionally re-declares the
   screen shell because learning-settings.css still ships an older chat layout
   with !important; the later stylesheet wins at equal specificity.

   The surface is three rows: a compact header, the transcript, and one floating
   composer. There is no context column, no mode tab strip and no mounted board —
   the board and the game picker are sheets that open on an explicit action.

   Theme tokens come from the shared product palette (rewards-themes.css) with
   base-token fallbacks, so the trainer follows the active theme.
   ========================================================================== */

#screen-ai-coach.coach-screen {
    --coach-surface: var(--surface-1, var(--bg-elevated));
    --coach-surface-2: var(--surface-2, var(--bg-overlay));
    --coach-line: var(--border-subtle, var(--line-strong));
    --coach-text: var(--text-primary, var(--ink-strong));
    --coach-muted: var(--text-secondary, var(--ink-muted));
    --coach-accent: var(--accent-gold, var(--gold));
    /* One readable column shared by the transcript, the empty state, the status
       rows and the composer, so they all line up instead of drifting apart. */
    --coach-read: 780px;
    --coach-gutter: max(20px, calc((100% - var(--coach-read)) / 2));
    /* Written by the controller from visualViewport: how much of the viewport
       the on-screen keyboard covers. The composer is the only element that
       consumes it, so the transcript never gets a second bottom inset. */
    --coach-keyboard-inset: 0px;
}

/* The screen owns the full viewport. It must NOT reserve a left gutter: this
   screen is in navigation.js's GLOBAL_NAV_HIDDEN_SCREENS, so body.global-nav-hidden
   already hides .tp-topbar and .tp-mobile-nav — the composer and the bottom
   navigation can never overlap because only one of them is ever present. */
#screen-ai-coach.coach-screen.active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9998 !important;
    width: auto !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
    background: var(--product-bg, var(--bg-base)) !important;
    color: var(--coach-text) !important;
    font-family: var(--font-body);
}

/* ── Compact header ─────────────────────────────────────────────────────── */

#screen-ai-coach .coach-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: calc(56px + env(safe-area-inset-top, 0px));
    padding: max(8px, env(safe-area-inset-top, 0px)) 16px 8px;
    background: transparent;
}

#screen-ai-coach .coach-back,
#screen-ai-coach .coach-header-actions button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--coach-line);
    border-radius: 999px;
    background: var(--coach-surface);
    color: var(--coach-muted);
    cursor: pointer;
}
#screen-ai-coach .coach-back:hover,
#screen-ai-coach .coach-header-actions button:hover { color: var(--coach-accent); border-color: var(--coach-accent); }

#screen-ai-coach .coach-heading { min-width: 0; }
#screen-ai-coach .coach-heading strong {
    font: 700 17px/1.15 var(--font-display);
    color: var(--coach-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#screen-ai-coach .coach-header-actions { display: flex; align-items: center; gap: 8px; }
#screen-ai-coach .coach-round-action { color: var(--coach-text); }

#screen-ai-coach .coach-clear-menu {
    position: absolute;
    top: calc(100% - 4px);
    right: 16px;
    z-index: 5;
    display: grid;
    gap: 6px;
    width: min(280px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-md, 12px);
    background: var(--coach-surface-2);
    box-shadow: var(--shadow-medium, 0 8px 24px rgba(0, 0, 0, 0.45));
}
#screen-ai-coach .coach-clear-menu[hidden] { display: none; }
#screen-ai-coach .coach-clear-menu p { margin: 0 0 2px; font-size: 12px; line-height: 1.4; color: var(--coach-muted); }
#screen-ai-coach .coach-clear-menu button {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-sm, 6px);
    background: transparent;
    color: var(--coach-text);
    font: 600 13px/1 var(--font-body);
    text-align: left;
    cursor: pointer;
}
#screen-ai-coach .coach-clear-menu button:hover { border-color: var(--coach-accent); color: var(--coach-accent); }
#screen-ai-coach #coach-clear-all { color: var(--blood-bright, #C44B4B); }

/* ── Conversation ───────────────────────────────────────────────────────── */

#screen-ai-coach .coach-chat-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

#screen-ai-coach .coach-chat-scroll {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-block: 12px 8px;
    padding-inline: var(--coach-gutter);
    scroll-padding-block-end: 16px;
}

/* Empty state: the mark, one question, nothing under it. */
#screen-ai-coach .coach-empty {
    margin-block: auto;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 24px 0;
    text-align: center;
}
#screen-ai-coach .coach-empty[hidden] { display: none; }
#screen-ai-coach .coach-empty h2 {
    margin: 0;
    font: 700 26px/1.2 var(--font-display);
    color: var(--coach-text);
}
#screen-ai-coach .coach-mark { display: block; width: 42px; height: 42px; }
#screen-ai-coach .coach-mark svg { width: 100%; height: 100%; display: block; }
#screen-ai-coach .coach-mark path { fill: var(--coach-accent); }

#screen-ai-coach .coach-messages { display: flex; flex-direction: column; gap: 12px; }

#screen-ai-coach .coach-msg { display: grid; gap: 6px; max-width: 100%; }
#screen-ai-coach .coach-msg__role { font: 600 11px/1 var(--font-body); color: var(--coach-muted); }
#screen-ai-coach .coach-msg__body {
    padding: 12px 14px;
    border-radius: var(--radius-md, 12px);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#screen-ai-coach .coach-msg--user { justify-items: end; }
#screen-ai-coach .coach-msg--user .coach-msg__body {
    background: color-mix(in srgb, var(--coach-accent) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--coach-accent) 35%, transparent);
    color: var(--coach-text);
}
#screen-ai-coach .coach-msg--bot .coach-msg__body {
    background: var(--coach-surface);
    border: 1px solid var(--coach-line);
    color: var(--coach-text);
}

/* A selected game is recorded as one quiet line inside the flow — never as a
   pinned banner, a page takeover or a persistent contextual prompt. */
#screen-ai-coach .coach-system-note {
    margin: 0;
    padding: 4px 0;
    text-align: center;
    font: 500 12px/1.4 var(--font-body);
    color: var(--coach-muted);
}

/* Structured answer cards */
#screen-ai-coach .coach-cards { display: grid; gap: 8px; margin-top: 10px; }
#screen-ai-coach .coach-card {
    padding: 10px 12px;
    border: 1px solid var(--coach-line);
    border-left: 3px solid var(--coach-accent);
    border-radius: var(--radius-sm, 6px);
    background: var(--coach-surface-2);
}
#screen-ai-coach .coach-card[data-tone="risk"] { border-left-color: var(--blood-bright, #C44B4B); }
#screen-ai-coach .coach-card[data-tone="alt"] { border-left-color: var(--sky-bright, #6FA1CC); }
#screen-ai-coach .coach-card h4 {
    margin: 0 0 4px;
    font: 700 11px/1.2 var(--font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--coach-muted);
}
#screen-ai-coach .coach-card p { margin: 0; font-size: 13px; line-height: 1.45; }
#screen-ai-coach .coach-card ol { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }

#screen-ai-coach .coach-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#screen-ai-coach .coach-badge {
    padding: 4px 9px;
    border-radius: var(--radius-pill, 999px);
    border: 1px solid var(--coach-line);
    font: 600 11px/1.2 var(--font-body);
    color: var(--coach-muted);
}
#screen-ai-coach .coach-badge[data-kind="engine"] { color: var(--steppe-bright, #7CA655); border-color: color-mix(in srgb, var(--steppe-bright, #7CA655) 45%, transparent); }
#screen-ai-coach .coach-badge[data-kind="rules"] { color: var(--coach-accent); border-color: color-mix(in srgb, var(--coach-accent) 45%, transparent); }
#screen-ai-coach .coach-badge[data-kind="confidence-low"] { color: var(--ember-bright, #D67A4A); border-color: color-mix(in srgb, var(--ember-bright, #D67A4A) 45%, transparent); }

/* Secondary actions inside one answer, including "показать позицию". */
#screen-ai-coach .coach-followups { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#screen-ai-coach .coach-followups button {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-pill, 999px);
    background: transparent;
    color: var(--coach-accent);
    font: 600 12px/1 var(--font-body);
    cursor: pointer;
}

/* Progress and error */
#screen-ai-coach .coach-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-md, 12px);
    background: var(--coach-surface);
    font: 600 12px/1 var(--font-body);
    color: var(--coach-muted);
}
#screen-ai-coach .coach-progress[hidden] { display: none; }
#screen-ai-coach .coach-progress__dots { display: inline-flex; gap: 4px; }
#screen-ai-coach .coach-progress__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coach-accent);
    animation: coach-pulse 1.2s infinite ease-in-out;
}
#screen-ai-coach .coach-progress__dots span:nth-child(2) { animation-delay: 0.15s; }
#screen-ai-coach .coach-progress__dots span:nth-child(3) { animation-delay: 0.3s; }
#screen-ai-coach .coach-progress button {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--coach-accent);
    font: 600 12px/1 var(--font-body);
    cursor: pointer;
}

@keyframes coach-pulse { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

/* A failed turn is one compact row, not a block the size of an answer. */
#screen-ai-coach .coach-error {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding: 8px 12px;
    border: 1px solid color-mix(in srgb, var(--blood-bright, #C44B4B) 45%, transparent);
    border-radius: var(--radius-md, 12px);
    background: color-mix(in srgb, var(--blood-bright, #C44B4B) 10%, transparent);
}
#screen-ai-coach .coach-error[hidden] { display: none; }
#screen-ai-coach .coach-error p { flex: 1 1 200px; margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--coach-text); }
#screen-ai-coach .coach-error button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-pill, 999px);
    background: transparent;
    color: var(--coach-text);
    font: 600 12px/1 var(--font-body);
    cursor: pointer;
}

/* ── Floating composer ──────────────────────────────────────────────────── */

/* One rounded floating control. It carries the keyboard inset on its own, so the
   transcript above it never receives a second bottom padding. */
#screen-ai-coach .coach-composer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    width: auto;
    margin-inline: var(--coach-gutter);
    margin-block-end: calc(10px + var(--coach-keyboard-inset) + env(safe-area-inset-bottom, 0px));
    padding: 6px;
    border: 1px solid var(--coach-line);
    border-radius: 28px;
    background: var(--coach-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: margin-block-end 140ms ease;
}

#screen-ai-coach .coach-composer textarea {
    flex: 1 1 auto;
    min-width: 0;
    max-height: 132px;
    /* Shorter than the 40px action buttons, so the row height is set by them and
       the whole control lands in the 52–58px band. */
    min-height: 36px;
    padding: 8px 6px;
    resize: none;
    border: 0;
    background: transparent;
    color: var(--coach-text);
    font: 400 15px/1.35 var(--font-body);
}
#screen-ai-coach .coach-composer textarea:focus-visible { outline: none; }
#screen-ai-coach .coach-composer:focus-within { border-color: var(--coach-accent); }

#screen-ai-coach .coach-composer__action,
#screen-ai-coach .coach-send {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    cursor: pointer;
}
#screen-ai-coach .coach-composer__action {
    border: 1px solid var(--coach-line);
    background: transparent;
    color: var(--coach-muted);
}
#screen-ai-coach .coach-composer__action:hover:not(:disabled) { color: var(--coach-accent); border-color: var(--coach-accent); }
#screen-ai-coach .coach-composer__action[aria-pressed="true"] {
    color: var(--coach-accent);
    border-color: var(--coach-accent);
    background: color-mix(in srgb, var(--coach-accent) 16%, transparent);
}
#screen-ai-coach .coach-composer__action:disabled { opacity: 0.45; cursor: not-allowed; }

#screen-ai-coach .coach-send {
    border: 0;
    background: var(--coach-accent);
    color: var(--product-bg, #15100A);
}
#screen-ai-coach .coach-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* With the keyboard up the empty state steps aside so the conversation and the
   composer keep the whole remaining height. */
#screen-ai-coach[data-coach-keyboard="open"] .coach-empty { display: none; }

/* ── Sheets: game history and the explicit board ────────────────────────── */

#screen-ai-coach .coach-scrim {
    position: absolute;
    inset: 0;
    z-index: 12;
    background: rgba(0, 0, 0, 0.5);
}
#screen-ai-coach .coach-scrim[hidden] { display: none; }

#screen-ai-coach .coach-sheet,
#screen-ai-coach .coach-board-sheet {
    position: absolute;
    z-index: 13;
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--product-bg, var(--bg-base));
    border: 1px solid var(--coach-line);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
}
#screen-ai-coach .coach-sheet[hidden],
#screen-ai-coach .coach-board-sheet[hidden] { display: none; }

/* Desktop: the picker is a right drawer, the board is a centred panel. */
#screen-ai-coach .coach-sheet--history {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100%);
    border-radius: 0;
}
#screen-ai-coach .coach-board-sheet {
    inset: 0;
    justify-items: center;
    align-content: start;
    padding-top: max(16px, env(safe-area-inset-top, 0px));
}

#screen-ai-coach .coach-sheet__head {
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-block: 4px 8px;
    background: var(--product-bg, var(--bg-base));
}
#screen-ai-coach .coach-board-sheet .coach-sheet__head { grid-template-columns: minmax(0, 1fr) auto auto; }
#screen-ai-coach .coach-sheet__head h2 { margin: 0; font: 700 16px/1.2 var(--font-display); color: var(--coach-text); }
#screen-ai-coach .coach-sheet__grip { display: none; }
#screen-ai-coach .coach-sheet__close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--coach-line);
    border-radius: 999px;
    background: transparent;
    color: var(--coach-text);
    cursor: pointer;
}

#screen-ai-coach .coach-history-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; width: 100%; }
#screen-ai-coach .coach-history-row {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    padding: 10px 12px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-md, 12px);
    background: var(--coach-surface);
    color: var(--coach-text);
    text-align: left;
    cursor: pointer;
}
#screen-ai-coach .coach-history-row:hover { border-color: var(--coach-accent); }
#screen-ai-coach .coach-history-row.is-selected { border-color: var(--coach-accent); background: color-mix(in srgb, var(--coach-accent) 12%, transparent); }
#screen-ai-coach .coach-history-row__opponent { font: 600 14px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#screen-ai-coach .coach-history-row__result { font: 700 13px/1.2 var(--font-mono); color: var(--coach-accent); }
#screen-ai-coach .coach-history-row__facts {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font: 500 11.5px/1.3 var(--font-body);
    color: var(--coach-muted);
}
#screen-ai-coach .coach-history-row__facts span + span::before { content: '· '; }

#screen-ai-coach .coach-empty-note { margin: 0; font-size: 12px; color: var(--coach-muted); }
#screen-ai-coach .coach-empty-note[hidden] { display: none; }

/* ── Board (rendered by ui/coach-board.js, no second renderer) ──────────── */

#screen-ai-coach .coach-turn { font: 600 12px/1 var(--font-body); color: var(--coach-accent); }

#screen-ai-coach .coach-board {
    display: grid;
    gap: 8px;
    padding: 14px;
    width: 100%;
    /* Bounded so a wide sheet does not stretch the otau into unreadable slabs. */
    max-width: 640px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-lg, 20px);
    background: var(--coach-surface);
}
#screen-ai-coach .coach-board__row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 5px; }
#screen-ai-coach .coach-board__kazans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

#screen-ai-coach .coach-otau {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 8px 2px 6px;
    border: 1px solid var(--pit-border, #3A2613);
    border-radius: var(--radius-sm, 6px);
    background: var(--pit-bg, #1A1108);
    font: 700 15px/1 var(--font-mono);
    color: var(--stone, #DCC698);
}
#screen-ai-coach .coach-otau small { font: 500 10px/1 var(--font-body); color: var(--coach-muted); }
#screen-ai-coach .coach-otau[data-legal="true"] { border-color: var(--coach-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coach-accent) 40%, transparent); }
#screen-ai-coach .coach-otau[data-best="true"] { border-color: var(--steppe-bright, #7CA655); color: var(--steppe-bright, #7CA655); }
#screen-ai-coach .coach-otau[data-tuzdyk="true"] { border-color: var(--tuzdyk, #9E2B2B); color: var(--blood-bright, #C44B4B); }
#screen-ai-coach .coach-otau[data-empty="true"] { opacity: 0.55; }

#screen-ai-coach .coach-kazan {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-md, 12px);
    background: var(--coach-surface-2);
    font: 700 16px/1 var(--font-mono);
    color: var(--coach-text);
}
#screen-ai-coach .coach-kazan span { font: 500 11px/1 var(--font-body); color: var(--coach-muted); }

#screen-ai-coach .coach-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    width: 100%;
    max-width: 640px;
}
#screen-ai-coach .coach-facts > div {
    padding: 8px 10px;
    border: 1px solid var(--coach-line);
    border-radius: var(--radius-sm, 6px);
    background: var(--coach-surface);
}
#screen-ai-coach .coach-facts dt { font: 500 11px/1.2 var(--font-body); color: var(--coach-muted); }
#screen-ai-coach .coach-facts dd { margin: 3px 0 0; font: 700 13px/1.2 var(--font-body); color: var(--coach-text); }

#screen-ai-coach .coach-source { margin: 0; font-size: 12px; color: var(--coach-muted); }

#screen-ai-coach :focus-visible { outline: 2px solid var(--coach-accent); outline-offset: 2px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    /* The picker becomes a bottom sheet — never a full-screen board. */
    #screen-ai-coach .coach-sheet--history {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 72vh;
        border-radius: 20px 20px 0 0;
    }
    #screen-ai-coach .coach-sheet__grip {
        display: block;
        grid-column: 1 / -1;
        justify-self: center;
        width: 40px;
        height: 4px;
        margin-bottom: 4px;
        border-radius: 999px;
        background: var(--coach-line);
    }
    #screen-ai-coach .coach-sheet--history .coach-sheet__head { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (max-width: 560px) {
    #screen-ai-coach.coach-screen { --coach-gutter: 12px; }
    #screen-ai-coach .coach-header { gap: 8px; padding-inline: 12px; }
    #screen-ai-coach .coach-header-actions { gap: 6px; }
    #screen-ai-coach .coach-back,
    #screen-ai-coach .coach-header-actions button { width: 38px; height: 38px; }
    #screen-ai-coach .coach-empty h2 { font-size: 23px; }
    #screen-ai-coach .coach-composer { margin-inline: 12px; }
    #screen-ai-coach .coach-facts { grid-template-columns: minmax(0, 1fr); }
    #screen-ai-coach .coach-otau { font-size: 13px; padding: 6px 1px 4px; }
    #screen-ai-coach .coach-board { padding: 8px; gap: 6px; }
    #screen-ai-coach .coach-board__row { gap: 3px; }
}

/* Below 360px the composer keeps the input and Send; the two context actions
   collapse into the header action that already carries the same behaviour. */
@media (max-width: 359px) {
    #screen-ai-coach #coach-history-button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    #screen-ai-coach .coach-progress__dots span { animation: none; opacity: 0.7; }
    #screen-ai-coach .coach-composer { transition: none; }
}

/* ── Trainer not yet available ────────────────────────────────────────────────
   The room stays reachable and states its real status instead of offering a
   composer that cannot answer. The chat surface is hidden while this shows.
   ─────────────────────────────────────────────────────────────────────────── */
.coach-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 50dvh;
    padding: 32px 24px calc(32px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}

.coach-coming-soon__badge {
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--accent-primary, #C9A227) 45%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-primary, #C9A227) 14%, transparent);
    color: var(--accent-primary, #C9A227);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coach-coming-soon h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.coach-coming-soon p {
    max-width: 420px;
    margin: 0;
    color: var(--on-text-2, rgba(255, 255, 255, 0.62));
    font-size: 14px;
    line-height: 1.5;
}

/* While the notice is up, the chat and its composer are not offered. */
#screen-ai-coach:has(#coach-coming-soon:not([hidden])) .coach-chat-panel,
#screen-ai-coach:has(#coach-coming-soon:not([hidden])) .coach-composer-shell,
#screen-ai-coach:has(#coach-coming-soon:not([hidden])) #coach-composer,
#screen-ai-coach:has(#coach-coming-soon:not([hidden])) .coach-header-actions { display: none !important; }
