
/* CamChat.one — Approved premium design, additive theme layer.
   Existing IDs, core JS, stream dialogs, advertising and moderation are retained. */
:root,html[data-theme="dark"]{color-scheme:dark;--c:#aa5df4;--cd:#7c45db;--cl:#c39afa;--cg:linear-gradient(120deg,#b230e6 0%,#8249f5 58%,#4279ff 100%);--cg2:linear-gradient(120deg,#7226ce,#2c45b9);--bg:#080a20;--sf:#11142f;--s2:#191c3d;--s3:#24264d;--s4:#35335d;--t1:#f1efff;--t2:#cbc7eb;--t3:#a29cce;--t4:#837cae;--bo:rgba(182,151,250,.13);--bo2:rgba(182,151,250,.25);--glass-bg:rgba(17,19,45,.96);--glass-border:rgba(173,115,254,.3);--sh1:0 2px 7px #01031255;--sh2:0 7px 19px #01031288;--sh3:0 15px 43px #01031299;--shc:0 5px 20px #994cff55;--shc2:0 10px 28px #994cff8a;--sidebar-w:280px}
html[data-theme="light"]{color-scheme:light;--c:#7950d6;--cd:#5830b3;--cl:#945df0;--cg:linear-gradient(120deg,#aa3ce2,#6a56dc,#467bed);--cg2:linear-gradient(120deg,#a14fe6,#465fcd);--bg:#f4f1ff;--sf:#fff;--s2:#f2eeff;--s3:#e4ddf8;--s4:#d5c9ed;--t1:#211538;--t2:#50436c;--t3:#766b8e;--t4:#958ca5;--bo:rgba(99,69,153,.1);--bo2:rgba(99,69,153,.19);--glass-bg:rgba(255,255,255,.96);--glass-border:#ddd0ff}
*,*:before,*:after{box-sizing:border-box}
html,body{background:var(--bg)}body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--t1)}
#app{height:100vh;height:100dvh;grid-template-rows:72px minmax(0,1fr);background:radial-gradient(ellipse at 82% -35%,#6124aa55,transparent 56%),var(--bg)}
.topbar{height:72px;min-height:72px;background:#0d0d2af0;border-bottom:1px solid #9968dd3a;padding:0 17px;box-shadow:0 1px 18px #050419aa;gap:20px;backdrop-filter:blur(15px)}.tb-logo{gap:9px}.tb-logo-badge{width:44px;height:42px;background:none;box-shadow:none;border-radius:0}.tb-logo-badge .cc-logo-mark{width:45px;height:40px;display:block;filter:drop-shadow(0 0 9px #824affaa)}.tb-logo-text{color:#fff;font-size:23px;letter-spacing:-1px;font-weight:900}.tb-logo-text span{color:#d279ff}.cc-header-links{display:flex;gap:5px;align-items:center}.cc-header-links a,.cc-header-links button{border:1px solid transparent;background:transparent;color:#d2c6ed;font:inherit;font-weight:700;text-decoration:none;font-size:12px;padding:10px 12px;border-radius:10px;cursor:pointer;white-space:nowrap}.cc-header-links a:hover,.cc-header-links button:hover,.cc-header-links button:focus-visible{background:#b15cfa22;border-color:#b15cfa55;color:white}.tb-nav{gap:8px}.tb-nav-btn,.tb-profile,.stream-top-btn{border:1px solid #ad7eff4d!important;background:#26234ca8!important;color:#f2dfff!important;box-shadow:none!important;border-radius:13px!important}.tb-nav-btn:hover,.tb-profile:hover,.stream-top-btn:hover{border-color:#cd8cfe!important;background:#48277bc2!important;transform:none}.tb-profile{padding:5px 12px 5px 5px}.tb-nick{color:#f7efff}.tb-av{border-color:#bd84ff}.stream-top-btn{background:linear-gradient(120deg,#7f40d9,#5031aa)!important}.stream-top-btn.live{background:#6f1f5d!important;color:#fff!important;border-color:#fb6fba!important}
.content{padding:13px;display:flex;gap:11px;background:transparent;min-height:0;align-items:stretch;overflow:hidden}.dsb{width:64px;flex:none;padding:13px 5px;gap:7px;border:1px solid #a277e345;border-radius:18px;background:#131331;color:#ddd8f4;box-shadow:none}.dsb-btn{width:51px;height:55px;border-radius:12px;color:#a9a1cf}.dsb-btn.on,.dsb-btn:hover{background:linear-gradient(115deg,#7a24ca,#693adb)!important;color:#fff;box-shadow:0 4px 15px #9445ef77}.dsb-lbl{font-size:9px}
.up{background:linear-gradient(180deg,#151535,#10122d);border:1px solid #8c71d044;border-radius:18px;box-shadow:none!important;flex:none;min-height:0;overflow:hidden}.up-hd{background:transparent;color:#cabcf0;border-bottom:1px solid #ffffff17;padding:15px 17px;font-size:12px;letter-spacing:.7px}.ulist{background:transparent;scrollbar-color:#754cb7 transparent}.ur{background:transparent!important;color:var(--t1);padding:11px 12px;min-height:76px;border-right:none;border-bottom:1px solid #a879ed1d;gap:11px;box-shadow:none!important;transition:background .12s}.ur:nth-child(odd){background:#20204850!important}.ur:hover{background:#4a307468!important;transform:none!important;filter:none!important}.ur-me{background:#7b4be23d!important;border-left:3px solid #c680ff;padding-left:11px}.ur-av{width:45px;height:45px;box-shadow:0 1px 0 #fff1}.ur-name{color:#f6f1ff;font-size:13px;font-weight:800}.ur-sub{color:#a69bc9;font-size:10px;line-height:1.55}.ur-right{gap:3px}.ur-flag img{width:28px;height:21px}.ur-unread{background:#a935ee}.thumb-strip{background:#1a1740;border-bottom:1px solid #b48aff26;padding:9px}.thumb-ad{background:linear-gradient(110deg,#6b24c1,#453baf);box-shadow:none}.thumb-users{gap:7px}.side-ad-slot{border:1px dashed #9472d34d;background:#171837;border-radius:14px;color:#c5bee2}.side-ad-title{color:#b8a9e0}.side-ad-lbl{color:#9384b8}
.cc{background:#0e102b;border:1px solid #9868dd4d;border-radius:18px;min-width:0;min-height:0;overflow:hidden;box-shadow:none}.ch-hdr{height:72px;min-height:72px;border-bottom:1px solid #9269ec3e;background:linear-gradient(90deg,#19153e,#141435);padding:0 16px;gap:12px}.ch-back,.ch-btn{background:#272149;color:#dbc6ff;border:1px solid #ae7af149;border-radius:12px}.ch-btn:hover,.ch-back:hover{background:#4a2d77;color:#fff}.ch-av{width:44px;height:44px;border:2px solid #b16ef4}.ch-name{font-size:17px;color:#f0e8ff}.ch-meta{color:#aca3cc;font-size:11px}.msgs{background:radial-gradient(ellipse at 56% 0%,#3318626c,transparent 52%),linear-gradient(155deg,#151135,#0c1029 60%,#171338)!important;color:var(--t1);padding:20px 18px 10px;gap:9px}.bbl{max-width:79%;font-size:13px;font-weight:500;border-radius:18px;padding:11px 14px}.bbl.recv{background:#27224b;color:#f1eaff;border:1px solid #6f5b9d58;box-shadow:none}.bbl.sent{background:linear-gradient(130deg,#9838dc,#603eed);color:white;box-shadow:0 5px 13px #47269b75}.bmeta{font-size:10px;color:#ddd2ff}.bbl.recv .bmeta{color:#a8a0ca}.cempty{background:radial-gradient(circle at 50% 30%,#6929a145,transparent 58%),#0c1029;color:#f8eeff;padding:22px}.cc-empty-art{border:1px solid #b36bfc7a;width:80px;height:80px;display:grid;place-items:center;border-radius:25px;font-size:46px;color:#b67ef7;background:linear-gradient(145deg,#6925ae5e,#23265677);box-shadow:0 0 42px #8444ea46;margin-bottom:5px}.cempty-ico{display:none!important}.cempty-t{color:#f8eaff;font-size:23px;font-weight:850;line-height:1.2}.cempty-s{color:#bab0d8;max-width:350px;font-size:13px}.chat-empty-intro{background:#252046ad;border:1px solid #8166bb6b;border-radius:16px}.chat-empty-intro strong{color:#efddff}.chat-empty-intro p{color:#bdb1d9}.daysep{color:#ada2d3}.daysep:before,.daysep:after{background:#8863d03a}.bsender{color:#c99bff}.typrow{background:#10112f;color:#b6a6e1}.blkbar{background:#563048;color:#ffe5c9;border-color:#89596b}.react-bar{background:#282048;border:1px solid #a875e752;gap:6px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;margin:0;padding:8px 12px;border-radius:0}.react-btn{background:#25234a;color:#d9cff2;border:1px solid #ac8aea33;white-space:nowrap;border-radius:999px}.react-btn:hover{background:#4d2d85}.emsh{background:#1d1741;border-color:#ad77e942}.em:hover{background:#6845a95a}.ibar{padding:13px 14px;border-radius:0;background:#151735!important;backdrop-filter:none;border-top:1px solid #9575de3c;box-shadow:none;gap:10px}.ifield{background:#222544!important;color:#fff!important;border:1px solid #9978d456!important;border-radius:14px!important;min-height:45px;box-shadow:none}.ifield::placeholder{color:#afa4c9}.ifield:focus{border-color:#c277ff!important;box-shadow:0 0 0 3px #a759df44!important}.i-btn{color:#d6c9f1;background:#28264e;border:1px solid #a17ed849;border-radius:12px}.i-btn:hover{background:#57328b}.send-btn{background:linear-gradient(135deg,#a334f2,#466aff);color:white;box-shadow:0 4px 18px #8554ea66;flex:none}
.cc-studio{background:linear-gradient(145deg,#19143e,#0e1330);border:1px solid #a070e05c;border-radius:18px;flex:none;min-width:0;width:295px;display:flex;flex-direction:column;gap:15px;padding:17px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#604887 transparent}.cc-studio-head{display:flex;align-items:center;justify-content:space-between;gap:5px}.cc-studio-head h2{margin:2px 0 0;font-size:21px;color:#f4eaff}.cc-kicker{font-size:10px;color:#cb8fff;font-weight:900;letter-spacing:1px}.cc-studio-pill{border-radius:25px;border:1px solid #725b99;padding:4px 8px;color:#bbb2dc;background:#221d42;font-size:10px;font-weight:800;white-space:nowrap}.cc-studio-pill.is-live{color:#ff9dbc;border-color:#ed5581}.cc-studio-stage{width:100%;aspect-ratio:1.36;min-height:170px;max-height:260px;position:relative;border:1px solid #8b5cd063;border-radius:14px;background:radial-gradient(circle at 50% 40%,#462578,#140d34 75%);overflow:hidden}.cc-studio-stage video{width:100%;height:100%;object-fit:cover;transform:scaleX(-1)}.cc-studio-stage video[hidden]{display:none}.cc-studio-idle{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:16px;color:#d8caed}.cc-studio-idle[hidden]{display:none}.cc-studio-idle .cc-idle-symbol{font-size:37px;color:#b56aff;line-height:1;margin-bottom:12px}.cc-studio-idle strong{font-size:13px}.cc-studio-idle p{font-size:11px;margin:5px 0 0;color:#a8a2cd;line-height:1.55}.cc-stage-mark{position:absolute;left:9px;top:9px;font-size:9px;letter-spacing:.6px;background:#080a20bc;border:1px solid #c392f36b;border-radius:7px;padding:4px 7px;color:white}.cc-studio-actions{display:grid;gap:7px}.cc-studio button{font:inherit;cursor:pointer}.cc-cta{min-height:44px;border-radius:11px;color:white;font-size:12px!important;font-weight:850!important;border:1px solid #b17cff;background:linear-gradient(125deg,#a42adb,#5946ed);box-shadow:0 4px 12px #5f36c75c}.cc-cta:hover{filter:brightness(1.13)}.cc-cta-soft{background:#242149;border:1px solid #956cce85;box-shadow:none}.cc-studio-section{border-top:1px solid #ad7ce63b;padding-top:12px}.cc-studio-section h3{margin:0 0 9px;font-size:13px;color:#e5ccff}.cc-mode-readout{font-size:11px;color:#bcb0dd;line-height:1.45;margin-bottom:10px}.cc-utility{padding:10px 9px;width:100%;min-height:40px;background:#26224b;color:#e6d9f8;border:1px solid #9c70d44f;border-radius:10px;text-align:left;font-size:11px!important;font-weight:800!important;display:flex;justify-content:space-between;gap:7px}.cc-info-list{display:grid;gap:12px}.cc-info-list>div{display:flex;justify-content:space-between;gap:8px;align-items:baseline}.cc-info-list strong{font-size:11px;color:#e3d9fa}.cc-info-list small{font-size:10px;color:#a99ac8;text-align:right}.cc-studio-disclaimer{font-size:10px;color:#978eba;line-height:1.5;margin:auto 0 0}
/* Modal / settings / camera panels remain functional with premium brand styling. */
.ps,.hlp-card,.game-card,.dset,.mobpanel,.profile-panel,.smart-menu{background:#1c193a;color:#efebff;border-color:#825dbc67}.ps-hd,.hlp-header{background:linear-gradient(120deg,#7a36df,#4e50d5)}.ps-item{background:#28234d}.ps-val,.ps-name{color:white}.ps-handle{color:#c8b9e6}.dset-body,.dset-hd,.prof-header,.mp-hd{background:var(--sf);color:var(--t1)}.sw-row{border-color:#9f7cd345}.set-row{background:var(--s2);color:var(--t1)}.set-t,.mp-title{color:var(--t1)}.set-d,.set-arr{color:var(--t3)}.mni{background:none;color:#aaa3ce}.mni.on{color:#d99cff}.mobnav{background:#0e1029;border-color:#a56ae53c;box-shadow:none}.mni-ico{filter:none}.push-guidance{background:var(--s2)}.stream-panel .stream-card,.rtc-card{background:#171532;color:white;border:1px solid #9362e887;border-radius:20px;box-shadow:0 13px 45px #050317a8}.stream-panel .stream-head,.rtc-head{background:linear-gradient(90deg,#28204d,#171639)}.stream-panel .stream-control-strip button{background:#322458;border-color:#966edd;color:#e8d9ff}.stream-panel .stream-primary,.stream-panel .stream-request button,.rtc-accept{background:linear-gradient(115deg,#913be6,#5950dc);border-color:#9d76ed;color:white}.stream-panel .stream-video{background:#0e0825}.stream-panel .stream-desc,.rtc-private-note{color:#bdb1d9}.stream-panel .stream-mode{background:#241b45;border-color:#6d59a4}.stream-status{color:#d6cced}.rtc-controls button{border-radius:10px}.conn-bar{background:#332358;color:white;border-color:#8e5dc6}.pb{backdrop-filter:blur(9px)}
:focus-visible{outline:3px solid #d088ff!important;outline-offset:2px}
@media(min-width:1240px){.cc-studio{display:flex}}@media(max-width:1239px){.cc-studio{display:none!important}}
@media(min-width:900px) and (max-width:1239px){.cc-header-links{display:none}.up{width:282px!important}.content{gap:10px}}
@media(min-width:641px) and (max-width:899px){.content{padding:7px}.cc{border-radius:15px}.cc-header-links{display:none}.up.open{border-radius:15px}}
@media(max-width:640px){
 #app{grid-template-rows:60px minmax(0,1fr) 60px!important;height:100dvh;overflow:hidden;background:var(--bg)}
 html.chat-keyboard-open #app{grid-template-rows:60px minmax(0,1fr) 0!important}
 .topbar{height:60px;min-height:60px;padding:0 9px;gap:5px;background:#0b0d27}.tb-logo{gap:3px}.tb-logo-badge{width:34px;min-width:34px;height:33px}.tb-logo-badge .cc-logo-mark{width:35px;height:30px}.tb-logo-text{font-size:15px;letter-spacing:-.6px}.cc-header-links{display:none}.tb-nav{gap:5px}.tb-nav-btn.tb-help{display:none!important}.stream-top-btn,.tb-profile{width:38px!important;min-width:38px!important;height:39px!important;border-radius:12px!important}.tb-av{width:27px;height:27px}.content{padding:0;gap:0;min-height:0;border:0}.cc,.cc.chat-open{width:100%;min-width:0;border:0;border-radius:0;background:#0e102b}.cc{height:100%}.ch-hdr{height:63px;min-height:63px;background:#151536;padding:0 9px;gap:8px}.ch-back,.ch-btn{min-width:37px!important;width:37px!important;height:37px!important;border-radius:12px}.ch-av{width:38px;height:38px}.ch-name{font-size:14px}.ch-meta{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ch-acts{gap:5px}.msgs{padding:12px 10px 6px;gap:6px}.bbl{max-width:86%;font-size:13px}.cempty-t{font-size:20px}.cempty-s{font-size:12px}.react-bar{gap:5px;padding:5px 7px}.react-btn{font-size:11px!important;min-width:0}.ibar{padding:8px 9px!important;padding-bottom:8px!important;background:#171632!important;gap:7px;border-radius:0}.ifield{min-height:41px;font-size:14px}.i-btn,.send-btn{height:40px;width:40px;min-height:40px;min-width:40px;border-radius:12px}.send-btn{border-radius:12px}.mobnav{height:60px;max-height:60px;display:grid!important;background:#0c0e27}.mni{font-size:10px;color:#a99bca}.mni.on{color:#d491fa}.mni-ico{font-size:19px}.up.open{width:100%;height:100%;border:0;border-radius:0}.ur{min-height:73px}.cc-studio{display:none!important}.mobpanel{background:#12132d}.stream-panel{max-width:100vw}
}
@media(max-width:355px){.topbar{padding-left:6px;padding-right:6px}.tb-logo-text{font-size:13px}.ch-hdr{gap:5px;padding:0 6px}.ch-btn,.ch-back{width:33px!important;min-width:33px!important}.ch-av{width:34px}.ifield{font-size:13px}.ibar{gap:5px}}
@media(prefers-reduced-motion:reduce){.bbl,.cempty{animation:none!important}}
/* Light mode is still available through Settings. */
html[data-theme=light] #app{background:#f2effe}html[data-theme=light] .topbar{background:#fff;border-bottom-color:#e6dbf6}html[data-theme=light] .tb-logo-text{color:#25183f}html[data-theme=light] .cc-header-links a,html[data-theme=light] .cc-header-links button{color:#56447b}html[data-theme=light] .tb-nav-btn,html[data-theme=light] .tb-profile{background:#f2eafb!important;color:#5c3d8d!important}html[data-theme=light] .tb-nick{color:#423065}html[data-theme=light] .dsb,html[data-theme=light] .up,html[data-theme=light] .cc,html[data-theme=light] .cc-studio{background:#fff;color:#2c1d49;border-color:#d5c5ec}html[data-theme=light] .ch-hdr{background:#f6f0ff}html[data-theme=light] .ch-name,html[data-theme=light] .ur-name{color:#3a245e}html[data-theme=light] .msgs{background:linear-gradient(145deg,#f6f3ff,#eee7ff)!important;color:#2b1c48}html[data-theme=light] .bbl.recv{background:#fff;color:#322253}html[data-theme=light] .ibar{background:#fff!important}html[data-theme=light] .ifield{background:#f4f0ff!important;color:#332052!important}html[data-theme=light] .cempty{background:#f8f4ff;color:#38245b}html[data-theme=light] .cempty-t{color:#38245b}html[data-theme=light] .cc-studio-head h2,html[data-theme=light] .cc-info-list strong{color:#3c245d}html[data-theme=light] .cc-studio-idle{color:#55347d}html[data-theme=light] .cc-studio-section h3{color:#462366}html[data-theme=light] .mobnav{background:#fff}html[data-theme=light] .ur:nth-child(odd){background:#f8f3ff!important}html[data-theme=light] .ur:hover{background:#ebddff!important}
