/* ============================================================
   "Connect your AI to Ajebhom" landing (Views/Home/AiConnect). Built on ds.css + ajebhom-actor.css.
   Every class starts with ai-; sides are logical, so the same file serves rtl (ar) and ltr (en).
   The chat mocks (.ai-chat) are the page's one component: the hero's chat and the four example chats.
   ai-connect.js plays them; without it (or with reduced motion) everything is simply shown.
   ============================================================ */

.ai-page section[id] {
    scroll-margin-top: 84px;
}

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

/* bootstrap paints <code> pink; here code is the site's ink, in the monospace font */
.ai-page code {
    font-family: var(--ds-mono);
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

.ai-ext {
    font-size: 11px;
    opacity: .75;
}

/* the generic AI assistant mark (no brand's logo) */
.ai-spark {
    width: 16px;
    height: 16px;
    flex: none;
    fill: currentColor;
}

/* ---------- copy: the server address and the command ---------- */
.ai-addr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    width: fit-content;
    max-width: 100%;
    margin-top: 22px;
    padding: 6px;
    padding-inline-start: 16px;
    border-radius: var(--ds-r-md);
    border: 1px dashed var(--ds-input-line);
    background: var(--ds-surface);
}

    .ai-addr-label {
        font-size: 13px;
        font-weight: 700;
        color: var(--ds-muted);
    }

    .ai-addr code {
        padding: 4px 10px;
        border-radius: 8px;
        background: var(--ds-soft);
        color: var(--ds-ink);
        font-size: 14px;
        font-weight: 600;
        cursor: text;
    }

.ai-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: var(--ds-r-pill);
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

    .ai-copy:hover {
        background: var(--ds-soft-hover);
    }

    .ai-copy.is-done {
        background: var(--ds-ok-soft);
        color: var(--ds-ok);
    }

    .ai-copy.is-manual {
        background: var(--ds-warn-soft);
        color: var(--ds-warn);
    }

/* a terminal line: dark in both themes */
.ai-code {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    padding-inline-start: 16px;
    border-radius: 12px;
    background: #1D191B;
    border: 1px solid #2E282B;
    color: #F5F1F1;
    font-size: 13.5px;
    line-height: 1.7;
}

    .ai-code code {
        flex: 1;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ai-prompt {
        font-family: var(--ds-mono);
        color: #8F8688;
    }

    .ai-code .ai-copy {
        background: rgba(255, 255, 255, .1);
        color: #FFF;
    }

        .ai-code .ai-copy:hover {
            background: rgba(255, 255, 255, .18);
        }

        .ai-code .ai-copy.is-done {
            background: rgba(82, 201, 142, .2);
            color: #7EE0AE;
        }

:root[data-theme="dark"] .ai-code {
    background: #0B090A;
}

.ai-inline {
    display: inline-block;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--ds-red-soft);
    color: var(--ds-red) !important;
    font-size: .92em !important;
    line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
.ai-hero {
    position: relative;
    padding: 64px 0 80px;
    overflow: hidden;
}

    .ai-hero::before {
        content: "";
        position: absolute;
        top: -160px;
        inset-inline-end: -120px;
        width: 640px;
        height: 640px;
        border-radius: 50%;
        background: radial-gradient(circle, var(--ds-glow) 0%, transparent 65%);
        pointer-events: none;
    }

.ai-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    gap: 56px;
    align-items: center;
}

.ai-hero-text .ds-h1 {
    margin-top: 18px;
}

.ai-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ai-hero-note {
    margin-top: 14px !important;
    font-size: 14px;
    color: var(--ds-muted);
}

    .ai-hero-note i {
        color: var(--ds-ok);
        margin-inline-end: 4px;
    }

/* the stage: room above the chat for the robot that peeks over its edge */
.ai-stage {
    position: relative;
    padding-top: 70px;
}

.ai-chat-wrap {
    position: relative;
}

    .ai-chat-wrap .ab-actor {
        --ab-size: 116px;
        --ab-peek: 72px;
        bottom: calc(100% - 1px);
        inset-inline-start: 26px;
    }

    .ai-chat-wrap .ab-say {
        bottom: 8px;
        inset-inline-start: calc(100% + 2px);
        max-width: 230px;
        width: max-content;
        white-space: normal;
    }

/* the robot rises from behind the chat's top edge (ai-connect.js adds .is-enter) */
.ai-stage.is-enter .ai-peek {
    animation: ai-peek .9s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes ai-peek {
    from { transform: translateY(80px); }
}

.ai-stage-note {
    margin-top: 12px !important;
    font-size: 12px;
    color: var(--ds-muted);
    text-align: center;
}

/* ============================================================
   THE CHAT MOCK
   ============================================================ */
.ai-chat {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-radius: var(--ds-r-lg);
    box-shadow: var(--ds-shadow-lg);
    overflow: hidden;
}

.ai-chat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--ds-line-soft);
    background: var(--ds-surface-2);
}

.ai-dots {
    display: inline-flex;
    gap: 5px;
}

    .ai-dots i {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--ds-line);
    }

.ai-chat-app {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-ink);
}

.ai-chat-on {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    padding: 1px 10px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-ok-soft);
    color: var(--ds-ok);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

    .ai-chat-on .ds-led {
        width: 7px;
        height: 7px;
    }

.ai-replay {
    margin-inline-start: auto;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--ds-muted);
    font-size: 13px;
    cursor: pointer;
}

    .ai-replay:hover {
        background: var(--ds-soft);
        color: var(--ds-ink);
    }

.ai-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    font-size: 14px;
    line-height: 1.85;
}

.ai-msg > * + * {
    margin-top: 8px !important;
}

.ai-msg b {
    color: var(--ds-ink);
}

/* the person: a bubble at the end side */
.ai-user {
    align-self: flex-end;
    max-width: 86%;
    padding: 9px 14px;
    border-radius: 18px;
    border-end-end-radius: 5px;
    background: var(--ds-soft);
    border: 1px solid var(--ds-line);
    color: var(--ds-ink);
}

/* the assistant: plain text, like the AI apps */
.ai-bot {
    color: var(--ds-text);
}

/* a call to one of Ajebhom's tools */
.ai-tool {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: 100%;
    padding: 6px 12px;
    padding-inline-start: 6px;
    border-radius: 14px;
    border: 1px dashed var(--ds-tint-line);
    background: var(--ds-tint);
    font-size: 13px;
    line-height: 1.6;
}

.ai-tool-bot {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    background: var(--ds-surface);
    border: 1px solid var(--ds-tint-line);
    object-fit: contain;
}

.ai-tool-name {
    font-weight: 700;
    color: var(--ds-ink);
}

    .ai-tool-name small {
        font-weight: 500;
        font-size: 12px;
        color: var(--ds-muted);
        margin-inline-start: 4px;
    }

.ai-tool-state {
    font-size: 12px;
    color: var(--ds-muted);
}

.ai-done {
    color: var(--ds-ok);
    font-weight: 700;
}

.ai-tool[data-state="run"] .ai-done,
.ai-tool[data-state="done"] .ai-run {
    display: none;
}

.ai-tool[data-state="run"] .ds-chip {
    opacity: .45;
}

.ai-spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid var(--ds-line);
    border-top-color: var(--ds-red);
    border-radius: 50%;
    vertical-align: -1px;
    animation: ai-spin .8s linear infinite;
}

@keyframes ai-spin {
    to { transform: rotate(360deg); }
}

.ai-chat-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 14px 14px;
    padding: 6px;
    padding-inline-start: 16px;
    border-radius: var(--ds-r-pill);
    border: 1px solid var(--ds-line);
    color: var(--ds-placeholder);
    font-size: 13px;
}

    .ai-chat-input i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--ds-red);
        color: #FFF;
        font-size: 12px;
    }

/* the keyword table in the hero's answer */
.ai-kw {
    border: 1px solid var(--ds-line-soft);
    border-radius: 12px;
    overflow: hidden;
}

.ai-kw-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 62px 52px 52px;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    border-top: 1px solid var(--ds-line-soft);
    font-size: 13px;
    line-height: 1.5;
}

    .ai-kw-row > span:not(:first-child) {
        text-align: end;
    }

.ai-kw-head {
    border-top: none;
    background: var(--ds-tint);
    color: var(--ds-red);
    font-size: 11px;
    font-weight: 700;
}

.ai-kw-word b {
    display: block;
    font-weight: 700;
}

.ai-kw-word small {
    display: block;
    font-size: 11px;
    color: var(--ds-muted);
}

.ai-up {
    color: var(--ds-ok);
    font-weight: 700;
}

/* playing (ai-connect.js): a step waits hidden until its turn, then slides in */
.ai-thread.is-anim [data-step]:not(.is-shown) {
    display: none;
}

.ai-thread.is-anim [data-step].is-shown {
    animation: ai-in .4s cubic-bezier(.2, .8, .2, 1) both;
}

.ai-thread.is-anim .ai-kw-row:not(.ai-kw-head) {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}

    .ai-thread.is-anim .ai-kw-row.is-shown {
        opacity: 1;
        transform: none;
    }

@keyframes ai-in {
    from { opacity: 0; transform: translateY(10px); }
}

.ai-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.05em;
    margin-inline-start: 2px;
    background: var(--ds-red);
    vertical-align: -2px;
    animation: ai-caret .8s steps(1) infinite;
}

@keyframes ai-caret {
    50% { opacity: 0; }
}

/* ---------- the moment it asks before spending: marked on purpose ---------- */
.ai-ask {
    position: relative;
    max-width: 460px;
    margin-top: 10px;
    padding: 18px 16px 14px;
    border-radius: 16px;
    border: 1.5px solid var(--ds-red);
    background: var(--ds-surface);
    box-shadow: 0 10px 24px rgba(201, 29, 19, .1);
    color: var(--ds-ink);
}

    .ai-ask p i {
        color: var(--ds-warn);
        margin-inline-end: 6px;
    }

.ai-ask-badge {
    position: absolute;
    top: -12px;
    inset-inline-start: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 1px 11px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-red);
    color: #FFF;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.9;
    box-shadow: 0 6px 14px rgba(201, 29, 19, .25);
}

.ai-ask-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

    .ai-ask-btns span {
        padding: 3px 14px;
        border-radius: var(--ds-r-pill);
        border: 1px solid var(--ds-line);
        font-size: 13px;
        font-weight: 700;
        color: var(--ds-text);
    }

        .ai-ask-btns .is-yes,
        .ai-ask-btns .is-main {
            border-color: var(--ds-red);
            background: var(--ds-red);
            color: #FFF;
            transition: box-shadow .25s ease, transform .15s ease;
        }

            .ai-ask-btns .is-yes.is-picked {
                box-shadow: var(--ds-ring);
                transform: scale(.96);
            }

.ai-thread.is-anim .ai-ask.is-shown {
    animation: ai-in .4s cubic-bezier(.2, .8, .2, 1) both, ai-ask-pulse 1.4s ease-out .4s 1;
}

@keyframes ai-ask-pulse {
    0% { box-shadow: 0 0 0 0 rgba(201, 29, 19, .35); }
    100% { box-shadow: 0 0 0 14px rgba(201, 29, 19, 0); }
}

/* the content plan */
.ai-plan {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ai-plan;
    border: 1px solid var(--ds-line-soft);
    border-radius: 12px;
}

    .ai-plan li {
        counter-increment: ai-plan;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) auto auto;
        gap: 10px;
        align-items: center;
        padding: 7px 12px;
        border-top: 1px solid var(--ds-line-soft);
        font-size: 13px;
        line-height: 1.6;
    }

        .ai-plan li:first-child {
            border-top: none;
        }

        .ai-plan li::before {
            content: counter(ai-plan);
            font-family: var(--ds-mono);
            font-size: 12px;
            color: var(--ds-muted);
        }

        .ai-plan li span {
            color: var(--ds-ink);
            font-weight: 600;
        }

        .ai-plan li b {
            font-size: 12px;
            font-weight: 500;
            color: var(--ds-muted) !important;
        }

        .ai-plan li em {
            font-style: normal;
            font-size: 11px;
            font-weight: 700;
            padding: 0 8px;
            border-radius: 6px;
            background: var(--ds-blue-soft);
            color: var(--ds-blue);
            white-space: nowrap;
        }

.ai-excerpt {
    margin: 0;
    padding: 10px 14px;
    border-inline-start: 3px solid var(--ds-red);
    border-radius: 10px;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    background: var(--ds-soft);
    font-size: 13.5px;
    color: var(--ds-ink);
}

    .ai-excerpt mark {
        padding: 0 3px;
        border-radius: 4px;
        background: rgba(250, 166, 27, .28);
        color: inherit;
    }

/* backlinks: the three fixes */
.ai-fixes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

    .ai-fixes li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

        .ai-fixes li i {
            flex: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 26px;
            height: 26px;
            margin-top: 1px;
            border-radius: 8px;
            background: var(--ds-red-soft);
            color: var(--ds-red);
            font-size: 11px;
        }

/* brand visibility: share bars */
.ai-share {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid var(--ds-line-soft);
    border-radius: 12px;
}

    .ai-share > div {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr) 40px;
        gap: 10px;
        align-items: center;
        font-size: 13px;
    }

    .ai-share b {
        font-size: 12px;
        text-align: end;
    }

    .ai-share .is-you span:first-child,
    .ai-share .is-you b {
        color: var(--ds-red);
        font-weight: 700;
    }

    .ai-share > div:not(.is-you) .ds-bar i::after {
        background: #B7BEC7;
    }

:root[data-theme="dark"] .ai-share > div:not(.is-you) .ds-bar i::after {
    background: #5A5155;
}

/* Noon: the researched words */
.ai-words {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .ai-words li {
        padding: 1px 10px;
        border-radius: 8px;
        background: var(--ds-blue-soft);
        color: var(--ds-blue);
        font-size: 13px;
        font-weight: 700;
    }

/* ============================================================
   THE HERO'S CHAIN OF WORK: two scenarios, a rail of steps over each thread, the switch under the chat
   ============================================================ */
.ai-scn[hidden] {
    display: none;
}

/* the hero's thread is a real chat window: a fixed height that follows the newest message */
.ai-stage .ai-thread {
    height: 430px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ai-rail {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--ds-line-soft);
}

    .ai-rail li {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.4;
        color: var(--ds-muted);
        text-align: center;
        transition: color .3s ease;
    }

        /* the line to the next step */
        .ai-rail li:not(:last-child)::after {
            content: "";
            position: absolute;
            top: 13px;
            inset-inline-start: calc(50% + 17px);
            width: calc(100% - 34px);
            height: 2px;
            border-radius: 2px;
            background: var(--ds-line);
            transition: background .3s ease;
        }

.ai-rail-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--ds-line);
    background: var(--ds-surface);
    font-size: 11px;
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.ai-rail li.is-done {
    color: var(--ds-text);
}

    .ai-rail li.is-done .ai-rail-dot {
        border-color: var(--ds-ok);
        background: var(--ds-ok-soft);
        color: var(--ds-ok);
    }

    .ai-rail li.is-done:not(:last-child)::after {
        background: var(--ds-ok);
    }

.ai-rail li.is-now {
    color: var(--ds-ink);
}

    .ai-rail li.is-now .ai-rail-dot {
        border-color: var(--ds-red);
        background: var(--ds-red);
        color: #FFF;
        animation: ai-now 1.4s ease-out infinite;
    }

@keyframes ai-now {
    0% { box-shadow: 0 0 0 0 rgba(201, 29, 19, .4); }
    70% { box-shadow: 0 0 0 7px rgba(201, 29, 19, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 29, 19, 0); }
}

/* the step where it waits for you is marked even before it comes */
.ai-rail li.is-ask:not(.is-done):not(.is-now) .ai-rail-dot {
    border-style: dashed;
    border-color: var(--ds-red);
    color: var(--ds-red);
}

/* the keyword it picks */
.ai-pick-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 4px;
    padding: 0 7px;
    border-radius: 6px;
    background: var(--ds-red);
    color: #FFF;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.7;
    vertical-align: 1px;
}

.ai-kw-row[data-ai-pick] {
    background: var(--ds-tint);
    box-shadow: inset 3px 0 0 var(--ds-red);
}

html[dir="rtl"] .ai-kw-row[data-ai-pick] {
    box-shadow: inset -3px 0 0 var(--ds-red);
}

/* while it plays, the pick shows only once it is made */
.ai-thread.is-anim .ai-kw-row[data-ai-pick]:not(.is-picked) {
    background: none;
    box-shadow: none;
}

    .ai-thread.is-anim .ai-kw-row[data-ai-pick]:not(.is-picked) .ai-pick-tag {
        visibility: hidden;
    }

.ai-thread.is-anim .ai-kw-row.is-picked .ai-pick-tag {
    animation: ai-in .35s cubic-bezier(.34, 1.56, .64, 1) both;
}

/* the finished article */
.ai-article {
    border: 1px solid var(--ds-line);
    border-radius: 14px;
    background: var(--ds-surface);
    overflow: hidden;
}

    .ai-article header {
        padding: 12px 14px 10px;
        border-bottom: 1px solid var(--ds-line-soft);
        background: var(--ds-surface-2);
    }

    .ai-article h4 {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.6;
    }

.ai-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.ai-target {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 1px 9px;
    border-radius: 7px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;
}

.ai-article > p {
    padding: 10px 14px 0;
    font-size: 13px;
    color: var(--ds-ink);
}

.ai-article footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 8px 14px 12px;
    font-size: 11.5px;
    color: var(--ds-muted);
}

    .ai-article footer bdi {
        padding: 0 8px;
        border-radius: 6px;
        background: var(--ds-blue-soft);
        color: var(--ds-blue);
        font-weight: 700;
    }

/* backlink findings */
.ai-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

    .ai-kpis > div {
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid var(--ds-line-soft);
        background: var(--ds-surface-2);
        line-height: 1.4;
    }

    .ai-kpis b {
        display: block;
        font-size: 18px;
        color: var(--ds-ink);
    }

        .ai-kpis b small {
            font-size: 11px;
            color: var(--ds-muted);
        }

    .ai-kpis span:not(.ds-bar) {
        display: block;
        font-size: 11px;
        color: var(--ds-muted);
    }

    .ai-kpis .ds-bar {
        margin-top: 5px;
    }

        .ai-kpis .ds-bar i {
            height: 5px;
        }

    .ai-kpis .is-bad b {
        color: var(--ds-red);
    }

    .ai-kpis .is-good b {
        color: var(--ds-ok);
    }

/* AI visibility: three tiles, the gap questions, the articles written for them */
.ai-kpis-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-gaps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    counter-reset: ai-gap;
}

    .ai-gaps li {
        counter-increment: ai-gap;
        position: relative;
        padding: 7px 12px;
        padding-inline-start: 34px;
        border-radius: 10px;
        border: 1px solid var(--ds-line-soft);
        background: var(--ds-surface-2);
        font-size: 13px;
        line-height: 1.6;
    }

        .ai-gaps li::before {
            content: counter(ai-gap);
            position: absolute;
            top: 8px;
            inset-inline-start: 10px;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: var(--ds-red-soft);
            color: var(--ds-red);
            font-family: var(--ds-mono);
            font-size: 10.5px;
            font-weight: 700;
            line-height: 17px;
            text-align: center;
        }

        .ai-gaps li span {
            display: block;
            color: var(--ds-ink);
            font-weight: 600;
        }

        .ai-gaps li small {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
            font-size: 11px;
            color: var(--ds-muted);
        }

            .ai-gaps li small bdi {
                padding: 0 7px;
                border-radius: 6px;
                background: var(--ds-line-soft);
                color: var(--ds-text);
                font-weight: 700;
            }

.ai-docs {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--ds-line);
    border-radius: 12px;
    background: var(--ds-surface);
}

    .ai-docs li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 12px;
        border-top: 1px solid var(--ds-line-soft);
        font-size: 13px;
        line-height: 1.6;
        color: var(--ds-ink);
        font-weight: 600;
    }

        .ai-docs li:first-child {
            border-top: none;
        }

        .ai-docs li span {
            flex: 1;
            min-width: 0;
        }

        .ai-docs li i:first-child {
            color: var(--ds-red);
        }

        .ai-docs li i:last-child {
            color: var(--ds-ok);
        }

/* the switch under the chat (only with JS: without it, scenario 1 is shown) */
.ai-scn-switch {
    display: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ai-stage.is-js .ai-scn-switch {
    display: flex;
}

    .ai-scn-switch button {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 5px 14px;
        border-radius: var(--ds-r-pill);
        border: 1px solid var(--ds-line);
        background: var(--ds-surface);
        color: var(--ds-text);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

        .ai-scn-switch button i {
            font-size: 9px;
        }

        .ai-scn-switch button:hover {
            border-color: var(--ds-ink);
            color: var(--ds-ink);
        }

        .ai-scn-switch button.is-on {
            border-color: var(--ds-red);
            background: var(--ds-red-soft);
            color: var(--ds-red);
        }

/* ============================================================
   01 STEPS
   ============================================================ */
.ai-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    counter-reset: none;
}

    .ai-steps li {
        position: relative;
        padding: 28px 26px;
        border-radius: var(--ds-r-lg);
        background: var(--ds-surface);
        border: 1px solid var(--ds-line-soft);
        box-shadow: var(--ds-shadow-sm);
    }

        .ai-steps li h3 {
            margin-top: 18px;
            font-size: 18px;
        }

        .ai-steps li p {
            margin-top: 6px !important;
            font-size: 15px;
        }

    /* a dashed line runs between the cards */
    .ai-steps li:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 50px;
        inset-inline-start: 100%;
        width: 24px;
        border-top: 2px dashed var(--ds-tint-line);
    }

.ai-step-no {
    position: absolute;
    top: 22px;
    inset-inline-end: 24px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    color: var(--ds-line);
}

/* ============================================================
   TABS (example chats, setup)
   ============================================================ */
.ai-tabs {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.ai-tabbed.is-tabs .ai-tabs {
    display: flex;
}

    .ai-tabs button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        border-radius: var(--ds-r-pill);
        border: 1px solid var(--ds-line);
        background: var(--ds-surface);
        color: var(--ds-text);
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: background .2s ease, color .2s ease, border-color .2s ease;
    }

        .ai-tabs button:hover {
            border-color: var(--ds-ink);
            color: var(--ds-ink);
        }

        .ai-tabs button.is-on {
            background: var(--ds-red);
            border-color: var(--ds-red);
            color: #FFF;
            box-shadow: 0 8px 18px rgba(201, 29, 19, .2);
        }

.ai-panel[hidden] {
    display: none !important;
}

.ai-tabbed:not(.is-tabs) .ai-panel + .ai-panel {
    margin-top: 32px;
}

/* ============================================================
   02 EXAMPLE CHATS
   ============================================================ */
.ai-chats-section .ai-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
    align-items: start;
    max-width: 1060px;
    margin-inline: auto;
}

/* a real chat window: a fixed height, the thread scrolls (and follows the newest message while it plays) */
.ai-chats-section .ai-thread {
    height: 560px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.ai-chats-section .ai-chat {
    box-shadow: var(--ds-shadow-md);
}

.ai-receipt {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-bg);
    border: 1px solid var(--ds-line);
}

    .ai-receipt img {
        display: block;
        width: 76px;
        height: 76px;
        margin: -6px auto 6px;
    }

    .ai-receipt h3 {
        font-size: 15px;
        text-align: center;
    }

    .ai-receipt ul {
        list-style: none;
        margin: 12px 0 0;
        padding: 0;
    }

    .ai-receipt li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 0;
        border-bottom: 1px dashed var(--ds-line);
        font-size: 13px;
        line-height: 1.6;
        color: var(--ds-ink);
    }

        .ai-receipt li small {
            display: block;
            font-size: 11px;
            color: var(--ds-muted);
        }

        .ai-receipt li .ds-chip {
            flex: none;
            white-space: nowrap;
        }

.ai-receipt-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px !important;
    font-weight: 700;
    color: var(--ds-ink);
}

    .ai-receipt-total b {
        font-size: 15px;
        color: var(--ds-red);
    }

.ai-chats-note {
    margin-top: 18px !important;
    font-size: 12px;
    color: var(--ds-muted);
    text-align: center;
}

/* ============================================================
   03 WHAT IT CAN DO
   ============================================================ */
.ai-can {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.ai-can-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line-soft);
    box-shadow: var(--ds-shadow-sm);
}

    .ai-can-card.is-wide {
        grid-column: span 3;
    }

    .ai-can-card h3 {
        margin-top: 6px;
        font-size: 18px;
    }

    .ai-can-card p {
        font-size: 15px;
    }

    .ai-can-card footer {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 12px;
        margin-top: auto;
        padding-top: 10px;
    }

        .ai-can-card footer small {
            font-size: 12px;
            color: var(--ds-muted);
        }

/* ============================================================
   04 SETUP PER APP
   ============================================================ */
.ai-set {
    max-width: 820px;
    margin-inline: auto;
    padding: 30px 34px;
    border-radius: var(--ds-r-xl);
    background: var(--ds-bg);
    border: 1px solid var(--ds-line);
}

    .ai-set header {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 14px;
        padding-bottom: 6px;
    }

        .ai-set header h3 {
            font-size: 22px;
        }

        .ai-set header span {
            font-size: 14px;
            color: var(--ds-muted);
        }

.ai-set-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: ai-set;
}

    .ai-set-steps li {
        counter-increment: ai-set;
        position: relative;
        padding: 16px 0;
        padding-inline-start: 48px;
        border-top: 1px dashed var(--ds-line);
        font-size: 15px;
        color: var(--ds-ink);
    }

        .ai-set-steps li::before {
            content: counter(ai-set);
            position: absolute;
            top: 15px;
            inset-inline-start: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--ds-red-soft);
            color: var(--ds-red);
            font-family: var(--ds-mono);
            font-size: 14px;
            font-weight: 700;
        }

        .ai-set-steps li > .ds-btn {
            margin-top: 12px;
        }

.ai-set-note {
    margin-top: 6px !important;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ds-soft);
    font-size: 13px;
    color: var(--ds-muted);
}

    .ai-set-note i {
        margin-inline-end: 4px;
    }

/* ============================================================
   05 YOU STAY IN CONTROL
   ============================================================ */
.ai-safe {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 450px);
    gap: 56px;
    align-items: center;
}

.ai-safe-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .ai-safe-list li {
        display: flex;
        gap: 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--ds-line-soft);
    }

        .ai-safe-list li:last-child {
            border-bottom: none;
        }

    .ai-safe-list h3 {
        font-size: 17px;
    }

    .ai-safe-list p {
        font-size: 15px;
    }

.ai-safe-ico {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ds-red-soft);
    color: var(--ds-red);
    font-size: 17px;
}

.ai-consent {
    position: relative;
    padding-top: 40px;
}

.ai-consent-bot {
    position: absolute;
    z-index: 2;
    top: -28px;
    inset-inline-end: -14px;
    width: 140px;
    height: 140px;
    pointer-events: none;
}

.ai-consent-card {
    position: relative;
    padding: 26px 28px 22px;
    border-radius: var(--ds-r-xl);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-top: 3px solid var(--ds-red);
    box-shadow: var(--ds-shadow-lg);
}

    .ai-consent-card h3 {
        margin-top: 16px;
        font-size: 19px;
        text-align: center;
    }

.ai-consent-tag {
    display: inline-block;
    padding: 0 10px;
    border-radius: var(--ds-r-pill);
    border: 1px dashed var(--ds-input-line);
    font-size: 11px;
    color: var(--ds-muted);
}

.ai-consent-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 14px;
    color: var(--ds-muted);
}

.ai-consent-logo img {
    height: 28px;
}

.ai-consent-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ds-soft);
    border: 1px solid var(--ds-line);
    color: var(--ds-ink);
}

    .ai-consent-app .ai-spark {
        width: 20px;
        height: 20px;
    }

.ai-consent-user {
    margin-top: 2px !important;
    font-size: 13px;
    color: var(--ds-muted);
    text-align: center;
}

.ai-consent-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

    .ai-consent-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 0;
        border-top: 1px solid var(--ds-line-soft);
        font-size: 14px;
        line-height: 1.7;
        color: var(--ds-ink);
    }

        .ai-consent-list li > i {
            width: 42px;
            text-align: center;
            color: var(--ds-ok);
        }

/* the switch: a real checkbox, drawn */
.ai-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .ai-switch input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
    }

.ai-switch-ui {
    position: relative;
    flex: none;
    width: 42px;
    height: 24px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-input-line);
    transition: background .2s ease;
}

    .ai-switch-ui::after {
        content: "";
        position: absolute;
        top: 3px;
        inset-inline-start: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #FFF;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
        transition: inset-inline-start .2s ease;
    }

.ai-switch input:checked + .ai-switch-ui {
    background: var(--ds-ok-bright);
}

    .ai-switch input:checked + .ai-switch-ui::after {
        inset-inline-start: 21px;
    }

.ai-switch input:focus-visible + .ai-switch-ui {
    outline: 2px solid var(--ds-red);
    outline-offset: 2px;
}

.ai-consent-state {
    margin: 4px 0 16px !important;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--ds-blue-soft);
    color: var(--ds-blue);
    font-size: 13px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

    .ai-consent-state.is-on {
        background: var(--ds-ok-soft);
        color: var(--ds-ok);
    }

    .ai-consent-state i {
        margin-inline-end: 4px;
    }

.ai-consent-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .ai-consent-btns .ds-btn {
        cursor: default;
    }

.ai-consent-pwd {
    margin-top: 14px !important;
    font-size: 12px;
    color: var(--ds-muted);
    text-align: center;
}

    .ai-consent-pwd i {
        color: var(--ds-ok);
        margin-inline-end: 4px;
    }

/* ============================================================
   06 FAQ
   ============================================================ */
.ai-faq-wrap {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: 1060px;
    margin-inline: auto;
}

.ai-faq-robot {
    position: sticky;
    top: 110px;
    width: 220px;
    height: auto;
}

.ai-faq {
    display: grid;
    gap: 10px;
}

    .ai-faq details {
        border-radius: var(--ds-r-md);
        background: var(--ds-bg);
        border: 1px solid var(--ds-line);
    }

        .ai-faq details[open] {
            border-color: var(--ds-tint-line);
            background: var(--ds-surface);
        }

    .ai-faq summary {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 700;
        color: var(--ds-ink);
        cursor: pointer;
        list-style: none;
    }

        .ai-faq summary::-webkit-details-marker {
            display: none;
        }

        .ai-faq summary::after {
            content: "\f067";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            margin-inline-start: auto;
            font-size: 12px;
            color: var(--ds-red);
            transition: transform .2s ease;
        }

    .ai-faq details[open] summary::after {
        transform: rotate(45deg);
    }

    .ai-faq details p {
        padding: 0 20px 18px;
        font-size: 15px;
        line-height: 2;
    }

/* ============================================================
   FINAL CALL
   ============================================================ */
.ai-end {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 40px 50px;
    border-radius: var(--ds-r-xl);
    background: radial-gradient(ellipse 70% 140% at 0% 0%, #DE3328 0%, var(--ds-red) 45%, var(--ds-red-dark) 100%);
    box-shadow: 0 24px 60px rgba(201, 29, 19, .22);
    color: rgba(255, 255, 255, .92);
}

    .ai-end .ds-h2 {
        margin-top: 0 !important;
        color: #FFF;
    }

        .ai-end .ds-h2 .colored-text {
            color: #FFF;
            text-decoration-color: rgba(255, 255, 255, .28);
        }

    .ai-end p {
        margin-top: 8px !important;
        font-size: 16px;
    }

.ai-end-robot {
    width: 220px;
    height: auto;
    margin: -80px 0 -20px;
}

.ai-end-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.ai-btn-outline {
    border-color: rgba(255, 255, 255, .6);
    color: #FFF !important;
}

    .ai-btn-outline:hover {
        background: rgba(255, 255, 255, .12);
    }

.ai-addr-light {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .35);
}

    .ai-addr-light .ai-addr-label {
        color: rgba(255, 255, 255, .85);
    }

    .ai-addr-light code {
        background: rgba(0, 0, 0, .18);
        color: #FFF;
    }

    .ai-addr-light .ai-copy {
        background: #FFF;
        color: var(--ds-red);
    }

:root[data-theme="dark"] .ai-end {
    background: linear-gradient(135deg, #1F1214 0%, #160E10 100%);
    border: 1px solid #3B2325;
    border-top: 3px solid var(--ds-red);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    color: var(--ds-text);
}

    :root[data-theme="dark"] .ai-end .ds-h2 {
        color: var(--ds-ink);
    }

        :root[data-theme="dark"] .ai-end .ds-h2 .colored-text {
            color: var(--ds-red);
            text-decoration-color: rgba(232, 56, 45, .24);
        }

    :root[data-theme="dark"] .ai-addr-light {
        background: var(--ds-surface);
        border-color: var(--ds-input-line);
    }

        :root[data-theme="dark"] .ai-addr-light .ai-addr-label {
            color: var(--ds-muted);
        }

        :root[data-theme="dark"] .ai-addr-light code {
            background: var(--ds-soft);
            color: var(--ds-ink);
        }

        :root[data-theme="dark"] .ai-addr-light .ai-copy {
            background: var(--ds-red-soft);
            color: var(--ds-red);
        }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
    .ai-hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
        gap: 36px;
    }

    .ai-safe {
        gap: 36px;
    }
}

@media (max-width: 991px) {
    .ai-hero {
        padding: 40px 0 60px;
    }

    .ai-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ai-stage {
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
    }

    .ai-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

        .ai-steps li:not(:last-child)::after {
            display: none;
        }

    .ai-chats-section .ai-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ai-receipt {
        position: static;
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 0 14px;
        align-items: center;
        padding: 16px 18px;
    }

        .ai-receipt img {
            grid-row: span 2;
            width: 56px;
            height: 56px;
            margin: 0;
        }

        .ai-receipt h3 {
            text-align: start;
        }

        .ai-receipt ul,
        .ai-receipt-total {
            grid-column: 1 / -1;
        }

    .ai-can {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ai-can-card,
    .ai-can-card.is-wide {
        grid-column: span 1;
    }

        .ai-can-card:last-child {
            grid-column: 1 / -1;
        }

    .ai-safe {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-consent {
        max-width: 480px;
        width: 100%;
        margin-inline: auto;
    }

    .ai-faq-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .ai-faq-robot {
        position: static;
        width: 140px;
        margin: -10px auto 10px;
    }

    .ai-end {
        grid-template-columns: 170px minmax(0, 1fr);
        padding: 34px;
    }

    .ai-end-robot {
        width: 170px;
        margin: -60px 0 -10px;
    }
}

@media (max-width: 575px) {
    .ai-stage .ai-thread {
        height: 400px;
    }

    .ai-rail {
        padding: 9px 4px 7px;
    }

        .ai-rail li {
            font-size: 10.5px;
        }

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

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

        .ai-kpis-3 > div {
            padding: 7px 8px;
        }

    .ai-cta-row .ds-btn {
        flex: 1 1 100%;
    }

    .ai-addr {
        width: 100%;
    }

        .ai-addr-label {
            flex: 1 1 100%;
        }

        .ai-addr code {
            flex: 1;
            min-width: 0;
            font-size: 13px;
        }

    .ai-stage {
        padding-top: 78px;
    }

    .ai-chat-wrap .ab-actor {
        --ab-size: 100px;
        --ab-peek: 62px;
        inset-inline-start: 14px;
    }

    .ai-chat-wrap .ab-say {
        bottom: 4px;
        max-width: 200px;
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .ai-chat-bar {
        padding: 10px 12px;
        gap: 10px;
    }

    .ai-dots {
        display: none;
    }

    .ai-thread {
        padding: 14px 12px;
        font-size: 13.5px;
    }

    .ai-chats-section .ai-thread {
        height: 500px;
    }

    .ai-user {
        max-width: 92%;
    }

    .ai-kw-row {
        grid-template-columns: minmax(0, 1fr) 54px 42px 40px;
        gap: 6px;
        padding: 7px 10px;
        font-size: 12.5px;
    }

    .ai-plan li {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 2px 8px;
    }

        .ai-plan li em {
            grid-column: 2;
            justify-self: start;
        }

        .ai-plan li b {
            grid-row: 1;
            grid-column: 3;
        }

    .ai-share > div {
        grid-template-columns: 78px minmax(0, 1fr) 36px;
        gap: 8px;
    }

    .ai-tabs {
        gap: 6px;
    }

        .ai-tabs button {
            padding: 7px 13px;
            font-size: 13px;
        }

    .ai-can {
        grid-template-columns: minmax(0, 1fr);
    }

    .ai-can-card {
        padding: 22px;
    }

    .ai-set {
        padding: 22px 18px;
        border-radius: var(--ds-r-lg);
    }

    .ai-set-steps li {
        padding-inline-start: 42px;
    }

        .ai-set-steps li > .ds-btn {
            width: 100%;
        }

    .ai-code {
        flex-wrap: wrap;
        padding-inline-start: 12px;
        font-size: 12.5px;
    }

        /* the command takes the whole line (it wraps at its spaces); the button goes under it */
        .ai-code code {
            flex: 1 1 calc(100% - 24px);
            padding-block: 4px;
        }

        .ai-code .ai-copy {
            margin-inline-start: auto;
        }

    .ai-consent-card {
        padding: 22px 18px 18px;
    }

    .ai-consent-bot {
        width: 110px;
        height: 110px;
        top: -16px;
        inset-inline-end: -6px;
    }

    .ai-end {
        grid-template-columns: minmax(0, 1fr);
        padding: 28px 20px;
        text-align: center;
    }

    .ai-end-robot {
        width: 150px;
        margin: -70px auto -10px;
    }

    .ai-end-row {
        justify-content: center;
    }

        .ai-end-row .ds-btn {
            flex: 1 1 100%;
        }

    .ai-end .ai-addr {
        margin-inline: auto;
        text-align: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ai-rail li.is-now .ai-rail-dot,
    .ai-spin,
    .ai-typing::after,
    .ai-stage.is-enter .ai-peek,
    .ai-thread.is-anim [data-step].is-shown,
    .ai-thread.is-anim .ai-ask.is-shown {
        animation: none;
    }

    .ai-thread.is-anim .ai-kw-row:not(.ai-kw-head) {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ai-switch-ui,
    .ai-switch-ui::after {
        transition: none;
    }
}
