.cc-ai-assistant {
        --cc-ai-accent: #006db7;
        --cc-ai-panel: #ffffff;
        --cc-ai-soft: #f3f7fb;
        --cc-ai-border: rgba(26, 47, 69, 0.12);
        --cc-ai-text: #1a2f45;
        --cc-ai-muted: #5b6b7c;
        --cc-ai-user-bg: #e8f3fb;
        --cc-ai-bot-bg: #f8fbfe;
    }
    html[data-theme="dark"] .cc-ai-assistant {
        --cc-ai-accent: var(--cc-theme-dark-accent, #65adf3);
        --cc-ai-panel: var(--cc-theme-dark-surface, #172233);
        --cc-ai-soft: rgba(13, 22, 36, 0.55);
        --cc-ai-border: var(--cc-theme-dark-border, #2f3f53);
        --cc-ai-text: var(--cc-theme-dark-text, #e5ecf6);
        --cc-ai-muted: var(--cc-theme-dark-muted, #90a0b6);
        --cc-ai-user-bg: #17324b;
        --cc-ai-bot-bg: rgba(13, 22, 36, 0.65);
    }
    .cc-ai-shell {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: .85rem;
        width: auto;
        max-width: 100%;
        padding-top: 1.25rem;
        padding-left: 1.75rem;
        box-sizing: border-box;
    }
    .cc-ai-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        flex: 0 0 auto;
        position: relative;
        align-self: center;
        overflow: hidden;
        animation: cc-ari-float 3.2s ease-in-out infinite;
    }
    .cc-ai-avatar.cc-ai-avatar--full,
    .cc-ai-msg--greeting > .cc-ai-avatar {
        width: 112px;
        height: 112px;
        border-radius: 28px;
        overflow: hidden;
    }
    .cc-ai-avatar::after {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        border: 2px solid var(--cc-ai-accent);
        opacity: .45;
        animation: cc-ari-ring 2.4s ease-out infinite;
        pointer-events: none;
        z-index: 3;
    }
    .cc-ari-portrait {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
        overflow: hidden;
        background: linear-gradient(160deg, #d9f0ff 0%, #7ec4f0 55%, #2f9be8 100%);
    }
    .cc-ari-portrait picture,
    .cc-ari-portrait__img {
        display: block;
        width: 100%;
        height: 100%;
        border-radius: inherit;
    }
    .cc-ari-portrait__img {
        object-fit: cover;
        object-position: center top;
        animation: cc-ari-glow-breathe 2.8s ease-in-out infinite;
        user-select: none;
        -webkit-user-drag: none;
    }
    .cc-ari-portrait--face .cc-ari-portrait__img {
        object-position: center 18%;
    }
    .cc-ari-portrait--full .cc-ari-portrait__img {
        object-position: center 8%;
    }
    .cc-ari-portrait__shine {
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        background: radial-gradient(circle at 50% 38%, rgba(100, 220, 255, 0.28), transparent 42%);
        mix-blend-mode: soft-light;
        animation: cc-ari-eye-glow 2.6s ease-in-out infinite;
        z-index: 1;
    }
    .cc-ari-portrait__blink {
        position: absolute;
        left: 30%;
        right: 30%;
        top: 38%;
        height: 10%;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(40, 60, 80, 0.15), rgba(40, 60, 80, 0.55));
        transform: scaleY(0);
        transform-origin: center;
        pointer-events: none;
        z-index: 2;
        animation: cc-ari-photo-blink 5.2s ease-in-out infinite;
        opacity: 0;
    }
    .cc-ari-portrait--full .cc-ari-portrait__blink {
        top: 22%;
        left: 32%;
        right: 32%;
        height: 8%;
    }
    @keyframes cc-ari-float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-3px); }
    }
    @keyframes cc-ari-ring {
        0% { transform: scale(0.96); opacity: .55; }
        100% { transform: scale(1.12); opacity: 0; }
    }
    @keyframes cc-ari-glow-breathe {
        0%, 100% { filter: brightness(1) saturate(1); }
        50% { filter: brightness(1.05) saturate(1.08); }
    }
    @keyframes cc-ari-eye-glow {
        0%, 100% { opacity: .55; }
        50% { opacity: .95; }
    }
    @keyframes cc-ari-photo-blink {
        0%, 44%, 52%, 100% { transform: scaleY(0); opacity: 0; }
        46%, 50% { transform: scaleY(1); opacity: .7; }
    }
    @media (prefers-reduced-motion: reduce) {
        .cc-ai-avatar,
        .cc-ai-avatar::after,
        .cc-ari-portrait__img,
        .cc-ari-portrait__shine,
        .cc-ari-portrait__blink {
            animation: none !important;
        }
    }
    .cc-ai-avatar svg {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 50%;
    }
    .cc-ai-transcript {
        flex: 0 1 auto;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: .65rem;
        max-height: min(48vh, 420px);
        width: 100%;
        max-width: min(920px, 100%);
        align-self: stretch;
        padding: 0.15rem 0.1rem 0.35rem;
    }
    .cc-ai-msg {
        width: 100%;
        box-sizing: border-box;
        padding: .85rem 1rem;
        border-radius: 14px;
        border: 1px solid var(--cc-ai-border);
        color: var(--cc-ai-text);
        white-space: normal;
        background: var(--cc-ai-panel);
    }
    .cc-ai-transcript > .cc-ai-msg--bot:not(.cc-ai-msg--greeting),
    .cc-ai-transcript > .cc-ai-msg--user {
        position: relative;
        width: fit-content;
        max-width: min(82%, 22.5rem);
        border: 0;
        box-shadow: none;
        padding: 0.55rem 0.8rem;
        line-height: 1.45;
    }
    .cc-ai-transcript > .cc-ai-msg--bot:not(.cc-ai-msg--greeting) {
        --cc-ai-bubble-bg: #e8eaed;
        align-self: flex-start;
        margin-right: auto;
        margin-left: 0.35rem;
        border-radius: 0 14px 14px 14px;
        background: var(--cc-ai-bubble-bg);
        color: #1f2933;
    }
    .cc-ai-transcript > .cc-ai-msg--user {
        --cc-ai-bubble-bg: #d9fdd3;
        align-self: flex-end;
        margin-left: auto;
        margin-right: 0.35rem;
        border-radius: 14px 0 14px 14px;
        background: var(--cc-ai-bubble-bg);
        color: #123526;
        white-space: pre-wrap;
        max-height: none;
        overflow: visible;
        height: auto;
    }
    /* WhatsApp-style tails on the upper outer corners */
    .cc-ai-transcript > .cc-ai-msg--bot:not(.cc-ai-msg--greeting)::before,
    .cc-ai-transcript > .cc-ai-msg--user::before {
        content: '';
        position: absolute;
        top: 0;
        width: 12px;
        height: 14px;
        background: var(--cc-ai-bubble-bg);
        pointer-events: none;
        z-index: 1;
    }
    .cc-ai-transcript > .cc-ai-msg--bot:not(.cc-ai-msg--greeting)::before {
        left: -9px;
        clip-path: polygon(100% 0, 100% 72%, 8% 0);
    }
    .cc-ai-transcript > .cc-ai-msg--user::before {
        right: -9px;
        clip-path: polygon(0 0, 92% 0, 0 72%);
    }
    html[data-theme="dark"] .cc-ai-transcript > .cc-ai-msg--bot:not(.cc-ai-msg--greeting) {
        --cc-ai-bubble-bg: #3a4556;
        background: var(--cc-ai-bubble-bg);
        color: #e8eef7;
    }
    html[data-theme="dark"] .cc-ai-transcript > .cc-ai-msg--user {
        --cc-ai-bubble-bg: #1f5c45;
        background: var(--cc-ai-bubble-bg);
        color: #e7fff3;
    }
    /* Same-question recall: soft accent glow (Light + Dark) */
    .cc-ai-transcript > .cc-ai-msg--bot.is-ari-recall:not(.cc-ai-msg--greeting) {
        outline: 2px solid color-mix(in srgb, var(--cc-ai-accent, #006db7) 70%, transparent);
        box-shadow:
            0 0 0 3px color-mix(in srgb, var(--cc-ai-accent, #006db7) 28%, transparent),
            0 0 18px color-mix(in srgb, var(--cc-ai-accent, #006db7) 45%, transparent);
        transition: box-shadow 0.25s ease, outline-color 0.25s ease;
        animation: cc-ari-recall-pulse 1.1s ease-in-out 2;
    }
    html[data-theme="dark"] .cc-ai-transcript > .cc-ai-msg--bot.is-ari-recall:not(.cc-ai-msg--greeting) {
        outline-color: color-mix(in srgb, var(--cc-ai-accent, #4ea1ff) 80%, transparent);
        box-shadow:
            0 0 0 3px color-mix(in srgb, var(--cc-ai-accent, #4ea1ff) 35%, transparent),
            0 0 22px color-mix(in srgb, var(--cc-ai-accent, #4ea1ff) 55%, transparent);
    }
    @keyframes cc-ari-recall-pulse {
        0%, 100% { filter: brightness(1); }
        50% { filter: brightness(1.06); }
    }
    .cc-ai-transcript > .cc-ai-msg--bot:has([data-ari-train-tools]) {
        padding-right: 2.15rem;
    }
    .cc-ari-train-tools {
        position: absolute;
        top: 0.28rem;
        right: 0.22rem;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 0.12rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.12s ease;
    }
    .cc-ai-transcript > .cc-ai-msg--bot:hover .cc-ari-train-tools,
    .cc-ai-transcript > .cc-ai-msg--bot.is-ari-editing .cc-ari-train-tools,
    .cc-ai-transcript > .cc-ai-msg--bot:focus-within .cc-ari-train-tools {
        opacity: 1;
        pointer-events: auto;
    }
    .cc-ari-train-tools button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 0.12rem;
        border: 0;
        border-radius: 6px;
        background: transparent;
        color: currentColor;
        line-height: 0;
        cursor: pointer;
        opacity: 0.7;
    }
    .cc-ari-train-tools button:hover,
    .cc-ari-train-tools button:focus {
        opacity: 1;
        background: color-mix(in srgb, currentColor 12%, transparent);
    }
    .cc-ai-msg-text[contenteditable="true"] {
        outline: none;
        cursor: text;
    }
    html[data-theme="dark"] .cc-ari-train-tools button {
        color: inherit;
    }
    .cc-ai-msg--bot {
        align-self: stretch;
        background: var(--cc-ai-bot-bg);
    }
    .cc-ai-msg--greeting {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: fit-content;
        max-width: 100%;
        align-self: flex-start;
        border-radius: 22px;
        overflow: visible;
    }
    .cc-ai-msg-body {
        flex: 0 1 auto;
        min-width: auto;
        max-width: 100%;
        overflow: visible;
    }
    .cc-ai-msg--user {
        align-self: stretch;
        background: var(--cc-ai-user-bg);
        white-space: pre-wrap;
    }
    .cc-ai-msg-role {
        display: none;
    }
    .cc-ai-msg-text {
        display: block;
        white-space: pre-wrap;
    }
    .cc-ai-transcript > .cc-ai-msg--welcome {
        animation: cc-ari-welcome-in 0.42s ease-out;
    }
    .cc-ai-msg--welcome.is-ari-welcome-typing {
        min-height: 2.35em;
    }
    .cc-ai-msg--welcome.is-ari-welcome-typing .cc-ai-msg-text::after {
        content: '';
        display: inline-block;
        width: 0.12em;
        height: 0.95em;
        margin-left: 0.1em;
        vertical-align: -0.08em;
        background: currentColor;
        opacity: 0.45;
        animation: cc-ari-welcome-caret 0.8s steps(1) infinite;
    }
    @keyframes cc-ari-welcome-in {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
    @keyframes cc-ari-welcome-caret {
        50% { opacity: 0; }
    }
    @media (prefers-reduced-motion: reduce) {
        .cc-ai-transcript > .cc-ai-msg--welcome {
            animation: none;
        }
        .cc-ai-msg--welcome.is-ari-welcome-typing .cc-ai-msg-text::after {
            display: none;
        }
    }
    .cc-ai-msg-footer {
        margin-top: .75rem;
    }
    .cc-ai-inline-page-link {
        color: var(--cc-ai-accent, #006db7);
        font-weight: 700;
        text-decoration: underline;
        text-underline-offset: 0.12em;
    }
    .cc-ai-inline-page-link:hover,
    .cc-ai-inline-page-link:focus {
        color: var(--cc-ai-accent, #006db7);
        outline: none;
    }
    html[data-theme="dark"] .cc-ai-inline-page-link {
        color: #9fd8ff;
    }
    .cc-ai-help-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.2em;
        min-width: auto;
        width: max-content;
        max-width: 100%;
        font-size: .95rem;
        line-height: 1.45;
        color: var(--cc-ai-text);
    }
    .cc-ai-help-line.is-one-line,
    .cc-ai-help-line.is-sentence {
        flex-wrap: wrap;
        align-items: center;
    }
    .cc-ai-msg--greeting:has(.cc-ai-help-menu.is-open),
    .cc-ai-msg--greeting:has(.cc-ai-help-menu:hover),
    .cc-ai-msg--greeting:has(.cc-ai-help-menu:focus-within) {
        align-items: center;
    }
    .cc-ai-help-lead {
        flex: 0 0 auto;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        align-self: center;
        margin: 0;
        color: var(--cc-ai-text);
        line-height: 1.45;
        white-space: nowrap;
        font-weight: 500;
        min-width: max-content;
        letter-spacing: normal;
        transform: none;
    }
    .cc-ai-option-carousel.is-hidden {
        display: none !important;
    }
    .cc-ai-help-menu.is-hidden {
        display: none !important;
    }
    .cc-ai-help-menu {
        position: relative;
        flex: 0 0 auto;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        align-self: center;
        margin: 0;
        padding: 0;
        min-width: 0;
        max-width: min(26rem, 100%);
    }
    .cc-ai-help-qmark {
        border: 0;
        background: transparent;
        color: var(--cc-ai-accent);
        font-size: 1.05em;
        font-weight: 700;
        line-height: inherit;
        padding: 0 0 0 0.05em;
        margin: 0;
        cursor: pointer;
        text-decoration: none;
    }
    .cc-ai-help-qmark:hover,
    .cc-ai-help-qmark:focus {
        outline: none;
        color: var(--cc-ai-accent);
        text-decoration: underline;
        text-underline-offset: .12em;
    }
    /* Open: replace "?" in-flow (card grows). Do not overlay under/outside the card. */
    .cc-ai-help-menu.is-open .cc-ai-help-qmark,
    .cc-ai-help-menu:hover .cc-ai-help-qmark,
    .cc-ai-help-menu:focus-within .cc-ai-help-qmark {
        display: none;
    }
    .cc-ai-help-menu-panel {
        display: none;
        position: static;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        min-width: 0;
        max-width: min(26rem, 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0.05rem;
    }
    .cc-ai-help-menu.is-open .cc-ai-help-menu-panel,
    .cc-ai-help-menu:hover .cc-ai-help-menu-panel,
    .cc-ai-help-menu:focus-within .cc-ai-help-menu-panel {
        display: inline-flex;
    }
    .cc-ai-help-nav {
        border: 0;
        background: transparent;
        color: var(--cc-ai-accent);
        font-size: 0.85rem;
        line-height: 1;
        padding: 0;
        min-height: 1rem;
        cursor: pointer;
        flex: 0 0 auto;
        opacity: 0.85;
    }
    .cc-ai-help-nav:hover,
    .cc-ai-help-nav:focus {
        outline: none;
        opacity: 1;
        color: var(--cc-ai-accent);
    }
    .cc-ai-help-carousel {
        display: grid;
        grid-template-rows: 1.15em auto 1.15em;
        gap: 0.1rem;
        align-items: center;
        min-width: 0;
    }
    .cc-ai-help-menu-item {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 0;
        background: transparent;
        color: var(--cc-ai-accent);
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        padding: 0.05rem 0.1rem;
        cursor: pointer;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: .18em;
        text-decoration-color: color-mix(in srgb, var(--cc-ai-accent) 55%, transparent);
        white-space: normal;
    }
    .cc-ai-help-menu-item.is-side {
        opacity: 0.34;
        font-weight: 500;
        font-size: 0.78rem;
        line-height: 1.15em;
        height: 1.15em;
        pointer-events: none;
        text-decoration-color: transparent;
        cursor: default;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .cc-ai-help-menu-item.is-center {
        opacity: 1;
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.35;
    }
    .cc-ai-help-menu-item.is-center:hover,
    .cc-ai-help-menu-item.is-center:focus {
        outline: none;
        text-decoration-color: var(--cc-ai-accent);
    }
    .cc-ai-option-carousel {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        min-width: 0;
        flex: 0 0 auto;
        align-self: center;
        max-width: 100%;
        vertical-align: middle;
    }
    .cc-ai-option {
        border: 0;
        background: transparent;
        color: var(--cc-ai-accent);
        border-radius: 0;
        padding: 0;
        margin: 0;
        font-size: inherit;
        line-height: 1.45;
        cursor: pointer;
        transition: color .2s ease, border-color .2s ease, opacity .2s ease;
        white-space: normal;
        width: auto;
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        text-align: left;
        font-weight: 600;
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: .18em;
        text-decoration-color: color-mix(in srgb, var(--cc-ai-accent) 55%, transparent);
        display: inline-flex;
        align-items: center;
    }
    .cc-ai-option.is-side {
        display: none;
    }
    .cc-ai-option.is-center {
        opacity: 1;
        color: var(--cc-ai-accent);
        box-shadow: none;
    }
    .cc-ai-option.is-side:hover,
    .cc-ai-option.is-side:focus,
    .cc-ai-option.is-center:hover,
    .cc-ai-option.is-center:focus {
        outline: none;
        color: var(--cc-ai-accent);
        text-decoration-color: var(--cc-ai-accent);
        opacity: 1;
        box-shadow: none;
    }
    .cc-ai-option.is-hidden {
        display: none;
    }
    .cc-ai-cards { margin-top: .75rem; display: grid; gap: .5rem; }
    .cc-ari-field-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .5rem;
    }
    .cc-ari-field-sync {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--cc-ai-accent, #20a0ff);
        cursor: pointer;
    }
    .cc-ari-field-sync:hover,
    .cc-ari-field-sync:focus-visible {
        background: color-mix(in srgb, var(--cc-ai-accent, #20a0ff) 16%, transparent);
        outline: none;
    }
    .cc-ari-resource-pill-wrap {
        border: 0;
        background: transparent;
        padding: 0;
    }
    .cc-ari-resource-pill {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        padding: .28rem .7rem;
        border-radius: 999px;
        border: 1px solid var(--cc-ai-border);
        background: var(--cc-ai-soft);
        color: var(--cc-ai-text);
        text-decoration: none;
        font-size: .82rem;
        font-weight: 600;
    }
    .cc-ari-merge-chooser {
        display: flex;
        flex-wrap: wrap;
        gap: .4rem;
        margin-top: .55rem;
    }
    .cc-ari-merge-choice {
        border: 1px solid var(--cc-ai-border);
        background: var(--cc-ai-soft);
        color: var(--cc-ai-text);
        border-radius: 999px;
        padding: .28rem .7rem;
        font-size: .82rem;
        cursor: pointer;
    }
    .cc-ari-merge-choice.is-cancel {
        opacity: .8;
    }
    .cc-ai-card-item {
        border: 1px solid var(--cc-ai-border);
        border-radius: 10px;
        padding: .65rem .75rem;
        background: var(--cc-ai-soft);
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    .cc-ai-card-item.is-section {
        border: 0;
        background: transparent;
        padding: .35rem 0 0;
    }
    .cc-ai-card-section {
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: .01em;
        color: color-mix(in srgb, var(--cc-ai-text) 78%, transparent);
        overflow-wrap: anywhere;
    }
    .cc-ai-card-item.is-external {
        border-style: dashed;
    }
    .cc-ai-card-item.is-careercenter {
        border-style: solid;
    }
    .cc-ai-card-badge {
        display: inline-block;
        margin-bottom: .35rem;
        padding: .12rem .45rem;
        border-radius: 999px;
        border: 1px solid var(--cc-ai-border);
        font-size: .72rem;
        font-weight: 600;
        line-height: 1.3;
        color: color-mix(in srgb, var(--cc-ai-text) 72%, transparent);
        background: color-mix(in srgb, var(--cc-ai-soft) 70%, transparent);
        max-width: 100%;
        overflow-wrap: anywhere;
    }
    .cc-ai-card-title {
        display: block;
        margin-bottom: .2rem;
        overflow-wrap: anywhere;
    }
    .cc-ai-card-provenance {
        display: block;
        margin-top: .35rem;
        font-size: .75rem;
        line-height: 1.35;
        color: color-mix(in srgb, var(--cc-ai-text) 62%, transparent);
        overflow-wrap: anywhere;
    }
    .cc-ai-card-cta {
        display: inline-flex;
        align-items: center;
        margin-top: .55rem;
        max-width: 100%;
        color: var(--cc-ai-accent);
        font-weight: 600;
        text-decoration: none;
        overflow-wrap: anywhere;
    }
    .cc-ai-card-cta:hover,
    .cc-ai-card-cta:focus {
        text-decoration: underline;
        outline: none;
    }
    .cc-ai-card-item.is-tip {
        padding: .45rem .7rem;
        background: transparent;
        border-color: color-mix(in srgb, var(--cc-ai-border) 70%, transparent);
    }
    .cc-ai-tip-line,
    .cc-ai-card-item.is-tip .cc-ai-tip-line {
        display: block;
        font-size: .78rem;
        line-height: 1.35;
        color: color-mix(in srgb, var(--cc-ai-text) 62%, transparent);
        white-space: normal;
        overflow-wrap: anywhere;
    }
    html[data-theme="dark"] .cc-ai-tip-line,
    html[data-theme="dark"] .cc-ai-card-item.is-tip .cc-ai-tip-line {
        color: rgba(226, 232, 240, 0.62);
    }
    .cc-ai-card-item strong { display: block; margin-bottom: .2rem; }
    .cc-ai-card-body {
        display: block;
        margin-top: .25rem;
        font-size: .9rem;
        line-height: 1.35;
        color: var(--cc-ai-text);
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .cc-ai-msg-footer {
        margin-top: .45rem;
        font-size: .78rem;
        line-height: 1.35;
        color: color-mix(in srgb, var(--cc-ai-text) 62%, transparent);
    }
    html[data-theme="dark"] .cc-ai-msg-footer {
        color: rgba(226, 232, 240, 0.62);
    }
    .cc-ai-card-item a {
        display: inline-block;
        margin-top: .4rem;
        color: var(--cc-ai-accent);
        font-weight: 600;
        text-decoration: none;
    }
    .cc-ai-card-item a:hover,
    .cc-ai-card-item a:focus {
        text-decoration: underline;
    }
    .cc-ai-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-top: .75rem;
        white-space: normal;
    }
    .cc-ai-action {
        border: 1px solid var(--cc-ai-border);
        background: var(--cc-ai-soft);
        color: var(--cc-ai-text);
        border-radius: 999px;
        padding: .4rem .85rem;
        font-size: .88rem;
        line-height: 1.25;
        cursor: pointer;
    }
    .cc-ai-action:hover,
    .cc-ai-action:focus {
        border-color: var(--cc-ai-accent);
        color: var(--cc-ai-accent);
        outline: none;
    }
    .cc-ai-action.is-primary {
        border-color: var(--cc-ai-accent);
        color: var(--cc-ai-accent);
        font-weight: 600;
    }
    .cc-ai-composer {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 0;
        margin: 0;
        flex: 0 0 auto;
        align-self: center;
        min-width: 0;
        max-width: min(22rem, 100%);
        width: auto;
        box-sizing: border-box;
    }
    .cc-ai-prompt:not(textarea) {
        width: auto;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 0;
        height: auto;
        margin: 0;
        border: 1px solid transparent;
        border-radius: 10px;
        padding: 0.1rem 0.28rem;
        background: transparent;
        color: var(--cc-ai-text);
        font-size: inherit;
        line-height: 1.45;
        field-sizing: content;
        vertical-align: middle;
        display: inline-flex;
        align-items: center;
        box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--cc-ai-accent) 45%, var(--cc-ai-border));
    }
    textarea.cc-ai-prompt {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        margin: 0;
        border: 1px solid transparent;
        border-radius: 10px;
        padding: 0.1rem 0.28rem;
        background: transparent;
        color: var(--cc-ai-text);
        font-size: inherit;
        line-height: 1.45;
        field-sizing: fixed;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: break-word;
        overflow-x: hidden;
        resize: none;
        box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--cc-ai-accent) 45%, var(--cc-ai-border));
    }
    .cc-ai-prompt.form-control {
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0.1rem 0.28rem;
        line-height: 1.45;
        box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--cc-ai-accent) 45%, var(--cc-ai-border));
    }
    .cc-ai-prompt::placeholder {
        color: color-mix(in srgb, var(--cc-ai-muted) 85%, var(--cc-ai-text));
        opacity: 1;
    }
    .cc-ai-prompt[data-placeholder-kind="want-to"]::placeholder {
        color: var(--cc-ai-text);
        font-weight: 500;
        opacity: 1;
    }
    .cc-ai-prompt:focus,
    .cc-ai-prompt.form-control:focus {
        outline: none;
        border-color: color-mix(in srgb, var(--cc-ai-accent) 55%, transparent);
        border-radius: 10px;
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc-ai-accent) 22%, transparent);
    }
    .cc-ai-prompt:disabled {
        opacity: .65;
        cursor: not-allowed;
    }
    /* Beat global dark-mode input chrome (sharp full border + focus ring). */
    html[data-theme="dark"] .cc-ai-assistant .cc-ai-prompt,
    html[data-theme="dark"] .cc-ai-assistant .cc-ai-prompt.form-control {
        background-color: transparent !important;
        border: 1px solid transparent !important;
        border-radius: 10px !important;
        color: var(--cc-ai-text) !important;
        box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--cc-ai-accent) 45%, var(--cc-ai-border)) !important;
    }
    html[data-theme="dark"] .cc-ai-assistant .cc-ai-prompt:focus,
    html[data-theme="dark"] .cc-ai-assistant .cc-ai-prompt.form-control:focus {
        border-color: color-mix(in srgb, var(--cc-ai-accent) 55%, transparent) !important;
        border-radius: 10px !important;
        box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc-ai-accent) 22%, transparent) !important;
    }
    .cc-ai-composer textarea:not(.cc-ai-prompt) {
        display: none;
    }
    .cc-ari-chat-footer {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        align-self: stretch;
        box-sizing: border-box;
    }
    .cc-ari-chat-footer .cc-ai-composer {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-self: stretch;
    }
    .cc-ari-chat-footer .cc-ai-prompt,
    .cc-ari-chat-footer textarea.cc-ai-prompt.is-multiline {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: calc(1.45em + 0.55rem);
        max-height: var(--cc-ari-composer-max-height, min(70vh, 36rem));
        padding: 0.22rem 0 0.38rem;
        resize: none;
        overflow-x: hidden;
        overflow-y: hidden;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        word-break: break-word;
        field-sizing: fixed;
        line-height: 1.45;
        box-sizing: border-box;
    }
    .cc-ari-chat-footer textarea.cc-ai-prompt.is-multiline.is-composer-capped {
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .cc-ari-chat-footer textarea.cc-ai-prompt.is-multiline.is-composer-capped::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
        background: transparent;
    }
    .cc-ai-composer button[type="submit"] {
        display: none;
    }
    @media (max-width: 900px) {
        .cc-ai-help-line.is-one-line,
        .cc-ai-help-line.is-sentence {
            flex-wrap: wrap;
            align-items: center;
        }
        .cc-ai-help-lead {
            white-space: nowrap;
            flex-shrink: 0;
        }
        .cc-ai-composer {
            flex: 0 0 auto;
            max-width: 100%;
            min-width: 0;
        }
        .cc-ai-option-carousel {
            flex: 0 0 auto;
            max-width: 100%;
        }
        .cc-ai-cards {
            gap: .55rem;
        }
        .cc-ai-card-item {
            padding: .7rem .75rem;
        }
        .cc-ai-card-cta,
        .cc-ai-action {
            min-height: 2.5rem;
            padding-top: .55rem;
            padding-bottom: .55rem;
        }
        .cc-ai-actions {
            gap: .55rem;
        }
    }
