.cam-header-btn {
    border: 1px solid rgba(96, 205, 255, 0.55);
    background: linear-gradient(135deg, rgba(96,205,255,.22), rgba(255,215,106,.14));
    color: var(--text-main, #f5f3ff);
    border-radius: 999px;
    padding: 7px 11px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.cam-header-btn:disabled { opacity:.45; cursor:not-allowed; }
.s4cam-chat-card {
    border: 1px solid rgba(96,205,255,.38);
    background: linear-gradient(135deg, rgba(19, 28, 42, .94), rgba(55, 38, 74, .76));
    border-radius: 14px;
    padding: 12px;
    max-width: 380px;
    box-shadow: 0 12px 24px rgba(0,0,0,.18);
}
.s4cam-card-title { font-size:13px; font-weight:900; color:#60cdff; margin-bottom:6px; }
.s4cam-card-main { font-size:15px; color:#fff; margin-bottom:4px; }
.s4cam-card-sub, .s4cam-card-meta { color:rgba(255,255,255,.76); font-size:12px; line-height:1.35; }
.s4cam-card-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.s4cam-btn { border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(255,255,255,.08); color:#fff; padding:7px 12px; font-weight:800; cursor:pointer; }
.s4cam-btn.primary { background:linear-gradient(135deg,#60cdff,#ffd76a); color:#12141a; border-color:transparent; }
.s4cam-overlay { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(2,3,8,.76); z-index:10000; padding:14px; }
.s4cam-overlay.show { display:flex; }
.s4cam-panel { width:min(980px,98vw); background:linear-gradient(180deg,rgba(16,19,28,.98),rgba(7,8,13,.98)); border:1px solid rgba(96,205,255,.24); border-radius:22px; padding:14px; color:#fff; box-shadow:0 24px 80px rgba(0,0,0,.55); }
.s4cam-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.s4cam-x { width:34px; height:34px; border-radius:50%; border:0; background:rgba(255,255,255,.1); color:#fff; font-size:22px; cursor:pointer; }
.s4cam-stage { position:relative; overflow:hidden; border-radius:18px; background:#02040a; min-height:min(68vh,560px); border:1px solid rgba(255,255,255,.08); }
.s4cam-remote { width:100%; height:min(68vh,560px); object-fit:cover; background:#02040a; display:block; }
.s4cam-remote-empty { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.56); font-weight:900; pointer-events:none; }
.s4cam-local { display:none; position:absolute; right:14px; top:14px; width:min(180px,30vw); aspect-ratio:16/10; object-fit:cover; border-radius:14px; border:2px solid rgba(255,255,255,.45); background:#111; box-shadow:0 12px 30px rgba(0,0,0,.35); }
.s4cam-local.show { display:block; }
.s4cam-status { position:absolute; left:14px; top:14px; background:rgba(0,0,0,.52); backdrop-filter:blur(8px); color:#ffd76a; border-radius:999px; padding:7px 11px; font-size:13px; font-weight:900; }
.s4cam-chat { position:absolute; left:14px; right:14px; bottom:14px; max-width:520px; background:rgba(4,7,12,.58); border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:10px; backdrop-filter:blur(12px); }
.s4cam-chat-title { font-size:12px; color:rgba(255,255,255,.72); font-weight:900; margin-bottom:6px; }
.s4cam-chat-log { max-height:130px; overflow:auto; display:flex; flex-direction:column; gap:5px; margin-bottom:8px; }
.s4cam-chat-line { max-width:88%; padding:6px 9px; border-radius:12px; font-size:13px; line-height:1.3; background:rgba(255,255,255,.12); color:#fff; }
.s4cam-chat-line.me { align-self:flex-end; background:linear-gradient(135deg,rgba(96,205,255,.75),rgba(255,215,106,.68)); color:#111722; }
.s4cam-chat-form { display:flex; gap:7px; }
.s4cam-chat-input { flex:1; border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.1); color:#fff; padding:9px 12px; outline:none; }
.s4cam-chat-send { border:0; border-radius:999px; background:#60cdff; color:#091018; font-weight:900; padding:9px 13px; cursor:pointer; }
.s4cam-picker { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:12px 4px 2px; color:rgba(255,255,255,.78); font-size:13px; }
.s4cam-picker.hidden { display:none; }
.s4cam-picker label { display:inline-flex; align-items:center; gap:6px; font-weight:850; }
.s4cam-start { border:0; border-radius:999px; padding:9px 14px; background:linear-gradient(135deg,#60cdff,#ffd76a); color:#101018; font-weight:900; cursor:pointer; }
.s4cam-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; margin-top:12px; }
.s4cam-toggle-camera, .s4cam-mute, .s4cam-end { border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:8px 13px; background:rgba(255,255,255,.08); color:#fff; font-weight:800; cursor:pointer; }
.s4cam-end { background:linear-gradient(135deg,rgba(255,87,87,.95),rgba(255,140,110,.9)); color:#210808; border-color:transparent; }
@media (max-width: 640px) {
    .cam-header-btn { padding:6px 9px; font-size:12px; }
    .s4cam-panel { border-radius:16px; padding:10px; }
    .s4cam-stage, .s4cam-remote { min-height:70vh; height:70vh; }
    .s4cam-chat { left:8px; right:8px; bottom:8px; }
    .s4cam-local { width:34vw; right:8px; top:52px; }
}
