/* ==========================================================================
   FLUX AI VIEW  |  flux-ai-page.css
   Scoped to #view-ai / .fxa. Uses only Flux theme variables so the theme
   editor (accent, background, card, border, text, UI scale) carries through:
   --bg --surface --surface-card --surface-hover --accent --accent-rgb
   --text --text-dim --border --border-active --radius --shadow
   ========================================================================== */

/* "settings-wrap" is also styled by index.html's inline <style>, which loads
   after this file, so every override below uses two classes to win. */
.settings-wrap.fxa {
    --fxa-h: calc(100vh - 80px);
    --fxa-line: 820px;
    height: var(--fxa-h);
    min-height: 440px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(90% 55% at 50% -10%, rgba(var(--accent-rgb), 0.09), transparent 70%),
        var(--surface);
}

@supports (height: 100dvh) {
    .settings-wrap.fxa { --fxa-h: calc(100dvh - 80px); }
}

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

/* ---------- Header ---------- */

.fxa-head {
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.fxa-head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.fxa[data-busy="true"] .fxa-head::after {
    opacity: 1;
    animation: fxa-scan 1.7s ease-in-out infinite;
}

@keyframes fxa-scan {
    to { transform: translateX(333%); }
}

.fxa-ident { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fxa-ident-text { min-width: 0; }

.fxa-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-active);
    border-radius: 10px;
    background: #000;
}

.fxa-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.fxa-sub {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fxa-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    transition: all 0.2s ease, opacity 0.2s ease;
}
.fxa-new:disabled { opacity: 0.4; cursor: default; transform: none; }
.fxa-new:disabled:hover { border-color: var(--border); color: var(--text); filter: none; }

/* ---------- Atom mark (shared by header, welcome, avatars, thinking) ---------- */

.fxa-core { display: block; width: 100%; height: 100%; overflow: visible; }

.fxa-core ellipse {
    fill: none;
    stroke: rgba(var(--accent-rgb), 0.5);
    stroke-width: 1;
}

.fxa-core .fxa-electron {
    fill: var(--accent);
    filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.9));
}

.fxa-core .fxa-glow { fill: rgba(var(--accent-rgb), 0.2); }

/* Flux logo badge (header + replies), copied from the sidebar's brand mark */
.fxa-mark.fxa-logo,
.fxa-avatar.fxa-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9);
}
.fxa-mark.fxa-logo { font-size: 1.15rem; }
.fxa-avatar.fxa-logo { font-size: 0.85rem; }
.fxa-logo .fxa-tp { margin-right: 2px; }

.fxa-tp { color: var(--accent); fill: var(--accent); }
.fxa-tl { color: #fff; fill: #fff; }

.fxa-core .fxa-orbit,
.fxa-core .fxa-pulse {
    transform-box: view-box;
    transform-origin: 24px 24px;
}

.fxa-core .fxa-orbit--a { animation: fxa-spin 16s linear infinite; }
.fxa-core .fxa-orbit--b { animation: fxa-spin 22s linear infinite reverse; }
.fxa-core .fxa-orbit--c { animation: fxa-spin 28s linear infinite; }
.fxa-core .fxa-pulse { animation: fxa-beat 2.6s ease-in-out infinite; }

.fxa-think .fxa-core .fxa-orbit--a { animation-duration: 5s; }
.fxa-think .fxa-core .fxa-orbit--b { animation-duration: 7s; }
.fxa-think .fxa-core .fxa-orbit--c { animation-duration: 9s; }
.fxa-think .fxa-core .fxa-pulse { animation-duration: 1.1s; }

.fxa-avatar .fxa-core .fxa-orbit,
.fxa-avatar .fxa-core .fxa-pulse,
.fxa-mark .fxa-core .fxa-orbit,
.fxa-mark .fxa-core .fxa-pulse { animation: none; }

@keyframes fxa-spin { to { transform: rotate(360deg); } }
@keyframes fxa-beat {
    0%, 100% { transform: scale(0.85); }
    50% { transform: scale(1.25); }
}

/* ---------- Stage + scroll ---------- */

.fxa-stage { position: relative; flex: 1; min-height: 0; display: flex; }

.fxa-scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 20px 12px;
}

@media (prefers-reduced-motion: no-preference) {
    .fxa-scroll { scroll-behavior: smooth; }
}

/* ---------- Welcome ---------- */

.fxa-welcome {
    width: min(100%, 720px);
    margin: auto;
    padding: 8px 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fxa[data-state="chat"] .fxa-welcome { display: none; }
.fxa[data-state="empty"] .fxa-thread { display: none; }

.fxa-welcome.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.fxa-welcome-core {
    position: relative;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
}
.fxa-welcome-core .fxa-core { position: relative; z-index: 1; }

.fxa-welcome-core::before,
.fxa-welcome-core::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    animation: fxa-ping 4s ease-out infinite;
}
.fxa-welcome-core::after { animation-delay: -2s; }

@keyframes fxa-ping {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

.fxa-hello {
    margin: 18px 0 6px;
    font-size: clamp(1.55rem, 4.2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

.fxa-lede {
    margin: 0 0 26px;
    max-width: 44ch;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-dim);
}

.fxa-prompts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    text-align: left;
}

.fxa-prompt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-card);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.fxa-prompt:hover {
    border-color: rgba(var(--accent-rgb), 0.55);
    background: var(--surface-hover);
    transform: translateY(-1px);
}
.fxa-prompt:active { transform: translateY(0); }

.fxa-prompt-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    font-size: 0.9rem;
}

.fxa-prompt-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fxa-prompt-text b { font-size: 0.9rem; font-weight: 600; }
.fxa-prompt-text span { font-size: 0.8rem; line-height: 1.4; color: var(--text-dim); }

/* One orchestrated entrance, the first time the welcome screen appears */
.fxa-welcome.is-intro > * { animation: fxa-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fxa-welcome.is-intro > :nth-child(2) { animation-delay: 0.08s; }
.fxa-welcome.is-intro > :nth-child(3) { animation-delay: 0.14s; }
.fxa-welcome.is-intro > :nth-child(4) { animation-delay: 0.22s; }
.fxa-welcome.is-intro .fxa-prompt { animation: fxa-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fxa-welcome.is-intro .fxa-prompt:nth-child(1) { animation-delay: 0.26s; }
.fxa-welcome.is-intro .fxa-prompt:nth-child(2) { animation-delay: 0.32s; }
.fxa-welcome.is-intro .fxa-prompt:nth-child(3) { animation-delay: 0.38s; }
.fxa-welcome.is-intro .fxa-prompt:nth-child(4) { animation-delay: 0.44s; }
.fxa-welcome.is-intro > .fxa-prompts { animation: none; }

@keyframes fxa-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Thread + messages ---------- */

.fxa-thread {
    width: min(100%, var(--fxa-line));
    margin: 0 auto;
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: opacity 0.18s ease;
}
.fxa-thread.is-clearing { opacity: 0; }

.fxa-msg {
    display: flex;
    gap: 10px;
    min-width: 0;
    animation: fxa-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.fxa-msg.is-static { animation: none; }

@keyframes fxa-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fxa-msg--user { justify-content: flex-end; }

.fxa-msg--user .fxa-bubble {
    max-width: min(86%, 34rem);
    padding: 10px 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 16px 16px 4px 16px;
    background: rgba(var(--accent-rgb), 0.12);
    font-size: 0.94rem;
    line-height: 1.55;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fxa-avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-top: 2px;
    border: 1px solid var(--border-active);
    border-radius: 9px;
    background: #000;
}
.fxa-avatar .fxa-core { width: 20px; height: 20px; }
.fxa-avatar--error { color: #f87171; font-size: 0.8rem; border-color: rgba(239, 68, 68, 0.4); }

.fxa-body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

.fxa-msg--ai .fxa-bubble {
    width: fit-content;
    max-width: min(100%, 46rem);
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 4px 16px 16px 16px;
    background: var(--surface-card);
    color: var(--text);
}

.fxa-site-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.fxa-site-action { border: 1px solid var(--fxa-line, rgba(255,255,255,.18)); border-radius: 10px; padding: 9px 13px; color: inherit; background: rgba(34,197,94,.12); font: inherit; cursor: pointer; }
.fxa-site-action:hover, .fxa-site-action:focus-visible { background: rgba(34,197,94,.23); outline: 2px solid #22c55e; outline-offset: 2px; }
.fxa-actions { display: flex; gap: 2px; opacity: 0; transition: opacity 0.2s ease; }
.fxa-msg--ai:hover .fxa-actions,
.fxa-actions:focus-within,
.fxa-actions--show { opacity: 1; }

@media (hover: none) {
    .fxa-actions { opacity: 1; }
}

.fxa-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 8px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--text-dim);
    font: inherit;
    font-size: 0.76rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}
.fxa-act:hover { color: var(--text); background: var(--surface-hover); }
.fxa-act[hidden] { display: none; }

.fxa-msg--error .fxa-bubble {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.07);
}
.fxa-err-title { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.fxa-err-text { margin: 0; font-size: 0.85rem; line-height: 1.5; color: var(--text-dim); }

/* ---------- Rendered markdown ---------- */

.fxa-md { font-size: 0.94rem; line-height: 1.65; overflow-wrap: anywhere; }
.fxa-md > :first-child { margin-top: 0; }
.fxa-md > :last-child { margin-bottom: 0; }
.fxa-md p { margin: 0 0 0.8em; }
.fxa-md ul, .fxa-md ol { margin: 0 0 0.8em; padding-left: 1.35em; }
.fxa-md li { margin: 0.2em 0; }
.fxa-md li::marker { color: var(--accent); }
.fxa-md strong { font-weight: 700; }
.fxa-md a { color: var(--accent); text-underline-offset: 3px; }
.fxa-md hr { margin: 1em 0; border: 0; border-top: 1px solid var(--border); }

.fxa-md blockquote {
    margin: 0 0 0.8em;
    padding: 2px 0 2px 12px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.5);
    color: var(--text-dim);
}

.fxa-md .fxa-h { margin: 1.1em 0 0.4em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.fxa-md h3.fxa-h { font-size: 1.12rem; }
.fxa-md h4.fxa-h { font-size: 1.04rem; }
.fxa-md h5.fxa-h, .fxa-md h6.fxa-h { font-size: 0.96rem; }

.fxa-md code.fxa-inline {
    padding: 0.12em 0.4em;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 6px;
    background: rgba(var(--accent-rgb), 0.1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

/* ---------- Code blocks ---------- */

.fxa-code {
    margin: 0.5em 0 0.9em;
    border: 1px solid var(--border-active);
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0f;
    background: color-mix(in srgb, var(--bg) 78%, #000);
}

.fxa-code-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 6px 4px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.fxa-lang {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.fxa-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; tab-size: 2; }

.fxa-code code {
    display: block;
    width: max-content;
    min-width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text);
}

.tk-c { color: var(--text-dim); font-style: italic; }
.tk-s { color: #bbf7d0; color: color-mix(in srgb, var(--accent) 55%, #fff); }
.tk-n { color: #7dd3fc; }
.tk-k { color: var(--accent); font-weight: 500; }
.tk-f { color: #e2e8f0; color: color-mix(in srgb, var(--text) 82%, var(--accent)); }

/* ---------- Thinking indicator ---------- */

.fxa-msg--think { animation: fxa-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

.fxa-think {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 18px 12px 12px;
    border: 1px solid var(--border);
    border-radius: 4px 16px 16px 16px;
    background:
        linear-gradient(135deg, rgba(var(--accent-rgb), 0.08), transparent 60%),
        var(--surface-card);
}

.fxa-think-core { flex: none; width: 46px; height: 46px; }
.fxa-think-col { min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.fxa-think-label {
    min-width: 25ch;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.fxa-think-label::after {
    content: ">";
    display: inline-block;
    margin-left: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.05em;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), 0.8));
    animation: fxa-flash 0.8s ease-in-out infinite;
}
.fxa-think-label.is-out { opacity: 0; transform: translateY(3px); }

/* The loading screen's flashing prompt */
@keyframes fxa-flash {
    0%, 100% { opacity: 0.25; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Typing cursor: the same ">" as the Flux loading screen */
.fxa-caret {
    display: inline-block;
    margin-left: 0.3em;
    padding: 0 0.1em;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.95em;
    line-height: 1;
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.8));
    animation: fxa-flash 0.8s ease-in-out infinite;
}

.fxa-trace { display: flex; align-items: center; gap: 3px; height: 24px; }

.fxa-trace i {
    display: block;
    width: 3px;
    height: 100%;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleY(0.14);
    animation:
        fxa-wave 1.5s ease-in-out infinite,
        fxa-glint 2.4s linear infinite;
    animation-delay: calc(var(--i) * -62ms), calc(var(--i) * 55ms);
}

@keyframes fxa-wave {
    0%, 100% { transform: scaleY(0.14); }
    50% { transform: scaleY(var(--h, 1)); }
}

@keyframes fxa-glint {
    0%, 22%, 100% { filter: none; }
    9% { filter: brightness(1.8) drop-shadow(0 0 5px rgba(var(--accent-rgb), 0.95)); }
}

/* ---------- Jump to latest ---------- */

.fxa-jump {
    position: absolute;
    left: 50%;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--border-active);
    border-radius: 999px;
    background: var(--surface-card);
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    cursor: pointer;
    transform: translateX(-50%);
    animation: fxa-pop 0.2s ease both;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.fxa-jump[hidden] { display: none; }
.fxa-jump:hover { border-color: var(--accent); color: var(--accent); }

@keyframes fxa-pop {
    from { opacity: 0; transform: translate(-50%, 6px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Composer ---------- */

.fxa-compose { flex: none; padding: 8px 20px 14px; }

.fxa-field {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: var(--fxa-line);
    margin: 0 auto;
    padding: 8px 8px 8px 16px;
    border: 1px solid var(--border-active);
    border-radius: 18px;
    background: var(--surface-card);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fxa-field:focus-within {
    border-color: rgba(var(--accent-rgb), 0.7);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.fxa-field textarea {
    flex: 1;
    min-width: 0;
    min-height: 24px;
    max-height: 180px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: none;
}
.fxa-field textarea::placeholder { color: var(--text-dim); }

.fxa-send,
.fxa-stop {
    flex: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.fxa-send[hidden], .fxa-stop[hidden] { display: none; }

.fxa-send { border: 0; background: var(--accent); color: #000; }
.fxa-send:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.fxa-send:disabled { opacity: 0.3; cursor: default; }

.fxa-stop { border: 1px solid var(--border-active); background: transparent; color: var(--text); }
.fxa-stop:hover { border-color: var(--accent); color: var(--accent); }

.fxa-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    max-width: var(--fxa-line);
    min-height: 1em;
    margin: 6px auto 0;
    padding: 0 6px;
    font-size: 0.72rem;
    color: var(--text-dim);
}
.fxa-count.is-near { color: var(--accent); }

@media (hover: none) {
    .fxa-hint { display: none; }
}

/* ---------- Keyboard focus (index.html removes outlines globally) ---------- */

.fxa button:focus-visible,
.fxa a:focus-visible,
.fxa-scroll:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .settings-wrap.fxa {
        --fxa-h: calc(100vh - 182px);
        min-height: 380px;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 900px) {
        .settings-wrap.fxa {
            --fxa-h: calc(100dvh - 182px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        }
    }
}

@media (max-width: 900px) {
    .fxa-head { padding: 12px 14px; }
    .fxa-scroll { padding: 16px 14px 8px; }
    .fxa-compose { padding: 6px 12px 12px; }
    .fxa-field textarea { font-size: 16px; }
    .fxa-new { min-height: 44px; }
    .fxa-act { min-height: 36px; }
    .fxa-msg--user .fxa-bubble { max-width: 92%; }
    .fxa-avatar { width: 28px; height: 28px; }
}

@media (max-width: 640px) {
    .fxa-prompts { grid-template-columns: minmax(0, 1fr); }
    .fxa-welcome-core { width: 80px; height: 80px; }
    .fxa-think { gap: 10px; padding-right: 14px; }
    .fxa-think-label { min-width: 0; font-size: 0.74rem; }
    .fxa-trace { gap: 2px; }
    .fxa-trace i { width: 2.5px; }
}

@media (max-width: 420px) {
    .fxa-new span { display: none; }
    .fxa-new { width: 44px; padding: 0; justify-content: center; }
    .fxa-avatar { display: none; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .fxa *,
    .fxa *::before,
    .fxa *::after {
        animation: none !important;
        transition-duration: 0.001ms !important;
    }
    .fxa-trace i { transform: scaleY(var(--h, 1)); opacity: 0.7; }
    .fxa-think-label::after { opacity: 1; }
}
