/*
 * FuuVo Chat Engineering visual layer
 *
 * This stylesheet is intentionally scoped to the conversation view. The
 * landing/home composer, shell navigation, shared header/footer and feature
 * pages keep their existing bundles and are not affected by these rules.
 * The DOM and event hooks remain the production ones; this file only paints
 * the compact chat surface from the engineering handoff.
 */

html body[data-fuuvo-chat-design="1"] {
    --fuuvo-chat-page-bg: #f7f9fc;
    --fuuvo-chat-surface: #ffffff;
    --fuuvo-chat-surface-soft: #f4f7fb;
    --fuuvo-chat-border: rgba(148, 163, 184, .24);
    --fuuvo-chat-border-strong: rgba(99, 116, 151, .38);
    --fuuvo-chat-ink: #1f2937;
    --fuuvo-chat-muted: #748095;
    --fuuvo-chat-brand: #307a80;
    --fuuvo-chat-brand-soft: #edf6f5;
    --fuuvo-chat-focus: rgba(94, 117, 211, .32);
    background: var(--fuuvo-chat-page-bg) !important;
    color: var(--fuuvo-chat-ink);
}

html body[data-fuuvo-chat-design="1"] .workspace {
    background:
        radial-gradient(ellipse at 12% -12%, rgba(155, 204, 224, .12), transparent 45%),
        radial-gradient(ellipse at 88% -16%, rgba(178, 157, 229, .12), transparent 48%),
        var(--fuuvo-chat-page-bg) !important;
}

html body[data-fuuvo-chat-design="1"] .workspace > .stage {
    scrollbar-gutter: stable both-edges;
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 137, 165, .42) transparent;
}

html body[data-fuuvo-chat-design="1"] .workspace > .stage::-webkit-scrollbar {
    width: 8px;
}

html body[data-fuuvo-chat-design="1"] .workspace > .stage::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    background-color: rgba(122, 137, 165, .42);
}

html body[data-fuuvo-chat-design="1"] #chat-area {
    color: var(--fuuvo-chat-ink);
}

html body[data-fuuvo-chat-design="1"] .chat-thread {
    gap: 18px !important;
}

html body[data-fuuvo-chat-design="1"] .chat-bubble {
    min-width: 0;
    font-synthesis: none;
}

/* User messages use a quiet surface while the assistant stays open on the
 * page. The nested content node is kept intact for edit/upload handlers. */
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble.user:not(.is-editing) {
    max-width: min(78%, 720px) !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble.user > .chat-user-content {
    padding: 11px 16px !important;
    border: 1px solid rgba(139, 157, 190, .26) !important;
    border-radius: 18px 18px 6px 18px !important;
    background: #f2f5fb !important;
    color: #273449 !important;
    line-height: 1.65;
    box-shadow: 0 5px 18px rgba(65, 84, 122, .06);
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble.user > .bubble-actions:not(:empty) {
    margin-top: 4px !important;
    min-height: 32px !important;
}

/* Assistant identity and response body. */
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fuuvo-chat-ink) !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-assistant-identity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 28px;
    margin: 0 0 8px !important;
    color: var(--fuuvo-chat-ink) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    letter-spacing: -.01em;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-assistant-mark {
    display: inline-grid !important;
    place-items: center !important;
    width: 25px !important;
    height: 25px !important;
    flex: 0 0 25px !important;
    border: 1px solid rgba(137, 161, 220, .42) !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, rgba(209, 226, 255, .9), rgba(241, 221, 253, .84)) !important;
    color: #5b70c1 !important;
    box-shadow: 0 0 16px rgba(121, 137, 226, .22) !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-assistant-mark svg {
    width: 17px !important;
    height: 17px !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) .chat-markdown,
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) .chat-plain {
    max-width: 100%;
    color: inherit !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    overflow-wrap: anywhere;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) .chat-markdown > :first-child {
    margin-top: 0 !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) .chat-markdown > :last-child {
    margin-bottom: 0 !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system) .chat-markdown :is(p, ul, ol, blockquote, pre, table) {
    margin-block: 10px !important;
}

/* Pending and streaming states remain real runtime states; the CSS does not
 * inject a sample answer or a timer. */
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system).is-pending {
    width: fit-content !important;
    max-width: min(100%, 390px) !important;
    padding: 11px 14px !important;
    border: 1px solid rgba(142, 157, 191, .26) !important;
    border-radius: 15px !important;
    background: var(--fuuvo-chat-surface-soft) !important;
    color: var(--fuuvo-chat-muted) !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-bubble:is(.assistant, .system).is-streaming .chat-assistant-identity {
    color: var(--fuuvo-chat-brand) !important;
}

/* Answer actions are always present for touch users and remain outside the
 * body text so long replies cannot be covered by them. */
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-answer-actions:not(:empty) {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    min-height: 36px !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-answer-actions > :is(button, a) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 7px !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #8490a5 !important;
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-answer-actions > :is(button, a):is(:hover, :focus-visible) {
    border-color: rgba(101, 125, 203, .24) !important;
    background: var(--fuuvo-chat-brand-soft) !important;
    color: var(--fuuvo-chat-brand) !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-answer-actions > :is(button, a) svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px !important;
}

/* Generated images and videos use one predictable preview geometry. */
html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-message-media {
    margin-top: 16px !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-card {
    width: min(100%, 426px) !important;
    overflow: hidden !important;
    border: 1px solid var(--fuuvo-chat-border) !important;
    border-radius: 17px !important;
    background: var(--fuuvo-chat-surface) !important;
    box-shadow: 0 9px 30px rgba(51, 67, 100, .08) !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-thumb {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important;
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    background: #eef2f7 !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-thumb :is(img, video) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background: #eef2f7 !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-body {
    padding: 10px 12px 12px !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin-top: 7px !important;
}

html body[data-fuuvo-chat-design="1"]
    #chat-area .chat-media-actions > :is(button, a) {
    min-height: 32px !important;
    border-radius: 9px !important;
}

/* Production composer: field specificity replaces legacy absolute rails. */
html body[data-fuuvo-chat-design="1"] {
    --fuuvo-chat-content:880px;
    --fuuvo-chat-mode-ink:#307a80;
    --fuuvo-chat-mode-soft:#edf6f5;
    --fuuvo-chat-mode-line:#bbd7d6;
    --fuuvo-chat-composer-fill:#fff;
    --fuuvo-chat-media-button-ink:#fff;
}
html body[data-fuuvo-chat-design="1"] .workspace .composer {
    min-height:0 !important;
    height:auto !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
}
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] .workspace #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field {
    width:100% !important;
    min-width:0 !important;
    max-width:var(--fuuvo-chat-content) !important;
    margin:0 auto !important;
    padding:0 !important;
    overflow:visible !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap {
    --fuuvo-desktop-text-min:42px !important;
    --fuuvo-chat-text-min:42px !important;
    --fuuvo-desktop-toolbar-height:33px !important;
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:0 !important;
    width:100% !important;
    height:auto !important;
    min-width:0 !important;
    min-height:0 !important;
    max-height:none !important;
    margin:0 !important;
    padding:11px 12px 9px !important;
    border:1px solid transparent !important;
    border-radius:24px !important;
    background:linear-gradient(var(--fuuvo-chat-composer-fill),var(--fuuvo-chat-composer-fill)) padding-box,linear-gradient(110deg,#71adc5ef,#a18ad7ef,#df8bb6ef,#e4ab80ef,#66b8adef) border-box !important;
    background-size:100% 100%,300% 300% !important;
    animation:fuuvo-chat-composer-border 13s ease-in-out infinite !important;
    box-shadow:0 0 12px #8c98de1f,0 3px 18px #64bdbb16,0 8px 32px #4566740a !important;
    box-sizing:border-box !important;
    backdrop-filter:none !important;
    overflow:visible !important;
    isolation:isolate !important;
    transition:box-shadow .25s ease !important;
}
}

/* The legacy surface needs !important background declarations. Animate a
 * registered value so those declarations cannot freeze the coloured edge. */
@property --fuuvo-chat-border-x {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}
@keyframes fuuvo-chat-composer-border {
    0%,100% { --fuuvo-chat-border-x: 0%; }
    50% { --fuuvo-chat-border-x: 100%; }
}
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap {
    background-position: 0 0,var(--fuuvo-chat-border-x,0%) 50% !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap:focus-within {
    box-shadow:0 0 14px #8c98de26,0 3px 20px #64bdbb1f,0 8px 36px #7088aa12,0 0 0 2px #b4ccd512 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap::before,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap::after {
    display:none !important;
    content:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field :is(.ai-chat-model-field,.fuuvo-mobile-current-chat-model,.chat-input-hint,#mobile-chat-more-btn) {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap > #chat-input {
    position:relative !important;
    inset:auto !important;
    order:2 !important;
    display:block !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-width:0 !important;
    height:var(--fuuvo-chat-text-height,var(--fuuvo-desktop-text-height,42px)) !important;
    min-height:42px !important;
    max-height:240px !important;
    margin:0 !important;
    padding:5px 8px 12px !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    outline:none !important;
    transform:none !important;
    resize:none !important;
    box-sizing:border-box !important;
    color:var(--fuuvo-chat-ink) !important;
    caret-color:var(--fuuvo-chat-mode-ink) !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:22px !important;
    letter-spacing:0 !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior:contain !important;
    scrollbar-width:thin !important;
    -webkit-text-fill-color:var(--fuuvo-chat-ink) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap > #chat-input::placeholder {
    color:#8d9ba8 !important;
    opacity:1 !important;
    -webkit-text-fill-color:#8d9ba8 !important;
}
}

html body[data-fuuvo-chat-design="1"] [data-chat-engineering-mode="image"] {
    --fuuvo-chat-mode-ink:#7d5fa3;
    --fuuvo-chat-mode-soft:#f3eef9;
    --fuuvo-chat-mode-line:#d8c9e8;
}
html body[data-fuuvo-chat-design="1"] [data-chat-engineering-mode="video"] {
    --fuuvo-chat-mode-ink:#a36449;
    --fuuvo-chat-mode-soft:#fcf1ea;
    --fuuvo-chat-mode-line:#e9cbbb;
}
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-modebar {
    position:relative !important;
    inset:auto !important;
    order:0 !important;
    display:flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:15px !important;
    min-width:0 !important;
    width:100% !important;
    margin:0 0 2px !important;
    padding:0 6px 9px !important;
    box-sizing:border-box !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs {
    display:inline-flex !important;
    align-items:center !important;
    flex:0 0 auto !important;
    gap:3px !important;
    padding:3px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:11px !important;
    background:var(--fuuvo-chat-surface-soft) !important;
    min-width:0 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs button {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;
    flex:0 0 auto !important;
    width:auto !important;
    height:29px !important;
    min-width:0 !important;
    min-height:29px !important;
    margin:0 !important;
    padding:0 12px !important;
    border:0 !important;
    border-radius:8px !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--fuuvo-chat-muted) !important;
    font:inherit !important;
    font-size:11px !important;
    font-weight:550 !important;
    white-space:nowrap !important;
    cursor:pointer !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs button:is(.is-selected,[aria-selected="true"]) {
    background:var(--fuuvo-chat-surface) !important;
    color:var(--fuuvo-chat-mode-ink) !important;
    box-shadow:0 1px 4px #31495a12 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs button:hover {
    color:var(--fuuvo-chat-mode-ink) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs svg {
    display:block !important;
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
    fill:none !important;
    stroke:currentColor !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-model {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    flex:0 1 auto !important;
    min-width:0 !important;
    max-width:58% !important;
    height:35px !important;
    min-height:35px !important;
    margin:0 !important;
    padding:0 10px !important;
    border:1px solid var(--fuuvo-chat-mode-line) !important;
    border-radius:10px !important;
    background:var(--fuuvo-chat-mode-soft) !important;
    color:var(--fuuvo-chat-mode-ink) !important;
    font:inherit !important;
    box-shadow:none !important;
    text-align:left !important;
    cursor:pointer !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-model[aria-expanded="true"] {
    box-shadow:0 0 0 3px var(--fuuvo-chat-mode-soft) !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model-copy {
    display:flex;
    align-items:center;
    flex:1;
    min-width:0;
    gap:8px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model-copy > span {
    font-size:9px;
    font-weight:450;
    color:inherit;
    opacity:.8;
    flex-shrink:0;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model-copy > strong {
    min-width:0;
    font-size:12px;
    font-weight:650;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model > svg {
    width:12px;
    height:12px;
    flex:0 0 12px;
}
@layer fuuvo-mobile-design {
/* Draft rows do not overlap the editable text. */
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-quote-bar:not(.hidden) {
    margin:0 0 10px !important;
    padding:10px 12px !important;
    border:1px solid var(--fuuvo-chat-border) !important;
    border-left:3px solid var(--fuuvo-chat-mode-line) !important;
    border-radius:12px !important;
    background:var(--fuuvo-chat-surface-soft) !important;
    color:var(--fuuvo-chat-ink) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap > .chat-attachment-bar:not(.hidden) {
    position:relative !important;
    inset:auto !important;
    order:1 !important;
    flex:0 0 auto !important;
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:112px !important;
    margin:0 0 5px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    scrollbar-width:thin !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-attachment-list {
    display:flex !important;
    gap:8px !important;
    padding:6px 8px 7px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-attachment-chip {
    width:64px !important;
    min-width:64px !important;
    max-width:64px !important;
    height:64px !important;
    min-height:64px !important;
    flex-basis:64px !important;
    background:var(--fuuvo-chat-surface-soft) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-attachment-chip :is(.chat-attachment-thumb,img,video,.chat-file-icon) {
    width:62px !important;
    height:62px !important;
    max-height:62px !important;
}
}

@layer fuuvo-mobile-design {
/* Lower tools retain all existing production event hooks. */
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap > .chat-input-tools {
    position:relative !important;
    inset:auto !important;
    order:3 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:6px !important;
    grid-template-columns:none !important;
    grid-template-rows:none !important;
    flex:0 0 auto !important;
    width:100% !important;
    height:auto !important;
    min-height:33px !important;
    max-height:none !important;
    min-width:0 !important;
    margin:4px 0 0 !important;
    padding:0 !important;
    background:transparent !important;
    transform:none !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    pointer-events:auto !important;
    z-index:4 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-tools > .ai-chat-mode-controls {
    position:static !important;
    inset:auto !important;
    display:flex !important;
    flex:1 1 auto !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:3px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:auto !important;
    min-height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    transform:none !important;
    overflow:visible !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field :is(.ai-chat-composer-toggles,.fuuvo-chat-engineering-media-tools) {
    position:static !important;
    display:flex !important;
    align-items:center !important;
    flex:0 1 auto !important;
    flex-wrap:nowrap !important;
    gap:3px !important;
    width:auto !important;
    min-width:0 !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    overflow:visible !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field :is(.ai-chat-composer-toggles,.fuuvo-chat-engineering-media-tools):is([hidden],.hidden,.is-hidden) {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-upload-entry {
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    flex:0 0 30px !important;
    align-items:center !important;
    width:30px !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-upload-btn {
    position:relative !important;
    inset:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    height:32px !important;
    min-height:32px !important;
    max-height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    border-radius:9px !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#72889c !important;
    transform:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-upload-btn svg {
    display:block !important;
    width:20px !important;
    height:20px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools .tool-chip {
    position:relative !important;
    inset:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    gap:6px !important;
    width:auto !important;
    min-width:0 !important;
    height:32px !important;
    min-height:32px !important;
    margin:0 !important;
    padding:0 9px !important;
    border:0 !important;
    border-radius:9px !important;
    background:transparent !important;
    box-shadow:none !important;
    color:var(--fuuvo-chat-muted) !important;
    font-size:12px !important;
    font-weight:400 !important;
    line-height:1.2 !important;
    white-space:nowrap !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle > span {
    display:inline !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle svg,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools svg {
    display:block !important;
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools select {
    width:auto !important;
    min-width:0 !important;
    max-width:112px !important;
    height:30px !important;
    padding:0 15px 0 0 !important;
    border:0 !important;
    border-radius:7px !important;
    background:transparent !important;
    color:var(--fuuvo-chat-muted) !important;
    font:inherit !important;
    font-size:11px !important;
    outline-offset:2px !important;
    cursor:pointer !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-media-tools select option {
    background:var(--fuuvo-chat-surface);
    color:var(--fuuvo-chat-ink);
}
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle:is(.is-active,[aria-pressed="true"]) {
    color:var(--fuuvo-chat-mode-ink) !important;
    background:var(--fuuvo-chat-mode-soft) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle:hover,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-upload-btn:hover {
    background:var(--fuuvo-chat-surface-soft) !important;
    color:var(--fuuvo-chat-mode-ink) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-action-group#chat-input-action-group {
    position:relative !important;
    inset:auto !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex:0 0 auto !important;
    gap:7px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    height:auto !important;
    margin:0 !important;
    padding:0 !important;
    transform:none !important;
    overflow:visible !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-action-group > :is(button,.home-composer-call) {
    position:relative !important;
    inset:auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 auto !important;
    margin:0 !important;
    padding:0 !important;
    min-height:32px !important;
    height:32px !important;
    max-height:33px !important;
    border-radius:9px !important;
    background:transparent !important;
    box-shadow:none !important;
    transform:none !important;
    color:var(--fuuvo-chat-muted) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-voice-btn {
    display:inline-flex !important;
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    border:0 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-voice-btn svg {
    display:block !important;
    width:16px !important;
    height:16px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-voice-btn .chat-voice-label {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn.home-composer-call {
    display:inline-flex !important;
    gap:5px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    padding:0 9px 0 6px !important;
    border:1px solid var(--fuuvo-chat-border) !important;
    border-radius:11px !important;
    background:var(--fuuvo-chat-surface-soft) !important;
    color:var(--fuuvo-chat-muted) !important;
    font-size:12px !important;
    font-weight:550 !important;
    white-space:nowrap !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn > :is(svg,img,[data-ai-call-mascot-host]) {
    display:block !important;
    width:24px !important;
    height:24px !important;
    flex:0 0 24px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn [data-ai-call-mascot-host] :is(svg,img) {
    display:block !important;
    width:24px !important;
    height:24px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn [data-ai-call-mascot-host] :is(svg,img)[hidden] {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn {
    display:inline-flex !important;
    gap:8px !important;
    width:33px !important;
    min-width:33px !important;
    max-width:none !important;
    height:33px !important;
    min-height:33px !important;
    margin-left:3px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:11px !important;
    background:#355d6b !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:550 !important;
    box-shadow:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn svg {
    display:block !important;
    width:18px !important;
    height:18px !important;
    flex:0 0 18px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:disabled {
    background:var(--fuuvo-chat-surface-soft) !important;
    color:#b9c3cc !important;
    cursor:default !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:not(:disabled):hover {
    background:var(--fuuvo-chat-mode-ink) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn {
    width:auto !important;
    padding:0 11px !important;
    background:var(--fuuvo-chat-mode-ink) !important;
    white-space:nowrap !important;
    line-height:1.2 !important;
    color:var(--fuuvo-chat-media-button-ink) !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn .chat-send-mode-label {
    display:none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn .chat-send-mode-label,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn .chat-send-mode-label {
    display:inline !important;
    min-width:0 !important;
    font:inherit !important;
    color:inherit !important;
    white-space:nowrap !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn:disabled,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:disabled {
    background:var(--fuuvo-chat-surface-soft) !important;
    color:var(--fuuvo-chat-muted) !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-upload-popover:not(.hidden) {
    z-index:100 !important;
    width:min(328px,calc(100vw - 28px)) !important;
    border:1px solid var(--fuuvo-chat-border) !important;
    border-radius:17px !important;
    background:var(--fuuvo-chat-surface) !important;
    color:var(--fuuvo-chat-ink) !important;
    box-shadow:0 16px 55px #304c6e20 !important;
}
}


@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap {
    transform: none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field :is(.ai-chat-composer-toggles,.fuuvo-chat-engineering-media-tools,.chat-input-action-group) {
    min-height: 33px !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-tools > .fuuvo-mobile-prototype-tools,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-input-action-group > .fuuvo-mobile-prototype-call {
    display: none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-upload-entry {
    order: 0 !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 32px !important;
    max-height: 32px !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-upload-btn {
    flex: 0 0 30px !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggles {
    order: 1 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools {
    order: 1 !important;
}
}

/* Full searchable model catalogue, portaled outside the composer. */
/* Inline creation uses the compact controls above, while the original
 * feature nodes remain mounted as the production state and upload source. */
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] .workspace #core-feature-slot#core-feature-slot#core-feature-slot#core-feature-slot#core-feature-slot,
html body[data-fuuvo-chat-design="1"] .workspace .composer-top,
html body[data-fuuvo-chat-design="1"] .workspace .composer-actions,
html body[data-fuuvo-chat-design="1"] .workspace .composer-capability-shell,
html body[data-fuuvo-chat-design="1"] .workspace .mobile-home-scenes-title {
    display: none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-media-toolbar-host {
    display: none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools {
    display: none !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap[data-chat-engineering-mode]:not([data-chat-engineering-mode="chat"]) .ai-chat-composer-toggles {
    display: none !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker {
    position:fixed;
    z-index:25050;
    display:flex;
    flex-direction:column;
    width:440px;
    height:min(600px,calc(100vh - 32px));
    height:min(600px,calc(100dvh - 32px));
    max-width:calc(100vw - 24px);
    max-height:calc(100vh - 32px);
    max-height:calc(100dvh - 32px);
    padding:0;
    border:1px solid var(--fuuvo-chat-border);
    border-radius:20px;
    background:var(--fuuvo-chat-surface);
    color:var(--fuuvo-chat-ink);
    box-shadow:0 16px 55px #304c6e20;
    overflow:hidden;
    box-sizing:border-box;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker[hidden] {
    display:none !important;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading {
    display:flex;
    flex:0 0 auto;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    padding:19px 16px 13px 20px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading h2 {
    margin:0;
    font-size:16px;
    font-weight:650;
    letter-spacing:-.2px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading p {
    margin:5px 0 0;
    color:var(--fuuvo-chat-muted);
    font-size:10px;
    line-height:1.5;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading > button {
    display:grid;
    place-items:center;
    flex:0 0 28px;
    width:28px;
    height:28px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:var(--fuuvo-chat-muted);
    cursor:pointer;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading > button:hover {
    background:var(--fuuvo-chat-surface-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading svg {
    width:17px;
    height:17px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs {
    display:flex;
    flex:0 0 auto;
    gap:3px;
    margin:0 17px 14px;
    padding:4px;
    border-radius:11px;
    background:var(--fuuvo-chat-surface-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs > button {
    display:inline-flex;
    flex:1;
    align-items:center;
    justify-content:center;
    gap:6px;
    height:34px;
    min-width:0;
    padding:0 6px;
    border:0;
    border-radius:8px;
    background:transparent;
    color:var(--fuuvo-chat-muted);
    font-size:12px;
    cursor:pointer;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs > button[aria-selected="true"] {
    background:var(--fuuvo-chat-surface);
    color:var(--fuuvo-chat-mode-ink);
    box-shadow:0 1px 5px #27425a0b;
    font-weight:600;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs svg {
    width:15px;
    height:15px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs small {
    font-size:9px;
    opacity:.7;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search-row {
    display:flex;
    flex:0 0 auto;
    gap:8px;
    margin:0 17px 11px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search {
    display:flex;
    flex:1;
    align-items:center;
    gap:7px;
    min-width:0;
    margin:0;
    padding:0 9px;
    border:1px solid var(--fuuvo-chat-border);
    border-radius:9px;
    background:var(--fuuvo-chat-surface-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search svg {
    width:15px;
    height:15px;
    color:var(--fuuvo-chat-muted);
    flex:0 0 15px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search input {
    width:100%;
    min-width:0;
    height:35px;
    padding:0;
    border:0;
    outline:none;
    background:transparent;
    color:var(--fuuvo-chat-ink);
    font:inherit;
    font-size:12px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search:focus-within {
    border-color:var(--fuuvo-chat-mode-line);
    box-shadow:0 0 0 2px var(--fuuvo-chat-mode-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-provider {
    width:auto;
    min-width:0;
    max-width:130px;
    padding:0 7px;
    border:1px solid var(--fuuvo-chat-border);
    border-radius:9px;
    background:var(--fuuvo-chat-surface);
    color:var(--fuuvo-chat-muted);
    font:inherit;
    font-size:10px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-current {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    gap:8px;
    margin:0 17px 10px;
    padding:8px 10px;
    border:1px solid var(--fuuvo-chat-mode-line);
    border-radius:9px;
    background:var(--fuuvo-chat-mode-soft);
    color:var(--fuuvo-chat-mode-ink);
    font-size:10px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-current > span {
    flex-shrink:0;
    opacity:.8;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-current > strong {
    flex:1;
    min-width:0;
    font-weight:600;
    line-height:1.5;
    overflow-wrap:anywhere;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-current > svg {
    width:14px;
    height:14px;
    flex:0 0 14px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-results {
    flex:1;
    min-height:0;
    padding:0 13px 14px;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#d9e1e7 transparent;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-group > h3 {
    margin:0;
    padding:13px 10px 7px;
    color:var(--fuuvo-chat-muted);
    font-size:10px;
    font-weight:600;
    letter-spacing:.25px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-group + .fuuvo-chat-engineering-group {
    margin-top:10px;
    padding-top:4px;
    border-top:1px solid var(--fuuvo-chat-border);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option {
    display:flex;
    align-items:center;
    gap:9px;
    width:100%;
    min-height:58px;
    margin:0 0 3px;
    padding:9px 10px;
    border:1px solid transparent;
    border-radius:10px;
    background:transparent;
    color:var(--fuuvo-chat-ink);
    font:inherit;
    text-align:left;
    cursor:pointer;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option:hover {
    background:var(--fuuvo-chat-surface-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option.is-selected {
    border-color:var(--fuuvo-chat-mode-line);
    background:var(--fuuvo-chat-mode-soft);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option.is-locked {
    opacity:.6;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option-copy {
    display:flex;
    flex-direction:column;
    flex:1;
    min-width:0;
    gap:4px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option-copy > strong {
    font-size:12px;
    font-weight:550;
    line-height:1.35;
    overflow-wrap:anywhere;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option-copy > small {
    color:var(--fuuvo-chat-muted);
    font-size:9px;
    line-height:1.45;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-option > svg {
    width:15px;
    height:15px;
    flex:0 0 15px;
    color:var(--fuuvo-chat-mode-ink);
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-footer {
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:12px 17px;
    border-top:1px solid var(--fuuvo-chat-border);
    background:var(--fuuvo-chat-surface);
    color:var(--fuuvo-chat-muted);
    font-size:9px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-footer button {
    padding:4px 0;
    border:0;
    background:transparent;
    color:var(--fuuvo-chat-mode-ink);
    font:inherit;
    font-size:10px;
    cursor:pointer;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-footer button:hover {
    text-decoration:underline;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-status {
    padding:30px 15px;
    color:var(--fuuvo-chat-muted);
    font-size:12px;
    text-align:center;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker :is(button,input,select):focus-visible {
    outline:2px solid var(--fuuvo-chat-mode-line);
    outline-offset:2px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker .fuuvo-chat-engineering-search input:focus-visible {
    outline: none;
    box-shadow: none;
}
html body[data-fuuvo-chat-design="1"] #chat-ai-call-btn img[data-chat-engineering-voice-avatar] {
    object-fit: contain;
}
html body[data-fuuvo-chat-design="1"]:is([data-ui-theme="dark"],[data-theme="dark"]),
html:is([data-ui-theme="dark"],[data-theme="dark"]) body[data-fuuvo-chat-design="1"] {
    --fuuvo-chat-page-bg:#10151e;
    --fuuvo-chat-surface:#171e29;
    --fuuvo-chat-surface-soft:#1d2634;
    --fuuvo-chat-border:rgba(148,163,184,.23);
    --fuuvo-chat-border-strong:rgba(143,164,211,.43);
    --fuuvo-chat-ink:#e9eef8;
    --fuuvo-chat-muted:#a3aec1;
    --fuuvo-chat-brand:#8cc4c8;
    --fuuvo-chat-brand-soft:#20363d;
    --fuuvo-chat-mode-ink:#8cc4c8;
    --fuuvo-chat-mode-soft:#20363d;
    --fuuvo-chat-mode-line:#3c666d;
    --fuuvo-chat-composer-fill:#171e29;
    --fuuvo-chat-media-button-ink:#171e29;
}
html body[data-fuuvo-chat-design="1"]:is([data-ui-theme="dark"],[data-theme="dark"]) [data-chat-engineering-mode="image"],
html:is([data-ui-theme="dark"],[data-theme="dark"]) body[data-fuuvo-chat-design="1"] [data-chat-engineering-mode="image"] {
    --fuuvo-chat-mode-ink:#c3a8e8;
    --fuuvo-chat-mode-soft:#31273f;
    --fuuvo-chat-mode-line:#665076;
}
html body[data-fuuvo-chat-design="1"]:is([data-ui-theme="dark"],[data-theme="dark"]) [data-chat-engineering-mode="video"],
html:is([data-ui-theme="dark"],[data-theme="dark"]) body[data-fuuvo-chat-design="1"] [data-chat-engineering-mode="video"] {
    --fuuvo-chat-mode-ink:#e1b297;
    --fuuvo-chat-mode-soft:#3b2d2a;
    --fuuvo-chat-mode-line:#745647;
}
html body[data-fuuvo-chat-design="1"]:is([data-ui-theme="dark"],[data-theme="dark"]) .workspace,
html:is([data-ui-theme="dark"],[data-theme="dark"]) body[data-fuuvo-chat-design="1"] .workspace {
    background:radial-gradient(ellipse at 12% -12%,rgba(71,115,152,.18),transparent 46%),radial-gradient(ellipse at 88% -16%,rgba(110,82,151,.2),transparent 48%),var(--fuuvo-chat-page-bg) !important;
}
html body[data-fuuvo-chat-design="1"]:is([data-ui-theme="dark"],[data-theme="dark"]) #chat-area .chat-user-content,
html:is([data-ui-theme="dark"],[data-theme="dark"]) body[data-fuuvo-chat-design="1"] #chat-area .chat-user-content {
    border-color:rgba(147,165,205,.25) !important;
    background:#202a3a !important;
    color:#e8eef9 !important;
}
@media (min-width:1600px) {
html body[data-fuuvo-chat-design="1"] {
    --fuuvo-chat-content:920px;
}
}
@media (max-width:920px) {
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-modebar {
    padding-inline:2px !important;
    gap:8px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs button {
    padding-inline:9px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle {
    padding-inline:7px !important;
    font-size:10px !important;
    gap:4px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn.home-composer-call {
    width:33px !important;
    padding:0 5px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn > span:not([data-ai-call-mascot-host]) {
    display:none !important;
}
}

html body[data-fuuvo-chat-design="1"] #chat-area {
    padding-inline:12px !important;
}
html body[data-fuuvo-chat-design="1"] #chat-area .chat-bubble.user:not(.is-editing) {
    max-width:calc(100% - 6px) !important;
}
html body[data-fuuvo-chat-design="1"] #chat-area .chat-answer-actions > :is(button,a) {
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:12px !important;
}
}
@media (max-width:640px) {
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap {
    padding:9px 8px 8px !important;
    border-radius:22px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-modebar {
    align-items:stretch !important;
    flex-direction:column !important;
    gap:7px !important;
    padding:0 4px 8px !important;
    margin:0 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs {
    align-self:flex-start !important;
    padding:2px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-mode-tabs button {
    height:27px !important;
    min-height:27px !important;
    padding-inline:13px !important;
    font-size:11px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-model {
    width:100% !important;
    max-width:none !important;
    min-height:32px !important;
    height:auto !important;
    padding:7px 9px !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model-copy {
    justify-content:space-between;
    gap:12px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-model-copy > strong {
    font-size:11px;
    white-space:normal;
    text-align:right;
    line-height:1.35;
    overflow-wrap:anywhere;
}
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap > #chat-input {
    font-size:16px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-tools {
    gap:3px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-mode-controls,
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggles {
    gap:0 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle {
    width:32px !important;
    min-width:32px !important;
    height:33px !important;
    padding:0 !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle > span {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .ai-chat-composer-toggle svg {
    width:16px !important;
    height:16px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools {
    gap:0 !important;
    max-width:calc(100vw - 184px) !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools .tool-chip {
    padding:0 4px !important;
    gap:3px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools .tool-chip > span {
    display:none !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .fuuvo-chat-engineering-media-tools select {
    font-size:11px !important;
    max-width:78px !important;
    padding-right:10px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-input-action-group {
    gap:5px !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-ai-call-btn.home-composer-call {
    width:29px !important;
    min-width:29px !important;
    height:30px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn {
    width:33px !important;
    min-width:33px !important;
    padding:0 !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker {
    width:calc(100vw - 24px);
    height:min(620px,calc(100dvh - 24px));
    max-height:calc(100dvh - 24px);
    border-radius:18px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading {
    padding-top:16px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-heading > button {
    width:36px;
    height:36px;
    flex-basis:36px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker-tabs {
    margin-bottom:12px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-search input {
    font-size:16px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-footer {
    font-size:8px;
}
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-footer button {
    font-size:9px;
    min-height:32px;
}
}
/* Media actions keep their text on narrow screens; the transparent extension
 * adds a 44px touch target without enlarging the compact visible control. */
@media (max-width:640px) {
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn {
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    width:auto !important;
    padding:0 10px !important;
    gap:6px !important;
    font-size:11px !important;
    flex:0 0 auto !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn::after,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn::after {
    content:"" !important;
    position:absolute !important;
    inset:-4px -1px !important;
    display:block !important;
    width:auto !important;
    height:auto !important;
    opacity:1 !important;
    visibility:visible !important;
    transform:none !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    pointer-events:auto !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field .chat-input-wrap:is([data-chat-engineering-mode="image"],[data-chat-engineering-mode="video"]) #chat-send-btn .chat-send-mode-label,
html body[data-fuuvo-chat-design="1"]:is([data-inline-media-mode="image"],[data-inline-media-mode="video"]) #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn .chat-send-mode-label {
    display:inline !important;
}
}
}

/* Match the handoff preview's compact response toolbar. Keep these rules in
 * the shared layer so legacy desktop/mobile action rules cannot widen it. */
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-area#chat-area .chat-answer-actions:not(:empty) {
    justify-content:flex-start !important;
    gap:2px !important;
    min-height:29px !important;
    margin:8px 0 0 -6px !important;
    padding:0 !important;
}
html body[data-fuuvo-chat-design="1"] #chat-area#chat-area .chat-answer-actions > :is(button,a) {
    width:29px !important;
    min-width:29px !important;
    max-width:29px !important;
    height:29px !important;
    min-height:29px !important;
    max-height:29px !important;
    flex:0 0 29px !important;
    margin:0 !important;
    padding:7px !important;
}
html body[data-fuuvo-chat-design="1"] #chat-area#chat-area .chat-answer-actions > :is(button,a) svg {
    width:14px !important;
    height:14px !important;
    flex:0 0 14px !important;
}
@media (max-width:920px) {
    /* Retain the existing phone target size while removing spare gaps. */
    html body[data-fuuvo-chat-design="1"] #chat-area#chat-area .chat-answer-actions:not(:empty) {
        min-height:32px !important;
        margin-left:0 !important;
    }
    html body[data-fuuvo-chat-design="1"] #chat-area#chat-area .chat-answer-actions > :is(button,a) {
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:32px !important;
        min-height:32px !important;
        max-height:32px !important;
        flex-basis:32px !important;
        padding:9px !important;
    }
}
}

@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:is([data-chat-send-mode="image"],[data-chat-send-mode="video"]) {
    width:auto !important;
    padding:0 11px !important;
    background:var(--fuuvo-chat-mode-ink) !important;
    color:var(--fuuvo-chat-media-button-ink) !important;
    white-space:nowrap !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:is([data-chat-send-mode="image"],[data-chat-send-mode="video"]) .chat-send-mode-label {
    display:inline !important;
}
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:is([data-chat-send-mode="image"],[data-chat-send-mode="video"]):disabled {
    background:var(--fuuvo-chat-surface-soft) !important;
    color:var(--fuuvo-chat-muted) !important;
}
}
@media (max-width:640px) {
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field #chat-send-btn:is([data-chat-send-mode="image"],[data-chat-send-mode="video"]) {
    width:auto !important;
    min-height:36px !important;
    max-height:36px !important;
    height:36px !important;
    padding:0 10px !important;
    gap:6px !important;
    font-size:11px !important;
}
}
}

@media (prefers-reduced-motion:reduce) {
@layer fuuvo-mobile-design {
html body[data-fuuvo-chat-design="1"] #chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field#chat-compose-field > .chat-input-wrap {
    animation:none !important;
}
}

html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker,
html body[data-fuuvo-chat-design="1"] .fuuvo-chat-engineering-picker * {
    transition-duration:.001ms !important;
}
}
