.ci-dialog{color:var(--text);background:var(--surface,#182436);border:1px solid var(--border);padding:0!important;width:calc(100% - 28px);max-width:440px;max-height:calc(100dvh - 36px);border-radius:22px;box-shadow:0 24px 90px #020a2540;overflow:auto}.ci-dialog::backdrop{background:#071121a8;backdrop-filter:blur(6px)}.ci-dialog [hidden]{display:none!important}.ci-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid var(--border)}.ci-dialog-heading small{display:block;font-size:10px;color:var(--muted);letter-spacing:2px;margin-bottom:5px}.ci-dialog-heading h2{margin:0;font-size:18px;line-height:1.4}.ci-dialog .ci-close{width:38px;height:38px;flex-shrink:0;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface-2);color:var(--muted);padding:0;box-shadow:none!important}.ci-close svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.ci-dialog-body{padding:20px 22px}.ci-preview-media{position:relative;min-height:160px;max-height:40dvh;display:flex;align-items:center;justify-content:center;background:var(--surface-2,#111d2c);border:1px solid var(--border);border-radius:14px;overflow:hidden}.ci-preview-media img{display:block;max-width:100%;max-height:40dvh;object-fit:contain}.ci-preview-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:180px;color:var(--muted);font-size:12px}.ci-preview-placeholder svg,.ci-image-fallback svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.4}.ci-image-size{margin:12px 0 0;font-size:10px;color:var(--muted);line-height:1.6;font-variant-numeric:tabular-nums}.ci-dialog progress{display:block;width:100%;height:5px;margin:16px 0 0;accent-color:var(--accent);border:0;border-radius:4px;overflow:hidden}.ci-feedback{color:var(--muted);font-size:12px;line-height:1.7;min-height:21px;margin:12px 0 16px;overflow-wrap:anywhere}.ci-feedback.is-error{color:var(--danger,#ed6f85)}.ci-dialog .ci-send{display:block;width:100%;min-height:46px;padding:12px 20px;border:0;border-radius:13px;background:var(--accent);color:var(--on-accent,#fff);font-size:14px;font-weight:650;box-shadow:none!important}.ci-dialog .ci-send:disabled{opacity:.48;cursor:not-allowed}.ci-preview-note{color:var(--muted);font-size:10px;line-height:1.7;text-align:center;margin:13px 2px 0}.ci-dialog button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.chat-page .chat-input-row .ci-composer-button{width:36px;height:42px;min-width:36px;color:var(--muted);padding:0;border:0;background:transparent;box-shadow:none!important;border-radius:10px}.ci-composer-button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.chat-input-row #live-chat-image-file{display:none!important}#live-chat-messages .ci-message-image{display:block;position:relative;width:var(--ci-width,224px);max-width:min(100%,224px);padding:0;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);overflow:hidden;box-shadow:0 2px 5px #0000000a!important;line-height:0;cursor:zoom-in;touch-action:pan-y;-webkit-touch-callout:none;user-select:none}#live-chat-messages .ci-message-image img{display:block;width:100%;height:auto;max-height:300px;aspect-ratio:var(--ci-ratio);object-fit:contain;pointer-events:none;-webkit-user-drag:none}#live-chat-messages .ci-message-image [hidden]{display:none!important}.ci-image-fallback{min-height:120px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:18px 10px;color:var(--muted);font-size:12px;line-height:1.4}.ci-image-fallback small{font-size:10px;opacity:.8}.message-menu-selected .ci-message-image{outline:2px solid var(--accent);outline-offset:2px}.ci-lightbox{width:calc(100% - 24px);max-width:1100px;max-height:calc(100dvh - 24px)}.ci-lightbox .ci-dialog-heading{padding:14px 18px}.ci-lightbox .ci-dialog-heading small{display:none}.ci-lightbox .ci-dialog-body{padding:12px}.ci-large-image{min-height:150px;max-height:calc(100dvh - 124px);display:flex;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain;background:var(--surface-2);border-radius:12px}.ci-large-image>img{display:block;max-width:100%;max-height:calc(100dvh - 124px);object-fit:contain;touch-action:pinch-zoom}.ci-view-error{text-align:center;font-size:13px;color:var(--muted);line-height:1.8;padding:28px 18px}.ci-view-error button{display:block;margin:16px auto 0;border:1px solid var(--border);border-radius:9px;padding:9px 15px;background:var(--surface);color:var(--accent);box-shadow:none!important}.ci-forward-preview{display:flex;align-items:center;gap:14px;padding:12px 0 20px;font-size:13px;color:var(--muted)}.ci-forward-preview img{max-width:140px;max-height:160px;object-fit:contain;border:1px solid var(--border);border-radius:10px}@media(max-width:360px){.ci-dialog{width:calc(100% - 20px)}.ci-dialog-heading{padding:16px}.ci-dialog-body{padding:16px}.chat-page .chat-input-row{gap:5px;padding-inline:2px}.chat-page .chat-input-row input{padding-inline:11px}.chat-page .chat-input-row .ci-composer-button{width:32px;min-width:32px}.ci-dialog-heading h2{font-size:17px}}:root[data-color-theme=pixel] .ci-dialog,:root[data-color-theme=pixel] .ci-dialog :is(button,.ci-preview-media,.ci-large-image){border-radius:2px!important}:root[data-color-theme=pixel] .ci-dialog{border:2px solid var(--px-line,#607197);box-shadow:6px 6px 0 #070d20}:root[data-color-theme=pixel] #live-chat-messages .ci-message-image{border-radius:2px!important;box-shadow:3px 3px 0 #0b1020!important}:root[data-color-theme=pixel] .ci-dialog .ci-send{color:#102a2b}:root[data-color-theme=pixel] .ci-image-size{font-family:system-ui,sans-serif}@media(prefers-reduced-motion:reduce){.ci-dialog *{transition:none!important;animation:none!important}}

:root:is([data-color-theme=dark],[data-color-theme=red],[data-color-theme=green]) .ci-dialog .ci-send{color:#112a35}
