:root {
    --app-vh: 100vh;
    --ai-font-scale: 1;
    --safety-primary: #6C7EBE;
    --safety-dark: #111827;
    --safety-secondary: #4F5F9D;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: "Pretendard", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    background: #fff;
}

body {
    overflow-x: hidden;
}

.demo-image-page {
    background: #fff;
}

.demo-image-main {
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

.demo-image-section {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.demo-image-section img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.composer textarea,
.feedback textarea,
.panel textarea {
    width: 100%;
    border: 1px solid #d7dde5;
    border-radius: 16px;
    background: #fff;
    color: #111827;
    line-height: 1.6;
    padding: 14px 16px;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.composer textarea {
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.composer textarea::placeholder,
.feedback textarea::placeholder,
.panel textarea::placeholder {
    color: #8b96a8;
}

.composer textarea:focus,
.feedback textarea:focus,
.panel textarea:focus {
    outline: none;
}

.feedback textarea:focus,
.panel textarea:focus {
    border-color: #c2d2ea;
    box-shadow: 0 0 0 3px rgba(23, 59, 136, 0.10);
}

.panel textarea[readonly],
.feedback textarea[readonly] {
    background: #f8fafc;
    color: #435160;
    resize: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.ai-navigator {
    position: fixed;
    z-index: 80;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    touch-action: none;
    user-select: none;
}

.ai-navigator.is-positioned {
    right: auto;
    bottom: auto;
    transform: none;
}

.ai-navigator.is-dragging {
    z-index: 120;
}

.ai-nav-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    height: 58px;
    padding: 6px;
    border: 2px solid #6C7EBE;
    border-radius: 999px;
    background: #fff;
    color: #6C7EBE;
    box-shadow: 0 18px 38px rgba(108, 126, 190, 0.24);
    backdrop-filter: blur(14px);
    overflow: visible;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    isolation: isolate;
    cursor: grab;
}

.ai-navigator.is-dragging .ai-nav-button {
    cursor: grabbing;
    transform: scale(0.98);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.38);
}

.ai-nav-button:hover,
.ai-nav-button:focus-visible {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 24px 50px rgba(108, 126, 190, 0.32);
}

.ai-nav-button::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(108, 126, 190, 0.18);
    pointer-events: none;
}

.ai-nav-orbit {
    position: absolute;
    left: 7px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(108, 126, 190, 0.12);
    animation: aiPulse 2.4s ease-in-out infinite;
}

.ai-nav-icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #6C7EBE;
    border: 1px solid rgba(108, 126, 190, 0.28);
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0;
    box-shadow: none;
}

.ai-nav-text {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: max-content;
    max-width: min(280px, calc(100vw - 120px));
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.94);
    color: #fff;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-50%) translateX(6px);
    pointer-events: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
    transition: opacity 0.16s ease, transform 0.2s ease;
}

.ai-navigator.is-right-side .ai-nav-text,
.ai-navigator:not(.is-left-side) .ai-nav-text {
    right: 66px;
}

.ai-navigator.is-left-side .ai-nav-text {
    left: 66px;
    right: auto;
    transform: translateY(-50%) translateX(-6px);
}

.ai-nav-button:hover .ai-nav-text,
.ai-nav-button:focus-visible .ai-nav-text {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@keyframes aiPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.18);
        opacity: 0.28;
    }
}

.ai-chat-panel {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(2px);
}

.ai-chat-panel.is-open {
    display: flex;
}

.ai-chat-window {
    position: relative;
    width: min(540px, 100vw);
    height: 100%;
    background: #f5f7fb;
    box-shadow: -30px 0 80px rgba(15, 23, 42, 0.24);
    display: flex;
    flex-direction: column;
    animation: panelIn 0.28s ease both;
}

@keyframes panelIn {
    from {
        transform: translateX(40px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ai-chat-header {
    min-height: 76px;
    padding: 16px 18px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
}

.ai-chat-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

.ai-chat-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.ai-chat-brand span:not(.ai-avatar) {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #6b7280;
}

.ai-avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(15,23,42,0.08);
}

.ai-avatar.small {
    width: 40px;
    height: 40px;
}

.ai-avatar.intro {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
}

.ai-avatar.message-icon {
    width: 36px;
    height: 36px;
    margin-top: 2px;
    background: #fff;
    border-color: #6C7EBE;
    box-shadow: 0 6px 16px rgba(108, 126, 190, 0.18);
}

.ai-avatar img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.ai-chat-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    width: 100%;
    flex-wrap: nowrap;
}

.ai-chat-tools .chat-tts-toggle {
    width: 36px;
    min-width: 36px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #cfd6e5;
    border-radius: 10px;
    background: #ffffff;
    color: #4b5563;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.ai-chat-tools .chat-tts-toggle.is-on {
    border-color: #5667a8;
    background: #6C7EBE;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(108, 126, 190, 0.18);
}

.ai-chat-tools .chat-tts-toggle.is-off {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #6b7280;
    box-shadow: none;
}

.ai-chat-tools .chat-tts-toggle:hover,
.ai-chat-tools .chat-tts-toggle:focus-visible {
    border-color: #5667a8;
    background: #eef1ff;
    color: #34437a;
    outline: none;
}

.ai-chat-tools .chat-tts-toggle.is-on:hover,
.ai-chat-tools .chat-tts-toggle.is-on:focus-visible {
    background: #5667a8;
    color: #fff;
}

.chat-tts-toggle,
.font-slider-control,
.ai-chat-tools button {
    flex: 0 0 auto;
}

.chat-tts-toggle {
    order: 0;
}

.font-slider-control {
    order: 1;
}

.ai-chat-tools button {
    order: 2;
}

.ai-chat-tools button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.ai-chat-tools button:hover {
    background: var(--safety-primary);
}

#chatRefreshButton:hover,
#chatRefreshButton:focus {
    background: #e5e7eb;
    color: #111827;
}

#chatRefreshButton:focus {
    outline: none;
}

#chatRefreshButton:focus-visible {
    outline: 2px solid rgba(108, 126, 190, 0.42);
    outline-offset: 2px;
}

#chatRefreshButton:active {
    background: #d8dee8;
    transform: translateY(1px);
}

.chat-tts-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.font-slider-control {
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #374151;
}

.font-slider-small {
    font-size: 11px;
    font-weight: 800;
}

.font-slider-large {
    font-size: 17px;
    font-weight: 900;
}

.font-slider-control input {
    width: 72px;
    accent-color: var(--safety-primary);
}

.notice-popup {
    position: absolute;
    z-index: 3;
    top: 82px;
    left: 16px;
    right: 16px;
}

.notice-card {
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #f1d567;
    box-shadow: 0 18px 50px rgba(15,23,42,0.18);
}

.notice-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notice-title button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: #f3f4f6;
}

.notice-card p {
    margin: 12px 0 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
}

.ai-chat-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.view {
    flex: 1;
    min-height: 0;
}

.home-view {
    display: none;
    padding: 40px 22px 24px;
    overflow-y: auto;
}

.home-view.is-active {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chat-view {
    display: none;
    min-height: 0;
}

.chat-view.is-active {
    display: flex;
    flex-direction: column;
}

.hero-copy {
    text-align: center;
    margin-bottom: 24px;
}

.hero-copy h1 {
    margin: 0;
    font-size: calc(30px * var(--ai-font-scale));
    letter-spacing: -0.06em;
}

.hero-copy .subtitle {
    margin: 12px 0 0;
    color: #6b7280;
    line-height: 1.55;
    font-size: calc(15px * var(--ai-font-scale));
}

.composer {
    position: relative;
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 24px;
    padding: 14px 104px 14px 16px;
    box-shadow: 0 14px 30px rgba(15,23,42,0.08);
}

.composer-chat {
    padding-right: 150px;
}

.composer-image-pending {
    width: calc(100% + 134px);
    max-width: calc(100vw - 76px);
    margin: 0 0 10px;
    padding: 8px 42px 8px 8px;
    border: 1px solid rgba(108, 126, 190, 0.26);
    border-radius: 12px;
    background: #f7f8fc;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    position: relative;
}

.composer-image-pending[hidden] {
    display: none;
}

.composer-image-pending img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    background: #fff;
}

.composer-image-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.composer-image-info strong {
    color: #111827;
    font-size: calc(13px * var(--ai-font-scale));
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.composer-image-info span {
    color: #6b7280;
    font-size: calc(12px * var(--ai-font-scale));
    line-height: 1.35;
}

.composer-image-pending button {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #e5e7eb;
    color: #374151;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}

.composer-image-pending button:hover {
    background: #dbe1f4;
    color: #4F5F9D;
}

.composer textarea {
    width: 100%;
    min-height: 32px;
    max-height: 160px;
    resize: none;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: calc(15px * var(--ai-font-scale));
    line-height: 1.5;
}

.composer-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary,
.image-button,
.voice-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.btn-primary {
    background: var(--safety-primary);
}

.image-button,
.voice-button {
    color: #4F5F9D;
    background: #eef1ff;
    border: 1px solid rgba(108, 126, 190, 0.24);
}

.image-button:hover,
.voice-button:hover {
    background: #e3e8ff;
}

.voice-button.is-listening {
    color: #fff;
    background: #4F5F9D;
    box-shadow: 0 0 0 4px rgba(108, 126, 190, 0.18);
}

.voice-button[hidden] {
    display: none;
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: default;
}

.image-choice-menu {
    position: absolute;
    right: 46px;
    bottom: 46px;
    width: 132px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    z-index: 5;
}

.image-choice-menu[hidden] {
    display: none;
}

.image-choice-menu button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #111827;
    border-radius: 6px;
    padding: 9px 10px;
    font-size: calc(13px * var(--ai-font-scale));
    font-weight: 700;
    text-align: left;
}

.image-choice-menu button:hover {
    background: #eef1ff;
    color: #4F5F9D;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: calc(13px * var(--ai-font-scale));
}

.chip:hover {
    border-color: var(--safety-primary);
    background: #fff8cc;
}

.message-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    animation: messageIn 0.18s ease both;
}

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

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message.assistant[data-feedback="like"] .bubble {
    border-color: #d7ad00;
    box-shadow: 0 0 0 2px rgba(255, 210, 0, 0.18), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message.assistant[data-feedback="dislike"] .bubble {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12), 0 10px 20px rgba(15, 23, 42, 0.07);
}

.message-content {
    max-width: 78%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.message.user .message-content {
    max-width: 80%;
    align-items: flex-end;
}

.bubble {
    padding: 13px 15px;
    border-radius: 18px;
    line-height: 1.55;
    word-break: keep-all;
    overflow-wrap: anywhere;
    font-size: calc(15px * var(--ai-font-scale));
}

.message.user .bubble {
    background: var(--safety-primary);
    color: #111827;
    border-bottom-right-radius: 6px;
}

.message.assistant .bubble {
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
    box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.message-image-preview {
    width: min(240px, 100%);
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 8px;
}

.message-image-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(17, 24, 39, 0.12);
    background: #ffffff;
}

.message-image-label {
    color: #111827;
    font-size: calc(13px * var(--ai-font-scale));
    font-weight: 800;
    line-height: 1.35;
    word-break: break-all;
}

.answer-sources {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #536171;
    font-size: calc(13px * var(--ai-font-scale));
    line-height: 1.5;
}

.answer-sources-title {
    font-weight: 700;
    color: #334155;
}

.answer-sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.answer-sources-item {
    max-width: 100%;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(108, 126, 190, 0.34);
    border-radius: 8px;
    background: #f7f8fc;
    color: #34437a;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    word-break: break-word;
}

.answer-sources-item:hover,
.answer-sources-item:focus-visible {
    background: #eef1fb;
    border-color: rgba(108, 126, 190, 0.62);
    color: #24315f;
    text-decoration: none;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    margin-left: 2px;
}

.message-actions button {
    min-width: 30px;
    height: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    font-size: 12px;
}

.message-actions .message-action-button {
    width: 30px;
    min-width: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .tts-button {
    width: 30px;
    min-width: 30px;
    padding: 0;
}

.message-actions .message-action-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .message-action-button.is-playing {
    color: #fff;
    background: #6C7EBE;
    border-color: #5667a8;
    box-shadow: 0 0 0 3px rgba(108, 126, 190, 0.18), 0 8px 18px rgba(15, 23, 42, 0.14);
}

.message-actions .message-action-button.is-shared {
    color: #111827;
    background: #fff7cc;
    border-color: #d7ad00;
}

.message-actions .copy-button {
    width: 34px;
    min-width: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.message-actions .copy-button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.message-actions .copy-button.is-copied {
    color: #111827;
    background: var(--safety-primary);
    border-color: #d7ad00;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.22), 0 8px 18px rgba(15, 23, 42, 0.14);
}

.message-actions button:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.message-actions .feedback-button {
    width: 34px;
    min-width: 34px;
    height: 30px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.message-actions .feedback-button:hover {
    transform: translateY(-1px);
}

.message-actions .feedback-button.is-active {
    color: #111827;
    background: var(--safety-primary);
    border-color: #d7ad00;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.28), 0 8px 18px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.message-actions .dislike-button.is-active {
    color: #fff;
    background: #ef4444;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18), 0 8px 18px rgba(15, 23, 42, 0.16);
}

.message-actions .feedback-button.is-active span {
    transform: scale(1.08);
}

.message-actions .feedback-button:not(.is-active) {
    opacity: 0.72;
}

.message-actions .feedback-button:not(.is-active):hover {
    opacity: 1;
}

.typing-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
}

.typing-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--safety-primary);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

.typing-text {
    font-size: calc(14px * var(--ai-font-scale));
    font-weight: 600;
}

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

.composer-chat {
    margin: 0 16px 16px;
    width: calc(100% - 32px);
}

@media (max-width: 900px) {
    .ai-navigator {
        right: 16px;
        bottom: 18px;
        top: auto;
        transform: none;
    }

    .ai-navigator.is-positioned {
        right: auto;
        bottom: auto;
    }

    .ai-nav-button {
        min-width: 64px;
        width: 64px;
        height: 64px;
        padding: 9px;
        border-radius: 50%;
    }

    .ai-nav-button:hover,
    .ai-nav-button:focus-visible {
        width: 64px;
        transform: translateY(-3px);
    }

    .ai-nav-text {
        display: none;
    }

    .ai-nav-icon {
        width: 46px;
        height: 46px;
    }

    .ai-chat-window {
        width: 100vw;
    }

    .ai-chat-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px;
    }

    .font-slider-control {
        order: 1;
        min-width: 0;
    }

    .ai-chat-tools button {
        order: 2;
    }

}
