/* Anna's Escape — GDD website UI. Loaded last to replace the legacy frame. */
body.gdd-ui {
    --bg-primary: #04141c;
    --bg-secondary: #05232e;
    --accent-color: #31d8ed;
    --gdd-line: #174652;
    --gdd-muted: #99b4bf;
    padding: 0;
}
.gdd-ui [hidden] { display: none !important; }
.gdd-ui .main-ui-frame { border-radius: 0; }
.gdd-ui .left-panel {
    width: 29%; min-width: 370px; max-width: 460px;
    padding: 0; gap: 0; background: #05232e;
    border-right: 1px solid var(--gdd-line); box-shadow: none;
}
.gdd-account-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 22px 16px 18px; flex-shrink: 0;
}
.gdd-wordmark {
    margin: 0; color: #31d8ed; font: 700 25px 'Tomorrow', sans-serif;
    letter-spacing: 4px; text-shadow: 0 0 18px #16d6f540;
}
.gdd-account-header .header-buttons { min-width: 0; }
.gdd-account-header #user-info { flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
.gdd-account-header .player-info { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gdd-account-header #user-info .player-info { flex: 1; }
.gdd-account-header #user-name {
    font-size: 11px; max-width: min(108px, 100%); overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; padding: 0; background: none; border: 0;
}
.gdd-account-header .gem-container { padding: 4px 6px; gap: 5px; border: 1px solid #1c5563; border-radius: 4px; }
.gdd-account-header #gem-count, .gdd-account-header .gem-icon { font-size: 12px; }
.gdd-account-header .btn-add-gem { width: 20px; height: 20px; font-size: 15px; }
.gdd-account-header .btn-header {
    font-size: 10px; letter-spacing: .5px; padding: 8px 10px;
    border: 1px solid #70909b; border-radius: 3px;
    background: #b9ced4; color: #09222c; box-shadow: none;
}
.gdd-account-header #logout-btn { font-size: 10px !important; min-height: 32px !important; }
.gdd-ui .panel-icons-section {
    border: 0; border-bottom: 1px solid var(--gdd-line); border-radius: 0;
    padding: 8px 12px 15px; background: none; box-shadow: none; flex-shrink: 0;
}
.gdd-ui .panel-top-icons { gap: 10px; flex-wrap: wrap; }
.gdd-ui .panel-icons-left, .gdd-ui .panel-icons-right { gap: 4px; flex-wrap: wrap; }
.gdd-ui .panel-icons-right { margin-left: auto; }
.gdd-ui .panel-icon, .gdd-ui .panel-profile-tab {
    position: relative; display: inline-flex; justify-content: center; align-items: center;
    width: 34px; height: 36px; min-width: 34px; padding: 0;
    font-size: 18px; background: transparent; border: 1px solid transparent;
    color: #d9edf2; border-radius: 4px; cursor: pointer; box-shadow: none;
}
.gdd-ui .panel-icon:hover, .gdd-ui .panel-profile-tab:hover,
.gdd-ui .panel-icon[aria-pressed="true"], .gdd-ui .panel-profile-tab[aria-pressed="true"] { background: #103e4b; border-color: #247080; color: #40def1 !important; }
.gdd-ui button:focus-visible, .gdd-ui a:focus-visible, .gdd-ui .signal-stability:focus-visible { outline: 2px solid #72eaf5; outline-offset: 3px; }
/* Bootstrap's blue links and muted helpers are too dark in these dialogs. */
.gdd-ui .modal .btn-link { color: #72eaf5 !important; white-space: normal; text-align: left; min-height: 32px; }
.gdd-ui .modal .btn-link:hover { color: #c5f8fc !important; }
.gdd-ui .modal .text-muted { color: #b4c6cc !important; }
.gdd-ui .modal .form-text { display: block; }
.gdd-ui .modal .modal-title { min-width: 0; overflow-wrap: anywhere; }
.gdd-ui .modal .btn-close { flex-shrink: 0; }
.gdd-ui .modal :is(.text-danger,.text-success) { overflow-wrap: anywhere; }
.gdd-ui .right-panel { padding: 0; gap: 0; background: #030d13; min-width: 0; }
.gdd-ui .game-view { gap: 0; min-height: 0; }
.gdd-ui .game-content-wrapper { padding: 0; gap: 0; border: 0; border-radius: 0; box-shadow: none; background: #030d13; }
.gdd-ui .game-frame { border: 0; border-radius: 0; margin: 0; box-shadow: none; flex: 1; min-height: 0; }
.gdd-ui .connection-state-overlay { background: rgba(1, 12, 19, .65); }
.gdd-ui .connection-state-message { max-width: 640px; font-size: clamp(18px, 2vw, 30px); line-height: 1.6; font-weight: 400; }
.gdd-ui .btn-connect-stream { border: 2px solid #31d8ed; border-radius: 6px; background: #245064; color: white; padding: 18px 46px; font-size: 16px; box-shadow: none; }
.gdd-ui .chat-view { min-height: 0; padding: 0; gap: 0; }
.gdd-ui .signal-stability-section { margin: 0; padding: 15px 18px; border: 0; border-bottom: 1px solid var(--gdd-line); border-radius: 0; background: #062b36; }
.gdd-ui .signal-stability { justify-content: flex-start; gap: 12px; }
.gdd-ui .signal-text { font-size: 12px; letter-spacing: .6px; }
.gdd-ui .chat-messages-section { padding: 0; border: 0; background: transparent; min-height: 0; }
.gdd-ui #conversation { display: flex; flex-direction: column; gap: 16px; padding: 22px 16px; }
.gdd-ui #conversation .message {
    flex: 0 0 auto; width: fit-content; max-width: 88%; margin: 0;
    padding: 12px 14px; border: 1px solid #285564; border-radius: 10px;
    text-align: left !important; line-height: 1.65; font-size: 13px;
    box-shadow: none; overflow-wrap: anywhere; background: #103744;
}
.gdd-ui #conversation .message.anna { align-self: flex-start; border-bottom-left-radius: 2px; }
.gdd-ui #conversation .message.user { align-self: flex-end; border-bottom-right-radius: 2px; background: #1b4355; border-color: #386274; }
.gdd-ui #conversation .message.system { align-self: flex-start; max-width: 96%; background: #09202a; border: 1px solid #31505a; border-radius: 6px; }
.gdd-ui #conversation .message-sender { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #9fe4ed !important; }
.gdd-ui #conversation .message.anna .message-sender { color: #66e6e2 !important; }
.gdd-ui #conversation .message.system .message-sender { color: #b4c3c9 !important; }
.gdd-ui #conversation .message-content { color: #e3eef2 !important; text-align: left; }
.gdd-ui #conversation .system-warning { border-color: #b29344; }
.gdd-ui #conversation .system-warning .message-content { color: #ffe299 !important; }
.gdd-ui #conversation .option-selector-message, .gdd-ui #conversation .multiple-choice-wrapper { width: 96%; }
.gdd-ui .chat-input-section { border: 0; border-top: 1px solid var(--gdd-line); border-radius: 0; padding: 12px; background: #05232e; }
.gdd-ui .chat-input-wrapper { border-radius: 5px; box-shadow: none; }
.gdd-ui .chat-input { font-size: 13px; min-width: 0; }
.gdd-ui .chat-command-dropdown { width: auto; min-width: max-content; max-width: none; flex-shrink: 0; font-size: 12px; }
.gdd-ui .chat-scan-button { border-radius: 4px; font-size: 11px; }
.gdd-shop-tabs { position: absolute; top: var(--gdd-shop-top, 137px); left: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.gdd-ui .gdd-shop-tabs .panel-icon { width: 44px; height: 46px; border: 1px solid #2a6372; background: #05232e; }
.gdd-ui .gdd-shop-tabs .panel-icon[aria-pressed="true"] { background: #164456; border-color: #50cee3; }
.gdd-sparkle { position: absolute; font-size: 15px; top: 2px; right: 5px; color: #bdf7ff; }
.gdd-ui .storefront-items-view, .gdd-ui .store-bundles-view-left, .gdd-ui .signal-stability-view { padding: 12px 12px 12px 66px; min-height: 0; overflow-y: auto; gap: 14px; }
.gdd-ui .storefront-header, .gdd-ui .signal-stability-header { padding: 14px 4px; background: none; border: 0; box-shadow: none; }
.gdd-ui .storefront-title, .gdd-ui .signal-stability-title { margin: 0; text-align: center; color: #eefaff; font-size: 21px; letter-spacing: 2px; }
.gdd-ui .store-bundles-container { flex: 0 0 auto; overflow: visible; padding: 0; border: 0; }
.gdd-ui .storefront-items-list { flex: 0 0 auto; overflow: visible; }
.gdd-ui .bundles-grid { grid-template-columns: 1fr; }
/* One contained highlight for every shop card, including keyboard focus. */
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item),
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item):hover {
    border-radius: 5px; background: #243d50; border-color: #5a7084;
    box-shadow: none; transform: none;
    transition: background-color .2s ease, border-color .2s ease;
}
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item):not([aria-disabled="true"]):not([data-disabled="true"]):is(:hover,:focus-visible) {
    background-color: #2b5263; border-color: #31d8ed;
}
/* Small-screen and touch rules must not add a separate fade to Gem cards. */
.gdd-ui .bundle-card { opacity: 1; }
/* Retire the legacy sweeps, price wipes, thumbnail zooms, and gem pulses. */
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item)::before,
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item)::after,
.gdd-ui .bundle-image-placeholder::before,
.gdd-ui :is(.bundle-card,.storefront-item) :is(.bundle-name,.storefront-item-name)::after,
.gdd-ui :is(.bundle-card,.storefront-item) :is(.bundle-cost,.storefront-item-cost)::before { content: none; }
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item) :is(.bundle-image-placeholder,.signal-pack-icon,.storefront-item-image) {
    border-color: rgba(217, 217, 217, .5); box-shadow: none; transform: none; transition: none;
}
.gdd-ui .bundle-card .bundle-image-placeholder :is(.bundle-icon,.gem-icon-single) {
    animation: none; transform: none; transition: none; filter: none; text-shadow: none;
}
.gdd-ui :is(.bundle-card,.signal-pack-card,.storefront-item):focus-visible { outline: 2px solid #72eaf5; outline-offset: -3px; }
.gdd-ui .signal-packs-container { flex: 0 0 auto; overflow: visible; gap: 12px; }
.gdd-ui .signal-pack-card { flex-shrink: 0; padding: 14px; gap: 12px; }
.gdd-ui .signal-pack-card[aria-disabled="true"] { opacity: .65; cursor: wait; }
.gdd-ui .signal-purchase-status { flex-shrink: 0; margin: 0; padding: 10px; border: 1px solid #376674; border-radius: 4px; color: #c4e6ed; font-size: 12px; line-height: 1.6; }
.gdd-ui .signal-pack-icon { width: 44px; height: 44px; min-width: 44px; }
.gdd-ui .signal-pack-name { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.gdd-ui .signal-pack-description { font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.gdd-ui .signal-pack-promo-primary, .gdd-ui .signal-pack-promo-primary .gem-symbol { font-size: 16px; line-height: 1.5; }
.gdd-ui .signal-pack-price { display: inline-block; white-space: nowrap; }
.gdd-ui .storefront-item-content { min-width: 0; overflow-wrap: anywhere; }
.gdd-ui .bundle-card { min-height: 120px; gap: 12px; padding: 14px; align-items: center; }
.gdd-ui .bundle-image-placeholder { width: 56px; height: 56px; min-width: 56px; margin: 0; padding: 6px; overflow: hidden; }
.gdd-ui .bundle-content-wrapper { padding: 0; gap: 6px; }
.gdd-ui .bundle-name { font-size: 14px; margin-bottom: 0; overflow-wrap: anywhere; }
.gdd-ui .bundle-description { font-size: 11px; overflow-wrap: anywhere; }
.gdd-ui .bundle-cost { font-size: 14px; overflow-wrap: anywhere; }
/* Keep compact gem grids within two columns and three rows inside the 40px interior. */
.gdd-ui .bundle-image-placeholder .bundle-icon { display: grid; gap: 2px; padding: 0; }
.gdd-ui .bundle-icon-large .bundle-icon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gdd-ui .bundle-image-placeholder .gem-icon-single { font-size: 12px; line-height: 1; }
.gdd-ui .profile-view-header { flex-shrink: 0; }
.gdd-ui .left-panel > .user-account-view { overflow: hidden !important; }
.gdd-profile-content { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.gdd-profile-content:focus-visible { outline: 2px solid var(--accent-color); outline-offset: -2px; }
.gdd-profile-content > .panel-section { flex-shrink: 0; }
#audio-settings-sync-status { margin: 8px 0 0; color: var(--gdd-muted); font-size: 12px; }
#audio-settings-sync-status:empty { display: none; }
.gdd-profile-footer { flex-shrink: 0; padding: 8px; background: #05232e; margin-top: auto; }
.gdd-profile-logout { width: 100%; padding: 15px; color: #edf5f7; background: #243b4e; border: 1px solid #b74758; border-radius: 5px; font-weight: 700; }
.gdd-profile-logout:hover { background: #4e2b3a; }
.gdd-ui #phase3-data-view { overflow: hidden !important; }
.gdd-ui .phase3-panel-content { display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 12px; overflow: auto; }
.gdd-ui .phase3-panel-content > *, .gdd-ui .data-inspector-view > * { flex-shrink: 0; }
.gdd-ui .phase3-panel-table-stage { flex: 1 0 180px; min-height: 180px; }
.gdd-ui .phase3-panel-row-detail { inset: 10px; }
.gdd-ui .right-panel-footer { height: 56px; min-height: 56px; gap: 16px; padding: 0 0 0 16px; border-radius: 0; border-top: 1px solid var(--gdd-line); box-shadow: none; background: #05232e; }
.gdd-partners-label { flex-shrink: 0; font-size: 13px; font-weight: 600; }
.gdd-ui .right-panel-footer-track { display: grid; flex: 1; min-width: 0; padding: 0; animation: none; transform: none; white-space: normal; height: 100%; font-size: 12px; letter-spacing: 0; }
.gdd-ui .right-panel-footer-item { grid-area: 1 / 1; display: flex; align-items: center; gap: 18px; min-width: 0; text-shadow: none; opacity: 1; transition: opacity .4s ease; }
.gdd-ui .right-panel-footer-item[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.gdd-partner-wordmark { flex-shrink: 0; font: 16px Georgia, serif; color: #d4e9ef; line-height: 1; }
.gdd-partner-logo { font-size: 28px; color: #d4e9ef; }
.gdd-partner-wordmark > span { display: block; font: 6px 'Tomorrow', sans-serif; letter-spacing: 2px; margin-top: 4px; }
.gdd-ui #toggle-left-panel-btn { align-self: stretch; height: 100%; min-height: 0 !important; min-width: 52px; margin: 0; border: 0; border-left: 1px solid var(--gdd-line); border-radius: 0; background: transparent; box-shadow: none; color: #b2d8e1; }
.gdd-unread-dot { position: absolute; top: 1px; right: 0; width: 10px; height: 10px; border-radius: 50%; background: #ffdc4a; border: 2px solid #05232e; }
/* Game notices stay inside the viewport and below the modal backdrop (9999). */
.gdd-ui #notification-container { right: 16px; bottom: 16px; z-index: 9998; max-width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; pointer-events: auto; }
.gdd-ui #notification-container:empty { pointer-events: none; }
.gdd-ui #notification-container .alert { min-width: 0 !important; max-width: 100% !important; overflow-wrap: anywhere; }
.gdd-ui #notification-container .alert:not(.notification-stability-warning):not(.notification-stability-depleted) .btn-close { filter: none !important; }
.gdd-notifications-view { flex: 1; min-height: 0; flex-direction: column; overflow-y: auto; padding: 20px 16px; gap: 14px; }
.gdd-notifications-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gdd-notifications-heading h2 { margin: 0; font-size: 16px; letter-spacing: 1px; }
.gdd-notifications-heading button { border: 0; padding: 6px 0; background: none; color: #52d6e5; font: inherit; font-size: 11px; }
.gdd-notifications-heading button:disabled { color: #92aab3; }
.gdd-notifications-note { margin: 0; font-size: 11px; color: var(--gdd-muted); line-height: 1.6; }
.gdd-notifications-list { display: flex; flex-direction: column; gap: 12px; }
.gdd-notification { position: relative; padding: 16px; border: 1px solid #28505d; border-radius: 5px; background: #0b303e; }
.gdd-notification.is-unread::after { content: ''; position: absolute; top: 0; right: 0; border-top: 14px solid #ffdc4a; border-left: 14px solid transparent; }
.gdd-notification p { margin: 0 0 12px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; white-space: pre-wrap; }
.gdd-notification footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gdd-notification time { font-size: 10px; color: var(--gdd-muted); }
.gdd-notification button { background: transparent; border: 1px solid #376674; border-radius: 3px; color: #c4e6ed; padding: 5px 8px; font-size: 10px; }
.gdd-notifications-empty { margin: auto 0; padding: 50px 18px; text-align: center; color: var(--gdd-muted); }
.gdd-notifications-empty > i { font-size: 32px; color: #5bb8c6; margin-bottom: 22px; }
.gdd-notifications-empty h3 { font-size: 16px; color: #e0f0f4; }
.gdd-notifications-empty p { font-size: 12px; line-height: 1.8; }
@media (max-width: 768px) {
    .gdd-ui .main-content-wrapper { flex-direction: column !important; }
    .gdd-ui .left-panel:not(.left-panel-hidden) { order: 2 !important; width: 100% !important; max-width: none !important; min-width: 0 !important; height: 60% !important; min-height: 0 !important; flex: 1 1 60%; overflow: hidden !important; padding: 0; }
    .gdd-ui .right-panel { order: 1 !important; width: 100%; height: 40% !important; min-height: 0 !important; flex: 0 0 40%; }
    .gdd-ui .left-panel.left-panel-hidden { height: 0 !important; min-height: 0 !important; flex: 0 0 0; }
    .gdd-ui .left-panel.left-panel-hidden + .right-panel { height: 100% !important; flex: 1; }
    .gdd-account-header { padding: 12px 14px; }
    .gdd-wordmark { font-size: 21px; }
    .gdd-ui .panel-icons-section { padding: 0 10px 8px; }
    .gdd-ui .left-panel > :is(.chat-view,.user-account-view,.help-view,.settings-view,.signal-stability-view,.storefront-items-view,.store-bundles-view-left,.llm-select-view,.gdd-notifications-view,.data-inspector-view,.phase3-data-view) { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; max-height: none !important; overflow-y: auto !important; }
    .gdd-ui .left-panel > .user-account-view { overflow: hidden !important; }
    .gdd-ui .left-panel > .chat-view { overflow: hidden !important; padding: 0; gap: 0; }
    .gdd-ui .signal-stability-section { padding: 10px 14px; }
    .gdd-ui .chat-messages-section { flex: 1 !important; min-height: 0 !important; overflow: hidden !important; }
    .gdd-ui #conversation { height: 100%; padding: 14px; overflow-y: auto !important; }
    .gdd-ui .chat-input-section { flex-shrink: 0; padding: 8px 12px; }
    .gdd-ui .chat-actions { margin-bottom: 5px; }
    .gdd-ui .right-panel-footer { gap: 10px; height: 48px; min-height: 48px; padding-left: 10px; }
    .gdd-partners-label { font-size: 10px; }
    .gdd-partner-wordmark { display: none; }
    .gdd-partner-logo { font-size: 22px; }
    .gdd-ui .right-panel-footer-track { font-size: 10px; }
    .gdd-ui #toggle-left-panel-btn { min-width: 40px; }
    .gdd-ui .connection-state-message { font-size: 16px; padding: 0 14px; }
    .gdd-ui .btn-connect-stream { padding: 10px 24px; font-size: 13px; }
    /* Override legacy mobile padding so shop cards leave room for the tab rail. */
    .gdd-ui .storefront-items-view, .gdd-ui .store-bundles-view-left, .gdd-ui .signal-stability-view { padding: 10px 10px 10px 64px !important; }
    .gdd-ui .storefront-item-image { width: 56px; height: 56px; min-width: 56px; }
}
@media (min-width: 480px) and (max-width: 768px) and (max-height: 480px) {
    .gdd-ui .main-content-wrapper { flex-direction: row !important; }
    .gdd-ui .left-panel:not(.left-panel-hidden) { order: 1 !important; width: max(50%, 280px) !important; height: 100% !important; flex: 0 0 max(50%, 280px); border-top: 0 !important; }
    .gdd-ui .right-panel { order: 2 !important; width: 50% !important; height: 100% !important; flex: 1; }
    .gdd-ui .gdd-account-header { padding: 8px 12px; }
    .gdd-ui .panel-icons-section { padding-bottom: 4px; }
    .gdd-ui .signal-stability-section { padding: 6px 12px; }
    .gdd-ui .signal-stability { padding: 6px 12px; }
    .gdd-ui .chat-input-wrapper { padding: 10px 8px; gap: 6px; }
    .gdd-ui .chat-command-dropdown { padding-left: 5px; padding-right: 22px; background-position: right 5px center; font-size: 11px; }
    .gdd-ui .right-panel-footer-item { gap: 8px; }
    .gdd-ui .connection-state-overlay { gap: 12px; }
    .gdd-ui .left-panel > .user-account-view { padding: 4px !important; gap: 4px !important; }
    .gdd-ui .profile-view-header { padding: 3px 8px; }
    .gdd-ui .gdd-profile-footer { padding: 2px; }
    .gdd-ui .gdd-profile-logout { min-height: 32px; padding: 6px; }
}
@media (max-width: 479px) and (max-height: 600px) {
    .gdd-ui .right-panel { height: 30% !important; flex-basis: 30%; }
    .gdd-ui .left-panel:not(.left-panel-hidden) { height: 70% !important; flex-basis: 70%; }
    .gdd-ui .gdd-account-header { padding: 8px 12px; }
    .gdd-ui .panel-icons-section { padding-bottom: 4px; }
    .gdd-ui .panel-top-icons { gap: 4px; }
    .gdd-ui .signal-stability-section { padding: 6px 12px; }
    .gdd-ui .signal-stability { padding: 6px 12px; }
    .gdd-ui .chat-input-section { display: flex; align-items: center; gap: 8px; }
    .gdd-ui .chat-actions { flex-shrink: 0; margin-bottom: 0; }
    .gdd-ui .chat-input-container { flex: 1; min-width: 0; }
    .gdd-ui .chat-input-wrapper { padding: 8px 6px; gap: 6px; }
    .gdd-ui .chat-command-dropdown { padding-left: 5px; padding-right: 22px; background-position: right 5px center; font-size: 11px; }
    .gdd-ui .connection-state-overlay { gap: 6px; padding: 4px; }
    .gdd-ui .connection-state-message { font-size: 12px; line-height: 1.4; }
    .gdd-ui .btn-connect-stream { padding: 6px 16px; font-size: 12px; }
}
/* Wrap Scan above the composer when a short panel cannot fit a usable text field. */
@media (min-width: 480px) and (max-width: 768px) and (max-height: 480px),
       (max-width: 479px) and (max-height: 600px) {
    .gdd-ui .chat-input-section { flex-wrap: wrap; gap: 2px; padding-block: 2px; }
    .gdd-ui .chat-actions { margin-left: auto; }
    .gdd-ui .chat-input-container { flex: 1 1 220px; min-width: 0; }
    .gdd-ui .chat-input-wrapper { padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) {
    .gdd-ui, .gdd-ui * { scroll-behavior: auto !important; }
    .gdd-ui #conversation .message { animation: none; transition: none; transform: none; }
    .gdd-ui .right-panel-footer-item, .gdd-ui .left-panel, .gdd-ui .right-panel { transition: none; }
}
