/* ==========================================================================
   Caption Studio, new design (2026-11-06): gray cards, sky-blue accent, slim controls.
   Own classes only (tailwind.generated.css is precompiled). Works from ~300px wide.
   Palette: panel #181b22, inner #13151b, raised #20242d, line rgba(255,255,255,.08), accent #0ea5e9 / #38bdf8.
   ========================================================================== */
.captions-panel.cs-panel {
    max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent;
    justify-content: flex-start; gap: 0;
    font-family: 'Hind Siliguri Light', 'Hind Siliguri', 'Inter', -apple-system, "Segoe UI", sans-serif;
    color: #cbd5e1;
}
/* .hidden must win over the display rules below */
.cs-panel .hidden, .cs-panel [hidden] { display: none !important; }
.cs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
    width: 100%; max-width: 720px; margin: 0 auto; padding: 4px 4px 12px; }
.cs-panel *:focus, .cs-panel *:focus-visible { outline: none; }

/* Cards */
.cs-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; min-width: 0; background: #181b22;
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.cs-sub-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-width: 0; background: #13151b;
    border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; }
.cs-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cs-card-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; color: #fff; }
.cs-head-actions { display: flex; gap: 6px; margin-left: auto; }

/* Header: source tabs + three-dot menu */
.cs-head { position: relative; }
.cs-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cs-seg { display: flex; flex: 1 1 auto; max-width: 20rem; gap: 4px; padding: 4px; background: #13151b;
    border: 1px solid rgba(255, 255, 255, .05); border-radius: 10px; }
.cs-seg-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; padding: 6px 10px;
    border: 0; border-radius: 7px; background: transparent; color: #94a3b8; font: inherit; font-size: 12px; font-weight: 500;
    cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.cs-seg-btn svg { flex: 0 0 auto; width: 14px; height: 14px; }
.cs-seg-btn span { overflow: hidden; text-overflow: ellipsis; }
.cs-seg-btn:hover { color: #fff; }
.cs-seg-btn.is-active { background: #0ea5e9; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cs-menu-wrap { position: static; flex: 0 0 auto; }
.cs-menu-btn { width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 8px; background: #13151b;
    border: 1px solid rgba(255, 255, 255, .05); color: #94a3b8; cursor: pointer; transition: border-color .15s, color .15s; }
.cs-menu-btn svg { width: 16px; height: 16px; }
.cs-menu-btn:hover { border-color: #475163; color: #fff; }

/* API setup popup */
/* Anchored to the header card (not to the button) so it never leaves a narrow panel */
.cs-popup { position: absolute; left: 8px; right: 8px; top: 54px; margin-left: auto; max-width: 340px; z-index: 50; display: flex;
    flex-direction: column; gap: 12px; padding: 14px; background: #20242d; border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); }
.cs-popup-title { padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12.5px; font-weight: 700; color: #fff; }
.cs-key { display: flex; flex-direction: column; gap: 6px; }
.cs-key-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cs-key-label { font-size: 12px; font-weight: 600; color: #fff; }
.cs-badge { padding: 1px 7px; border-radius: 5px; font-size: 10px; font-weight: 600; background: #323946; color: #94a3b8; }
.cs-badge.is-on { background: #0ea5e9; color: #fff; }
.cs-badge.is-required { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.cs-badge.is-off { background: #323946; color: #94a3b8; }
.cs-key-row { display: flex; align-items: center; gap: 6px; }
.cs-key-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 16px; }
.cs-key-status { font-size: 11px; color: #94a3b8; }
.cs-key-status.is-ok { color: #34d399; }
.cs-key-status.is-error { color: #f87171; }
.cs-hint { font-size: 10.5px; line-height: 1.5; color: #7b8496; }
.cs-popup-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.cs-link { font-size: 11px; color: #38bdf8; text-decoration: none; white-space: nowrap; }
.cs-link:hover { text-decoration: underline; }

/* Shared controls */
.cs-pill { flex: 0 0 auto; padding: 0 8px; border-radius: 999px; background: #13151b; color: #38bdf8; border: 1px solid rgba(56, 189, 248, .2);
    font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; font-weight: 600; line-height: 18px; }
.cs-btn { flex: 0 0 auto; padding: 6px 11px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 8px; background: #20242d; color: #cbd5e1;
    font: inherit; font-size: 11.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.cs-btn:hover { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.cs-btn.cs-btn-primary { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.cs-btn.cs-btn-primary:hover { background: #38bdf8; border-color: #38bdf8; }
.cs-btn:disabled { opacity: .55; cursor: wait; }
.cs-icon-btn { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 8px; background: #20242d; color: #cbd5e1; font-size: 12px; cursor: pointer; }
.cs-icon-btn:hover { background: #323946; color: #fff; }
.cs-input { flex: 1 1 auto; min-width: 0; height: 30px; padding: 0 9px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px;
    background: #13151b; color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.cs-input::placeholder, .cs-textarea::placeholder { color: #64748b; }
.cs-input:focus, .cs-textarea:focus { border-color: rgba(56, 189, 248, .6); }
.cs-primary { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 34px; padding: 6px 12px;
    border: 0; border-radius: 9px; background: #0ea5e9; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    text-align: center; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: background .15s, opacity .15s; }
.cs-primary svg { flex: 0 0 auto; width: 15px; height: 15px; }
.cs-primary:hover { background: #38bdf8; }
.cs-primary:disabled, .cs-primary.is-busy { opacity: .6; cursor: wait; }
.cs-panel .gt-cap-hint { font-size: 11px; color: #94a3b8; }
.cs-panel .gt-cap-hint.is-error { color: #f87171; }
.cs-panel .gt-cap-hint.is-ok { color: #34d399; }
.cs-panel .gt-cap-hint.is-busy { color: #38bdf8; }

/* Source panes */
.cs-mode-box { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cs-drop { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; border: 1px dashed #475163;
    border-radius: 12px; background: #181b22; cursor: pointer; transition: border-color .15s, background .15s; }
.cs-drop:hover, .cs-drop:focus-visible { border-color: rgba(56, 189, 248, .6); background: #1b1f28; }
.cs-drop-icon { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
    background: #20242d; border: 1px solid rgba(255, 255, 255, .05); color: #cbd5e1; }
.cs-drop:hover .cs-drop-icon { color: #38bdf8; }
.cs-drop-icon svg { width: 16px; height: 16px; }
.cs-drop-text { flex: 1 1 110px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-drop-title { font-size: 12px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-drop-sub { font-size: 10px; color: #94a3b8; }
.cs-field-label { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: #94a3b8; }
.cs-field-val { color: #38bdf8; font-weight: 700; }
.cs-quicks { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-quick { padding: 3px 10px; border: 1px solid #323946; border-radius: 999px; background: #181b22; color: #cbd5e1; font: inherit;
    font-size: 11px; cursor: pointer; transition: border-color .15s, color .15s; }
.cs-quick:hover { border-color: rgba(56, 189, 248, .6); color: #fff; }

/* Options injected by caption_options.js (AI mode) */
.cs-panel .gt-cap-opts { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 10px; background: #181b22;
    border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.cs-panel .gt-cap-opts label { font-size: 10.5px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #94a3b8; gap: 4px; }
.cs-panel .gt-cap-opts select { height: 30px; font-size: 11.5px; padding: 0 6px; background: #13151b; border-color: rgba(255, 255, 255, .1); border-radius: 8px; }
.cs-panel .gt-cap-opts .gt-cap-opts-check { font-size: 11.5px; }

.cs-lines .gt-cap-list { max-height: 230px; background: #13151b; }
.cs-panel .gt-cap-text { font-size: 12px; }
/* Row actions float over the text, so lines keep their full width */
.cs-panel .gt-cap-row { position: relative; }
.cs-panel .gt-cap-actions { position: absolute; top: 4px; right: 4px; padding: 2px; border-radius: 7px; background: #20242d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .5); pointer-events: none; }
.cs-panel .gt-cap-row:hover .gt-cap-actions, .cs-panel .gt-cap-row:focus-within .gt-cap-actions { pointer-events: auto; }

/* Presets */
.cs-presets-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-chip { flex: 0 0 auto; padding: 4px 12px; border: 1px solid rgba(255, 255, 255, .05); border-radius: 7px; background: #181b22; color: #94a3b8;
    font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; }
.cs-chip:hover { color: #fff; }
.cs-chip.active { background: #0ea5e9; border-color: #0ea5e9; color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cs-count { margin-left: 4px; color: #7b8496; font-family: inherit; }
.cs-search { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 8px;
    background: #13151b; color: #64748b; cursor: text; }
.cs-search:focus-within { border-color: rgba(56, 189, 248, .6); }
.cs-search svg { flex: 0 0 auto; width: 14px; height: 14px; }
.cs-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; color: #fff; font: inherit; font-size: 12px; }
.captions-panel .preview-grid.cs-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; margin: 0; padding: 2px;
    flex: none; overflow: visible; }
.captions-panel .cs-grid .preview-tile { height: auto; min-height: 66px; aspect-ratio: 16 / 9; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .06);
    background: #181b22; transition: border-color .15s; }
.captions-panel .cs-grid .preview-tile:hover { border-color: #475163; }
.captions-panel .cs-grid .preview-tile.selected { border-color: #38bdf8; background: #202633; box-shadow: 0 0 10px rgba(56, 189, 248, .18); }
.cs-anim { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cs-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cs-select { width: 100%; height: 30px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; background: #181b22; color: #fff;
    font: inherit; font-size: 12px; }
.cs-select:focus { border-color: rgba(56, 189, 248, .6); }
.cs-range { width: 100%; height: 30px; margin: 0; accent-color: #38bdf8; }

/* Dock: layout tools + apply, always visible */
.cs-dock { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; max-width: 720px; margin: 4px auto 0;
    padding: 10px; background: #181b22; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; }
.cs-dock-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; flex: 1 1 250px; min-width: 0; }
.cs-tool-group { display: flex; gap: 2px; min-width: 0; padding: 3px; background: #13151b; border: 1px solid rgba(255, 255, 255, .05); border-radius: 8px; }
.cs-tool { flex: 1 1 0; width: auto; min-width: 0; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px;
    background: transparent; color: #94a3b8; cursor: pointer; transition: background .15s, color .15s; }
.cs-tool svg { width: 14px; height: 14px; }
.cs-tool:hover { color: #fff; }
.cs-tool.active { background: #0ea5e9; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cs-tool-text { font: inherit; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; font-weight: 600; }
.cs-apply { flex: 1 1 160px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 14px;
    border: 0; border-radius: 9px; background: #0ea5e9; color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: background .15s, opacity .15s; }
.cs-apply svg { flex: 0 0 auto; width: 14px; height: 14px; }
.cs-apply span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-apply:hover { background: #38bdf8; }
.cs-apply:disabled { opacity: .6; cursor: wait; }
.cs-apply-badge { flex: 0 0 auto; padding: 0 7px; border-radius: 999px; background: #13151b; border: 1px solid rgba(56, 189, 248, .2); color: #7dd3fc;
    font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; line-height: 18px; }

@media (max-width: 520px) {
    .cs-seg-btn svg { display: none; }
    .cs-drop-icon { display: none; }
}
@media (max-width: 340px) {
    .cs-tool { width: 25px; }
}

/* ---- Clean design: AI tab is a small chat ---- */
.cs-chat { gap: 8px; }
.cs-chat-log { display: flex; flex-direction: column; gap: 6px; min-height: 56px; max-height: 230px; overflow-y: auto; padding: 2px; }
.cs-bubble { max-width: 92%; padding: 7px 10px; border-radius: 12px; font-size: 12px; line-height: 1.55; color: #e2e8f0;
    background: #20242d; word-break: break-word; }
.cs-bubble.is-ai { align-self: flex-start; border-bottom-left-radius: 4px; }
.cs-bubble.is-user { align-self: flex-end; background: #0ea5e9; color: #fff; border-bottom-right-radius: 4px; }
.cs-bubble.is-error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); color: #fca5a5; }
.cs-bubble.is-busy { color: #7dd3fc; }
.cs-bubble.is-busy::after { content: "…"; animation: cs-blink 1s steps(2, start) infinite; }
@keyframes cs-blink { to { visibility: hidden; } }
.cs-bubble .cs-btn { margin-top: 5px; padding: 3px 9px; font-size: 11px; }
#srt-ai-keywarn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#srt-ai-keywarn .cs-btn { margin-top: 0; }
.cs-quicks { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-quick { padding: 3px 14px; border: 1px solid #323946; border-radius: 999px; background: #181b22; color: #cbd5e1; font: inherit;
    font-size: 12px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.cs-quick:hover { border-color: rgba(56, 189, 248, .6); color: #fff; }
.cs-composer { display: flex; align-items: flex-end; gap: 6px; padding: 4px; background: #13151b; border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px; transition: border-color .15s; }
.cs-composer:focus-within { border-color: rgba(56, 189, 248, .6); }
.cs-composer-input { flex: 1 1 auto; min-width: 0; min-height: 30px; max-height: 92px; resize: none; padding: 6px 4px; border: 0;
    background: transparent; color: #fff; font: inherit; font-size: 12.5px; line-height: 1.5; outline: none; }
.cs-composer-input::placeholder { color: #64748b; }
.cs-round { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
    background: #20242d; color: #cbd5e1; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.cs-round svg { width: 15px; height: 15px; }
.cs-round:hover { background: #323946; color: #fff; }
.cs-round.cs-round-go { background: #0ea5e9; color: #fff; }
.cs-round.cs-round-go:hover { background: #38bdf8; }
.cs-round:disabled, .cs-round.is-busy { opacity: .55; cursor: wait; }

/* Styles card: chips + search on one row, no extra captions */
.cs-presets-head { padding-bottom: 0; border-bottom: 0; }
.cs-search { flex: 1 1 110px; max-width: 190px; margin-left: auto; }
.cs-count { margin: 0; font-size: 10.5px; color: #7b8496; }
.cs-count { display: none; }
.cs-popup { gap: 10px; }

/* ---- Timeline / AI / Templates: one big screen each ---- */
.cs-head { position: relative; flex: 0 0 auto; }
.cs-seg { max-width: none; }
.cs-seg-btn { padding: 9px 10px; font-size: 13px; font-weight: 600; }
.cs-mode-box { flex: 1 1 auto; min-height: 0; }
.cs-timeline .cs-lines { flex: 1 1 auto; min-height: 0; }
.cs-lines .gt-cap-list { flex: 1 1 auto; max-height: none; min-height: 180px; overflow-y: auto; }
.cs-panel .gt-cap-text { font-size: 14px; }
#caption-srt-parsed-count-pill { display: none !important; }
.cs-srt-corner { display: inline-flex; }
.cs-srt-corner .cs-btn { display: inline-flex; align-items: center; gap: 4px; }
.cs-srt-corner svg { width: 13px; height: 13px; }
.cs-lines .cs-drop-title { font-size: 13px; max-width: 150px; }
.cs-chat { display: flex; flex-direction: column; min-height: 300px; }
.cs-chat-log { flex: 1 1 auto; max-height: none; min-height: 180px; }
.cs-bubble { font-size: 13px; }
.cs-result-bar { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; }
.cs-composer-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cs-layer-name { padding: 2px 4px 0; font-size: 10px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-round.is-ready { background: #0ea5e9; color: #fff; }
/* Templates are the main thing: two big cards per row, thin names, a tick on the chosen one */
.captions-panel .preview-grid.cs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.captions-panel .cs-grid .preview-tile { position: relative; min-height: 96px; border-radius: 10px; overflow: hidden; }
.captions-panel .cs-grid .preview-tile > span { font-size: 9px !important; font-weight: 400 !important; padding: 0 5px !important; line-height: 14px !important; background: rgba(0, 0, 0, .45) !important; }
.captions-panel .cs-grid .preview-tile.selected::after { content: "✓"; position: absolute; top: 6px; right: 6px; z-index: 30; width: 20px; height: 20px; display: grid; place-items: center;
    border-radius: 50%; background: #0ea5e9; color: #fff; font-size: 12px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* Removed from the product: reorder + export buttons, extra three-dot options */
#layout-organizer-container, #menu-fx-console-btn, #adv-insert-header-btn, #menu-custom-folder-btn, #menu-fav-export-btn, #menu-refresh-btn { display: none !important; }

/* Pen icon: white, always readable */
.template-edit-btn, .preset-customize-btn { color: #fff !important; border-color: rgba(255, 255, 255, .45) !important; background: rgba(10, 15, 26, .85) !important; }
.template-edit-btn svg, .preset-customize-btn svg { width: 15px !important; height: 15px !important; }
.template-edit-btn:hover, .preset-customize-btn:hover { background: #0ea5e9 !important; border-color: #0ea5e9 !important; }
/* Template editor: bigger, less cramped */
#template-customizer-modal .minimal-modal-card { max-width: 720px; width: 96vw; max-height: 94vh; display: flex; flex-direction: column; }
#template-customizer-modal .fields-stack { max-height: none; flex: 1 1 auto; min-height: 0; }
#template-customizer-modal .tc-preview { flex: 0 0 auto; max-height: 26vh; }
#template-customizer-modal .tc-color-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
/* Wide enough: preview on the left, every control on the right, so nothing is cut off */
@media (min-width: 640px) {
    #template-customizer-modal .minimal-modal-card.tc-mode {
        max-width: 900px;
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        column-gap: 18px;
        height: 94vh;
    }
    #template-customizer-modal .tc-mode > .header { grid-column: 1 / -1; grid-row: 1; }
    #template-customizer-modal .tc-mode > .tc-preview { grid-column: 1; grid-row: 2; align-self: start; width: 100%; height: auto; max-height: 100%; }
    #template-customizer-modal .tc-mode > .fields-stack { grid-column: 2; grid-row: 2 / span 2; height: 100%; max-height: none; }
    #template-customizer-modal .tc-mode > .action-btn { grid-column: 1; grid-row: 3; }
}

/* ---- AI chat: progress bar, layer chip, clean composer ---- */
.cs-bubble.is-busy::after { display: none; }
.cs-prog { height: 4px; margin-top: 7px; border-radius: 2px; background: #0d1220; overflow: hidden; min-width: 140px; }
.cs-prog > div { height: 100%; width: 0; border-radius: 2px; background: #38bdf8; transition: width .3s linear; }
.cs-prog.is-indeterminate > div { width: 35%; animation: csSlide 1.4s ease-in-out infinite; }
@keyframes csSlide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
.cs-layer-chip { align-self: flex-start; max-width: 100%; margin: 2px 0 -2px; padding: 3px 10px; border-radius: 999px; background: #13151b;
    border: 1px solid rgba(255, 255, 255, .08); }
.cs-layer-chip .cs-layer-name { display: block; padding: 0; font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-composer { align-items: center; min-height: 44px; }
.cs-composer-main { justify-content: center; }
.cs-composer-input { min-height: 26px; padding: 4px; }
.cs-chat-log { min-height: 120px; }
.cs-bubble .cs-btn { margin-top: 6px; }
