/* Live Chat studio — inherits the saturated red site chrome. */
.theme-page.page-chat .shell{width:min(1240px,calc(100% - 64px))}
.theme-page.page-chat .hero{padding:22px 0 40px;max-width:850px}
.theme-page.page-chat .hero h1{margin:16px auto;font-size:clamp(42px,5vw,66px)}
.theme-page.page-chat .hero>p{max-width:620px;margin:0 auto;font-size:14px}
.theme-page.page-chat .hero .search-box{margin-top:24px;width:min(760px,100%)}
.chat-studio{position:relative;min-width:0}
.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:22px}
.studio-heading h2{display:flex;align-items:center;flex-wrap:wrap;gap:14px;font-size:27px;font-weight:650;letter-spacing:-.04em;margin:9px 0}
.studio-count{font-size:8px;font-weight:700;letter-spacing:.12em;color:var(--tone-ff4d68,#ff4d68);border:1px solid var(--tone-ff002b35,#ff002b35);border-radius:6px;padding:6px 8px;background:var(--tone-ff002b09,#ff002b09)}
.studio-heading p{color:#979797;font-size:12px;margin:0;line-height:1.6}
.studio-save{display:flex;align-items:center;gap:16px;flex:0 0 auto}
.studio-save>span{font-size:10px;color:#9c9c9c;max-width:190px;line-height:1.5}
.studio-save>span[data-state="dirty"]{color:var(--tone-ff6780,#ff6780)}.studio-save>span[data-state="error"]{color:var(--tone-ff7890,#ff7890)}
.theme-page .studio-save .primary-btn{padding:0 22px;min-height:44px;font-size:11px}
.designer-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:22px;align-items:start}
.theme-page .designer-controls,.theme-page .designer-preview,.theme-page .designer-export{padding:24px;border-radius:22px;border:1px solid #ffffff15;background:linear-gradient(145deg,var(--tone-ff002b06,#ff002b06),transparent 50%),#121212dd}
.designer-controls>*{position:relative;z-index:1}
.designer-section-head,.customizer-head,.preview-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.designer-section-head h3,.customizer-head h3,.preview-top h3,.designer-export h3{font-size:18px;font-weight:600;letter-spacing:-.025em;margin:7px 0 0}
.design-indicator{flex:0 0 auto;padding:7px 10px;border:1px solid var(--tone-ff002b30,#ff002b30);border-radius:8px;font-size:10px;color:var(--tone-ff637e,#ff637e);background:var(--tone-ff002b0a,#ff002b0a)}
.chat-design-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 26px}
.chat-design-option{position:relative;display:block;min-width:0;text-align:left;border:1px solid #ffffff14;border-radius:13px;padding:10px;background:#0d0d0d;color:#fff;cursor:pointer;transition:border-color .2s,background .2s,transform .2s;overflow:hidden}
.chat-design-option:hover{border-color:#ffffff36;transform:translateY(-2px)}
.chat-design-option[aria-pressed="true"]{border-color:var(--tone-ff002b,#ff002b);background:linear-gradient(140deg,var(--tone-ff002b12,#ff002b12),transparent 70%),#141414;box-shadow:inset 0 0 0 1px var(--tone-ff002b15,#ff002b15),0 5px 22px var(--tone-ff002b08,#ff002b08)}
.chat-design-option>strong{display:flex;justify-content:space-between;align-items:center;font-size:12px;letter-spacing:-.01em;font-weight:600;margin-top:10px}
.chat-design-option>strong i{height:16px;width:16px;display:grid;place-items:center;border:1px solid #ffffff20;border-radius:50%;font-size:8px;font-style:normal;color:transparent}
.chat-design-option[aria-pressed="true"]>strong i{background:var(--tone-ff002b,#ff002b);border-color:var(--tone-ff002b,#ff002b);color:white}
.chat-design-option>small{display:block;font-size:9px;color:#939393;line-height:1.5;margin-top:4px}
.chat-mini{height:75px;border-radius:7px;padding:7px 10px;display:flex;flex-direction:column;gap:4px;border:1px solid #ffffff0b;background:repeating-conic-gradient(#101010 0% 25%,#141414 0% 50%) 50%/12px 12px;overflow:hidden}
.mini-header{height:7px;width:45%;flex:0 0 auto;border-radius:2px;background:linear-gradient(90deg,var(--tone-ff002b,#ff002b) 9%,#696969 9%,#696969 75%,transparent 75%);margin-bottom:2px}
.mini-row{display:flex;align-items:center;gap:5px;min-height:14px;flex:1;background:#202020dd;padding:4px 6px;border-radius:3px;position:relative}
.mini-row>i{width:10px;height:10px;flex:0 0 auto;border-radius:50%;background:linear-gradient(135deg,var(--tone-ff002b,#ff002b),#464646)}
.mini-row>b{display:block;width:75%;height:8px;background:linear-gradient(#a7a7a7 0 2px,transparent 2px 5px,#555 5px 7px,transparent 7px);border-radius:1px}
.chat-mini[data-mini="studio"]{background:#202020;border-top:2px solid var(--tone-ff002b,#ff002b)}.chat-mini[data-mini="studio"] .mini-row{padding:3px 0;border-radius:0;border-top:1px solid #ffffff0a}
.chat-mini[data-mini="glass"] .mini-row{border:1px solid #ffffff20;background:linear-gradient(120deg,#ffffff10,#191919aa);border-radius:5px}
.chat-mini[data-mini="bubble"] .mini-row{background:transparent;padding:0}.chat-mini[data-mini="bubble"] .mini-row>b{height:14px;border-radius:5px 5px 5px 1px;background:linear-gradient(90deg,#777 35%,transparent 35%) 5px 4px/70px 2px no-repeat,linear-gradient(90deg,#484848 80%,transparent 80%) 5px 9px/70px 2px no-repeat,#282828;width:100%}
.chat-mini[data-mini="editorial"] .mini-row{background:transparent;border-bottom:1px solid #ffffff25;border-radius:0;padding:3px 0}.chat-mini[data-mini="editorial"] .mini-row>i,.chat-mini[data-mini="split"] .mini-row>i,.chat-mini[data-mini="minimal"] .mini-row>i{display:none}
.chat-mini[data-mini="split"] .mini-row>b{background:linear-gradient(90deg,#aaa 0 24%,transparent 24% 30%,var(--tone-ff002b,#ff002b) 30% 32%,transparent 32% 38%,#777 38% 100%) 0 50%/100% 3px no-repeat;width:100%}
.chat-mini[data-mini="neon"] .mini-row{border:1px solid var(--tone-ff002b66,#ff002b66);box-shadow:inset 2px 0 var(--tone-ff002b,#ff002b);background:#171717}.chat-mini[data-mini="neon"] .mini-row>i{border-radius:3px}
.chat-mini[data-mini="minimal"] .mini-header{display:none}.chat-mini[data-mini="minimal"] .mini-row{background:transparent;padding:3px 0}.chat-mini[data-mini="minimal"] .mini-row>b{width:92%}
.chat-mini[data-mini="cards"] .mini-row{border:1px solid #ffffff1c;border-radius:5px}.chat-mini[data-mini="cards"] .mini-row>b{height:10px;background:linear-gradient(#aaa 0 2px,transparent 2px 5px,#555 5px 7px,transparent 7px)}
.customizer-head{padding-top:22px;border-top:1px solid #ffffff10;margin-bottom:17px}
.theme-page .quiet-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;background:#ffffff04;border:1px solid #ffffff15;border-radius:8px;min-height:34px;padding:7px 10px;font-size:10px;color:#c3c3c3;cursor:pointer}
.theme-page .quiet-button:hover{background:var(--tone-ff002b0a,#ff002b0a);border-color:var(--tone-ff002b40,#ff002b40);color:white}
.design-group{border-top:1px solid #ffffff10}
.design-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:17px 0;color:#d4d4d4;font-size:12px;font-weight:550}
.design-group>summary::-webkit-details-marker{display:none}.design-group>summary>span{display:flex;align-items:center;gap:10px}.design-group>summary b{font-family:ui-monospace,monospace;color:var(--tone-ff3f60,#ff3f60);font-size:9px;font-weight:400}.design-group>summary i{font-style:normal;font-size:16px;color:#888;transition:transform .2s}.design-group[open]>summary i{transform:rotate(45deg)}
.design-group-body{padding:0 0 20px;display:flex;flex-direction:column;gap:17px}
.color-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.color-control{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #ffffff12;border-radius:10px;background:#0b0b0b;font-size:11px;color:#ccc}
.color-control input[type="color"]{appearance:none;width:34px;height:34px;padding:0;border:1px solid #ffffff1c;border-radius:8px;background:transparent;cursor:pointer;flex:0 0 auto;overflow:hidden}
.color-control input::-webkit-color-swatch-wrapper{padding:0}.color-control input::-webkit-color-swatch{border:0;border-radius:6px}.color-control input::-moz-color-swatch{border:0;border-radius:6px}
.color-control span{line-height:1.4;min-width:0}.color-control small{display:block;color:#777;font-size:9px;margin-top:2px;text-transform:uppercase;font-family:ui-monospace,monospace}
.range-control{display:flex;flex-direction:column;gap:11px;color:#bcbcbc;font-size:11px}.range-control>span{display:flex;justify-content:space-between;align-items:center;gap:10px}.range-control output{color:#fff;font-size:10px;font-variant-numeric:tabular-nums}
.range-control input{appearance:none;display:block;width:100%;height:4px;padding:0;border:0;border-radius:4px;background:linear-gradient(90deg,var(--tone-ff002b,#ff002b) var(--range-fill,50%),#2c2c2c var(--range-fill,50%));accent-color:var(--tone-ff002b,#ff002b);cursor:pointer;margin:5px 0}
.range-control input::-webkit-slider-thumb{appearance:none;width:13px;height:13px;border-radius:50%;background:#fff;border:2px solid var(--tone-ff002b,#ff002b);box-shadow:0 0 0 3px var(--tone-ff002b15,#ff002b15)}.range-control input::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid var(--tone-ff002b,#ff002b)}
.control-grid,.toggle-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field-control{display:flex;flex-direction:column;gap:8px;color:#aaa;font-size:10px;min-width:0}
.theme-page .field-control :is(input,select){width:100%;min-width:0;padding:0 11px;height:42px;border:1px solid #ffffff16;border-radius:8px;background:#0b0b0b;color:#eee;font-size:11px;outline:0}
.control-help{margin:0;color:#777;font-size:10px;line-height:1.6}
.toggle-control{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#bcbcbc;cursor:pointer;min-height:32px}
.toggle-control input{position:absolute;right:0;width:32px;height:20px;opacity:0;margin:0;cursor:pointer}.toggle-control i{width:32px;height:19px;flex:0 0 auto;border:1px solid #ffffff20;border-radius:20px;background:#242424;transition:background .2s;pointer-events:none}
.toggle-control i:after{content:'';display:block;width:11px;height:11px;margin:3px;border-radius:50%;background:#858585;transition:transform .2s,background .2s}.toggle-control input:checked+i{background:var(--tone-ff002b,#ff002b);border-color:var(--tone-ff002b,#ff002b)}.toggle-control input:checked+i:after{background:white;transform:translateX(13px)}.toggle-control input:focus-visible+i{outline:2px solid white;outline-offset:3px}
.designer-preview-column{position:sticky;top:24px;display:flex;flex-direction:column;gap:18px;min-width:0}
.theme-page .designer-preview{padding:22px}
.preview-top h3{font-size:23px}.preview-top .quiet-button span{font-size:17px;line-height:1}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 14px}
.preview-mode{display:flex;padding:3px;border:1px solid #ffffff12;border-radius:9px;background:#0a0a0a}
.preview-mode button{background:transparent;border:0;color:#888;font-size:10px;padding:8px 12px;cursor:pointer;border-radius:6px}.preview-mode button.active{color:#fff;background:var(--tone-ff002b,#ff002b);box-shadow:0 3px 12px var(--tone-ff002b20,#ff002b20)}
.canvas-size{color:#8b8b8b;font-size:10px;font-family:ui-monospace,monospace;font-variant-numeric:tabular-nums;white-space:nowrap}
.chat-preview-stage{position:relative;height:520px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff12;border-radius:14px;background:radial-gradient(ellipse at 50% 0,var(--tone-ff002b09,#ff002b09),transparent 70%),repeating-conic-gradient(#0e0e0e 0% 25%,#121212 0% 50%) 50%/24px 24px;overflow:hidden}
.chat-preview-fit{position:relative;flex:0 0 auto;max-width:100%;overflow:hidden}
.chat-preview-fit iframe{display:block;border:0;transform-origin:0 0;background:transparent;color-scheme:normal}
.preview-corner{position:absolute;pointer-events:none;width:12px;height:12px;border-color:var(--tone-ff002b70,#ff002b70);border-style:solid}.corner-tl{left:9px;top:9px;border-width:1px 0 0 1px}.corner-br{right:9px;bottom:9px;border-width:0 1px 1px 0}
.preview-caption{display:flex;align-items:center;justify-content:center;gap:7px;margin:13px 0 0;font-size:9px;color:#838383;line-height:1.5}.preview-caption .live-dot{width:4px;height:4px;flex:0 0 4px;box-shadow:none}
.theme-page .designer-preview .preview-top>div{display:block}
.mobile-preview-jump{display:none}
.connected-stream{display:flex;align-items:center;gap:10px;margin-top:18px;border-top:1px solid #ffffff12;padding-top:16px}.connected-stream[hidden]{display:none}.connected-stream>div{flex:1;min-width:0}.connected-stream strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}.connected-stream>div>span{display:block;color:#777;font-size:9px;margin-top:3px}.connected-stream>.live-badge{font-size:8px;padding:6px;box-shadow:none;flex:0 0 auto}.connected-stream>#chatStatus{font-size:8px;color:#aaa;flex:0 0 auto}
.theme-page .designer-export h3{font-size:20px}.designer-export>p{font-size:11px;color:#919191;line-height:1.7;margin:14px 0 18px}.designer-export>label{display:block;font-size:9px;letter-spacing:.04em;color:#888;margin-bottom:8px}.designer-export .url-row input{color:#c5c5c5;font-size:10px;height:42px}.designer-export .url-row button{font-size:10px;padding:0 12px}
.obs-size-line{display:flex;justify-content:space-between;gap:10px;padding:14px 0 18px;font-size:10px;color:#8b8b8b}.obs-size-line strong{color:#ccc;font-size:10px;font-weight:500;white-space:nowrap}.designer-export .export-actions{grid-template-columns:1fr 1fr;gap:10px}.designer-export .export-actions :is(a,button){font-size:10px;min-height:42px}
.chat-studio button:disabled{opacity:.42;cursor:default;transform:none}.chat-studio a[aria-disabled="true"]{opacity:.42;cursor:default}
.chat-studio :is(button,input,select,summary):focus-visible{outline:2px solid var(--tone-ff4d68,#ff4d68);outline-offset:3px}
@media(max-width:1000px){.theme-page.page-chat .shell{width:calc(100% - 48px)}.designer-grid{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.theme-page .designer-controls,.theme-page .designer-preview,.theme-page .designer-export{padding:18px}.chat-design-gallery{gap:9px}.chat-mini{padding:6px;height:66px}.chat-design-option>small{font-size:8px}.chat-preview-stage{height:480px}.designer-section-head h3,.customizer-head h3{font-size:16px}.studio-heading h2{font-size:25px}}
@media(max-width:760px){.designer-grid{grid-template-columns:1fr}.designer-preview-column{position:static;grid-row:1}.chat-preview-stage{height:440px}.studio-heading{align-items:flex-start;flex-direction:column;gap:16px}.studio-save{width:100%;justify-content:space-between}.studio-save>span{max-width:none}.designer-controls{margin-top:4px}.chat-mini{height:84px}.chat-design-option>small{font-size:9px}.designer-export .export-actions{grid-template-columns:1fr 1fr}.theme-page.page-chat .hero{padding:18px 0 32px}}
@media(max-width:560px){.theme-page.page-chat .shell{width:calc(100% - 32px)}.theme-page.page-chat .hero h1{font-size:42px}.theme-page.page-chat .hero>p{font-size:12px;line-height:1.7}.theme-page.page-chat .hero .search-box{margin-top:20px}.studio-heading h2{font-size:24px;gap:10px}.studio-count{font-size:7px}.studio-heading p{font-size:11px}.theme-page .designer-controls,.theme-page .designer-preview,.theme-page .designer-export{padding:17px;border-radius:17px}.chat-preview-stage{height:440px}.preview-caption{font-size:8px}.chat-mini{height:73px}.chat-design-option{padding:8px}.chat-design-gallery{gap:9px}.customizer-head h3{font-size:16px}.color-control{padding:8px;gap:8px;font-size:10px}.color-control input[type="color"]{width:28px;height:28px}.color-control small{font-size:8px}.control-grid,.toggle-grid{gap:10px}.designer-section-head h3{font-size:16px}.design-indicator{font-size:9px;padding:6px 8px}}
@media(max-width:360px){.theme-page.page-chat .shell{width:calc(100% - 24px)}.theme-page .designer-controls,.theme-page .designer-preview,.theme-page .designer-export{padding:13px}.chat-preview-stage{height:390px}.chat-design-option>small{font-size:8px}.chat-mini{padding:5px;height:62px}.customizer-head h3{font-size:14px}.obs-size-line{font-size:9px}.canvas-size{font-size:9px}.studio-heading h2{font-size:23px}.studio-count{padding:5px 6px}.connected-stream{flex-wrap:wrap}.connected-stream>#chatStatus{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.chat-design-option,.toggle-control i,.toggle-control i:after,.design-group>summary i{transition:none}.chat-design-option:hover{transform:none}}
@media(max-width:760px){.mobile-preview-jump:not([hidden]){display:flex;align-items:center;gap:12px;position:fixed;right:16px;bottom:16px;z-index:25;min-height:44px;padding:0 16px;border:1px solid var(--tone-ff002b80,#ff002b80);border-radius:12px;background:#151515ed;backdrop-filter:blur(14px);box-shadow:0 5px 25px #0008;color:white;font-size:11px;font-weight:600;cursor:pointer}.mobile-preview-jump span{color:var(--tone-ff526f,#ff526f)}}
@media(max-width:760px){.theme-page.page-chat .toast{bottom:76px}}
