:root {
    --primary-blue: #47c6f3;
    --deep-blue: #2575b6;
    --accent-red: #ee4037;
    --light-background: #ebfaff;
    --text-gray: #666666;
    --border-gray: #b4b4b4;
    --dark-text: #14232a;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--dark-text);
    background: var(--light-background);
    font-family:
        "Segoe UI",
        Tahoma,
        Arial,
        sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding-bottom: 32px;
}

/* =========================
   Header
========================= */

.topbar {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.brand-logo {
    display: block;
    width: 170px;
    height: auto;
    object-fit: contain;
    background: transparent;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.new-chat-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(180, 180, 180, 0.78);
    border-radius: 10px;
    padding: 0 15px;
    color: var(--deep-blue);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    transition: 0.2s ease;
}

.new-chat-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: var(--primary-blue);
    background: rgba(235, 250, 255, 0.95);
}

.new-chat-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.language-switcher {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(180, 180, 180, 0.65);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.language-button {
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-gray);
    background: transparent;
    font-size: 0.84rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.language-button.active {
    color: var(--white);
    background: var(--deep-blue);
}

/* =========================
   Main page
========================= */

.page-content {
    display: grid;
    gap: 24px;
}

.hero {
    max-width: 720px;
    margin: 18px auto 4px;
    text-align: center;
}

.hero-label-spacer {
    height: 38px;
}

.hero h1 {
    margin: 0;
    color: var(--deep-blue);
    font-size: clamp(2rem, 5vw, 3.4rem);
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    margin: 14px auto 0;
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =========================
   Chat panel
========================= */

.chat-panel {
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 0.58);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(37, 117, 182, 0.11);
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(180, 180, 180, 0.4);
}

.chat-panel-header h2 {
    margin: 0;
    color: var(--dark-text);
    font-size: 1.25rem;
}

.chat-messages {
    min-height: 370px;
    max-height: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    padding: 24px;
    scroll-behavior: smooth;
}

.message {
    max-width: min(760px, 86%);
    display: flex;
    flex-direction: column;
}

.assistant-message {
    align-self: auto;
    margin-left: 0;
    margin-right: auto;
}

.user-message {
    align-self: auto;
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .assistant-message {
    align-self: auto;
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .user-message {
    align-self: auto;
    margin-left: auto;
    margin-right: 0;
}

.message-bubble {
    padding: 14px 16px;
    border-radius: 16px;
    line-height: 1.65;
    direction: inherit;
    unicode-bidi: plaintext;
}

.message[dir="ltr"] .message-bubble {
    text-align: left;
}

.message[dir="rtl"] .message-bubble {
    text-align: right;
}

.message-bubble.lang-en {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.message-bubble.lang-en p,
.message-bubble.lang-en ul,
.message-bubble.lang-en ol,
.message-bubble.lang-en li {
    text-align: left;
}

.message-bubble.lang-en ul,
.message-bubble.lang-en ol {
    padding-left: 1.25rem;
    padding-right: 0;
}

.assistant-message .message-bubble {
    border: 1px solid rgba(180, 180, 180, 0.5);
    background: var(--white);
}

.user-message .message-bubble {
    color: var(--white);
    background-color: var(--button-color, var(--deep-blue));
    background-image: none;
}

.user-message .message-bubble a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.message-bubble p {
    margin: 0;
    white-space: pre-wrap;
}

.disclaimer-message .message-bubble {
    border-color: rgba(238, 64, 55, 0.35);
    color: #9f2f2a;
    background: rgba(238, 64, 55, 0.08);
}

/* Source cards are intentionally hidden from client users */
.sources,
.sources-label,
.source-card {
    display: none !important;
}

/* =========================
   Streaming state
========================= */

.streaming-message .message-bubble {
    min-width: 170px;
}

.stream-status {
    color: var(--text-gray);
    font-style: italic;
}

.streaming-cursor {
    display: inline-block;
    margin-left: 3px;
    color: var(--primary-blue);
    animation: streaming-cursor-blink 0.85s infinite;
}

[dir="rtl"] .streaming-cursor {
    margin-left: 0;
    margin-right: 3px;
}

@keyframes streaming-cursor-blink {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

/* =========================
   Pilot pre-chat lead gate
========================= */

.prechat-lead-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 32px);
    overflow-y: auto;
    background: rgba(15, 30, 42, 0.46);
    backdrop-filter: blur(5px) saturate(110%);
}

.prechat-lead-overlay[hidden] {
    display: none;
}

.prechat-lead-card {
    width: min(100%, 424px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: clamp(22px, 5vw, 30px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 30, 42, 0.28);
}

.prechat-lead-header {
    margin-bottom: clamp(18px, 4vw, 24px);
    text-align: center;
}

.prechat-lead-logo {
    display: block;
    width: min(180px, 62%);
    max-height: 74px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.prechat-lead-header h2 {
    margin: 0 0 8px;
    color: var(--dark-text);
    font-size: clamp(1.3rem, 5vw, 1.55rem);
    line-height: 1.2;
}

.prechat-lead-header p,
.prechat-lead-privacy,
.prechat-lead-status {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.5;
}

.prechat-language-switcher {
    justify-content: center;
    margin-top: 14px;
}

.prechat-lead-field {
    display: grid;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 700;
}

.prechat-lead-field input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(180, 180, 180, 0.72);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--dark-text);
    background: var(--white);
    font: inherit;
    font-weight: 500;
    outline: none;
    transition: 0.2s ease;
}

.prechat-lead-field input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(71, 198, 243, 0.2);
}

.prechat-lead-error {
    color: #a8322b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.prechat-consent-field {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 8px;
    color: var(--dark-text);
    font-size: 0.83rem;
    font-weight: 650;
    line-height: 1.45;
}

.prechat-consent-field input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--button-color);
}

.prechat-consent-error {
    display: block;
    margin: 0 0 12px 32px;
}

[dir="rtl"] .prechat-consent-error {
    margin-left: 0;
    margin-right: 32px;
}

.prechat-notice-intro {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 14px;
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.55;
}

.prechat-notice-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(37, 117, 182, 0.34);
    border-radius: 50%;
    color: var(--deep-blue);
    background: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

.prechat-notice-info:hover,
.prechat-notice-info:focus-visible {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(71, 198, 243, 0.16);
}

.prechat-notice-actions {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
}

.prechat-notice-button {
    min-height: 46px;
    border: 1px solid rgba(37, 117, 182, 0.32);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--deep-blue);
    background: #ffffff;
    font-weight: 800;
    line-height: 1.25;
    text-align: start;
}

.prechat-notice-button:hover,
.prechat-notice-button:focus-visible {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(71, 198, 243, 0.16);
}

.notice-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 30, 42, 0.55);
}

.notice-dialog-backdrop[hidden] {
    display: none;
}

.notice-dialog {
    width: min(100%, 520px);
    max-height: calc(100dvh - 32px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 0.55);
    border-radius: 8px;
    color: var(--dark-text);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 30, 42, 0.28);
}

.notice-dialog-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(180, 180, 180, 0.42);
    padding: 16px;
}

.notice-dialog-header h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.notice-dialog-close {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border: 1px solid rgba(180, 180, 180, 0.55);
    border-radius: 50%;
    color: var(--dark-text);
    background: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
}

.notice-dialog-body {
    overflow-y: auto;
    padding: 16px;
}

.notice-dialog-body p {
    margin: 0 0 12px;
    font-size: 0.94rem;
    line-height: 1.6;
}

html.notice-dialog-open,
html.notice-dialog-open body {
    overflow: hidden;
}

.prechat-lead-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: none;
    border-radius: 12px;
    color: var(--white);
    background: var(--button-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.prechat-lead-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(21, 58, 92, 0.18);
}

.prechat-lead-submit:disabled {
    cursor: not-allowed;
    color: rgba(75, 85, 99, 0.78);
    background: #e4e7eb;
    opacity: 1;
}

.prechat-lead-privacy {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
}

.prechat-lead-status {
    min-height: 20px;
    margin-top: 10px;
    text-align: center;
    font-size: 0.82rem;
}

html.prechat-lead-locked,
html.prechat-lead-locked body {
    overflow: hidden;
}

html.prechat-lead-locked .app-shell {
    pointer-events: none;
    user-select: none;
}

@media (max-width: 430px) {
    .prechat-lead-overlay {
        align-items: center;
        padding: 14px;
    }

    .prechat-lead-card {
        border-radius: 14px;
    }

    .prechat-lead-logo {
        width: min(160px, 68%);
        max-height: 64px;
        margin-bottom: 14px;
    }

    .prechat-lead-header p,
    .prechat-lead-privacy,
    .prechat-lead-status {
        font-size: 0.86rem;
    }
}

@media (max-height: 620px) {
    .prechat-lead-overlay {
        align-items: start;
    }
}

/* =========================
   Suggestions
========================= */

.suggestions-wrapper {
    padding: 0 24px 18px;
}

.suggestions-label {
    margin: 0 0 10px;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 700;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-button {
    border: 1px solid rgba(71, 198, 243, 0.42);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--deep-blue);
    background: rgba(235, 250, 255, 0.8);
    font-size: 0.82rem;
    transition: 0.2s ease;
}

.suggestion-button.has-starter-phone-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.starter-phone-icon {
    flex: 0 0 auto;
    color: inherit;
    font-size: 0.95em;
    line-height: 1;
}

.suggestion-button:hover {
    transform: translateY(-1px);
    border-color: var(--primary-blue);
    background: rgba(71, 198, 243, 0.16);
}

.suggestion-button:disabled {
    cursor: not-allowed;
    transform: none;
    opacity: 0.58;
}

.suggestion-button.is-loading {
    opacity: 0.72;
}

.callback-action,
.callback-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.callback-action-button,
.callback-confirm-button,
.callback-cancel-button {
    min-height: 42px;
    border: 0;
    border-radius: 7px;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.callback-action-button,
.callback-confirm-button {
    background: var(--button-color, var(--deep-blue));
    color: #fff;
}

.callback-cancel-button {
    background: rgba(15, 23, 42, 0.08);
    color: var(--text-color, #172033);
}

.callback-action-button:disabled,
.callback-confirm-button:disabled,
.callback-cancel-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.callback-confirmation-title {
    display: block;
    margin-bottom: 0.4rem;
}

/* =========================
   Composer
========================= */

.chat-composer {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(180, 180, 180, 0.4);
}

.chat-composer textarea {
    min-height: 52px;
    max-height: 135px;
    flex: 1;
    resize: none;
    outline: none;
    border: 1px solid rgba(180, 180, 180, 0.72);
    border-radius: 14px;
    padding: 14px;
    color: var(--dark-text);
    background: var(--white);
    line-height: 1.45;
    transition: 0.2s ease;
}

.chat-composer textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(71, 198, 243, 0.16);
}

.chat-composer button {
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 14px;
    padding: 15px 16px;
    color: var(--white);
    background: var(--deep-blue);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: 0.2s ease;
}

.chat-composer button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #1e639c;
}

.chat-composer button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.chat-composer .voice-mode-button {
    min-width: 52px;
    width: 52px;
    max-width: 52px;
    min-height: 52px;
    height: 52px;
    flex: 0 0 52px;
    align-self: flex-end;
    padding: 0;
    border: 1px solid rgba(20, 35, 42, 0.16);
    border-radius: 999px;
    color: var(--white);
    background: var(--dark-text);
    box-shadow: 0 5px 14px rgba(20, 35, 42, 0.18);
    -webkit-appearance: none;
    appearance: none;
}

.chat-composer .voice-mode-button:hover:not(:disabled) {
    background: #000000;
    box-shadow: 0 7px 18px rgba(20, 35, 42, 0.24);
}

.chat-composer .voice-mode-button:focus-visible {
    outline: 3px solid rgba(71, 198, 243, 0.42);
    outline-offset: 3px;
}

.voice-mode-button svg {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================
   Realtime voice mode
========================= */

.voice-mode-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 18px;
    background:
        radial-gradient(circle at 50% 35%, rgba(71, 198, 243, 0.18), transparent 36%),
        rgba(8, 18, 24, 0.76);
    backdrop-filter: blur(12px) saturate(120%);
}

.voice-mode-overlay[hidden] {
    display: none !important;
}

.voice-mode-card {
    width: min(520px, 100%);
    min-height: min(640px, calc(100dvh - 36px));
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    padding: 26px;
    color: var(--dark-text);
    background: rgba(247, 252, 254, 0.96);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.voice-mode-header {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.voice-mode-eyebrow {
    margin: 0 0 5px;
    color: var(--deep-blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voice-mode-header h2 {
    margin: 0;
    font-size: clamp(1.2rem, 4vw, 1.55rem);
}

.voice-mode-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(20, 35, 42, 0.12);
    border-radius: 50%;
    color: var(--dark-text);
    background: rgba(255, 255, 255, 0.84);
    font-size: 1.6rem;
    line-height: 1;
}

.voice-mode-orb {
    width: 194px;
    height: 194px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: auto 0 30px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, #ffffff 0 8%, transparent 30%),
        linear-gradient(145deg, var(--primary-blue), var(--deep-blue) 58%, #173e65);
    box-shadow:
        0 22px 55px rgba(37, 117, 182, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.66);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voice-mode-orb span {
    width: 7px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    animation: voice-wave 1.15s ease-in-out infinite;
    animation-play-state: paused;
}

.voice-mode-orb span:nth-child(2),
.voice-mode-orb span:nth-child(4) {
    animation-delay: -0.2s;
}

.voice-mode-orb span:nth-child(3) {
    animation-delay: -0.4s;
}

.voice-mode-orb.is-listening span,
.voice-mode-orb.is-speaking span {
    animation-play-state: running;
}

.voice-mode-orb.is-speaking {
    transform: scale(1.045);
    box-shadow:
        0 28px 75px rgba(37, 117, 182, 0.42),
        0 0 0 14px rgba(71, 198, 243, 0.1);
}

.voice-mode-orb.is-thinking span {
    height: 10px;
    opacity: 0.72;
}

@keyframes voice-wave {
    0%, 100% { transform: scaleY(0.45); }
    50% { transform: scaleY(1.55); }
}

.voice-mode-status {
    min-height: 1.6em;
    margin: 0;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 800;
}

.voice-mode-transcript {
    min-height: 3.2em;
    max-width: 430px;
    margin: 12px 0 28px;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.6;
    unicode-bidi: plaintext;
}

.voice-mode-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

.voice-control-button {
    min-width: 112px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(20, 35, 42, 0.14);
    border-radius: 999px;
    padding: 0 18px;
    color: var(--dark-text);
    background: var(--white);
    font-weight: 800;
}

.voice-control-button[aria-pressed="true"] {
    color: var(--white);
    background: var(--dark-text);
}

.voice-end-button {
    color: var(--white);
    border-color: #d72f29;
    background: var(--accent-red);
}

html.voice-mode-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .voice-mode-orb span {
        animation: none;
    }
}

/* =========================
   Footer and RTL
========================= */

.footer-note {
    margin: 0;
    color: var(--text-gray);
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

[dir="rtl"] .hero,
[dir="rtl"] .chat-panel-header {
    text-align: right;
}

[dir="rtl"] .footer-note {
    text-align: center;
    unicode-bidi: plaintext;
}

[dir="rtl"] .hero {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

[dir="rtl"] .chat-composer textarea {
    text-align: right;
}

.media-image-status {
    display: grid;
    min-height: 96px;
    place-items: center;
    margin-top: 10px;
    color: #5f6368;
    font-size: 0.85rem;
    background: #f3f4f4;
    border: 1px solid #dfe2e2;
    border-radius: 8px;
}

/* =========================
   Mobile
========================= */

@media (max-width: 700px) {
    .app-shell {
        width: min(100% - 20px, 1120px);
    }

    .topbar {
        min-height: 84px;
        gap: 10px;
    }

    .brand-logo {
        width: 126px;
    }

    .topbar-actions {
        gap: 6px;
    }

    .new-chat-button {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .language-switcher {
        gap: 2px;
        padding: 3px;
    }

    .language-button {
        padding: 7px 9px;
        font-size: 0.76rem;
    }

    .chat-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-composer {
        gap: 8px;
        padding-inline: 14px;
    }

    .chat-composer .voice-mode-button {
        min-width: 48px;
        width: 48px;
        max-width: 48px;
        min-height: 48px;
        height: 48px;
        flex-basis: 48px;
        padding: 0;
    }

    .voice-mode-card {
        min-height: calc(100dvh - 24px);
        border-radius: 26px;
        padding: 22px 18px;
    }

    .voice-mode-orb {
        width: 164px;
        height: 164px;
    }

    .chat-messages {
        min-height: 360px;
        padding: 18px;
    }

    .message {
        max-width: 94%;
    }

    .suggestions-wrapper,
    .chat-composer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .chat-composer button {
        min-width: 96px;
        padding: 15px 14px;
    }
    .followup-block {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(102, 102, 102, 0.18);
}

    .followup-label {
        margin: 0 0 10px;
        font-size: 0.85rem;
        font-weight: 700;
        color: #666666;
    }

    .followup-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .followup-button {
        width: fit-content;
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 360px) {
    .topbar {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .brand {
        margin-right: auto;
    }

    .brand-logo {
        width: 116px;
    }

    .topbar-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
        max-width: 100%;
    }
}

.embed-chat-body {
    min-height: 100vh;
    background: var(--light-background);
    overflow: hidden;
}

.embed-chat-shell {
    min-height: 100vh;
}

.embed-chat-shell .topbar,
.embed-chat-shell .hero,
.embed-chat-shell .footer-note {
    display: none;
}

.embed-chat-shell .page-content {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

.embed-chat-shell .chat-panel {
    min-height: 100vh;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.embed-chat-shell .chat-panel-header {
    padding: 14px 16px;
}

.embed-chat-shell .chat-messages {
    min-height: 0;
    flex: 1 1 auto;
}
