/* CHEBURCHAT RESONANCE FIELD 0.7.99 — a separate visual composition.
 * No decrypted message is duplicated or sent anywhere. The existing .message nodes are the interactive source.
 */
#active.cc-resonance{--rz-cyan:#77f9ff;--rz-purple:#d7a5ff;--rz-ink:#061526;color:#edfcff!important;background:#020b1a!important;}
#active.cc-resonance .thread-header{z-index:9;flex-shrink:0;background:linear-gradient(90deg,#071627ec,#071a30df 55%,#0c1231ef)!important;box-shadow:0 1px 0 #58c5e847,0 4px 35px #0009;backdrop-filter:blur(18px);border-bottom:1px solid #b1dafa3b!important;}
#active.cc-resonance .thread-header .peer-avatar{box-shadow:0 0 0 2px #7bfaff99,0 0 24px #5bdeff88;border:1px solid #7ff3ff!important;}
#active.cc-resonance .thread-header .icon{background:transparent!important;border-color:#6fa9cc57!important;color:#e2f4ff!important;box-shadow:none!important;}
#active.cc-resonance .peer-info b{color:white!important;text-shadow:0 0 15px #79b7ff50;}
#active.cc-resonance .peer-info small{color:#a1cfd5!important;}
#active.cc-resonance .security-notice{display:none!important;}
#resonanceModeToggle:not(.hidden),#resonanceTimelineToggle:not(.hidden){background:linear-gradient(124deg,#112b4bf0,#271644db)!important;color:#d9f9ff;border:1px solid #73d5f37e!important;border-radius:999px;padding:6px 12px;font-size:11px;letter-spacing:.02em;line-height:1.4;white-space:nowrap;box-shadow:0 0 18px #5fcbfa3c;cursor:pointer;}
#active.cc-resonance #keyButton{color:#9ff2ff;background:#12263c80;border:1px solid #6eb9dc73;}
/* Actual cinematic imagery, not a flat color substituted for the approved scene. */
#active.cc-resonance .messages-shell{position:relative;isolation:isolate;overflow:hidden;min-height:0;background:#071a2d url('/assets/resonance-vista-099.webp') center 57%/cover no-repeat!important;}
#active.cc-resonance .messages-shell:before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:radial-gradient(ellipse 85% 65% at 7% 29%,#01d2f533,transparent 65%),radial-gradient(ellipse 70% 70% at 98% 40%,#b34dff34,transparent 69%),linear-gradient(180deg,#030d1d17 0%,#071a3266 36%,#04081964 88%,#020511a8 100%);}
#active.cc-resonance .messages-shell:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;opacity:.35;background:repeating-linear-gradient(114deg,transparent 0,transparent 118px,#9b78e20a 119px,#7affef08 120px,transparent 122px);}
/* Floating portrait/connection stage, visually part of the same scene. */
#active.cc-resonance #resonanceStage{position:relative;z-index:2;display:flex;flex:none;align-items:center;justify-content:space-between;min-height:130px;padding:16px clamp(24px,5vw,68px) 4px;background:linear-gradient(180deg,#0613239c,#05132820 90%,transparent)!important;isolation:isolate;}
#active.cc-resonance #resonanceStage.hidden{display:none!important;}
#active.cc-resonance .rz-portrait{display:flex;flex-direction:column;gap:8px;align-items:center;z-index:3;position:relative;max-width:32%;width:116px;color:white;}
#active.cc-resonance .rz-portrait-image{position:relative;display:grid;place-items:center;width:77px;height:77px;border-radius:50%;overflow:visible!important;background:radial-gradient(circle at 30% 23%,#d6ffff,#1b92c2 35%,#091936 80%);border:2px solid #a8ffff;box-shadow:0 0 0 5px #49cbff2b,0 0 23px #3ae4ffdf,0 0 68px #2fb4ff68,inset 0 0 20px #08b9fd54;color:#fff;text-shadow:0 0 17px #fff;}
#active.cc-resonance .rz-portrait.them .rz-portrait-image{background:radial-gradient(circle at 30% 23%,#fef1ff,#9660db 35%,#1d1136 80%);border-color:#e5baff;box-shadow:0 0 0 5px #ac7cff2a,0 0 26px #ce93ffdd,0 0 63px #a95cfd70;}
#active.cc-resonance .rz-portrait-image::before{content:"";position:absolute;inset:-8px;border-radius:50%;border:1px solid #9defff9c;border-top-color:transparent;border-left-color:transparent;transform:rotate(35deg);pointer-events:none;}
#active.cc-resonance .rz-portrait.them .rz-portrait-image::before{border-color:#d7abf59c;border-right-color:transparent;border-bottom-color:transparent;}
#active.cc-resonance .rz-portrait-image img{width:100%;height:100%;object-fit:cover;border-radius:50%;}
#active.cc-resonance .rz-portrait small{color:#c8fff7;text-shadow:0 0 11px #48e3dd;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:11px;letter-spacing:.06em;}
#active.cc-resonance .rz-portrait.them small{color:#e3c8ff;}
#active.cc-resonance .rz-thread-arc{position:absolute;z-index:1;left:16%;width:68%;top:5px;height:107px;filter:drop-shadow(0 0 12px #47bbffc0);pointer-events:none;}
#active.cc-resonance .rz-thread-arc path{stroke-dasharray:12 5;animation:rz-flow 16s linear infinite;}
#active.cc-resonance .rz-bridge-title{position:relative;z-index:2;color:#e4f9ff;text-align:center;letter-spacing:.25em;font-size:11px;font-weight:750;text-shadow:0 0 15px #74cfff;}
#active.cc-resonance .rz-bridge-title em{display:block;color:#aad7ea;font-size:9px;font-weight:400;letter-spacing:.16em;font-style:normal;margin-top:5px;}
/* Light thread goes THROUGH real message anchor positions. No imitation static center line. */
#active.cc-resonance #messages{position:relative;z-index:2;isolation:isolate;display:flex;flex-direction:column;gap:clamp(19px,3.4vh,31px);padding:27px clamp(15px,7vw,86px) 75px;overflow-y:auto;scrollbar-color:#6c93ca69 transparent;background:none!important;background-image:none!important;}
#active.cc-resonance #messages::before,#active.cc-resonance #messages::after{display:none!important;content:none!important;}
#active.cc-resonance .rz-connection-canvas{position:absolute;left:0;top:0;width:100%;pointer-events:none;overflow:visible;z-index:0;filter:drop-shadow(0 0 8px #66d4ff80);}
#active.cc-resonance .rz-thread-aura{fill:none;stroke:#68c8ff;stroke-width:14;opacity:.11;stroke-linecap:round;}
#active.cc-resonance .rz-thread-core{fill:none;stroke-width:2.15;opacity:.86;stroke-linecap:round;}
#active.cc-resonance .rz-thread-motion{fill:none;stroke-width:1.15;stroke-dasharray:2 17;opacity:.92;animation:rz-flow 11s linear infinite;}
#active.cc-resonance .rz-thread-ring{filter:blur(3px)}
#active.cc-resonance .rz-thread-node{filter:drop-shadow(0 0 5px #e5ffff)}
/* Message content is unobstructed text/multimedia attached to the ribbon. No legacy cards. */
#active.cc-resonance #messages>.message.rz-moment:not(.hidden){box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;flex-shrink:0;position:relative;z-index:1;align-self:flex-start!important;width:fit-content!important;min-width:120px;max-width:min(74%,610px)!important;margin:0!important;margin-right:auto!important;padding:4px 38px 6px 4px!important;overflow:visible!important;contain:none!important;isolation:isolate;background:none!important;background-color:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-align:left!important;filter:none!important;backdrop-filter:none!important;}
#active.cc-resonance #messages>.message.rz-moment.mine:not(.hidden){align-self:flex-end!important;margin-left:auto!important;margin-right:0!important;padding:4px 4px 6px 38px!important;}
#active.cc-resonance #messages>.message.rz-moment::before,#active.cc-resonance #messages>.message.rz-moment::after{display:none!important;content:none!important;}
#active.cc-resonance #messages>.message.rz-moment>.rz-node-dot{position:absolute;top:var(--rz-node-y,25px);right:14px;left:auto;width:8px;height:8px;border-radius:50%;transform:translateY(-50%);background:#d7a5ff;box-shadow:0 0 12px #e9b4ff,0 0 26px #bb64ff;pointer-events:none;}
#active.cc-resonance #messages>.message.rz-moment.mine>.rz-node-dot{right:auto;left:14px;background:#63f8ff;box-shadow:0 0 11px #75f6ff,0 0 28px #43cbff;}
#active.cc-resonance .rz-moment-identity{display:block;width:100%;font-size:9px;line-height:1.5;font-weight:750;letter-spacing:.2em;text-transform:uppercase;color:#d9b9ff;text-shadow:0 0 15px #c086ff;margin-bottom:6px;}
#active.cc-resonance .message.mine .rz-moment-identity{color:#94f5ff;text-shadow:0 0 15px #59e3ff;}
#active.cc-resonance #messages>.message.rz-moment .rich-message{display:block;width:auto;max-width:100%;font-size:clamp(15px,1.35vw,19px)!important;line-height:1.47!important;font-weight:400;color:#faf5ff!important;text-shadow:0 1px 18px #6c2cae50,0 2px 3px #000f!important;overflow-wrap:anywhere;white-space:pre-wrap;}
#active.cc-resonance #messages>.message.rz-moment.mine .rich-message{color:#e8fdff!important;text-shadow:0 1px 20px #009ada66,0 2px 2px #000e!important;}
#active.cc-resonance #messages>.message.rz-moment .rich-message a{color:#a4e6ff;text-decoration:underline;text-underline-offset:3px;}
#active.cc-resonance #messages>.message.rz-moment .message-meta{display:block;margin-top:5px;color:#93b9cf!important;font-size:10px;letter-spacing:.05em;text-align:left;opacity:.95;}
#active.cc-resonance #messages>.message.rz-moment .cc-message-more{border-radius:50%;border:1px solid #c6b0f580;background:#1a1735ab;color:#dcdeff;box-shadow:0 0 12px #b787ed55;}
#active.cc-resonance #messages>.message.rz-moment .reply-preview{display:block;max-width:100%;text-align:left;padding:5px 10px;border-left:2px solid #b7adff;background:#2b1c4d4d;color:#d7cafd;border-radius:4px;}
#active.cc-resonance .rz-long:not(.rz-expanded) .rich-message{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden;max-height:12em;}
#active.cc-resonance .rz-expand{margin:8px 0 3px;padding:6px 0;background:none;border:0;color:#a2e9ff;text-shadow:0 0 15px #53bbec;font-size:12px;cursor:pointer;}
#active.cc-resonance .rz-expand:focus-visible{outline:2px solid #adfaff;outline-offset:4px;}
#active.cc-resonance .message .media-slot,#active.cc-resonance .message .media-slot img,#active.cc-resonance .message img.gif,#active.cc-resonance .message video{border-radius:13px!important;box-shadow:0 0 0 1px #bcbaff8b,0 0 22px #aa78f885!important;max-width:100%;}
#active.cc-resonance .cc-voice-player{max-width:100%;filter:drop-shadow(0 0 10px #8bdaffad);}
#active.cc-resonance .cc-voice-play{background:radial-gradient(circle at 22% 20%,#8cefff,#1b7ac1 71%)!important;border:1px solid #a3f5ff!important;box-shadow:0 0 21px #57cbff8a!important;color:white!important;}
#active.cc-resonance .message:not(.mine) .cc-voice-play{background:radial-gradient(circle at 22% 20%,#ebb2ff,#763ebc 72%)!important;border-color:#f1c8ff!important;box-shadow:0 0 20px #bc81fa9b!important;}
#active.cc-resonance .cc-voice-wave .cc-voice-bar{background:linear-gradient(180deg,#e0fbff,#41c8ff)!important;}
#active.cc-resonance .message:not(.mine) .cc-voice-wave .cc-voice-bar{background:linear-gradient(180deg,#efcdff,#af70fd)!important;}
#active.cc-resonance .message .reaction-bar{margin-top:6px;}
/* Composer is a slim transparent control dock, not a large teal rectangle. */
#active.cc-resonance .composer-wrap{position:relative;z-index:5;padding:10px clamp(10px,3vw,36px) max(8px,env(safe-area-inset-bottom))!important;background:linear-gradient(0deg,#030917ec,#030b1dd1 70%,transparent)!important;border:0!important;box-shadow:none!important;}
#active.cc-resonance .composer{background:linear-gradient(105deg,#112849b8,#111331bb)!important;border:1px solid #8aabdc85!important;border-radius:999px!important;box-shadow:inset 0 1px #dae9ff32,0 0 24px #456bcd45!important;backdrop-filter:blur(14px);padding:5px 7px!important;min-height:54px;}
#active.cc-resonance .composer textarea{font-size:15px!important;color:#f6fdff!important;min-height:36px;}
#active.cc-resonance .composer .tool{color:#c7eefa!important;}
#active.cc-resonance .composer .send{border-radius:50%;background:radial-gradient(circle at 22% 21%,#c7ffff,#46b5dd 68%,#3852a9)!important;color:#082237!important;box-shadow:0 0 18px #64e5fba8!important;}
#active.cc-resonance .input-caption{display:none;}
#active.cc-resonance #resonanceTimelineToggle{position:absolute;right:17px;bottom:calc(100% + 9px);z-index:7;padding:7px 13px;background:#111d3ce8!important;}
/* Timeline is a separate readable mode of exactly the same decrypted message nodes. */
#active.cc-resonance-timeline #resonanceStage{display:none!important;}
#active.cc-resonance-timeline #messages{gap:13px!important;padding-top:27px;padding-bottom:40px;}
#active.cc-resonance-timeline .rz-connection-canvas{display:none!important;}
#active.cc-resonance-timeline #messages::before{content:""!important;display:block!important;position:absolute;left:50%;top:10px;bottom:10px;width:2px;background:linear-gradient(#42e0ff,#be88ff,#42e0ff);opacity:.48;box-shadow:0 0 12px #69cbff;}
#active.cc-resonance-timeline #messages>.message.rz-moment{max-width:76%!important;}
/* Real WebRTC/call handlers/IDs are unchanged: atmosphere only. */
:root.cc-resonance-calling #callPanel:not(.hidden){background:linear-gradient(180deg,#03132992,#080b28b6),url('/assets/resonance-vista-099.webp') center/cover no-repeat!important;border:1px solid #84d8ff93!important;box-shadow:0 20px 90px #010612c9,0 0 45px #52b8ff57!important;backdrop-filter:blur(13px);color:#f6fbff!important;}
:root.cc-resonance-calling #callPanel:not(.hidden) .cc-call-avatar-wrap{border:2px solid #9be9ff!important;box-shadow:0 0 29px #5de9ff91,0 0 55px #b27ffb61!important;}
:root.cc-resonance-calling #callPanel:not(.hidden) .call-control{background:linear-gradient(145deg,#163956da,#171238d5)!important;border-color:#83cbec8e!important;color:#e8fbff!important;}
:root.cc-resonance-calling #callPanel:not(.hidden) #hangupCall{background:linear-gradient(135deg,#f75e79,#a51252)!important;border-color:#ffaaca!important;color:#fff!important;box-shadow:0 0 18px #f1468377!important;}
:root.cc-resonance-calling #callPanel:not(.hidden) .cc-call-video-stage{border-color:#8acafcba;box-shadow:0 0 25px #5fafff55;}
:root.cc-resonance-calling #callPanel:not(.hidden) #resonanceLocalCallOrb{display:grid;place-items:center;width:72px;height:72px;overflow:hidden;align-self:center;border-radius:50%;border:2px solid #9cefff;box-shadow:0 0 28px #70dafa;}
:root.cc-resonance-calling #callPanel:not(.hidden) #resonanceLocalCallOrb img{width:100%;height:100%;object-fit:cover}
#resonanceLocalCallOrb{display:none}
#diagnoseGroupCall{display:none!important}
@media(max-width:800px){
 #active.cc-resonance .thread-header{height:58px;min-height:58px;padding:0 7px!important;gap:5px!important;}
 #active.cc-resonance .thread-header .icon{width:32px!important;min-width:32px!important;height:34px!important;}
 #active.cc-resonance .thread-header .peer-avatar{width:39px!important;height:39px!important;min-width:39px!important;}
 #active.cc-resonance .peer-info{min-width:0!important;}
 #active.cc-resonance .peer-info b{font-size:16px;}
 #active.cc-resonance #keyButton{font-size:0;min-width:30px;width:30px;padding:0;height:32px;flex-shrink:0;}
 #active.cc-resonance #keyButton::before{content:'◇';font-size:19px;line-height:1;}
 #resonanceModeToggle:not(.hidden){position:absolute;right:auto!important;left:50%!important;top:calc(100% + 7px)!important;transform:translateX(-50%);z-index:12;font-size:10px;padding:4px 12px;max-width:none!important;}
 #active.cc-resonance #resonanceStage{min-height:105px;padding:23px 18px 3px;}
 #active.cc-resonance #resonanceStage .rz-portrait{width:65px;max-width:32%;}
 #active.cc-resonance #resonanceStage .rz-portrait-image{width:51px;height:51px;}
 #active.cc-resonance #resonanceStage .rz-portrait small{font-size:9px;}
 #active.cc-resonance .rz-bridge-title{display:none;}
 #active.cc-resonance #resonanceStage .rz-thread-arc{top:24px;height:58px;left:14%;width:72%;}
 #active.cc-resonance #messages{gap:23px;padding:20px 12px 85px;}
 #active.cc-resonance #messages>.message.rz-moment:not(.hidden){max-width:min(83%,480px)!important;min-width:0;padding:4px 27px 5px 3px!important;}
 #active.cc-resonance #messages>.message.rz-moment.mine:not(.hidden){padding:4px 3px 5px 27px!important;}
 #active.cc-resonance #messages>.message.rz-moment>.rz-node-dot{right:9px;}
 #active.cc-resonance #messages>.message.rz-moment.mine>.rz-node-dot{left:9px;}
 #active.cc-resonance #messages>.message.rz-moment .rich-message{font-size:15px!important;line-height:1.46!important;}
 #active.cc-resonance #messages>.message.rz-moment .rz-moment-identity{font-size:9px;margin-bottom:3px;}
 #active.cc-resonance .composer-wrap{padding:8px 9px max(8px,env(safe-area-inset-bottom))!important;}
 #active.cc-resonance .composer{min-height:51px;padding:3px!important;}
 #active.cc-resonance .composer textarea{font-size:14px!important;min-width:0;}
 #active.cc-resonance #resonanceTimelineToggle{font-size:10px;padding:6px 11px;bottom:calc(100% + 8px);}
 #active.cc-resonance .message:has(.cc-voice-player),#active.cc-resonance .message:has(.media-slot){max-width:min(92%,420px)!important;}
 #active.cc-resonance .cc-voice-player{max-width:100%;}
}
@media(max-width:365px){#active.cc-resonance .thread-header .peer-avatar{display:none!important}#active.cc-resonance .thread-header .peer-info b{font-size:14px}#active.cc-resonance .thread-header .icon{min-width:30px!important}}
@keyframes rz-flow{to{stroke-dashoffset:-300}}
@media(prefers-reduced-motion:reduce){#active.cc-resonance .rz-thread-motion,#active.cc-resonance .rz-thread-arc path{animation:none!important}#active.cc-resonance #messages{scroll-behavior:auto!important}}

/* RESONANCE R3: ONE compositional header, NOT two stacked chat headers. */
#app #active.cc-resonance{position:relative!important;background:#030917!important;}
#app #active.cc-resonance>.thread-header{position:absolute!important;left:0;right:0;top:0;z-index:18!important;height:53px!important;min-height:53px!important;display:flex!important;gap:6px!important;padding:0 9px!important;flex-shrink:0!important;background:linear-gradient(180deg,#020814d9,#02081400)!important;backdrop-filter:none!important;border:0!important;box-shadow:none!important;}
#app #active.cc-resonance>.thread-header #peerAvatar,
#app #active.cc-resonance>.thread-header .peer-info{display:none!important;}
#app #active.cc-resonance>.thread-header .icon{height:37px!important;width:37px!important;min-width:37px!important;padding:7px!important;border:1px solid #79bdd46b!important;border-radius:50%!important;background:#05172aa8!important;}
#app #active.cc-resonance>.thread-header .back{display:grid!important;margin-right:auto!important;}
#app #active.cc-resonance #resonanceModeToggle:not(.hidden){position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center!important;margin:0!important;padding:0!important;width:37px!important;min-width:37px!important;height:37px!important;font-size:0!important;border-radius:50%!important;}
#app #active.cc-resonance #resonanceModeToggle::before{content:'⇄';font-size:20px!important;line-height:1;color:#d8edff;}
#app #active.cc-resonance #keyButton{min-width:37px!important;width:37px!important;height:37px!important;padding:0!important;font-size:0!important;}
#app #active.cc-resonance #keyButton::before{content:'◇';font-size:23px!important;line-height:1;}
#app #active.cc-resonance .messages-shell{background:#020818 url('/assets/resonance-vista-099.webp') center 65%/cover no-repeat!important;}
#app #active.cc-resonance #resonanceStage{height:167px!important;min-height:167px!important;padding:64px 15px 10px!important;border:0!important;display:flex!important;align-items:center!important;background:linear-gradient(180deg,#02091885 0%,#08152a35 76%,transparent 100%)!important;}
#app #active.cc-resonance #resonanceStage.hidden{display:none!important;}
#app #active.cc-resonance #resonanceStage .rz-portrait-image{width:65px!important;height:65px!important;}
#app #active.cc-resonance #resonanceStage .rz-portrait{width:100px!important;gap:5px!important;}
#app #active.cc-resonance #resonanceStage .rz-thread-arc{top:68px!important;left:18%;width:64%;height:75px!important;}
#app #active.cc-resonance #resonanceStage .rz-bridge-title{display:none!important;}
#app #active.cc-resonance .messages-shell::before{background:linear-gradient(180deg,transparent 10%,#02081722 70%,#01050cad 100%)!important;}
#app #active.cc-resonance #messages.messages{min-height:0!important;gap:23px!important;padding:15px 13px 75px!important;}
/* All active message variants: permanently remove Orbit and Classic bubble fills. */
:root.cc-orbit-theme #app #active.cc-resonance #messages>.message.rz-moment:not(.hidden),
:root #app #active.cc-resonance #messages>.message.rz-moment.mine:not(.hidden){
  display:flex!important;flex-direction:column!important;position:relative!important;isolation:isolate;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  box-shadow:none!important;border:0!important;outline-offset:5px!important;border-radius:0!important;
  min-width:0!important;max-width:min(79%,590px)!important;margin-block:0!important;
  padding-top:3px!important;padding-bottom:5px!important;filter:none!important;
}
:root.cc-orbit-theme #app #active.cc-resonance #messages>.message.rz-moment.mine:not(.hidden){max-width:min(79%,590px)!important;}
#app #active.cc-resonance #messages>.message.rz-moment .rich-message{color:#f3f9ff!important;text-shadow:0 2px 6px #01020afa,0 0 15px #66c6eb66!important;background:none!important;border:0!important;box-shadow:none!important;}
#app #active.cc-resonance #messages>.message.rz-moment .message-meta{color:#bfd4e4!important;text-shadow:0 1px 4px #000!important;}
#app #active.cc-resonance #messages>.message.rz-moment .rz-moment-identity{color:#d4b1ff!important;font-size:9px;letter-spacing:.15em;}
#app #active.cc-resonance #messages>.message.rz-moment.mine .rz-moment-identity{color:#83edff!important;}
#app #active.cc-resonance #messages>.message.rz-moment .cc-message-more{opacity:.85!important;pointer-events:auto!important;color:#eefaff!important;background:#06192bd9!important;border:1px solid #8bcdf49c!important;}
#app #active.cc-resonance .cc-inline-call{max-width:86%;align-self:center;background:#071c2d9e!important;border:1px solid #779ebe52!important;border-radius:30px!important;font-size:12px!important;padding:9px 14px!important;box-shadow:0 0 20px #080b2296;}
/* Glass controls as free-floating dock, no giant green message form. */
#app #active.cc-resonance .composer-wrap{padding:6px 12px max(7px,env(safe-area-inset-bottom))!important;background:linear-gradient(0deg,#010610f7,#030d1d99 74%,transparent)!important;}
#app #active.cc-resonance .composer{display:grid!important;grid-template-columns:repeat(4,36px) minmax(0,1fr) 48px;grid-template-rows:43px 33px;gap:2px 5px!important;align-items:center!important;border:none!important;border-radius:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;min-height:82px!important;}
#app #active.cc-resonance .composer textarea{grid-row:1;grid-column:1/6;width:100%!important;height:43px!important;min-height:43px!important;max-height:92px!important;border:1px solid #65e3f775!important;border-radius:24px!important;background:linear-gradient(110deg,#092943d9,#191a3ecb)!important;padding:11px 18px!important;box-shadow:0 0 23px #29a3e02a!important;font-size:14px!important;}
#app #active.cc-resonance .composer #send{grid-row:1;grid-column:6;width:46px!important;height:43px!important;border-radius:50%!important;margin:0!important;align-self:center;justify-self:center;}
#app #active.cc-resonance .composer .tool{display:grid!important;place-items:center;width:35px!important;height:32px!important;border:0!important;border-radius:50%!important;box-shadow:none!important;background:transparent!important;min-width:0!important;}
#app #active.cc-resonance .composer #attach{grid-area:2/1}
#app #active.cc-resonance .composer #camera{grid-area:2/2}
#app #active.cc-resonance .composer #emoji{grid-area:2/3}
#app #active.cc-resonance .composer #scheduleSend{grid-area:2/4}
#app #active.cc-resonance .composer #mic{grid-area:2/6;justify-self:center}
#app #active.cc-resonance #resonanceTimelineToggle{bottom:calc(100% + 5px);right:12px!important;border-radius:20px!important;}
/* Radial actions are real, wired to the existing secure.js message operations. */
.rz-radial-backdrop{position:fixed;inset:0;z-index:120;background:#030713ad;backdrop-filter:blur(2px);}
.rz-radial-orbit{position:fixed;width:1px;height:1px;}
.rz-radial-orbit::before{content:'';position:absolute;width:188px;height:188px;left:-94px;top:-94px;border:1px solid #8cdbf66b;border-radius:50%;box-shadow:0 0 22px #45cdfb4a,inset 0 0 28px #7d79ff1d;pointer-events:none;}
.rz-radial-action{position:absolute;transform:translate(calc(var(--x) - 27px),calc(var(--y) - 24px));width:54px;height:48px;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;border:1px solid #9acff9a6;background:radial-gradient(circle at 29% 20%,#224a78,#0a1c3c 80%);color:#effcff;box-shadow:0 0 17px #497cfb80;cursor:pointer;}
.rz-radial-action:nth-child(2n){border-color:#d4a2ffba;box-shadow:0 0 17px #aa70fe6f;}
.rz-radial-action .rz-radial-glyph{font-size:21px;line-height:1}
.rz-radial-action small{font-size:8px;color:#c8eaf3;white-space:nowrap}
.rz-radial-action:focus-visible{outline:2px solid #d8ffff;outline-offset:3px}
.rz-radial-core{position:absolute;transform:translate(-50%,-50%);color:#9af6ff;font-size:27px;text-shadow:0 0 23px #68dfff;pointer-events:none}
/* A call should feel like a full-screen scene on Android, not a small legacy pop-up. */
@media(max-width:800px){
 #app #active.cc-resonance>.thread-header{height:51px!important;min-height:51px!important;padding:0 7px!important;}
 #app #active.cc-resonance>.thread-header .icon,#app #active.cc-resonance #resonanceModeToggle:not(.hidden),#app #active.cc-resonance #keyButton{width:34px!important;height:34px!important;min-width:34px!important;}
 #app #active.cc-resonance #resonanceStage{height:153px!important;min-height:153px!important;padding:61px 12px 8px!important;}
 #app #active.cc-resonance #resonanceStage .rz-portrait-image{width:60px!important;height:60px!important;}
 #app #active.cc-resonance #messages>.message.rz-moment:not(.hidden){max-width:80%!important;}
 #app #active.cc-resonance .composer{grid-template-columns:repeat(4,35px) minmax(0,1fr) 46px;grid-template-rows:41px 31px;}
 #app #active.cc-resonance .composer textarea{height:41px!important;min-height:41px!important;}
 :root.cc-resonance-calling #callPanel:not(.hidden){inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;padding:calc(18px + env(safe-area-inset-top)) 14px max(18px,env(safe-area-inset-bottom))!important;display:flex!important;flex-direction:column!important;align-items:center;justify-content:space-between;background:linear-gradient(180deg,#010a19b5,#030b2690),url('/assets/resonance-vista-099.webp') center/cover no-repeat!important;}
 :root.cc-resonance-calling #callPanel:not(.hidden) .cc-call-identity{margin-top:5vh;}
 :root.cc-resonance-calling #callPanel:not(.hidden) #resonanceLocalCallOrb{height:84px;width:84px;box-shadow:0 0 32px #60e8f0,0 0 67px #8966fa87!important;}
 :root.cc-resonance-calling #callPanel:not(.hidden) .cc-call-status{text-align:center;}
 :root.cc-resonance-calling #callPanel:not(.hidden) .row{margin-top:auto;display:flex;justify-content:center;gap:13px;padding-bottom:12px;}
 :root.cc-resonance-calling #callPanel:not(.hidden) #hangupCall{min-width:74px;min-height:50px;border-radius:35px;}
 :root.cc-resonance-calling #callPanel:not(.hidden) .cc-call-video-stage:not(.hidden){width:100%;min-height:36dvh;max-height:56dvh;flex:1;}
}
@media(max-width:365px){#app #active.cc-resonance #resonanceStage .rz-portrait-image{width:51px!important;height:51px!important}#app #active.cc-resonance .composer{grid-template-columns:repeat(4,30px) minmax(0,1fr) 42px;gap:3px!important}}
@media(prefers-reduced-motion:reduce){.rz-radial-orbit *{animation:none!important}}
#app #active.cc-resonance-timeline #messages.messages{padding-top:77px!important;}
#app #active.cc-resonance #messages>.message.rz-long:not(.rz-expanded) .rich-message{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:7!important;overflow:hidden!important;max-height:12em!important;}

/* R4: the arc is a usable history/live control, not decorative chrome. */
#active.cc-resonance #resonanceStage .rz-thread-arc{pointer-events:auto!important;cursor:pointer;touch-action:manipulation;outline-offset:6px;filter:drop-shadow(0 0 11px #50edffbd)}
#active.cc-resonance #resonanceStage .rz-thread-arc:focus-visible{outline:2px solid #b6fafd;border-radius:20px}
#active.cc-resonance #resonanceStage .rz-thread-arc:hover{filter:drop-shadow(0 0 22px #90e7ff)}
#active.cc-resonance #resonanceStage[data-rz-mode="timeline"] .rz-thread-arc{filter:drop-shadow(0 0 16px #dba2ff)}
#active.cc-resonance #messages{overscroll-behavior-y:contain;overflow-x:hidden!important;scroll-padding-bottom:12px!important;padding-bottom:23px!important;}
#active.cc-resonance .rz-connection-canvas{overflow:hidden!important;max-width:100%;contain:paint;}
#active.cc-resonance #messages>.message:not(.hidden){flex-shrink:0!important}
/* Album: short gallery of independently encrypted image messages. No duplicate media download. */
#active.cc-resonance #messages>.rz-gallery{position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:min(88%,430px)!important;max-width:430px;margin-left:0;margin-right:auto;align-self:flex-start;flex:0 0 auto;min-height:0;contain:layout;}
#active.cc-resonance #messages>.rz-gallery.mine{align-self:flex-end;margin-left:auto;margin-right:0}
#active.cc-resonance #messages>.rz-gallery.rz-gallery-large{grid-template-columns:repeat(3,minmax(0,1fr))}
#active.cc-resonance .rz-gallery-heading{grid-column:1/-1;letter-spacing:.17em;color:#d6bcff;font-size:10px;font-weight:700;text-shadow:0 0 12px #8458f5;}
#active.cc-resonance .rz-gallery.mine .rz-gallery-heading{color:#8feeff}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card{display:flex!important;position:relative!important;flex-direction:column!important;max-width:100%!important;width:100%!important;min-width:0!important;padding:2px!important;margin:0!important;border:1px solid #72cbfa8c!important;border-radius:15px!important;background:linear-gradient(140deg,#102640a3,#24153899)!important;overflow:hidden!important;box-shadow:0 0 16px #328be35a!important;filter:none!important;align-self:stretch!important;}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .rz-moment-identity,#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .rz-node-dot{display:none!important}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .media-slot{display:block!important;width:100%!important;min-height:100px;}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .cc-open-attachment{display:block!important;width:100%!important;overflow:hidden;border-radius:12px!important;}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .cc-open-attachment img{display:block!important;width:100%!important;height:116px!important;aspect-ratio:1.2/1!important;object-fit:cover!important;}
#app #active.cc-resonance #messages>.rz-gallery.rz-gallery-large>.message.rz-gallery-card .cc-open-attachment img{height:91px!important}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .message-meta{font-size:9px!important;margin:2px 4px!important}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .cc-attachment-caption{max-height:28px;overflow:hidden;font-size:10px!important}
#app #active.cc-resonance #messages>.rz-gallery>.message.rz-gallery-card .cc-message-more{top:4px!important;right:4px!important;left:auto!important;transform:none!important;width:27px!important;height:27px!important;z-index:3}
/* R4: make ALL chat-level popovers visually coherent with the cosmic scene. */
html.cc-resonance-calling #dialog:not(.admin-open),html.cc-resonance-dialog #dialog:not(.admin-open){background:linear-gradient(155deg,#081c34f5,#170d30fa 65%,#07162ef9),url('/assets/resonance-vista-099.webp') center/cover no-repeat!important;color:#e9f6ff!important;border:1px solid #79cce6a8!important;border-radius:23px!important;box-shadow:0 0 60px #347bd655,0 20px 85px #000d!important;backdrop-filter:blur(22px)}
html.cc-resonance-dialog #dialog::backdrop{background:#010715b8;backdrop-filter:blur(9px)}
html.cc-resonance-dialog #dialog .dialog-head{background:linear-gradient(110deg,#102a48da,#221943da)!important;color:#edfbff!important;border:0!important;border-radius:16px!important;padding:12px!important}
html.cc-resonance-dialog #dialog .block,html.cc-resonance-dialog #dialog .cc-action-context{background:linear-gradient(125deg,#10294b9c,#1c1a4299)!important;border:1px solid #7aa6dd40!important;border-radius:17px!important;box-shadow:0 0 17px #288fc51e!important}
html.cc-resonance-dialog #dialog .plain-btn,html.cc-resonance-dialog #dialog .cta,html.cc-resonance-dialog #dialog .field,html.cc-resonance-dialog #dialog input:not([type=checkbox]),html.cc-resonance-dialog #dialog textarea{border:1px solid #84c3ee72!important;border-radius:15px!important;background:linear-gradient(130deg,#153654de,#17173cde)!important;color:#f3ffff!important;box-shadow:0 0 12px #54a9ed1a!important}
html.cc-resonance-dialog #dialog .helper,html.cc-resonance-dialog #dialog small{color:#b5d6e2!important}
html.cc-resonance-dialog #threadMenu,html.cc-resonance-dialog #picker{background:linear-gradient(130deg,#0b2a43ed,#21143bef),url('/assets/resonance-vista-099.webp') center/cover!important;border:1px solid #83cde68c!important;box-shadow:0 0 25px #71abde52!important;color:#eaf9ff!important}
html.cc-resonance-dialog #threadMenu button,html.cc-resonance-dialog #picker button{border-radius:12px!important;color:#e7faff!important}
.rz-radial-backdrop{touch-action:none!important;overscroll-behavior:none!important}
/* Enforce a real scroll end instead of giant whitespace under messages. */
#active.cc-resonance .messages-shell{overscroll-behavior:contain!important;}

/* Chronological mode has one compact readable column and fixed date anchors. */
#app #active.cc-resonance-timeline #messages.messages{gap:11px!important;padding:18px 12px 25px 43px!important;}
#app #active.cc-resonance-timeline #messages>.message.rz-moment{width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:7px 14px!important;border-left:1px solid #a1abef66!important;border-radius:7px!important;background:linear-gradient(90deg,#09283ba9,#111c3aa1)!important;box-shadow:none!important;}
#app #active.cc-resonance-timeline #messages>.message.rz-moment.mine{margin:0!important;}
#app #active.cc-resonance-timeline #messages>.message.rz-moment .rz-node-dot{left:-25px!important;right:auto!important;}
#app #active.cc-resonance-timeline #messages>.message.rz-moment .rz-moment-identity{font-size:9px!important;margin-bottom:3px!important;}
#app #active.cc-resonance-timeline #messages>.message.rz-moment .rich-message{font-size:14px!important;line-height:1.4!important;}
#app #active.cc-resonance-timeline #messages::before{left:21px!important;}
#active.cc-resonance-timeline .rz-date-marker{align-self:stretch;z-index:3;position:relative;color:#a9dff6;text-align:center;letter-spacing:.13em;text-shadow:0 0 12px #66c9ff;font-size:11px;margin:11px 0;padding:7px;border-bottom:1px solid #9ac4e13b;}
#app #active.cc-resonance-timeline #messages .cc-inline-call{align-self:stretch;max-width:100%}

/* The visible affordance for the bridge thread, accessible by mouse and touch. */
#app #active.cc-resonance #resonanceStage .rz-bridge-action{position:absolute!important;z-index:5;top:49px;left:50%;transform:translateX(-50%);padding:5px 10px!important;max-width:42%;font-size:10px!important;letter-spacing:.06em;white-space:nowrap;border-radius:22px!important;background:linear-gradient(120deg,#082036df,#27183fdf)!important;border:1px solid #91cfe484!important;color:#c6f7ff!important;box-shadow:0 0 17px #83c8ff48!important;cursor:pointer;}
#app #active.cc-resonance-timeline #resonanceStage .rz-bridge-action{display:none!important;}
@media(max-width:380px){#app #active.cc-resonance #resonanceStage .rz-bridge-action{top:50px;padding:4px 7px!important;font-size:9px!important}}

/* R5: the bridge is one accessible target, not two competing history buttons. */
#active.cc-resonance #resonanceStage .rz-thread-arc{pointer-events:none!important}
#active.cc-resonance:not(.cc-resonance-timeline) #resonanceTimelineToggle{display:none!important}
#active.cc-resonance #resonanceStage .rz-bridge-action{
 top:40px!important;left:50%!important;transform:translateX(-50%)!important;
 min-width:132px;max-width:45%!important;min-height:38px;
 font-size:10px!important;line-height:1.25!important;white-space:normal!important;
 color:#d5faff!important;background:radial-gradient(ellipse at center,#18346db5,transparent 78%)!important;
 border:0!important;box-shadow:none!important;border-radius:28px!important;
 -webkit-tap-highlight-color:transparent;touch-action:manipulation;
}
#active.cc-resonance #resonanceStage .rz-bridge-action:focus:not(:focus-visible){outline:none!important}
#active.cc-resonance #resonanceStage .rz-bridge-action:focus-visible{outline:2px solid #77eafa!important;outline-offset:2px}
#active.cc-resonance-timeline #resonanceTimelineToggle{display:block!important;position:relative!important;z-index:7!important;
 align-self:flex-start!important;margin:4px 0 4px 18px!important;border-radius:25px!important}
/* The history mode is a genuine dedicated reading lane; hide spare orbit stage. */
#active.cc-resonance-timeline .messages-shell{background-position:center 60%!important}
#active.cc-resonance-timeline #messages>.message.rz-moment{align-self:stretch!important;width:100%!important;max-width:100%!important}
#active.cc-resonance-timeline #messages>.rz-date-marker{position:relative!important;z-index:3!important;
 margin:15px 0!important;padding:7px 11px!important;border:1px solid #76c5e873!important;
 border-radius:999px!important;max-width:fit-content;align-self:center!important;
 background:radial-gradient(ellipse,#1b4177b8,#0a1d36b5)!important}
/* R5 compositor: one visible input, voice/send and a dedicated orbital create action. */
#active.cc-resonance .composer{grid-template-columns:45px minmax(0,1fr) 46px 43px!important;grid-template-rows:minmax(46px,auto)!important;
 gap:5px!important;align-items:center!important;min-height:54px!important}
#active.cc-resonance .composer textarea{grid-row:1!important;grid-column:2!important;min-height:46px!important;height:46px!important}
#active.cc-resonance .composer #send{grid-row:1!important;grid-column:3!important;width:45px!important;height:45px!important}
#active.cc-resonance .composer #mic{grid-row:1!important;grid-column:4!important;width:41px!important;height:43px!important}
#active.cc-resonance .composer #attach,#active.cc-resonance .composer #camera,#active.cc-resonance .composer #emoji,#active.cc-resonance .composer #scheduleSend{display:none!important}
#active.cc-resonance .composer .rz-create-launch{grid-row:1;grid-column:1;display:grid;place-items:center;
 width:43px;height:43px;border-radius:50%!important;background:radial-gradient(circle at 25% 20%,#70fff1,#0b6695 70%,#111e59)!important;
 border:1px solid #8be4ff!important;box-shadow:0 0 19px #32caff66!important;color:#061426!important;font-size:27px!important;line-height:1!important}
.rz-create-backdrop{position:fixed;inset:0;z-index:180;display:flex;align-items:flex-end;justify-content:center;
 background:radial-gradient(ellipse at 50% 80%,#092c4ec9,#010817e8 80%);backdrop-filter:blur(11px);overscroll-behavior:contain;touch-action:none}
.rz-create-orbit{width:min(96vw,445px);padding:28px 12px calc(24px + env(safe-area-inset-bottom));display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 7px;position:relative;isolation:isolate;justify-items:center;
 border-top:1px solid #7ce5fc84;border-radius:42% 42% 0 0 / 17% 17% 0 0;
 background:radial-gradient(ellipse at 50% 30%,#1c4b74dd,#11142cd6 66%,#061221e9)}
.rz-create-orbit:before{content:'';position:absolute;inset:12px 16px 28px;border-top:1px solid #8addf774;border-radius:50%;pointer-events:none}
.rz-create-caption{grid-column:1/-1;font-size:11px;letter-spacing:.24em;font-weight:750;color:#b6f4fa;z-index:2}
.rz-create-choice{display:flex;position:relative;z-index:3;flex-direction:column;align-items:center;justify-content:center;gap:7px;
 width:94px;min-height:82px;color:#e7f7ff;border:0;border-radius:50%;background:none;box-shadow:none;
 -webkit-tap-highlight-color:transparent}
.rz-create-choice strong{display:grid;place-items:center;border:1px solid #9bdcf5b1;background:radial-gradient(circle at 30% 20%,#355b92,#0e2145 74%);
 border-radius:50%;width:53px;height:53px;color:#a8fbff;font-size:24px;font-weight:400;box-shadow:0 0 20px #3cbeef51}
.rz-create-choice span{font-size:10px;color:#c4eaf3;text-align:center}
.rz-create-choice:focus-visible{outline:2px solid #b1faff}
@media(max-width:420px){#active.cc-resonance .composer{grid-template-columns:40px minmax(0,1fr) 41px 37px!important;gap:2px!important}
 #active.cc-resonance .composer textarea{padding:9px 12px!important;font-size:14px!important}
 #active.cc-resonance .composer .rz-create-launch{width:38px;height:38px}}
/* R5: history is a quiet reading surface, not another set of filled bubbles. */
#app #active.cc-resonance-timeline #messages.messages{padding:16px 14px 34px 46px!important;gap:9px!important}
#app #active.cc-resonance-timeline #messages>.message.rz-moment,
#app #active.cc-resonance-timeline #messages>.message.rz-moment.mine{
 border:0!important;border-bottom:1px solid #769fc332!important;border-radius:0!important;
 box-shadow:none!important;background:none!important;background-color:transparent!important;
 padding:12px 8px 14px 6px!important;width:100%!important;margin:0!important;max-width:100%!important}
#app #active.cc-resonance-timeline #messages>.message.rz-moment .rz-moment-identity{letter-spacing:.09em!important;font-weight:680!important;opacity:.87}
#app #active.cc-resonance-timeline #messages>.message.rz-moment .rich-message{font-size:15px!important;line-height:1.5!important;max-width:100%!important}
#app #active.cc-resonance-timeline #messages>.message.rz-moment>.rz-node-dot{left:-30px!important}
/* Chat submenu: a constellation of independent controls instead of a legacy vertical settings list. */
html.cc-resonance-dialog #active .thread-menu:not(.hidden){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;
 width:min(94vw,400px)!important;max-width:94vw!important;max-height:75dvh!important;overflow-y:auto!important;
 padding:18px!important;border:1px solid #86c9ec8a!important;border-radius:28px!important;
 background:radial-gradient(ellipse at 50% -30%,#1d6384e8,#091b38f4 72%),url('/assets/resonance-vista-099.webp') center/cover!important;
 box-shadow:0 18px 60px #010713ec,0 0 37px #3aa6dd42!important;backdrop-filter:blur(17px)!important}
html.cc-resonance-dialog #active .thread-menu .cc-thread-menu-heading{grid-column:1/-1;margin-bottom:4px;text-align:center;background:none!important;border:0!important}
html.cc-resonance-dialog #active .thread-menu .cc-thread-menu-group{display:contents!important}
html.cc-resonance-dialog #active .thread-menu [data-thread-action]{display:flex!important;flex-direction:column;gap:6px;align-items:center!important;text-align:center!important;
 min-height:106px!important;padding:13px 6px!important;white-space:normal!important;
 border:1px solid #81cce65b!important;border-radius:25px 8px 25px 8px!important;
 background:radial-gradient(ellipse at 20% 15%,#255386be,#0b1738df 72%)!important;
 color:#ecffff!important;box-shadow:inset 0 1px #c7e9f422,0 0 14px #308de126!important}
html.cc-resonance-dialog #active .thread-menu [data-thread-action].hidden{display:none!important}
html.cc-resonance-dialog #active .thread-menu .cc-thread-menu-icon{display:grid!important;place-items:center!important;font-size:23px!important;width:45px!important;height:45px!important;
 border:1px solid #9fe9fa8a!important;border-radius:50%!important;box-shadow:0 0 18px #7cd8ff6a!important}
html.cc-resonance-dialog #active .thread-menu [data-thread-action] small{display:block!important;font-size:10px!important;line-height:1.25!important;opacity:.72;white-space:normal!important}
html.cc-resonance-dialog #active .thread-menu [data-thread-action] span{white-space:normal!important;overflow-wrap:anywhere}
/* Mobile popovers use a floating celestial sheet; content/layout is distinct from ordinary form dialogs. */
html.cc-resonance-dialog #active #picker:not(.hidden){border-radius:29px 29px 12px 12px!important;
 background:radial-gradient(ellipse at 50% 0%,#165d84ec,#130e37ed 65%),url('/assets/resonance-vista-099.webp') center/cover!important;
 border:1px solid #8ccdfb87!important;box-shadow:0 0 45px #469de85c!important}
html.cc-resonance-dialog #active #picker .picker-top{display:flex;gap:5px;justify-content:center;flex-wrap:wrap!important;background:transparent!important}
html.cc-resonance-dialog #active #picker .picker-top button{border:1px solid #8fcbeb70!important;background:radial-gradient(ellipse,#23416fcf,#0d203d88)!important;
 border-radius:999px!important;padding:7px 10px!important}

/* R6 · one real header, no duplicate orbital banner, no artificial history mode. */
#app #active.cc-resonance #resonanceStage,
#app #active.cc-resonance #resonanceTimelineToggle,
#app #active.cc-resonance #resonanceModeToggle,
#app #active.cc-resonance .rz-bridge-action{display:none!important}
#app #active.cc-resonance>.thread-header{
 position:relative!important;left:auto!important;right:auto!important;top:auto!important;
 min-height:63px!important;height:63px!important;gap:7px!important;padding:0 10px!important;
 flex-shrink:0!important;z-index:18!important;border-bottom:1px solid #8dbff33d!important;
 background:linear-gradient(120deg,#07182bf5,#111332ed)!important;
 backdrop-filter:blur(15px)!important;
}
#app #active.cc-resonance>.thread-header #peerAvatar{display:grid!important;flex:none!important;
 width:43px!important;height:43px!important;min-width:43px!important;overflow:hidden;border-radius:50%!important}
#app #active.cc-resonance>.thread-header .peer-info{display:flex!important;min-width:0!important;flex:1!important;flex-direction:column!important}
#app #active.cc-resonance>.thread-header .peer-info b{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px!important}
#app #active.cc-resonance>.thread-header .peer-info small{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px!important}
#app #active.cc-resonance>.thread-header .back{margin-right:0!important}
#app #active.cc-resonance>.thread-header .icon{height:37px!important;width:37px!important;min-width:37px!important;flex:none}
#app #active.cc-resonance>.thread-header #keyButton{min-width:32px!important;width:32px!important;flex:none}
#app #active.cc-resonance #messages{padding-top:20px!important}
@media(max-width:420px){
 #app #active.cc-resonance>.thread-header{gap:3px!important;padding:0 6px!important}
 #app #active.cc-resonance>.thread-header #peerAvatar{display:grid!important;min-width:36px!important;width:36px!important;height:36px!important}
 #app #active.cc-resonance>.thread-header .icon{width:33px!important;min-width:33px!important;height:34px!important;padding:6px!important}
 #app #active.cc-resonance>.thread-header .peer-info b{font-size:14px!important}
}
/* A single send button switches between voice and envelope based on text. */
#app #active.cc-resonance .composer{display:grid!important;grid-template-columns:43px minmax(0,1fr) 50px!important;
 gap:6px!important;grid-template-rows:minmax(48px,auto)!important;align-items:center!important;padding:5px 6px!important;
 min-height:57px!important;border-radius:999px!important}
#app #active.cc-resonance .composer>.rz-create-launch{display:grid!important;grid-column:1!important;grid-row:1!important;
 width:42px!important;height:42px!important;min-width:42px!important}
#app #active.cc-resonance .composer #input{display:block!important;grid-column:2!important;grid-row:1!important;
 min-width:0!important;width:100%!important;min-height:42px!important;height:42px!important;
 max-height:100px!important;padding:8px 6px!important;resize:none!important;overflow-y:auto!important}
#app #active.cc-resonance .composer #send{display:grid!important;place-items:center!important;grid-column:3!important;grid-row:1!important;
 width:48px!important;min-width:48px!important;height:48px!important;padding:8px!important;touch-action:none!important}
#app #active.cc-resonance .composer #send.rz-record-ready .send-envelope{display:none!important}
#app #active.cc-resonance .composer #send.rz-record-ready:after{content:'♫';font-size:25px;font-weight:700;color:#062544}
#app #active.cc-resonance .composer #attach,
#app #active.cc-resonance .composer #camera,
#app #active.cc-resonance .composer #emoji,
#app #active.cc-resonance .composer #mic,
#app #active.cc-resonance .composer #scheduleSend{display:none!important}
@media(max-width:420px){#app #active.cc-resonance .composer{grid-template-columns:41px minmax(0,1fr) 44px!important;gap:3px!important}
#app #active.cc-resonance .composer #send{width:43px!important;min-width:43px!important;height:43px!important}}
/* R6: the native call panel was previously clipped by conflicting left/right/transform styles. */
html.cc-resonance-calling body #callPanel:not(.hidden):not(.call-collapsed){
 position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
 transform:none!important;translate:none!important;margin:0!important;
 box-sizing:border-box!important;width:100vw!important;max-width:100vw!important;min-width:0!important;
 height:100dvh!important;max-height:100dvh!important;min-height:0!important;
 z-index:300!important;overflow-x:hidden!important;overflow-y:auto!important;
 overscroll-behavior:contain!important;padding:calc(18px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom))!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:space-between!important;
 background:linear-gradient(180deg,#030d2390,#020719c4),url('/assets/resonance-vista-099.webp') center/cover no-repeat!important;
}
html.cc-resonance-calling body #callPanel.call-collapsed:not(.hidden){position:fixed!important;inset:auto 9px auto auto!important;right:9px!important;top:9px!important;bottom:auto!important;left:auto!important;transform:none!important;translate:none!important;margin:0!important;width:min(290px,90vw)!important;height:auto!important;max-height:90px!important;min-height:0!important;overflow:hidden!important}
html.cc-resonance-calling #callPanel:not(.hidden) .row{flex-wrap:wrap!important;justify-content:center!important;max-width:100%!important}
/* Orbital chat actions: semantic buttons trigger existing handlers, not generic rectangular panels. */
.rz-chat-actions-backdrop{position:fixed;inset:0;z-index:220;display:grid;place-items:center;
 background:radial-gradient(circle at 50% 56%,#13284ce8,#020815f1 78%);backdrop-filter:blur(13px);
 touch-action:none;overscroll-behavior:contain}
.rz-chat-actions-orbit{position:relative;width:min(95vw,430px);height:min(74dvh,510px);max-height:510px;
 display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:65px repeat(3,minmax(75px,1fr)) 34px;
 align-items:center;justify-items:center;padding:12px 22px;gap:8px;
 background:radial-gradient(ellipse at 50% 50%,#2850914a,#080e2a34 70%,transparent);
 border-radius:45%;border:1px solid #77c5f846;box-shadow:0 0 65px #2e5de72f,inset 0 0 60px #2dd8ff13}
.rz-chat-actions-center{grid-column:1/-1;display:flex;gap:12px;align-items:center;justify-content:center;color:#c6f4ff;
 font-size:11px;letter-spacing:.18em}
.rz-chat-actions-center>span{font-size:30px;text-shadow:0 0 18px #49e9ff}
.rz-chat-action{appearance:none;background:none;border:0;color:#e4faff;display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:7px;min-width:0;width:100%;min-height:77px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.rz-chat-action>span{width:65px;height:65px;display:grid;place-items:center;border-radius:50%;font-size:25px;
 background:radial-gradient(circle at 34% 22%,#235c92,#101940 75%);border:1px solid #a0daf1;
 box-shadow:0 0 20px #44bff980,inset 0 0 18px #77aafa27}
.rz-chat-action:nth-child(odd)>span{border-color:#bca0ff;box-shadow:0 0 21px #b17dff71,inset 0 0 18px #ac85f937}
.rz-chat-action small{font-size:11px;line-height:1.1;white-space:nowrap;color:#c7ddec}
.rz-chat-actions-close{grid-column:1/-1;color:#b6e0ed;font-size:13px;padding:6px 24px;border:1px solid #81c9e57c;
 border-radius:999px;background:linear-gradient(90deg,#132c4a9e,#23174791)}
@media(max-height:675px){.rz-chat-actions-orbit{height:93dvh;grid-template-rows:46px repeat(3,minmax(57px,1fr)) 30px}
 .rz-chat-action>span{width:46px;height:46px;font-size:20px}.rz-chat-action{min-height:50px}}
@media(prefers-reduced-motion:reduce){.rz-chat-actions-orbit *{animation:none!important}}

/* R7 · Restraint and luminous controls: no double header, badges, or heavy pills. */
#app #active.cc-resonance>.thread-header{
 height:58px!important;min-height:58px!important;
 display:flex!important;align-items:center!important;gap:7px!important;padding:0 10px!important;
 background:linear-gradient(110deg,#071525f2 3%,#09162beb 70%,#160e2be9)!important;
 border-bottom:1px solid #80cbe646!important;box-shadow:0 9px 32px #01061570!important;
 backdrop-filter:blur(22px)!important;
}
#app #active.cc-resonance>.thread-header .back{
 display:grid!important;place-items:center!important;flex:0 0 32px!important;
 min-width:32px!important;width:32px!important;height:36px!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
}
#app #active.cc-resonance>.thread-header #peerAvatar{
 display:grid!important;width:38px!important;min-width:38px!important;height:38px!important;
 border-radius:50%!important;border:1px solid #b4e9faad!important;
 box-shadow:0 0 15px #35c9ef6b,0 0 0 3px #3ab7f014!important;
 overflow:hidden!important;position:relative!important;
}
/* The green presence dot is exclusively an Orbit feature. */
#app #active.cc-resonance #peerAvatar.peer-online::after,
#app #active.cc-resonance .peer-avatar.peer-online::after{content:none!important;display:none!important}
#app #active.cc-resonance>.thread-header .peer-info{flex:1 1 0!important;min-width:0!important;max-width:none!important}
#app #active.cc-resonance>.thread-header .peer-info b{font-size:14px!important;font-weight:650!important;letter-spacing:.01em}
#app #active.cc-resonance>.thread-header .peer-info small{font-size:10px!important;opacity:.9}
#app #active.cc-resonance>.thread-header .icon.call-action,
#app #active.cc-resonance>.thread-header #peerInfoBtn{
 display:grid!important;place-items:center!important;flex:0 0 35px!important;
 min-width:35px!important;width:35px!important;height:35px!important;
 border:1px solid #81cef056!important;border-radius:12px!important;
 background:radial-gradient(circle at 24% 14%,#1d4d6969,#0b1933d6 76%)!important;
 box-shadow:inset 0 1px #c6f2ff15,0 0 12px #4fdaf21c!important;
 padding:8px!important;color:#d8f8ff!important;
 -webkit-tap-highlight-color:transparent!important;
}
#app #active.cc-resonance>.thread-header .icon.call-action:active,
#app #active.cc-resonance>.thread-header #peerInfoBtn:active{transform:scale(.96);background:#1b4662b8!important}
/* Key verification stays available in Orbit chat actions instead of taking header space. */
#app #active.cc-resonance>.thread-header #keyButton{display:none!important}
@media(max-width:390px){
 #app #active.cc-resonance>.thread-header{gap:4px!important;padding:0 6px!important}
 #app #active.cc-resonance>.thread-header .icon.call-action,
 #app #active.cc-resonance>.thread-header #peerInfoBtn{flex-basis:31px!important;min-width:31px!important;width:31px!important;height:33px!important;padding:6px!important}
 #app #active.cc-resonance>.thread-header #peerAvatar{width:34px!important;min-width:34px!important;height:34px!important}
}
/* Composer buttons visually belong to the same delicate optical instrument. */
#app #active.cc-resonance .composer{
 border:0!important;background:transparent!important;box-shadow:none!important;
 display:grid!important;grid-template-columns:39px minmax(0,1fr) 43px!important;
 grid-template-rows:49px!important;align-items:center!important;gap:7px!important;
 padding:2px 1px!important;min-height:51px!important;
}
#app #active.cc-resonance .composer>.rz-create-launch{
 width:39px!important;height:39px!important;min-width:39px!important;
 display:grid!important;place-items:center!important;border-radius:13px!important;
 border:1px solid #73dff57a!important;
 color:#c2fbff!important;
 background:radial-gradient(circle at 27% 18%,#206c8b85,#0c1f3c 73%)!important;
 box-shadow:0 0 17px #52dcf638,inset 0 1px #bbfcff23!important;
 -webkit-tap-highlight-color:transparent!important;
}
#app #active.cc-resonance .composer>.rz-create-launch svg{width:21px;height:21px}
#app #active.cc-resonance .composer #input{
 min-height:43px!important;height:43px!important;padding:11px 13px!important;
 font-size:14px!important;color:#effbff!important;
 border:1px solid #8fb5eb52!important;border-radius:14px!important;
 background:linear-gradient(115deg,#09253bbd,#131a37b8)!important;
 box-shadow:inset 0 1px #ceeaff10!important;
}
#app #active.cc-resonance .composer #send{
 width:43px!important;height:43px!important;min-width:43px!important;
 display:grid!important;place-items:center!important;
 border-radius:13px!important;border:1px solid #92ffffa8!important;
 color:#09263a!important;
 background:linear-gradient(145deg,#a6f5fd,#50c8ec)!important;
 box-shadow:0 0 13px #3bcbf46b,inset 0 1px #e5ffff6b!important;
 -webkit-tap-highlight-color:transparent!important;
}
#app #active.cc-resonance .composer #send.rz-record-ready:after{content:none!important;display:none!important}
#app #active.cc-resonance .composer #send .rz-unified-send-glyph{display:block!important}
#app #active.cc-resonance .composer #send .rz-unified-mic-glyph{display:none!important}
#app #active.cc-resonance .composer #send.rz-record-ready .rz-unified-send-glyph{display:none!important}
#app #active.cc-resonance .composer #send.rz-record-ready .rz-unified-mic-glyph{display:block!important}
#app #active.cc-resonance .composer #send:active,
#app #active.cc-resonance .composer .rz-create-launch:active{transform:scale(.97)!important}
#app #active.cc-resonance .composer #send:focus:not(:focus-visible),
#app #active.cc-resonance .composer .rz-create-launch:focus:not(:focus-visible),
html.cc-resonance-calling #hangupCall:focus:not(:focus-visible){outline:0!important}
#app #active.cc-resonance .composer #send:focus-visible,
#app #active.cc-resonance .composer .rz-create-launch:focus-visible,
html.cc-resonance-calling #hangupCall:focus-visible{outline:2px solid #c7faff!important;outline-offset:3px!important}
@media(max-width:365px){#app #active.cc-resonance .composer{grid-template-columns:36px minmax(0,1fr) 41px!important;gap:5px!important}}

/* R7 call: direction, soft lightning & honest state, without altering WebRTC. */
#rzCallRoute{display:none;}
html.cc-resonance-calling body #callPanel:not(.hidden):not(.call-collapsed){
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:flex-start!important;gap:12px!important;
 padding:calc(42px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom))!important;
 height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 box-sizing:border-box!important;overflow-y:auto!important;
 background:radial-gradient(ellipse at 15% 24%,#0f698d36,transparent 48%),radial-gradient(ellipse at 91% 38%,#4f2ca936,transparent 51%),linear-gradient(#03102277,#030919bb),url('/assets/resonance-vista-099.webp') center/cover!important;
}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #collapseCall{position:absolute!important;right:15px!important;top:calc(11px + env(safe-area-inset-top))!important;z-index:8}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-identity{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 position:relative!important;top:auto!important;left:auto!important;right:auto!important;
 padding:0!important;margin:0!important;max-width:min(100%,220px)!important;
}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-avatar-wrap{
 height:74px!important;width:74px!important;min-width:74px!important;border-radius:50%!important;
 box-shadow:0 0 27px #b98afa8e,0 0 48px #8353e038!important;
}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #resonanceLocalCallOrb{
 display:grid!important;place-items:center!important;flex:0 0 auto!important;
 height:74px!important;width:74px!important;max-width:74px!important;
 border-radius:50%!important;margin:0!important;position:relative!important;
 box-shadow:0 0 26px #58defb89,0 0 49px #3daddc3c!important;
}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #resonanceLocalCallOrb img{height:100%;width:100%;border-radius:50%;object-fit:cover}
/* visually place avatars adjacent, framing directional arc; keep native identity as DOM */
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-identity{order:1;align-self:flex-end;margin-right:calc(14% - 6px)!important;margin-top:-75px!important;margin-bottom:0!important}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #resonanceLocalCallOrb{order:0;align-self:flex-start;margin-left:calc(14% - 6px)!important}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .rz-call-route{
 display:block!important;order:2!important;width:min(100%,440px);min-height:106px;
 margin-top:6px;color:#dbf9ff;flex:0 0 auto;
}
.rz-call-route .rz-call-names{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:650;color:#e5faff;text-shadow:0 0 13px #58dfff;letter-spacing:.02em}
.rz-call-route .rz-call-origin,.rz-call-route .rz-call-destination{min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rz-call-route .rz-call-destination{color:#eddbff;text-align:right;text-shadow:0 0 13px #c3a1ff}
.rz-call-route .rz-call-flow-svg{display:block;width:100%;height:51px;overflow:visible;filter:drop-shadow(0 0 5px #6fd8f57c)}
.rz-call-route .rz-call-guide{fill:none;stroke:#93e9f7;stroke-width:1;opacity:.3}
.rz-call-route .rz-call-energy{fill:none;stroke:url(#rzCallFlowGradient);stroke-width:2;opacity:.95}
.rz-call-route .rz-call-spark{fill:none;stroke:#f7ffff;stroke-width:3.4;stroke-linecap:round;stroke-dasharray:12 280;stroke-dashoffset:280;animation:rz-call-electric 4.5s ease-in-out infinite;opacity:.85}
.rz-call-route .rz-call-spark-return{display:none}
.rz-call-route[data-direction="incoming"] .rz-call-spark{animation-direction:reverse}
.rz-call-route[data-direction="active"] .rz-call-spark-return{display:block;stroke:#daa6ff;opacity:.72;animation-direction:reverse;animation-delay:-1.5s}
.rz-call-route .rz-call-arrow{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke:#ccaeff}
.rz-call-route[data-direction="incoming"] .rz-arrow-right{display:none}
.rz-call-route[data-direction="outgoing"] .rz-arrow-left{display:none}
.rz-call-route .rz-call-direction-label{font-size:11px;text-align:center;letter-spacing:.16em;color:#ade8ef;margin-top:1px}
@keyframes rz-call-electric{0%{stroke-dashoffset:310;opacity:0}15%{opacity:.8}70%{opacity:.75}95%,100%{stroke-dashoffset:-300;opacity:0}}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-status{
 order:3!important;flex:0 0 auto;margin:0!important;text-align:center!important;max-width:100%;padding:6px 0;
}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #callVideoStage:not(.hidden){order:4!important;flex:1 1 auto!important;min-height:145px!important;max-height:44dvh!important;width:100%!important}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #groupCallPeers:not(.hidden){order:5!important;max-width:100%!important}
html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .row{
 order:6!important;flex:0 0 auto!important;margin:auto 0 0!important;padding:6px 0 2px!important;
 max-width:100%!important;width:100%;gap:8px!important;align-items:center!important;justify-content:center!important;
}
html.cc-resonance-calling #callPanel:not(.hidden) #hangupCall{
 color:white!important;background:linear-gradient(145deg,#ee5279,#aa1b46)!important;
 border:1px solid #f68da56a!important;border-radius:19px!important;
 box-shadow:0 5px 21px #e83e6750,inset 0 1px #ffced28c!important;
 -webkit-tap-highlight-color:transparent!important;
}
html.cc-resonance-calling #callPanel:not(.hidden) #hangupCall:active{transform:scale(.97)!important;filter:brightness(.96)}
@media(max-height:700px){
 html.cc-resonance-calling body #callPanel:not(.hidden):not(.call-collapsed){gap:5px!important;padding-top:calc(30px + env(safe-area-inset-top))!important}
 html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) #resonanceLocalCallOrb,
 html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-avatar-wrap{height:58px!important;width:58px!important;min-width:58px!important}
 html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .cc-call-identity{margin-top:-58px!important}
 html.cc-resonance-calling #callPanel:not(.hidden):not(.call-collapsed) .rz-call-route{min-height:95px!important}
}
@media(prefers-reduced-motion:reduce){.rz-call-route .rz-call-spark{animation:none!important;stroke-dasharray:none!important;opacity:.65!important}}

/* CALL STABILITY S1: native layout of v0.7.97, no composited blur over live video. */
html.rz-native-call-active #callPanel:not(.hidden){
 -webkit-backdrop-filter:none!important; backdrop-filter:none!important;
 filter:none!important; box-shadow:0 12px 32px #0009!important;
 background:linear-gradient(155deg,#0b2535,#06111d)!important;
}
html.rz-native-call-active #callPanel:not(.hidden) :is(.cc-call-avatar-wrap,.cc-call-video-stage,.cc-group-member){
 -webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden) #resonanceLocalCallOrb{display:none!important;}
html.rz-native-call-active :is(.rz-connection-canvas,.rz-thread-motion,.rz-travel-pulse){
 visibility:hidden!important;animation:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.cc-call-fullscreen):not(.call-collapsed){
 max-height:calc(100dvh - 16px)!important;overflow-y:auto!important;
 overscroll-behavior:contain!important;
}
@media(prefers-reduced-motion:reduce){html.rz-native-call-active #callPanel *{animation:none!important;}}


/* U1 conservative call skin, scoped to the safe S1 active state only.
   No SVG, no MutationObserver, no fullscreen canvas/GPU blur. */
html.rz-native-call-active body #callPanel:not(.hidden):not(.call-collapsed){
  position:fixed!important;left:auto!important;right:16px!important;
  top:16px!important;bottom:auto!important;inset:auto 16px auto auto!important;
  transform:none!important;translate:none!important;margin:0!important;
  width:min(430px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
  height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;
  padding:22px 16px!important;overflow-x:hidden!important;overflow-y:auto!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  align-items:stretch!important;gap:12px!important;box-sizing:border-box!important;
  border-radius:24px!important;border:1px solid #4aa5b6!important;
  background:linear-gradient(155deg,#112f43,#081522 80%)!important;
  box-shadow:0 10px 30px #0008!important;z-index:301!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed)::before{
 content:'РЕЗОНАНС · СВЯЗЬ';order:-1;display:block;font-size:10px!important;
 color:#a3e5ee!important;letter-spacing:.16em;font-weight:650!important;
 text-align:center;margin:1px 28px 0!important;
}
html.rz-native-call-active #callPanel[data-call-state='outgoing']:not(.hidden)::before{content:'РЕЗОНАНС · ИСХОДЯЩИЙ ВЫЗОВ'}
html.rz-native-call-active #callPanel[data-call-state='incoming']:not(.hidden)::before{content:'РЕЗОНАНС · ВХОДЯЩИЙ ВЫЗОВ'}
html.rz-native-call-active #callPanel[data-call-state='active']:not(.hidden)::before{content:'РЕЗОНАНС · НА СВЯЗИ'}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) .cc-call-identity{
 margin:0 auto!important;order:0!important;align-self:center!important;
 position:relative!important;top:auto!important;left:auto!important;right:auto!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;
 max-width:100%!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) .cc-call-avatar-wrap{
 width:78px!important;height:78px!important;min-width:78px!important;border-radius:50%!important;
 box-shadow:0 0 0 3px #67eaf42c!important;border:2px solid #76d8e8!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #resonanceLocalCallOrb{display:none!important}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) .cc-call-status{
 order:1!important;margin:0!important;align-items:center!important;text-align:center!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) .row{
 order:5!important;width:100%!important;display:flex!important;justify-content:center!important;
 align-items:center!important;gap:8px!important;flex-wrap:wrap!important;
 margin:0!important;padding:8px 0 0!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) .row button:not(.hidden){
 min-width:0!important;flex:0 1 auto!important;max-width:none!important;min-height:44px!important;
 border-radius:18px!important;padding:10px 13px!important;
 touch-action:manipulation!important;position:relative!important;opacity:1!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #hangupCall{
 background:#ae3555!important;border:1px solid #db7290!important;color:#fff!important;
 border-radius:999px!important;box-shadow:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #callVideoStage:not(.hidden){
 order:3!important;position:relative!important;max-height:42dvh!important;min-height:170px!important;
 width:100%!important;margin:0!important;flex:0 0 auto!important;filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #groupCallPeers:not(.hidden){
 order:4!important;max-width:100%!important;width:100%!important;min-height:0!important;
 overflow-y:auto!important;filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #collapseCall{
 position:absolute!important;top:12px!important;right:12px!important;left:auto!important;z-index:9!important;
}
@media(max-width:600px){
 html.rz-native-call-active body #callPanel:not(.hidden):not(.call-collapsed){
   inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
   width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
   border:0!important;border-radius:0!important;
   padding:calc(22px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom))!important;
 }
 html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed) #callVideoStage:not(.hidden){
   max-height:40dvh!important;min-height:120px!important;
 }
}
@media(prefers-reduced-motion:reduce){html.rz-native-call-active #callPanel *{animation:none!important}}

/* U3: group chats use Resonance controls without any SVG observer-rendered thread. */
#app #active.cc-resonance-group #resonanceStage,
#app #active.cc-resonance-group #resonanceModeToggle,
#app #active.cc-resonance-group #resonanceTimelineToggle{display:none!important}
#app #active.cc-resonance-group .rz-connection-canvas{display:none!important}
#app #active.cc-resonance-group #messages{padding-bottom:12px!important}
#app #active.cc-resonance-group #messages>.message:not(.hidden){contain:layout style;}
#app #active.cc-resonance-group .group-tools{display:flex;flex-wrap:wrap;gap:6px;padding:6px 10px;background:#061d2ddc;border-bottom:1px solid #72d7e333}
#app #active.cc-resonance-group .group-tools.hidden{display:none!important}
#app #active.cc-resonance-group .group-tools button{min-height:34px;border-radius:999px!important;background:#102b40c9!important;border:1px solid #64b8d957!important;color:#dff8ff!important;font-size:11px!important;padding:7px 10px!important;box-shadow:none!important}
#app #active.cc-resonance-group .group-tools button:active{background:#1a4460!important}
/* One-stage orbital menu instead of old two-page More. */
.rz-chat-actions-unified{height:auto!important;width:min(96vw,480px)!important;max-height:90dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:9px!important;border-radius:27px!important;padding:16px!important;background:radial-gradient(ellipse at 50% 0,#1d5e78a0,transparent 65%),linear-gradient(135deg,#071b31f9,#11152bf9)!important;border:1px solid #7dd1e57d!important;overflow-y:auto!important}
.rz-chat-actions-unified .rz-chat-actions-center{align-self:stretch;grid-column:auto!important;display:flex!important;gap:12px!important;justify-content:center!important;padding:8px 10px!important;border-bottom:1px solid #66baca39!important}
.rz-chat-actions-grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.rz-chat-actions-unified .rz-chat-action{width:100%;min-width:0!important;min-height:71px!important;padding:5px 2px!important}
.rz-chat-actions-unified .rz-chat-action>span{width:42px!important;height:42px!important;font-size:22px!important}
.rz-chat-actions-unified .rz-chat-action small{max-width:110px;white-space:normal!important;text-align:center;font-size:10px!important;line-height:1.2}
.rz-chat-actions-unified .rz-chat-actions-close{grid-column:auto!important;align-self:center!important;min-height:34px!important}
.rz-chat-danger>span{border-color:#eb748a!important;color:#ffccd7!important}
/* U3: Windows must never inherit a narrow 430px video window after accepting. */
html.cc-desktop-ui #callPanel.cc-group-active:not(.hidden):not(.call-collapsed){
 position:fixed!important;left:3vw!important;right:3vw!important;top:3dvh!important;bottom:auto!important;inset:3dvh 3vw auto 3vw!important;transform:none!important;translate:none!important;
 box-sizing:border-box!important;width:94vw!important;min-width:0!important;max-width:1400px!important;
 height:min(92dvh,920px)!important;max-height:92dvh!important;overflow:hidden!important;
 display:flex!important;flex-direction:column!important;gap:7px!important;padding:15px!important;
 background:linear-gradient(145deg,#091c32,#05111f)!important;backdrop-filter:none!important;z-index:400!important
}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='incoming']:not(.hidden){
 width:min(540px,94vw)!important;height:auto!important;max-height:90dvh!important;left:auto!important;right:20px!important;inset:20px 20px auto auto!important;overflow-y:auto!important
}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:not(.hidden){
 flex:1 1 auto!important;min-height:0!important;display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))!important;
 grid-auto-rows:minmax(190px,1fr)!important;align-content:stretch!important;
 width:100%!important;overflow-y:auto!important;gap:12px!important;margin:0!important
}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-group-member-preview{height:100%!important;min-height:160px!important}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-group-member{display:flex;flex-direction:column;min-height:0}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-group-member-label{flex:none}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .row{flex:none!important;display:flex!important;flex-wrap:wrap;justify-content:center!important;gap:8px!important;margin:3px 0!important}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .row button:not(.hidden){flex:0 1 132px!important;max-width:160px!important;min-width:75px!important;min-height:41px!important}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-call-identity{display:none!important}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-call-status{margin:0!important}
/* Desktop 1:1 incoming calls stay readable without affecting group sessions. */
html.cc-desktop-ui #callPanel:not(.hidden):not(.cc-group-active):not(.cc-call-fullscreen):not(.call-collapsed){
 inset:16px 16px auto auto!important;left:auto!important;right:16px!important;top:16px!important;
 width:min(480px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
 max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;transform:none!important;translate:none!important;backdrop-filter:none!important
}

/* Keep Windows group participants above controls in a genuine full-height stage. */
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .cc-call-status{order:1}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers{order:2}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] .row{order:3}
html.cc-desktop-ui #callPanel.cc-group-active[data-call-state='active'] #callVideoStage{display:none!important}


/* U4: dependable incoming controls. Overlay the Orbit without any animated WebRTC effects. */
html body #callPanel[data-call-state="incoming"]:not(.hidden){
 z-index:5000!important;visibility:visible!important;opacity:1!important;
 pointer-events:auto!important;filter:none!important;
}
html body #callPanel[data-call-state="incoming"]:not(.hidden):not(.call-collapsed) .row{
 display:flex!important;visibility:visible!important;opacity:1!important;
}
html body #callPanel[data-call-state="incoming"]:not(.hidden) #answerCall:not(.hidden),
html body #callPanel[data-call-state="incoming"]:not(.hidden) #answerVideoCall:not(.hidden),
html body #callPanel[data-call-state="incoming"]:not(.hidden) #hangupCall:not(.hidden){
 visibility:visible!important;opacity:1!important;pointer-events:auto!important;
}
/* Android: compact cinema-screen call panel, solid call termination button. */
@media(max-width:650px){
 html:not(.cc-desktop-ui) body #callPanel:not(.hidden):not(.call-collapsed){
  position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
  width:100vw!important;min-width:0!important;max-width:100vw!important;
  height:100dvh!important;min-height:0!important;max-height:100dvh!important;
  margin:0!important;transform:none!important;translate:none!important;
  border:0!important;border-radius:0!important;z-index:5000!important;
  padding:calc(20px + env(safe-area-inset-top)) 14px calc(10px + env(safe-area-inset-bottom))!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;
  gap:10px!important;overflow-x:hidden!important;overflow-y:auto!important;
  background:linear-gradient(175deg,#08253e,#080e27 54%,#070d1b)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important;
 }
 html:not(.cc-desktop-ui) #callPanel:not(.hidden):not(.call-collapsed) .cc-call-identity{order:0!important;margin:22px auto 0!important;align-self:center!important;}
 html:not(.cc-desktop-ui) #callPanel:not(.hidden):not(.call-collapsed) .cc-call-status{order:1!important;margin:0!important;text-align:center!important;}
 html:not(.cc-desktop-ui) #callPanel:not(.hidden):not(.call-collapsed) #callVideoStage:not(.hidden){order:2!important;flex:1 1 auto!important;min-height:120px!important;max-height:46dvh!important;width:100%!important;}
 html:not(.cc-desktop-ui) #callPanel:not(.hidden):not(.call-collapsed) #groupCallPeers:not(.hidden){order:3!important;flex:1 1 auto!important;min-height:130px!important;max-height:57dvh!important;width:100%!important;overflow-y:auto!important;}
 html:not(.cc-desktop-ui) #callPanel:not(.hidden):not(.call-collapsed) .row{
  order:5!important;position:relative!important;display:flex!important;width:100%!important;
  margin-top:auto!important;padding:10px 2px!important;gap:8px!important;
  flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(0deg,#061426f7,#06142677)!important;
 }
 html:not(.cc-desktop-ui) #callPanel:not(.hidden) #hangupCall{
  border:0!important;outline:0!important;border-radius:999px!important;
  background:#c5325e!important;color:#fff!important;
  box-shadow:none!important;filter:none!important;backdrop-filter:none!important;
  -webkit-tap-highlight-color:transparent!important;
  text-shadow:none!important;transform:none!important;
 }
 html:not(.cc-desktop-ui) #callPanel:not(.hidden) #hangupCall:active{transform:scale(.97)!important;filter:none!important}
 html:not(.cc-desktop-ui) #callPanel:not(.hidden) #hangupCall:focus:not(:focus-visible){outline:0!important;box-shadow:none!important}
}
/* A lightweight connection glimmer for GROUP chats. No extra SVG observers on calls. */
#app #active.cc-resonance-group #messages{
 background-image:linear-gradient(180deg,transparent,#65deef45 9%,#b687ec58 57%,#62d5f94d 91%,transparent)!important;
 background-position:center center!important;background-repeat:no-repeat!important;
 background-size:2px calc(100% - 36px)!important;
}
#app #active.cc-resonance-group #messages>.message.rz-moment{position:relative!important;}
#app #active.cc-resonance-group #messages>.message.rz-moment>.rz-node-dot{filter:drop-shadow(0 0 6px #89dff9)!important;}

/* U4: readable, stable actual answer/reject controls (no detached captions). */
html body #callPanel:not(.hidden):not(.call-collapsed) .row button:not(.hidden){
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
 flex:1 1 106px!important;min-width:88px!important;max-width:155px!important;
 min-height:55px!important;height:auto!important;padding:10px 12px!important;
 font-size:12px!important;line-height:1.25!important;font-weight:700!important;
 color:#effcff!important;border-radius:16px!important;
 text-align:center!important;text-shadow:none!important;
 box-shadow:none!important;filter:none!important;backdrop-filter:none!important;
}
html body #callPanel[data-call-state="incoming"]:not(.hidden) .row #answerCall:not(.hidden){
 background:#116b67!important;border:1px solid #60d9ca!important;color:#eafff9!important;
}
html body #callPanel[data-call-state="incoming"]:not(.hidden) .row #answerVideoCall:not(.hidden){
 background:#154761!important;border:1px solid #74beda!important;color:#effcff!important;
}
html body #callPanel:not(.hidden) .row #hangupCall:not(.hidden){
 background:#b62e59!important;border:1px solid #db6887!important;color:#fff!important;
}
html body #callPanel:not(.hidden) .row button:not(.hidden) .cc-call-btn-icon{flex:0 0 auto!important;}
html body #callPanel:not(.hidden) .row button:not(.hidden):focus:not(:focus-visible){outline:none!important;}
html body #callPanel#callPanel:not(.hidden):not(.call-collapsed) .row #answerCall:not(.hidden),
html body #callPanel#callPanel:not(.hidden):not(.call-collapsed) .row #answerVideoCall:not(.hidden),
html body #callPanel#callPanel:not(.hidden):not(.call-collapsed) .row #hangupCall:not(.hidden){
 min-height:56px!important;max-height:none!important;height:auto!important;
 min-width:88px!important;max-width:145px!important;flex:1 1 105px!important;
 padding:10px 9px!important;display:flex!important;flex-direction:row!important;
 justify-content:center!important;align-items:center!important;gap:5px!important;
 border-radius:16px!important;font-size:12px!important;line-height:1.25!important;
 color:#f2fdff!important;font-weight:750!important;text-align:center!important;
}

/* ================= U5 · RESONANCE CALL UI + CONNECTED CALL HISTORY =================
   CSS/SVG animation only. No animation or SVG rerender over camera/video surfaces. */
#active.cc-resonance #messages .rz-call-moment{
 position:relative!important;z-index:2!important;
 border:1px solid #9ccdea7d!important;
 border-radius:20px!important;
 background:linear-gradient(125deg,#112a45f5,#231a40f0)!important;
 box-shadow:inset 0 1px #ffffff19,0 4px 12px #02071480!important;
 color:#e7f7ff!important;
 padding:10px 20px!important;
 overflow:visible!important;
}
#active.cc-resonance #messages .rz-call-moment.missed{
 border-color:#ec8bafaa!important;color:#ffe0e9!important;
}
#active.cc-resonance #messages .rz-call-moment::before{
 content:'';position:absolute;top:50%;left:-6px;width:10px;height:10px;
 transform:translateY(-50%);border-radius:50%;background:#ffd1a5;
 border:2px solid #08172b;box-shadow:0 0 9px #ffba88,0 0 15px #dc8dff;
 pointer-events:none;
}
#active.cc-resonance #messages .rz-call-moment.rz-call-anchor-right::before{left:auto;right:-6px}
#active.cc-resonance .rz-thread-motion{
 stroke-width:3!important;stroke-linecap:round;stroke-dasharray:14 108!important;
 opacity:1!important;animation:rz-u5-charge 4.5s linear infinite!important;
}
#active.cc-resonance .rz-thread-charge{
 fill:none;stroke-width:1.4;stroke-linecap:round;
 stroke-dasharray:4 118;opacity:.85;
 animation:rz-u5-charge 6.8s linear infinite reverse;
}
@keyframes rz-u5-charge{from{stroke-dashoffset:0}to{stroke-dashoffset:-488}}
/* Preserve visibility of the line at a new call-history node without repeated DOM observers. */
#active.cc-resonance .rz-connection-canvas{z-index:0;overflow:visible;pointer-events:none;}

/* New call composition for Android and Windows, using existing native controls. */
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen){
 isolation:isolate!important;
 border:1px solid #57cce9a8!important;
 color:#ebfaff!important;
 background:radial-gradient(ellipse at 5% 10%,#148bb43f,transparent 52%),
            radial-gradient(ellipse at 90% 34%,#8246bd42,transparent 55%),
            linear-gradient(155deg,#081932 0%,#101333 53%,#071a2d 100%)!important;
 box-shadow:0 12px 36px #0009,inset 0 0 26px #38bbec14!important;
 filter:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-call-peer-label strong{
 color:#f3efff!important;text-shadow:0 0 9px #6ac3ff5b!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-call-avatar-wrap{
 border:2px solid #d1b4ff!important;border-radius:50%!important;
 box-shadow:0 0 0 5px #a476f320,0 0 19px #a476f359!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) #resonanceLocalCallOrb{
 display:grid!important;place-items:center!important;width:76px!important;height:76px!important;
 min-width:76px!important;min-height:76px!important;border-radius:50%!important;
 overflow:hidden!important;border:2px solid #83f3ec!important;
 box-shadow:0 0 0 5px #40dcd824,0 0 21px #40dcd860!important;
 background:radial-gradient(circle at 30% 20%,#138b99,#071f3e 70%)!important;
 margin:0!important;
}
html.rz-native-call-active #callPanel #resonanceLocalCallOrb img{width:100%;height:100%;object-fit:cover;display:block;}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-u5-call-conduit{
 display:flex!important;flex-direction:column;align-items:center;justify-content:center;
 width:100%;max-width:500px;min-height:62px;position:relative;flex:0 0 auto;
 gap:1px;margin:0 auto!important;pointer-events:none;
}
.cc-u5-call-conduit{display:none}
.cc-u5-call-conduit svg{display:block;width:100%;height:49px;overflow:visible}
.cc-u5-call-conduit .cc-u5-call-guide{fill:none;stroke:#62bff5;stroke-width:1.4;opacity:.43}
.cc-u5-call-conduit .cc-u5-call-spark{
 fill:none;stroke:#b7ffff;stroke-width:3;stroke-linecap:round;
 stroke-dasharray:20 128;animation:rz-u5-link 4s linear infinite;
}
.cc-u5-call-conduit span{font-size:9px;letter-spacing:.17em;color:#a7dbf0}
#callPanel[data-call-state='incoming'] .cc-u5-call-spark{animation-direction:reverse}
@keyframes rz-u5-link{from{stroke-dashoffset:0}to{stroke-dashoffset:-444}}
/* Direct calls: controlled grid keeps both portraits, state, media and buttons visible. */
html.rz-native-call-active #callPanel:not(.hidden):not(.cc-group-active):not(.call-collapsed):not(.cc-call-fullscreen){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
 grid-template-areas:'self peer' 'route route' 'status status' 'media media' 'actions actions';
 justify-items:center!important;align-content:start!important;
 gap:8px 12px!important;
 width:min(560px,calc(100vw - 30px))!important;
 max-width:calc(100vw - 30px)!important;max-height:calc(100dvh - 26px)!important;
 padding:27px 18px 18px!important;
 overflow-x:hidden!important;overflow-y:auto!important;
}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>.cc-call-identity{
 grid-area:peer;position:static!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;
 margin:0!important;max-width:100%!important;min-width:0!important;align-self:center!important;
}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>#resonanceLocalCallOrb{grid-area:self;align-self:center!important;justify-self:center!important;}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>.cc-u5-call-conduit{grid-area:route;}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>.cc-call-status{grid-area:status;margin:0!important;max-width:100%;}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>#callVideoStage{grid-area:media;width:100%!important;max-height:43dvh!important;min-height:145px!important;}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>#callVideoStage.hidden{display:none!important;}
html.rz-native-call-active #callPanel:not(.cc-group-active):not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>.row{
 grid-area:actions;display:flex!important;justify-content:center!important;gap:10px!important;
 margin:4px 0 0!important;padding:4px!important;width:100%!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .row button:not(.hidden){
 color:#effaff!important;min-height:52px!important;border-radius:17px!important;
 font-size:12px!important;filter:none!important;backdrop-filter:none!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) #answerCall:not(.hidden){
 background:#157e72!important;border:1px solid #75eddf!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) #hangupCall:not(.hidden){
 background:#ac315d!important;border:1px solid #ec799e!important;
}
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) #collapseCall{
 position:absolute!important;right:13px!important;top:12px!important;z-index:10!important;
}
/* Group sessions keep native full-width media geometry; the animated link is purely decorative. */
html.rz-native-call-active #callPanel.cc-group-active:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-u5-call-conduit{order:0;max-width:450px;min-height:44px}
html.rz-native-call-active #callPanel.cc-group-active:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-u5-call-conduit svg{height:34px}
/* Phone: full-screen Resonance field, no expensive blur over live camera streams. */
@media(max-width:650px){
 html.rz-native-call-active body #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen){
  position:fixed!important;inset:0!important;left:0!important;right:0!important;top:0!important;bottom:0!important;
  width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;
  border:0!important;border-radius:0!important;
  padding:calc(38px + env(safe-area-inset-top)) 13px calc(13px + env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
 }
 html.rz-native-call-active body #callPanel:not(.hidden):not(.cc-group-active):not(.call-collapsed):not(.cc-call-fullscreen){
  width:100vw!important;max-width:100vw!important;max-height:100dvh!important;
  grid-template-rows:auto 55px auto minmax(0,1fr) auto;
  align-content:stretch!important;gap:8px!important;
 }
 html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) #resonanceLocalCallOrb,
 html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen) .cc-call-avatar-wrap{
  width:69px!important;height:69px!important;min-width:69px!important;min-height:69px!important;
 }
 html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)>.row{margin-top:auto!important}
}
@media(prefers-reduced-motion:reduce){
 #active.cc-resonance .rz-thread-motion,.rz-thread-charge,.cc-u5-call-spark{animation:none!important;}
}
/* Keep the incoming/outgoing state caption out of the call grid flow. */
html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)::before{
  position:absolute!important;top:7px!important;left:50%!important;right:auto!important;
  width:max-content;max-width:calc(100% - 70px);
  transform:translateX(-50%)!important;z-index:2;order:unset!important;
  margin:0!important;text-align:center!important;
}
@media(max-width:650px){
 html.rz-native-call-active #callPanel:not(.hidden):not(.call-collapsed):not(.cc-call-fullscreen)::before{
  top:calc(10px + env(safe-area-inset-top))!important;font-size:9px!important;
 }
}


/* ================= U6 · Connected Resonance, non-invasive hotfix =================
   Uses original R7 luminous flow rather than U5 thick broken dash. */
#app #active.cc-resonance-group #messages{
 background-image:none!important;background-size:auto!important;
}
#active.cc-resonance .rz-connection-canvas{
 z-index:0!important;overflow:visible!important;filter:drop-shadow(0 0 7px #45c8ffd1)!important;
}
#active.cc-resonance .rz-thread-aura{
 stroke:#85adff!important;stroke-width:13!important;opacity:.14!important;
}
#active.cc-resonance .rz-thread-core{
 stroke-width:2.35!important;opacity:.94!important;stroke-linecap:round!important;
}
#active.cc-resonance .rz-thread-motion{
 stroke-width:1.75!important;stroke-dasharray:1.5 17!important;opacity:.95!important;
 stroke-linecap:round!important;animation:rz-u6-travel 13s linear infinite!important;
}
#active.cc-resonance .rz-thread-charge{
 stroke-width:3.2!important;stroke-dasharray:3 208!important;opacity:.95!important;
 stroke-linecap:round!important;filter:drop-shadow(0 0 5px #bafcff);
 animation:rz-u6-spark 6.8s linear infinite!important;
}
@keyframes rz-u6-travel{to{stroke-dashoffset:-303}}
@keyframes rz-u6-spark{to{stroke-dashoffset:-211}}
#active.cc-resonance #messages .rz-call-moment{
 border-radius:18px!important;
 border:1px solid #79cce39a!important;
 background:linear-gradient(125deg,#102b42ed,#261c40ed)!important;
 box-shadow:0 0 14px #3cbff528,inset 0 1px #ffffff21!important;
}
#active.cc-resonance #messages .rz-call-moment::before{
 content:''!important;position:absolute!important;top:var(--rz-call-node-y,50%)!important;
 left:-7px!important;right:auto!important;width:12px!important;height:12px!important;
 box-sizing:border-box!important;transform:translateY(-50%)!important;border-radius:50%!important;
 border:2px solid #0e1c37!important;background:#ffe0be!important;
 box-shadow:0 0 0 3px #fdb98729,0 0 12px #ffcfa8,0 0 20px #b795ff!important;
 pointer-events:none!important;
}
#active.cc-resonance #messages .rz-call-moment.rz-call-anchor-right::before{
 left:auto!important;right:-7px!important;
}
/* One clean call termination pill, with no nested second red circle. */
html body #callPanel#callPanel#callPanel:not(.hidden):not(.call-collapsed) .row button#hangupCall:not(.hidden),
html body #callPanel#callPanel#callPanel.cc-call-fullscreen:not(.hidden) .row button#hangupCall:not(.hidden){
 box-sizing:border-box!important;display:inline-flex!important;flex-direction:row!important;
 flex:0 0 148px!important;width:148px!important;min-width:130px!important;
 max-width:155px!important;min-height:50px!important;max-height:50px!important;
 height:50px!important;padding:0 14px!important;gap:9px!important;
 justify-content:center!important;align-items:center!important;align-self:center!important;
 border:1px solid #ef8d9f!important;border-radius:14px!important;
 background:linear-gradient(145deg,#a3294e,#6e2245)!important;
 box-shadow:inset 0 1px #ffffff27,0 7px 19px #14061355!important;
 outline-offset:3px!important;transform:none!important;filter:none!important;
 color:#fff6f8!important;text-shadow:none!important;white-space:nowrap!important;
 font:700 13px/1.2 system-ui,sans-serif!important;letter-spacing:.01em!important;
}
html body #callPanel .row #hangupCall svg{width:19px!important;height:19px!important;min-width:19px!important;display:block!important;flex:0 0 19px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
html body #callPanel .row #hangupCall .cc-call-btn-icon{display:none!important;}
html body #callPanel .row #hangupCall::before,
html body #callPanel .row #hangupCall::after{display:none!important;content:none!important;}
html body #callPanel .row #hangupCall:focus-visible{outline:2px solid #c7faff!important;}
@media (hover:hover){html body #callPanel .row #hangupCall:hover{background:linear-gradient(145deg,#b83b60,#81274a)!important;}}
@media (prefers-reduced-motion:reduce){
 #active.cc-resonance .rz-thread-motion,#active.cc-resonance .rz-thread-charge{animation:none!important;}
}

/* U7 · First-frame conversation staging: no visible mid-history to bottom jump.
   The SVG and message DOM can settle invisibly without replacing scroll position
   after the first real frame. This does not hide an already-open conversation. */
#active.cc-chat-opening #messages{opacity:0!important;pointer-events:none!important;scroll-behavior:auto!important;}
#active.cc-chat-opening .messages-shell{position:relative}
#active.cc-chat-opening .messages-shell::after{content:"Подготавливаем историю связи…";position:absolute;inset:0;z-index:6;display:grid;place-items:center;color:#a8dfed;font:600 12px/1.4 system-ui,sans-serif;letter-spacing:.1em;text-shadow:0 0 18px #7bdfff65;pointer-events:none;background:radial-gradient(ellipse at center,#091b30bb,transparent 72%)}
/* U7 · Quick menu Ч re-themed for Resonance. Preserve all six radial
   gesture sectors, touch targets, and secondary actions; visuals only. */
.orb-radial-overlay{background:radial-gradient(circle at 50% 43%,#122345dc,#050a20f2 63%,#030715f9 100%)!important;backdrop-filter:blur(13px) saturate(1.12);}
.orb-radial-overlay::before{background:radial-gradient(circle at 17% 23%,#bdeeff99 0 1px,transparent 2px),radial-gradient(circle at 76% 18%,#c8b1ff70 0 1px,transparent 2px),radial-gradient(circle at 28% 79%,#70dfff70 0 1px,transparent 2px),radial-gradient(circle at 83% 70%,#f5caff66 0 1px,transparent 2px),radial-gradient(ellipse at 50% 43%,#5361aa30,transparent 64%);opacity:1!important;}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-menu{isolation:isolate;}
.orb-radial-overlay .orb-launch-menu::before{content:"";position:absolute;left:11%;right:11%;top:70px;bottom:24px;border:1px solid #669bcb4d;border-radius:50%;pointer-events:none;box-shadow:0 0 20px #91b6ff12,inset 0 0 30px #403a8730;transform:scaleX(.95)}
.orb-radial-overlay .orb-launch-menu::after{content:"";position:absolute;left:20%;right:20%;top:117px;bottom:91px;border:1px dashed #9dd5eb38;border-radius:50%;pointer-events:none;transform:scaleX(.94)}
.orb-radial-overlay .orb-launch-heading{color:#e4f5ff!important;text-shadow:0 0 16px #8eacff8c!important;font-size:12px!important;font-weight:750!important;letter-spacing:.21em!important;}
.orb-radial-overlay .orb-launch-menu>.orb-action{border:1px solid #96cafa91!important;color:#e9faff!important;background:radial-gradient(circle at 20% 10%,#243e66e8,#101b3fef 68%,#070f29fa)!important;box-shadow:0 8px 24px #0008,0 0 15px #839aff2e,inset 0 1px #c3eeff42!important;backdrop-filter:blur(7px);transition:border-color .15s ease,box-shadow .15s ease;}
.orb-radial-overlay .orb-launch-menu>.orb-action svg{color:#9de8f8!important;filter:drop-shadow(0 0 6px #61aef08c)}
.orb-radial-overlay .orb-launch-menu>.orb-action span{color:#dcefff!important;font-size:11px!important;letter-spacing:.015em!important;font-weight:700!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:is(:hover,:focus-visible),.orb-radial-overlay .orb-radial-selected{border-color:#dbcdff!important;box-shadow:0 0 22px #a88aff87,inset 0 0 20px #a77aff36!important;}
.orb-radial-overlay .orb-launch-close{color:#ffd870!important;background:radial-gradient(circle at 25% 18%,#2589ad,#164578 60%,#10224e 90%)!important;border:2px solid #a8efff!important;box-shadow:0 0 25px #4bceff8c,0 0 0 7px #63bfff1c,inset 0 1px #ecffff9c!important;text-shadow:0 0 14px #ffe5a5a3!important;}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras{background:linear-gradient(140deg,#141b42dc,#090f2ee8)!important;border:1px solid #8baee272!important;box-shadow:0 9px 26px #0008,inset 0 1px #d2ebff19!important;border-radius:20px!important;padding:8px!important;}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras .orb-action{color:#d9ecff!important;background:linear-gradient(135deg,#203356e9,#111c40ef)!important;border:1px solid #799bc47d!important;box-shadow:inset 0 1px #d9eaff21,0 4px 11px #0007!important;border-radius:14px!important;}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras .orb-action svg{color:#9be8ff!important}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras .orb-action span{color:#e0efff!important;font-size:11px!important}
@media(prefers-reduced-motion:reduce){.orb-radial-overlay .orb-launch-menu>.orb-action{transition:none!important}}

/* ================= U8 · LIVE CALL VISIBILITY / MOBILE CONTROLS =================
   Keep WebRTC media elements in the ORIGINAL secure renderer (no duplicate camera).
   This presentation layer does not change calls.js or group signaling. */
html.cc-desktop-ui body #callPanel.cc-u8-live[data-call-state="active"]:not(.hidden):not(.cc-group-active):not(.cc-call-fullscreen){
 position:fixed!important;inset:3vh 2vw auto 2vw!important;left:2vw!important;right:2vw!important;
 top:3vh!important;bottom:auto!important;transform:none!important;translate:none!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:96vw!important;max-width:1100px!important;height:min(91dvh,850px)!important;
 max-height:91dvh!important;min-height:420px!important;
 padding:20px 22px 17px!important;overflow-y:auto!important;overflow-x:hidden!important;
 margin:0 auto!important;z-index:6500!important;gap:9px!important;
 background:radial-gradient(ellipse at 30% 4%,#1453707d,transparent 65%),linear-gradient(150deg,#071a2e,#100e27)!important;
 border:1px solid #74d9eb8e!important;border-radius:25px!important;box-shadow:0 24px 80px #000b!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-call-identity,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>#resonanceLocalCallOrb,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-u5-call-conduit,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-call-status,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>#callVideoStage,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.row{
 grid-area:auto!important;position:relative!important;order:initial!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-call-identity{align-self:center!important;max-width:100%!important;margin:0!important;flex-shrink:0!important}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>#resonanceLocalCallOrb,
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-u5-call-conduit{display:none!important}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.cc-call-status{align-self:center!important;flex-shrink:0!important}
html.cc-desktop-ui #callPanel.cc-u8-live.cc-u8-video-mode[data-call-state="active"]:not(.cc-group-active)>#callVideoStage{
 display:block!important;flex:1 1 auto!important;order:2!important;position:relative!important;
 width:100%!important;min-height:260px!important;max-height:none!important;margin:0!important;
 background:#010916!important;border-radius:18px!important;border:1px solid #68c8e35c!important;overflow:hidden!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live.cc-u8-video-mode #remoteCallVideo:not(.hidden){width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important}
html.cc-desktop-ui #callPanel.cc-u8-live.cc-u8-video-mode #localCallVideo:not(.hidden){position:absolute!important;z-index:4!important;right:16px!important;bottom:16px!important;left:auto!important;top:auto!important;width:clamp(130px,22vw,225px)!important;height:clamp(110px,20vh,165px)!important;object-fit:cover!important;border:2px solid #83dff1!important;border-radius:15px!important}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"]:not(.cc-group-active)>.row{
 display:flex!important;position:relative!important;order:3!important;flex:0 0 auto!important;
 width:100%!important;max-width:none!important;justify-content:center!important;align-items:center!important;
 margin:4px 0 0!important;padding:7px!important;gap:14px!important;overflow:visible!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"] .row button:not(.hidden){pointer-events:auto!important;opacity:1!important;visibility:visible!important}
html.cc-desktop-ui #callPanel.cc-u8-live[data-call-state="active"] .row #hangupCall:not(.hidden){display:inline-flex!important;min-width:138px!important;min-height:52px!important;max-height:52px!important;border-radius:15px!important;white-space:nowrap!important}
/* Android: separated icon and caption, no overlays between neighboring controls. */
@media(max-width:650px){
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row{
  box-sizing:border-box!important;position:relative!important;flex:0 0 auto!important;
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  justify-content:center!important;align-content:start!important;gap:8px 5px!important;
  padding:10px 5px max(12px,env(safe-area-inset-bottom))!important;
  width:100%!important;max-width:100%!important;overflow:visible!important;
  background:linear-gradient(180deg,#06162dE8,#041423FA)!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button:not(.hidden){
  display:flex!important;flex-flow:column nowrap!important;align-items:center!important;justify-content:flex-start!important;
  box-sizing:border-box!important;position:relative!important;min-width:58px!important;
  width:clamp(58px,18vw,72px)!important;max-width:72px!important;
  height:84px!important;max-height:84px!important;min-height:84px!important;
  flex:0 0 clamp(58px,18vw,72px)!important;padding:4px 1px!important;
  gap:6px!important;border:none!important;border-radius:13px!important;
  background:transparent!important;box-shadow:none!important;overflow:visible!important;
  font:600 10px/1.25 system-ui,sans-serif!important;color:#eafaff!important;
  text-align:center!important;letter-spacing:0!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button:not(.hidden) .cc-call-btn-icon{
  display:grid!important;place-items:center!important;flex:0 0 47px!important;
  width:47px!important;height:47px!important;min-height:47px!important;max-height:47px!important;
  border-radius:50%!important;margin:0!important;position:static!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button:not(.hidden) .cc-call-btn-label{
  display:block!important;position:static!important;flex:none!important;
  min-height:27px!important;width:100%!important;max-width:100%!important;
  text-overflow:clip!important;overflow:visible!important;white-space:normal!important;
  font:600 10px/1.2 system-ui,sans-serif!important;color:#f0faff!important;
  margin:0!important;padding:0!important;text-align:center!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button#hangupCall:not(.hidden){
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:flex-start!important;flex:0 0 clamp(66px,21vw,85px)!important;
  width:clamp(66px,21vw,85px)!important;max-width:85px!important;
  height:84px!important;min-height:84px!important;max-height:84px!important;
  padding:4px 1px!important;gap:6px!important;border:0!important;border-radius:13px!important;
  background:transparent!important;box-shadow:none!important;
  color:#fff!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button#hangupCall .cc-call-btn-icon{
  background:linear-gradient(135deg,#c33a5d,#8f254b)!important;
  border:1px solid #ed8499!important;box-shadow:0 4px 11px #0007!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel:not(.hidden)>.row button#hangupCall .cc-call-btn-label{color:#ffe8ee!important}
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel.cc-call-fullscreen:not(.hidden)>.row{
  position:absolute!important;left:50%!important;right:auto!important;
  bottom:0!important;transform:translateX(-50%)!important;
  width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px)!important;
  z-index:6001!important;border:1px solid #6cb6e44c!important;border-radius:22px 22px 0 0!important;
  background:#061527f5!important;pointer-events:auto!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel.cc-call-fullscreen:not(.hidden)>.row button#hangupCall:not(.hidden){
  background:transparent!important;border:0!important;border-radius:13px!important;
  width:clamp(66px,21vw,85px)!important;height:84px!important;
  min-height:84px!important;max-height:84px!important;
  flex:0 0 clamp(66px,21vw,85px)!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel.cc-call-fullscreen:not(.hidden)>.row .cc-call-btn-label{
  display:block!important;visibility:visible!important;position:static!important;
  white-space:normal!important;font:600 10px/1.2 system-ui,sans-serif!important;
 }
 html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel#callPanel.cc-call-fullscreen:not(.hidden)>#callVideoStage:not(.hidden){
  padding-bottom:94px!important;
 }
}
/* U8: desktop in-call dock. Prevent legacy captions extending into neighbors. */
@media(min-width:651px){
 html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-u8-live[data-call-state="active"]:not(.hidden):not(.cc-group-active)>.row button:not(.hidden):not(#hangupCall){
  box-sizing:border-box!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;
  flex:0 0 124px!important;width:124px!important;max-width:124px!important;min-width:124px!important;
  height:83px!important;min-height:83px!important;max-height:83px!important;
  gap:5px!important;padding:5px!important;border:0!important;border-radius:13px!important;
  background:transparent!important;overflow:visible!important;
 }
 html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-u8-live[data-call-state="active"]:not(.hidden):not(.cc-group-active)>.row button:not(.hidden):not(#hangupCall)>.cc-call-btn-icon{
  display:grid!important;place-items:center!important;width:46px!important;height:46px!important;
  min-width:46px!important;min-height:46px!important;flex:0 0 46px!important;border-radius:50%!important;
 }
 html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-u8-live[data-call-state="active"]:not(.hidden):not(.cc-group-active)>.row button:not(.hidden):not(#hangupCall)>.cc-call-btn-label{
  display:block!important;position:static!important;width:100%!important;max-width:100%!important;
  font:600 11px/1.2 system-ui,sans-serif!important;white-space:normal!important;
  text-align:center!important;overflow:visible!important;margin:0!important;
 }
}


/* =============== U9: isolated call-safety and Resonance corrections =============== */
/* The old U3 group selector hid the thread even though U6 generated SVG nodes. */
#app #active.cc-resonance.cc-resonance-group #messages > svg.rz-connection-canvas,
#app #active.cc-resonance.cc-resonance-group .rz-connection-canvas{
 display:block!important;visibility:visible!important;opacity:1!important;
 pointer-events:none!important;z-index:0!important;overflow:visible!important;
}
#app #active.cc-resonance.cc-resonance-group #messages .message,
#app #active.cc-resonance.cc-resonance-group #messages .cc-inline-call{position:relative;z-index:1}
/* Avoid a flash of the retired splash screen when opening from Orbit. */
#active.cc-chat-opening .messages-shell::after{display:none!important;content:none!important}
#active.cc-chat-opening #messages .cc-loading-messages{visibility:hidden!important}
/* Live Windows video must have a real, inspectable original media stage. */
html.cc-desktop-ui body #callPanel.cc-u8-live[data-call-state='active']:not(.cc-group-active):not(.hidden){
 z-index:7000!important;
}
html.cc-desktop-ui body #callPanel.cc-u8-live.cc-u8-video-mode[data-call-state='active']:not(.cc-group-active):not(.hidden) > #callVideoStage:not(.hidden){
 display:block!important;visibility:visible!important;opacity:1!important;
 min-height:320px!important;flex:1 1 auto!important;position:relative!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live.cc-u8-video-mode #remoteCallVideo:not(.hidden){
 display:block!important;visibility:visible!important;opacity:1!important;
 width:100%!important;height:100%!important;min-height:250px!important;
 background:#010a17!important;object-fit:contain!important;
}
html.cc-desktop-ui #callPanel.cc-u8-live.cc-u8-video-mode #localCallVideo:not(.hidden){
 display:block!important;visibility:visible!important;opacity:1!important;
 right:14px!important;bottom:14px!important;left:auto!important;top:auto!important;
 width:min(24vw,210px)!important;height:min(22vh,160px)!important;min-height:100px!important;
 object-fit:cover!important;z-index:7!important;
}
/* Wide, stable, proportional participant cards across desktop and Android. */
html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden):not(.call-collapsed){
 width:min(96vw,1380px)!important;max-width:96vw!important;
 min-width:0!important;box-sizing:border-box!important;
}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:not(.hidden){
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))!important;
 grid-auto-rows:minmax(220px,1fr)!important;align-content:stretch!important;
 gap:12px!important;width:100%!important;min-width:0!important;min-height:200px!important;
 overflow-y:auto!important;
}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers .cc-group-member{
 width:100%!important;max-width:none!important;min-width:0!important;
 display:flex!important;flex-direction:column!important;min-height:210px!important;
}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers .cc-group-member-preview{
 height:auto!important;min-height:175px!important;flex:1 1 auto!important;aspect-ratio:16/10!important;
}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers .cc-group-member-video{
 width:100%!important;height:100%!important;object-fit:contain!important;
}
/* Diagnostic reporting remains available in settings, not inside every group call. */
html body #callPanel #diagnoseGroupCall{display:none!important}
@media(max-width:650px){
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:not(.hidden){
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(145px,auto)!important;gap:7px!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers .cc-group-member{
  min-height:145px!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers .cc-group-member-preview{
  min-height:110px!important;aspect-ratio:4/3!important;
 }
 /* Same PiP position in fullscreen as in normal video: bottom right above call actions. */
 html body #callPanel.cc-call-fullscreen:not(.hidden) #callVideoStage #localCallVideo:not(.hidden){
  position:absolute!important;inset:auto 12px calc(112px + env(safe-area-inset-bottom)) auto!important;
  top:auto!important;right:12px!important;bottom:calc(112px + env(safe-area-inset-bottom))!important;left:auto!important;
  width:clamp(88px,28vw,145px)!important;height:clamp(116px,29vh,190px)!important;
  border:2px solid #7ee7f0!important;border-radius:14px!important;object-fit:cover!important;z-index:16!important;
 }
}


/* U10: Native Windows popup exclusively handles *incoming* calls.
   Active video and its one hangup button remain inside the main chat window. */
html.cc-desktop-ui.cc-u10-native-incoming body #callPanel[data-call-state='incoming']:not(.hidden){
 visibility:hidden!important;opacity:0!important;pointer-events:none!important;
}

/* U10: three-person Android video must fit WITHOUT scroll/swipe in 2 rows.
   One main card (top) and two smaller cards (bottom). Keep status & actions visible. */
@media(max-width:650px){
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden):not(.call-collapsed){
  width:100vw!important;max-width:100vw!important;min-width:0!important;
  height:100dvh!important;max-height:100dvh!important;
  overflow:hidden!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:not(.hidden){
  display:grid!important;min-height:0!important;max-height:none!important;
  height:auto!important;flex:1 1 0%!important;align-content:stretch!important;
  overflow:hidden!important;overscroll-behavior:contain!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:minmax(0,1fr)!important;gap:7px!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member:first-child{
  grid-column:span 2!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers>.cc-group-member{
  min-width:0!important;min-height:0!important;max-height:100%!important;
  overflow:hidden!important;height:100%!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers>.cc-group-member>.cc-group-member-preview{
  flex:1 1 0!important;min-height:0!important;height:100%!important;
  aspect-ratio:auto!important;overflow:hidden!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers>.cc-group-member>.cc-group-member-label{
  flex:0 0 auto!important;min-height:19px!important;font-size:11px!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active']>.row{
  flex:0 0 auto!important;margin-top:6px!important;margin-bottom:0!important;
 }
 html body #callPanel.cc-group-active[data-call-state='active']>.cc-call-identity,
 html body #callPanel.cc-group-active[data-call-state='active']>.cc-call-status{
  flex:0 0 auto!important;
 }
}

@media(max-width:650px){
 /* Group calls prioritize actual faces, not ornamental conduit/identities. */
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)>.cc-u5-call-conduit,
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)>#resonanceLocalCallOrb{display:none!important;}
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)>.cc-call-status small{display:none!important;}
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)>.cc-call-status{margin:3px 0 5px!important;min-height:0!important;max-height:65px!important;}
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)>.cc-call-identity{max-height:65px!important;min-height:0!important;}
 html body #callPanel.cc-group-active[data-call-state='active']:not(.hidden)::before{display:none!important;}
}


/* U11: suppress legacy splash art while new chat DOM is being aligned. */
#app #active.cc-chat-opening .messages-shell{background:#030917!important;background-image:none!important;}
#app #active.cc-chat-opening .messages-shell::before,
#app #active.cc-chat-opening .messages-shell::after{display:none!important;content:none!important;background:none!important;}
#app #active.cc-chat-opening #messages{opacity:0!important;visibility:hidden!important;}
#app #active.cc-chat-opening #resonanceStage{visibility:hidden!important;}

/* AI Gena: ONLY textarea and send button; never hide bot replies. */
#app #active.cc-ai-chat .composer{display:flex!important;flex-direction:row!important;align-items:end!important;
 gap:9px!important;min-height:56px!important;max-height:none!important;padding:6px 9px!important;
 background:#071827dc!important;border:1px solid #5cbacd66!important;border-radius:20px!important;}
#app #active.cc-ai-chat .composer #input{display:block!important;flex:1 1 0!important;min-width:0!important;order:1!important;
 padding:9px 10px!important;border:0!important;max-height:130px!important;resize:vertical!important;}
#app #active.cc-ai-chat .composer #send{display:flex!important;flex:0 0 48px!important;order:2!important;
 width:48px!important;max-width:48px!important;height:46px!important;margin:0!important;}
#app #active.cc-ai-chat .composer :is(#attach,#camera,#emoji,#mic,#scheduleSend,.rz-create-launch){display:none!important;}
#app #active.cc-ai-chat :is(.ai-gena-message,.ai-gena-typing,.ai-gena-offline,.ai-gena-intro){visibility:visible!important;opacity:1!important;}
#app #active.cc-ai-chat #messages>.message.ai-gena-message{max-width:min(82%,630px)!important;}
#app #active.cc-ai-chat #messages>.message.ai-gena-message.cc-gena-answer{border-left:2px solid #72dfb888!important;}
#app #active.cc-ai-chat #messages>.ai-gena-typing{align-self:flex-start!important;margin-bottom:8px;}
#app #active.cc-ai-chat #messages{overflow-y:auto!important;}

/* Group: one leading speaker larger for three-person video, all sizes highlight. */
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers>.cc-group-member.cc-featured-speaker{
 border:2px solid #6debd8!important;box-shadow:0 0 0 2px #47d2e03c,0 0 28px #31e0ce6b!important;
 transition:border-color .2s ease,box-shadow .2s ease;z-index:2!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers>.cc-group-member.cc-featured-speaker .cc-group-member-label{
 color:#dcfffa!important;font-weight:800!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member.cc-featured-speaker{
 grid-column:span 2!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child){
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 grid-template-rows:minmax(0,1.42fr) minmax(0,1fr)!important;
 grid-auto-rows:minmax(0,1fr)!important;overflow:hidden!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member{
 min-height:0!important;height:100%!important;overflow:hidden!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member>.cc-group-member-preview{
 min-height:0!important;height:100%!important;flex:1 1 0%!important;overflow:hidden!important;}
html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member>.cc-group-member-label{
 flex:0 0 auto!important;min-height:18px!important;}
@media(max-width:650px){
 html body #callPanel.cc-group-active[data-call-state='active'] #groupCallPeers:has(>.cc-group-member:nth-child(3):last-child)>.cc-group-member:not(.cc-featured-speaker){grid-column:auto!important;}
}

/* Direct calls: highlight whoever speaks on both Windows/Android. */
html body #callPanel.cc-direct-speaking-peer[data-call-state='active'] #remoteCallVideo,
html body #callPanel.cc-direct-speaking-peer[data-call-state='active'] .cc-call-avatar-wrap{
 outline:3px solid #63e9c7!important;box-shadow:0 0 20px #64eacc80!important;outline-offset:3px!important;}
html body #callPanel.cc-direct-speaking-local[data-call-state='active'] #localCallVideo{
 outline:3px solid #80b9ff!important;box-shadow:0 0 20px #80b9ff80!important;outline-offset:3px!important;}


/* U12: responsive laptop sidebar. Preserve the scrolling conversations list. */
@media (min-width:801px) and (max-height:850px){
 #app.layout .side{min-height:0!important;height:100%!important;}
 #app.layout .side .side-top{min-height:56px!important;padding:7px 12px!important;gap:6px!important;flex-shrink:0!important;}
 #app.layout .side .brand img{width:38px!important;height:38px!important;}
 #app.layout .side .brand b{font-size:17px!important;}
 #app.layout .side .side-top>.icon{height:35px!important;width:35px!important;min-width:35px!important;}
 #app.layout .side .cc-download-top{margin:0 12px 5px!important;flex-shrink:0!important;}
 #app.layout .side .cc-download-trigger{min-height:30px!important;padding:4px 10px!important;}
 #app.layout .side .section-title{margin:1px 13px 2px!important;font-size:10px!important;}
 #app.layout .side .stories{min-height:64px!important;max-height:70px!important;padding:2px 12px 4px!important;gap:7px!important;flex-shrink:0!important;}
 #app.layout .side .story-self span,#app.layout .side .story-item .avatar{height:43px!important;width:43px!important;}
 #app.layout .side .story-self,#app.layout .side .story-item{min-width:46px!important;gap:2px!important;}
 #app.layout .side .me-card{min-height:42px!important;margin:3px 12px 4px!important;padding:5px 9px!important;flex-shrink:0!important;}
 #app.layout .side .me-card .avatar{width:33px!important;height:33px!important;}
 #app.layout .side .cc-shapo-shortcut{min-height:42px!important;margin:3px 12px!important;width:calc(100% - 24px)!important;padding:5px 9px!important;gap:8px!important;flex-shrink:0!important;}
 #app.layout .side .cc-shapo-shortcut>img{width:31px!important;height:31px!important;border-radius:9px!important;}
 #app.layout .side .cc-shapo-shortcut strong{font-size:12px!important;}
 #app.layout .side .cc-shapo-shortcut span span{font-size:10px!important;}
 #app.layout .side .cc-favorites-shortcut{min-height:36px!important;margin:2px 12px 3px!important;width:calc(100% - 24px)!important;padding:5px 9px!important;flex-shrink:0!important;}
 #app.layout .side .chats-title{padding:4px 13px!important;min-height:41px!important;flex-shrink:0!important;}
 #app.layout .side .chats-title h3{font-size:17px!important;}
 #app.layout .side #chats.chat-list{flex:1 1 195px!important;min-height:142px!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;}
 #app.layout .side .cc-donate-open{margin:3px 12px!important;padding:5px 10px!important;min-height:29px!important;flex:0 0 auto!important;}
 #app.layout .side .side-bottom{padding:8px 12px!important;min-height:34px!important;flex:0 0 auto!important;}
 #app.layout .side .search:not(.hidden){margin:3px 12px!important;padding:6px 10px!important;flex-shrink:0!important;}
}

/* U12: group calls show ONE group identity across devices, never a second local orb. */
html body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>#resonanceLocalCallOrb{display:none!important;}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.cc-call-identity{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:9px!important;order:0!important;align-self:center!important;margin:2px auto!important;width:auto!important;max-width:min(100%,430px)!important;max-height:54px!important;}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]>.cc-call-identity .cc-call-avatar-wrap{width:43px!important;height:43px!important;min-width:43px!important;flex:0 0 43px!important;border-radius:50%!important;}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]>.cc-call-identity #callPeerFallback{font-size:20px!important;}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]>.cc-call-identity #callPeerName{font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:300px!important;}
@media(max-width:650px){
 html:not(.cc-desktop-ui) body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.cc-call-identity{display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:8px!important;margin:2px auto 4px!important;width:100%!important;max-height:56px!important;}
 html:not(.cc-desktop-ui) body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.cc-call-identity .cc-call-avatar-wrap{width:43px!important;height:43px!important;min-width:43px!important;flex:0 0 43px!important;}
 html:not(.cc-desktop-ui) body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.cc-call-identity #callPeerFallback{font-size:22px!important;}
 html:not(.cc-desktop-ui) body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.cc-call-identity #callPeerName{font-size:15px!important;line-height:1.2!important;}
}

/* U12: distinct icons above their captions; no giant rectangular hangup on Windows group calls. */
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row{
 display:flex!important;flex-wrap:wrap!important;justify-content:center!important;align-items:flex-start!important;
 gap:7px 11px!important;max-width:100%!important;padding:4px 6px!important;overflow:visible!important;
}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button:not(.hidden){
 display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;
 box-sizing:border-box!important;flex:0 0 88px!important;width:88px!important;max-width:88px!important;min-width:88px!important;
 height:85px!important;min-height:85px!important;max-height:85px!important;gap:5px!important;padding:3px 1px!important;
 border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important;
 white-space:normal!important;
}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button:not(.hidden)>.cc-call-btn-icon{
 display:grid!important;place-items:center!important;flex:0 0 49px!important;height:49px!important;width:49px!important;
 min-width:49px!important;min-height:49px!important;border-radius:50%!important;
}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button:not(.hidden)>.cc-call-btn-label{
 display:block!important;position:static!important;flex:0 0 auto!important;text-align:center!important;
 width:88px!important;max-width:88px!important;min-height:26px!important;margin:0!important;padding:0!important;
 font:600 10px/1.25 system-ui,sans-serif!important;white-space:normal!important;overflow-wrap:break-word!important;
 color:#eafcff!important;opacity:1!important;
}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button#hangupCall:not(.hidden){
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 min-width:88px!important;min-height:85px!important;max-height:85px!important;}
html.cc-desktop-ui body #callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button#hangupCall:not(.hidden)>.cc-call-btn-icon{
 background:linear-gradient(140deg,#ec5870,#9b284b)!important;border:1px solid #ff8da4!important;
 border-radius:50%!important;box-shadow:0 0 15px #ef57736d!important;}
/* Elevated specificity isolates these fixes from old triple-ID U5/U8 styles. */
html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button:not(.hidden){
 flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;
 height:85px!important;min-height:85px!important;max-height:85px!important;display:flex!important;
 flex-direction:column!important;gap:5px!important;padding:3px 1px!important;
 background:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;
}
html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button#hangupCall:not(.hidden){
 flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;
 height:85px!important;min-height:85px!important;max-height:85px!important;
 background:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;
}
html.cc-desktop-ui body #callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>.row button#hangupCall:not(.hidden)>.cc-call-btn-icon{
 display:grid!important;place-items:center!important;width:49px!important;height:49px!important;
 flex:0 0 49px!important;border-radius:50%!important;min-width:49px!important;min-height:49px!important;
}
html.cc-desktop-ui body #callPanel#callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden):not(.call-collapsed)>.row button#hangupCall:not(.hidden){
 flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;
 flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;
 height:85px!important;min-height:85px!important;max-height:85px!important;
 padding:3px 1px!important;gap:5px!important;display:flex!important;align-self:auto!important;
 background:none!important;border:none!important;box-shadow:none!important;border-radius:0!important;
}
html.rz-native-call-active body #callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden):not(.call-collapsed)>#resonanceLocalCallOrb,
html:not(.cc-desktop-ui) body #callPanel#callPanel#callPanel.cc-group-active[data-call-state="active"]:not(.hidden)>#resonanceLocalCallOrb{
 display:none!important;visibility:hidden!important;}

/* U13 VISUAL: no WebRTC, E2EE or group-call changes */
#auth .auth-mascot{max-height:min(57vh,560px)!important;width:auto;object-fit:contain!important;filter:drop-shadow(0 20px 42px #020a22a8)}
#auth .cc-login-mobile-mascot{height:clamp(140px,24dvh,240px)!important;max-width:min(74vw,330px)!important;object-fit:contain!important}
.cc-u13-welcome-hero{height:clamp(130px,28vh,270px);max-width:min(64vw,320px);display:block;object-fit:contain;margin:0 auto 12px;filter:drop-shadow(0 9px 24px #01556477)}
#placeholder .welcome-blob{display:none!important}
.cc-post-login-mascot{height:clamp(160px,26vh,240px)!important;max-width:85%!important}
html.cc-desktop-ui #app #active.cc-resonance .messages-shell{background-image:linear-gradient(0deg,#010a16b5,#07132a58 57%,#020a1c63),url('/assets/resonance-hd-u13.webp')!important;background-position:center 54%!important;background-size:cover!important;background-repeat:no-repeat!important}
/* Lock: only one decorative phrase. Real unlock, password fallback and sign-out remain accessible. */
#cc-biometric-gate{background:linear-gradient(180deg,#06122216 0%,#04101910 48%,#041019de 100%),url('/assets/lock-friend-phone-u13.webp') center 40%/cover no-repeat!important}
#cc-biometric-gate .cc-biometric-box{align-self:end!important;margin:0 auto clamp(20px,7vh,110px)!important;width:min(480px,95vw)!important;border:0!important;background:transparent!important;box-shadow:none!important;backdrop-filter:none!important;padding:14px 18px 20px!important;overflow:visible!important;text-shadow:0 3px 14px #010914}
#cc-biometric-gate .cc-biometric-box h2{font-size:clamp(22px,3vw,32px)!important;line-height:1.24;color:#eeffff!important;margin:0 auto 22px!important}
#cc-biometric-gate .cc-bio-icon-actions{display:flex;justify-content:center;gap:14px;align-items:center}
#cc-biometric-gate .cc-bio-icon-actions button{display:grid!important;place-items:center!important;margin:0!important;padding:0!important;width:62px!important;height:62px!important;flex:0 0 62px!important;border-radius:50%!important;border:1px solid #7ef0e8a1!important;background:#092639e9!important;color:#a9fff2!important;font-size:32px!important;box-shadow:0 8px 29px #0009!important}
#cc-biometric-gate .cc-bio-icon-actions #cc-bio-signout{border-color:#e4a5bb85!important;color:#ffd7e4!important}
#cc-biometric-gate .cc-bio-icon-actions button:is(:hover,:focus-visible){outline:2px solid #7afaf2!important;outline-offset:3px!important}
#cc-biometric-gate #cc-bio-password-form{max-width:345px!important;margin:18px auto 0!important;display:flex;gap:9px}
#cc-biometric-gate #cc-bio-password-form.hidden{display:none!important}
#cc-biometric-gate #cc-bio-password-form input{min-width:0;flex:1}
#cc-biometric-gate #cc-bio-password-form button{width:60px!important;margin:0!important;font-size:22px!important}
#cc-biometric-gate #cc-bio-error:empty{display:none!important}
.cc-u13-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
/* Unified settings: clear navigation, single-column cards, no duplicated home stacks. */
dialog:has(.cc-settings-layout){width:min(1050px,calc(100vw - 22px))!important;background:linear-gradient(140deg,#071b2deb,#081525f7 62%,#11102bdc)!important;border:1px solid #6cd5e25b!important;box-shadow:0 26px 85px #01050cc9!important}
dialog:has(.cc-settings-layout) .cc-settings-layout{grid-template-columns:190px minmax(0,1fr)!important;gap:18px!important}
dialog:has(.cc-settings-layout) .settings-nav{background:#06192bc9!important;border:1px solid #69b9cd36!important;border-radius:16px!important;padding:10px!important;gap:3px!important;max-height:min(73dvh,740px);overflow-y:auto!important;overflow-x:hidden!important}
dialog:has(.cc-settings-layout) .settings-nav-btn{display:flex!important;min-height:47px!important;padding:9px 11px!important;border-radius:10px!important;gap:10px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
dialog:has(.cc-settings-layout) .settings-nav-btn.active{background:linear-gradient(100deg,#166a76b4,#185b70a1)!important;border-color:#76e4e8a6!important;box-shadow:inset 3px 0 0 #4eeadd!important}
dialog:has(.cc-settings-layout) .settings-nav-btn .cc-settings-nav-label small{display:none!important}
dialog:has(.cc-settings-layout) .settings-nav-btn .cc-settings-nav-label b{font-size:12px!important;letter-spacing:.02em!important}
dialog:has(.cc-settings-layout) .cc-settings-page-heading{padding:4px 0 15px;border-bottom:1px solid #74bbd442;margin-bottom:12px}
dialog:has(.cc-settings-layout) .cc-settings-page>.block{margin:12px 0!important;padding:17px!important;border-radius:15px!important;background:#102a3cb3!important;border:1px solid #6ab8c438!important}
dialog:has(.cc-settings-layout) .cc-settings-card-title{margin-bottom:10px!important}
dialog:has(.cc-settings-layout) .cc-settings-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
dialog:has(.cc-settings-layout) .cc-settings-quick-grid button{min-height:78px!important;padding:13px 14px!important;border-radius:12px!important;gap:5px!important;background:linear-gradient(125deg,#0e354cb9,#102338b9)!important;border:1px solid #61b7c54b!important}
dialog:has(.cc-settings-layout) .cc-settings-quick-grid button strong{font-size:13px!important;color:#e6ffff!important}
dialog:has(.cc-settings-layout) .cc-settings-quick-grid button small{font-size:11px!important;color:#b1d6df!important;line-height:1.3!important}
.cc-u13-settings-intro{padding:12px 3px 2px}.cc-u13-settings-intro strong{font-size:16px;color:#b3fff3}.cc-u13-settings-intro p{color:#abc5d4;font-size:12px;line-height:1.4}
@media(max-width:800px){dialog:has(.cc-settings-layout) .cc-settings-layout{display:flex!important;flex-direction:column!important;gap:8px!important}dialog:has(.cc-settings-layout) .settings-nav{width:100%!important;display:flex!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;border-radius:11px!important}dialog:has(.cc-settings-layout) .settings-nav-btn{min-width:95px!important;max-width:105px!important;flex:0 0 auto!important;min-height:53px!important;justify-content:center!important;flex-direction:column!important;gap:2px!important;text-align:center!important;padding:6px!important}dialog:has(.cc-settings-layout) .cc-settings-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cc-biometric-gate .cc-biometric-box{margin-bottom:7dvh!important}}
@media(max-width:390px){dialog:has(.cc-settings-layout) .cc-settings-quick-grid{grid-template-columns:1fr}}

/* U14: the selected story preview is a real, full editor step. */
.cc-story-editor.cc-story-reviewing > :not(#storyReview){display:none!important}
.cc-story-editor.cc-story-reviewing #storyReview{display:flex!important;width:100%;min-height:220px}
.cc-story-editor.cc-story-reviewing #storyReviewVisual{width:100%;max-height:55dvh;overflow:hidden}
.cc-story-editor.cc-story-reviewing #storyReviewVisual img,.cc-story-editor.cc-story-reviewing #storyReviewVisual video{display:block;max-height:50dvh;max-width:100%;object-fit:contain}
/* Keep the landing mascot clearly visible rather than underneath legacy decoration. */
#auth .auth-mascot{max-height:min(57dvh,560px)!important;z-index:2}
#auth .auth-mascots{position:relative}
#auth .cc-login-mobile-mascot{display:block!important}


/* U15: same diameter for published stories and the Add control on desktop.
   No vertical scrollbar; horizontal scrolling stays functional. */
@media (min-width:801px) {
  #app.layout .side #stories {
    box-sizing:border-box!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:flex-start!important;
    flex:0 0 72px!important;
    height:72px!important;
    min-height:72px!important;
    max-height:72px!important;
    padding:3px 11px 5px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
    overscroll-behavior-x:contain;
  }
  #app.layout .side #stories::-webkit-scrollbar {height:0!important;width:0!important;display:none!important;}
  #app.layout .side #stories .story-self,
  #app.layout .side #stories .story-item {
    box-sizing:border-box!important;
    flex:0 0 48px!important;
    width:48px!important;min-width:48px!important;max-width:48px!important;
    padding:0!important;margin:0!important;gap:3px!important;
    align-items:center!important;overflow:hidden!important;
  }
  #app.layout .side #stories .story-self > span,
  #app.layout .side #stories .story-item > .story-cover {
    box-sizing:border-box!important;
    flex:0 0 43px!important;
    width:43px!important;height:43px!important;
    min-width:43px!important;min-height:43px!important;
    max-width:43px!important;max-height:43px!important;
    margin:0!important;padding:2px!important;
    border-radius:50%!important;overflow:hidden!important;
  }
  #app.layout .side #stories .story-cover-media {
    box-sizing:border-box!important;width:100%!important;height:100%!important;
    max-width:100%!important;max-height:100%!important;
    object-fit:cover!important;display:block!important;border-radius:50%!important;
  }
  #app.layout .side #stories .story-self small,
  #app.layout .side #stories .story-item small {
    box-sizing:border-box!important;display:block!important;
    max-width:48px!important;min-height:12px;line-height:12px!important;
    font-size:9px!important;text-align:center!important;
    overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;
  }
}


/* U16 SCREEN & NAV HOTFIX: intentionally UI only; don't alter calls, E2EE. */
@media(min-width:801px){
 #auth.auth-page{height:100dvh!important;min-height:0!important;overflow:hidden!important;display:grid!important}
 #auth.auth-page .auth-art{position:relative!important;height:100dvh!important;min-height:0!important;min-width:0!important;overflow:hidden!important}
 #auth.auth-page .auth-right{height:100dvh!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:clamp(12px,2.5vh,28px) clamp(20px,3.5vw,65px)!important}
 #auth .auth-panel h2{font-size:clamp(27px,3vw,39px)!important;margin:10px 0 8px!important}
 #auth .auth-panel form{margin-top:13px!important;gap:5px!important}
 #auth .auth-panel input{padding:10px 12px!important;margin-bottom:5px!important}
 #auth .auth-panel .cta{padding:12px 15px!important;margin-top:6px!important}
 #auth .auth-panel .text-link{padding:10px 0!important}
 #auth .auth-note{margin-top:12px!important;padding-top:10px!important}
 #auth .auth-art .art-bottom h1{font-size:clamp(28px,3vw,42px)!important;margin:8px 0 7px!important}
 #auth .auth-art .art-bottom p{font-size:13px!important;margin:7px 0!important}
 #auth .auth-art .art-bottom .eyebrow{font-size:9px!important}

 #auth .auth-mascots{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;pointer-events:none!important;z-index:1!important}
 #auth .auth-mascots>.auth-mascot{position:absolute!important;top:5%!important;left:50%!important;transform:translateX(-50%)!important;display:block!important;width:min(78%,500px)!important;height:min(55dvh,490px)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;opacity:1!important}
 #auth .auth-mascots>.cc-auth-brand-name,#auth .auth-mascots>.auth-gena-feature,#auth .auth-mascots>.cc-shapo-auth-feature{display:none!important}
 #auth .auth-art>.art-bottom{z-index:2!important;bottom:clamp(20px,5vh,50px)!important;left:clamp(30px,4vw,72px)!important;max-width:min(75%,480px)!important}
 #auth .auth-right>.cc-login-mobile-mascot{display:none!important}
 #auth .auth-right .auth-panel{max-width:430px!important;min-width:0!important}
}
@media(max-width:800px){
 #auth .auth-mascots>.cc-auth-brand-name,#auth .auth-mascots>.auth-gena-feature,#auth .auth-mascots>.cc-shapo-auth-feature{display:none!important}
 #auth .auth-right>.cc-login-mobile-mascot{display:block!important;margin:6px auto 2px!important;max-height:165px!important}
}
/* One AND ONLY one settings navigation: icons + vertical scroll on mobile. */
dialog:has(.cc-settings-layout) .cc-settings-layout .settings-nav{scroll-snap-type:none!important}
dialog:has(.cc-settings-layout) .cc-settings-layout .settings-nav-btn .settings-nav-symbol{display:block!important;width:20px!important;height:20px!important;min-width:20px!important;flex:0 0 20px!important;margin:0!important;color:#7dece7!important}
dialog:has(.cc-settings-layout) .cc-settings-layout .settings-nav-btn .cc-settings-nav-label{display:block!important;min-width:0!important;flex:1!important}
@media(max-width:800px){
 dialog:has(.cc-settings-layout) .cc-settings-layout{display:flex!important;flex-direction:column!important;gap:9px!important}
 dialog:has(.cc-settings-layout) .cc-settings-layout>.settings-nav{position:relative!important;top:auto!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;max-height:min(38dvh,306px)!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:thin!important;padding:8px!important;margin:0!important;border:1px solid #69c3ce5b!important;border-radius:15px!important;background:#061e2be6!important;gap:2px!important}
 dialog:has(.cc-settings-layout) .cc-settings-layout>.settings-nav>.settings-nav-btn{display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:11px!important;min-width:0!important;max-width:none!important;width:100%!important;min-height:43px!important;flex:0 0 43px!important;padding:9px 12px!important;text-align:left!important;scroll-snap-align:none!important;border-radius:9px!important}
 dialog:has(.cc-settings-layout) .cc-settings-nav-label b{font-size:13px!important;white-space:nowrap!important}
 dialog:has(.cc-settings-layout) .cc-settings-pages{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;max-height:calc(92dvh - min(38dvh,306px) - 108px)!important;overscroll-behavior:contain!important}
 dialog:has(.cc-settings-layout) #dialogBody{overflow:hidden!important}
}
/* Orbit six-sector circular menu: symmetric 6+1 instead of oversized 440px fixed ellipse. */
.orb-radial-overlay .orb-quick-menu-stack{width:min(94vw,360px)!important;gap:9px!important}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-menu{box-sizing:border-box!important;width:100%!important;height:402px!important;min-height:402px!important;max-height:402px!important;transform:none!important;overflow:visible!important}
.orb-radial-overlay .orb-launch-menu>.orb-action{box-sizing:border-box!important;width:76px!important;height:76px!important;min-height:76px!important;min-width:76px!important;padding:7px 1px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action svg{width:24px!important;height:24px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action span{font-size:10px!important;line-height:1.15!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(1){left:calc(50% - 38px)!important;right:auto!important;top:52px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(2){left:4%!important;right:auto!important;top:113px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(3){right:4%!important;left:auto!important;top:113px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(4){left:4%!important;right:auto!important;top:230px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(5){right:4%!important;left:auto!important;top:230px!important}
.orb-radial-overlay .orb-launch-menu>.orb-action:nth-of-type(6){left:calc(50% - 38px)!important;right:auto!important;top:291px!important}
.orb-radial-overlay .orb-launch-menu>.orb-launch-close{left:calc(50% - 35px)!important;right:auto!important;top:173px!important;bottom:auto!important;width:70px!important;height:70px!important;min-height:70px!important;margin:0!important}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras{height:78px!important;min-height:78px!important;gap:8px!important;padding:0!important}
.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-extras .orb-action{height:68px!important;min-height:68px!important;padding:7px 4px!important}
@media(max-height:570px){.orb-radial-overlay .orb-quick-menu-stack>.orb-launch-menu{transform:scale(.87)!important;transform-origin:top center!important;margin-bottom:-52px!important}}

/* U17: Mobile Orbit settings use ONE navigation screen OR ONE detail screen.
   Explicit Orbit-specific selectors override its former narrow-column rules.
   No settings controls, roles, or E2EE identifiers are removed. */
.cc-u17-settings-back{display:none}
@media(max-width:800px){
 :root.cc-orbit-theme dialog#dialog.cc-orbit-settings-dialog[open]{box-sizing:border-box!important}
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog #dialogBody{
  box-sizing:border-box!important;display:block!important;width:100%!important;min-width:0!important;
  padding:12px 14px max(18px,env(safe-area-inset-bottom))!important;overflow-x:hidden!important;
  overflow-y:auto!important;height:calc(100dvh - 67px)!important;max-height:none!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-layout{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  grid-template-columns:none!important;gap:0!important;overflow:visible!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-layout>.settings-nav{
  display:flex!important;position:static!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;transform:none!important;grid-column:auto!important;
  padding:7px!important;margin:0!important;gap:5px!important;
  border:1px solid #40b8c85b!important;border-radius:18px!important;
  background:#071e2ad9!important;backdrop-filter:none!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav>.settings-nav-btn{
  box-sizing:border-box!important;display:flex!important;position:relative!important;flex:0 0 auto!important;
  width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;min-height:54px!important;
  flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  padding:11px 12px!important;text-align:left!important;white-space:normal!important;gap:13px!important;
  border:1px solid #26708065!important;border-radius:13px!important;
  background:linear-gradient(110deg,#082b39e6,#0b2031ea)!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav>.settings-nav-btn.active{
  background:linear-gradient(105deg,#116878cc,#093a50f2)!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav-btn .settings-nav-symbol{
  display:block!important;flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important;color:#70f4e9!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav-btn .cc-settings-nav-label{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:flex-start!important;
  min-width:0!important;width:auto!important;gap:1px!important;white-space:normal!important;text-align:left!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav-btn .cc-settings-nav-label b{
  font-size:14px!important;line-height:1.3!important;color:#e9ffff!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav-btn .cc-settings-nav-label small{
  display:block!important;font-size:10px!important;line-height:1.4!important;color:#93c4d1!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .settings-nav-btn:after{
  content:'›';display:block;flex:0 0 12px;font-size:24px;color:#5edbd9;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-layout>.cc-settings-pages{
  display:none!important;width:100%!important;max-width:100%!important;min-width:0!important;
  max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog.cc-u17-settings-detail .cc-settings-layout>.settings-nav{display:none!important}
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog.cc-u17-settings-detail .cc-settings-layout>.cc-settings-pages{display:block!important}
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog.cc-u17-settings-detail .cc-settings-hero{display:none!important}
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-u17-settings-back{
  display:flex!important;align-items:center!important;gap:10px!important;
  width:100%!important;min-height:46px!important;margin:0 0 12px!important;padding:10px 13px!important;
  background:#10394be8!important;color:#a8fcf0!important;border:1px solid #36b6c68c!important;border-radius:12px!important;
  text-align:left!important;font-size:14px!important;font-weight:750!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-u17-settings-back svg{width:20px;height:20px;flex-shrink:0}
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-page,
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-page>.cc-settings-card{
  box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;
 }
 :root.cc-orbit-theme #dialog.cc-orbit-settings-dialog .cc-settings-page>.cc-settings-card{
  padding:13px!important;margin:9px 0!important;
 }
}
.cc-u17-attach{color:#071c2b!important;background:#59dcd2!important;border:1px solid #77f8e4!important;border-radius:50%!important;box-shadow:0 0 12px #32e2db44!important;width:38px!important;height:38px!important;flex:0 0 38px!important}
.cc-u17-attach svg{width:21px!important;height:21px!important;stroke:currentColor!important}
.cc-u17-draft-row{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:8px 0;border-bottom:1px solid #4aa2a447}
.cc-u17-draft-row span{flex:1 1 130px;min-width:0;overflow-wrap:anywhere;color:#d6f6f4;font-size:12px}
.cc-u17-draft-row button{min-height:34px!important;margin:0!important;padding:6px 9px!important}
.cc-u17-scheduled-chat{font-size:12px!important;min-height:36px!important;margin:3px!important;padding:7px 9px!important}
.cc-action-reactions{display:flex!important;flex-wrap:wrap!important;gap:4px!important;justify-content:center!important;padding:8px 0!important}
.cc-action-reactions button{font-size:22px!important;min-width:38px!important;height:38px!important;padding:4px!important;border-radius:12px!important;transition:transform .15s ease,background-color .15s ease!important}
.cc-action-reactions button:active{transform:scale(1.15)}

/* U18: real Create Moment button (from resonance-ui.mjs, NOT #attach). */
#app #active.cc-resonance .composer>.rz-create-launch{
 width:40px!important;height:40px!important;min-width:40px!important;
 border-radius:50%!important;color:#07303c!important;
 border:1.5px solid #b0fff4!important;
 background:linear-gradient(145deg,#83fcdd,#35bccc)!important;
 box-shadow:0 0 13px #4ae8dd80,inset 0 1px #fff7!important;
}
#app #active.cc-resonance .composer>.rz-create-launch svg{
 width:25px!important;height:25px!important;stroke:#074353!important;
}

/* U19 internal YouTube player, mobile/desktop. No network until user taps. */
.cc-u19-watch{background:linear-gradient(110deg,#38d8c7,#37aebb)!important;color:#05262b!important;font-weight:750;border:0!important;border-radius:11px;padding:9px 11px;cursor:pointer}
.cc-u19-watch:disabled{opacity:.50;cursor:not-allowed}
.cc-youtube-preview .cc-yt-info .cc-u19-watch{font-size:12px;text-align:center;white-space:normal}
.cc-u19-shade{position:fixed;inset:0;background:rgba(2,10,17,.86);z-index:2147482000;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));box-sizing:border-box}
.cc-u19-panel{width:min(900px,100%);max-height:95dvh;background:#071e27;border:1px solid #52cfc690;border-radius:17px;padding:12px;display:flex;flex-direction:column;gap:9px;box-shadow:0 22px 80px #0008;overflow:auto;box-sizing:border-box}
.cc-u19-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#dffcf5}
.cc-u19-close{font-size:20px;background:#173d47;color:#eafff4;border:1px solid #67bbb0;border-radius:50%;width:40px;height:40px;flex-shrink:0}
.cc-u19-screen{aspect-ratio:16/9;min-height:170px;max-height:68dvh;border-radius:12px;background:linear-gradient(150deg,#04121b,#0c313a);overflow:hidden;display:flex;align-items:center;justify-content:center}
.cc-u19-screen video,.cc-u19-screen iframe{width:100%;height:100%;border:0;object-fit:contain;background:#000}
.cc-u19-status{color:#acdddc;font-size:13px;line-height:1.5;margin:2px 0}
.cc-u19-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.cc-u19-actions button:not(.cc-u19-watch),.cc-u19-actions a{padding:9px 11px;border:1px solid #428c89;border-radius:10px;background:#103039;color:#d9efee;font-size:13px;text-decoration:none;cursor:pointer}
@media(max-width:480px){.cc-u19-shade{padding:9px}.cc-u19-panel{padding:9px}.cc-u19-screen{min-height:160px}.cc-u19-actions{display:grid;grid-template-columns:1fr 1fr}.cc-u19-actions .cc-u19-watch{grid-column:1/-1}}

/* U19.7 WEB/WINDOWS LOGIN CSS HOTFIX V2: ensure U16 desktop grid cannot override hidden auth. */
#auth.auth-page.hidden{display:none!important}

/* U19.9: compact E2EE video attachments; portrait files never stretch bubbles. */
#active .message .media-slot:has(.cc-open-video:not(:has(.video-note))){display:block;max-width:min(100%,340px)!important;}
#active .message .cc-open-attachment.cc-open-video:not(:has(.video-note)){width:100%!important;max-width:340px!important;display:block!important;position:relative!important;overflow:hidden!important;aspect-ratio:16/10!important;border-radius:14px!important;background:#071820!important;padding:0!important;}
#active .message .cc-open-video video.cc-attachment-video{width:100%!important;height:100%!important;max-height:240px!important;aspect-ratio:16/10!important;object-fit:contain!important;background:#071820!important;display:block!important;}
#active .message .cc-open-video:not(:has(.video-note)) .cc-play-mark{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;z-index:2!important;pointer-events:none!important;}
#active .message .media-slot .save-media-btn{max-width:100%!important;}
@media(max-width:580px){#active .message .cc-open-attachment.cc-open-video:not(:has(.video-note)){max-width:min(72vw,290px)!important;}#active .message .cc-open-video video.cc-attachment-video{max-height:210px!important;}}
/* E2EE viewer: media fits actual available viewport, not a stretched thumbnail. */
#dialog.cc-media-viewer-dialog[open]{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;padding:8px!important;border-radius:0!important;box-sizing:border-box!important;inset:0!important;}
#dialog.cc-media-viewer-dialog #dialogBody{height:calc(100dvh - 110px)!important;max-height:none!important;overflow:auto!important;display:flex!important;flex-direction:column!important;}
#dialog.cc-media-viewer-dialog .cc-viewer-stage{min-height:0!important;flex:1 1 auto!important;max-height:none!important;display:flex!important;justify-content:center!important;align-items:center!important;overflow:hidden!important;touch-action:pan-y;}
#dialog.cc-media-viewer-dialog .cc-viewer-stage video,#dialog.cc-media-viewer-dialog .cc-viewer-stage img{display:block!important;width:100%!important;height:100%!important;max-height:100%!important;max-width:100%!important;object-fit:contain!important;background:#000;}
#dialog.cc-media-viewer-dialog .cc-viewer-nav,#dialog.cc-media-viewer-dialog .cc-viewer-tools{flex-shrink:0!important;}
/* YouTube VOD/LIVE/Shorts expands the media itself, not just outer modal. */
.cc-u19-shade.cc-u199-theater{padding:0!important;align-items:stretch!important;}
.cc-u199-theater .cc-u19-panel{width:100vw!important;max-width:none!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important;padding:max(5px,env(safe-area-inset-top)) 5px max(5px,env(safe-area-inset-bottom))!important;overflow:hidden!important;}
.cc-u199-theater .cc-u19-screen{flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;aspect-ratio:auto!important;border-radius:0!important;background:#000!important;}
.cc-u199-theater .cc-u19-screen>div{height:100%!important;min-height:0!important;justify-content:center!important;}
.cc-u199-theater .cc-u19-screen>div>video{flex:1 1 auto!important;min-height:0!important;height:0!important;}
.cc-u199-theater .cc-u19-screen video,.cc-u199-theater .cc-u19-screen iframe{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;}
.cc-u199-theater .cc-u19-actions,.cc-u199-theater .cc-u19-status{display:none!important;}
.cc-u199-full-button{font-size:20px;border:1px solid #69b7ae;border-radius:12px;background:#13434b;color:#eafff4;min-width:42px;min-height:42px;cursor:pointer;margin-left:auto;}

/* U19.10 - locally generated E2EE video thumbnails (not generic decoder icons). */
#active .message .cc-open-attachment.cc-open-video:not(.cc-video-note-thumb){
 width:min(100%,330px)!important;max-width:330px!important;aspect-ratio:16/9!important;
 position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:hidden!important;padding:0!important;background:linear-gradient(145deg,#0a2c35,#071822)!important;
 border:1px solid #438c92a8!important;border-radius:13px!important;
}
#active .message .cc-open-video .cc-video-thumb-image{
 display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:cover;background:#09202a;
}
#active .message .cc-open-video .cc-video-thumb-image[hidden],
#active .message .cc-open-video .cc-video-thumb-fallback[hidden]{display:none!important}
#active .message .cc-open-video .cc-video-thumb-fallback{font-size:13px;line-height:1.3;padding:15px 30px;text-align:center;color:#a4d8dc;}
#active .message .cc-open-video .cc-play-mark{
 position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;
 pointer-events:none!important;z-index:3!important;width:47px!important;height:47px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;
 background:#062b36cf!important;color:#f0ffff!important;font-size:19px!important;
 box-shadow:0 2px 18px #0007!important;
}
#active .message .cc-open-attachment.cc-open-video.cc-video-note-thumb{
 width:min(52vw,176px)!important;height:min(52vw,176px)!important;aspect-ratio:1!important;
 display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;
 overflow:hidden!important;border-radius:50%!important;padding:0!important;background:#071c25!important;
}
#active .message .cc-video-note-thumb .cc-video-thumb-image{width:100%;height:100%;object-fit:cover;border-radius:50%;}
@media(max-width:580px){#active .message .cc-open-attachment.cc-open-video:not(.cc-video-note-thumb){max-width:min(72vw,330px)!important;}}
/* U19.10: YouTube is one main action; alternate playback routes stay tucked away. */
.cc-u19-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important;}
.cc-u19-actions>button.cc-u19-watch{order:0!important;flex:1 0 100%!important;min-height:44px!important;}
.cc-u19-actions>label{order:1!important;display:flex!important;align-items:center!important;gap:8px!important;font-size:13px!important;}
.cc-u1910-more{order:2!important;flex:1 1 100%;border-top:1px solid #285461;padding-top:7px;font-size:12px;}
.cc-u1910-more>summary{cursor:pointer;color:#a6c9cf;padding:6px 0;}
.cc-u1910-more>button,.cc-u1910-more>a{display:inline-flex;max-width:100%;padding:8px 11px;margin:3px;font-size:12px;border-radius:9px;}
.cc-u1910-video-controls{display:flex;gap:8px;align-items:center;width:100%;}
.cc-u1910-video-controls>button{min-width:38px;min-height:38px;border-radius:9px;background:#173941;color:#dcfaf5;border:1px solid #3f7978;}
.cc-u1910-video-controls>input[type=range]{flex:1;min-width:60px;accent-color:#43cfc3;}
.cc-u19-panel .cc-u19-screen>div>video:not([controls]){cursor:pointer;}

/* U19.11 - compact YouTube message link previews, accessible tap targets. */
#active .message .cc-youtube-preview, .cc-youtube-preview{
 display:grid!important;grid-template-columns:112px minmax(0,1fr)!important;
 gap:9px!important;align-items:center!important;box-sizing:border-box!important;
 width:min(100%,365px)!important;min-width:0!important;max-width:365px!important;
 padding:8px!important;margin:4px 0!important;max-height:106px!important;
 border-radius:13px!important;overflow:hidden!important;
 background:linear-gradient(135deg,#0b2931,#0c2029)!important;
 border:1px solid #35616d!important;
}
.cc-youtube-preview .cc-yt-art{width:112px!important;height:79px!important;aspect-ratio:auto!important;
 position:relative!important;overflow:hidden!important;border-radius:9px!important;background:#143842!important;
 display:flex!important;align-items:center!important;justify-content:center!important;}
.cc-youtube-preview .cc-yt-art img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
.cc-youtube-preview .cc-yt-art img[hidden]{display:none!important;}
.cc-youtube-preview .cc-yt-placeholder{font-size:22px!important;text-align:center!important;color:#92eadb!important;}
.cc-youtube-preview .cc-yt-placeholder[hidden]{display:none!important;}
.cc-youtube-preview .cc-yt-thumb-button{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 display:flex!important;justify-content:center!important;align-items:center!important;background:transparent!important;
 color:white!important;text-shadow:0 2px 8px #000!important;font-size:25px!important;border:0!important;cursor:pointer!important;}
.cc-youtube-preview .cc-yt-info{min-width:0!important;max-width:100%!important;display:flex!important;flex-direction:column!important;
 gap:4px!important;align-items:flex-start!important;justify-content:center!important;overflow:hidden!important;padding:0!important;}
.cc-youtube-preview .cc-yt-info strong{font-size:12.5px!important;line-height:1.25!important;max-width:100%!important;
 font-weight:700!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 overflow:hidden!important;overflow-wrap:anywhere!important;cursor:pointer!important;}
.cc-youtube-preview .cc-yt-info span{font-size:11px!important;line-height:1.2!important;max-width:100%!important;
 display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
.cc-youtube-preview .cc-yt-info .cc-yt-external{font-size:11px!important;padding:0!important;
 margin:0!important;border:0!important;background:none!important;color:#8fe6e3!important;line-height:1.2!important;}
@media(max-width:420px){#active .message .cc-youtube-preview,.cc-youtube-preview{grid-template-columns:94px minmax(0,1fr)!important;
 max-width:min(100%,330px)!important;gap:8px!important;}.cc-youtube-preview .cc-yt-art{width:94px!important;height:70px!important;}}

/* U19.11: edge-to-edge player inside Android WebView. System status bar
   requires native Android immersive mode; do not hide controls via fake UI. */
.cc-u19-shade.cc-u199-theater{padding:0!important;inset:0!important;z-index:2147483600!important;background:#000!important;}
.cc-u199-theater .cc-u19-panel{width:100vw!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;
 border:0!important;border-radius:0!important;background:#000!important;position:relative!important;
 display:flex!important;flex-direction:column!important;gap:0!important;overflow:hidden!important;padding:0!important;}
.cc-u199-theater .cc-u19-bar{position:absolute!important;top:0!important;right:0!important;left:0!important;
 height:auto!important;min-height:52px!important;padding:5px 8px!important;z-index:30!important;
 background:linear-gradient(#0009,transparent)!important;box-sizing:border-box!important;}
.cc-u199-theater .cc-u19-bar strong{font-size:12px!important;max-width:38vw!important;white-space:nowrap!important;
 text-overflow:ellipsis!important;overflow:hidden!important;}
.cc-u199-theater .cc-u19-screen{flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 width:100%!important;height:100%!important;aspect-ratio:auto!important;display:flex!important;
 justify-content:center!important;align-items:center!important;overflow:hidden!important;margin:0!important;padding:0!important;
 background:#000!important;}
.cc-u199-theater .cc-u19-screen>div{height:100%!important;width:100%!important;min-height:0!important;max-height:none!important;
 flex:1 1 auto!important;gap:0!important;display:flex!important;flex-direction:column!important;position:relative!important;}
.cc-u199-theater .cc-u19-screen video,.cc-u199-theater .cc-u19-screen iframe{
 display:block!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;
 width:100%!important;height:100%!important;object-fit:cover!important;}
.cc-u199-theater.cc-u1911-contain .cc-u19-screen video,
.cc-u199-theater.cc-u1911-contain .cc-u19-screen iframe{object-fit:contain!important;}
.cc-u199-theater .cc-u1910-video-controls{position:absolute!important;bottom:36px!important;left:0!important;right:0!important;
 z-index:20!important;width:100%!important;box-sizing:border-box!important;padding:10px 14px!important;
 background:linear-gradient(transparent,#0009)!important;}
.cc-u199-theater .cc-u19-screen>div>div:last-child{position:absolute!important;bottom:8px!important;left:14px!important;
 right:14px!important;z-index:21!important;color:#fff!important;pointer-events:none!important;}
.cc-u199-theater .cc-u1911-fit-button{display:inline-flex!important;}
.cc-u1911-fit-button{font-size:12px!important;min-height:38px!important;min-width:60px!important;padding:6px!important;
 color:#f4fffd!important;border:1px solid #7abfb8!important;border-radius:9px!important;background:#16454acc!important;}
.cc-u1911-fit-button[hidden]{display:none!important;}
/* The viewer controls should be unobstructed in portrait. */
@media(orientation:portrait){.cc-u199-theater .cc-u19-screen{width:100%!important;}}

/* U19.12: playback controls fade in fullscreen. Tapping/pointer motion reveals
   controls, and pause leaves them visible. Android system bars require APK host. */
.cc-u199-theater .cc-u19-bar,
.cc-u199-theater .cc-u1910-video-controls,
.cc-u199-theater .cc-u19-screen>div>div:last-child{
 transition:opacity .24s ease!important;
}
.cc-u199-theater:not(.cc-u1912-controls-visible) .cc-u19-bar,
.cc-u199-theater:not(.cc-u1912-controls-visible) .cc-u1910-video-controls,
.cc-u199-theater:not(.cc-u1912-controls-visible) .cc-u19-screen>div>div:last-child{
 opacity:0!important;pointer-events:none!important;
}
.cc-u199-theater.cc-u1912-controls-visible .cc-u19-bar,
.cc-u199-theater.cc-u1912-controls-visible .cc-u1910-video-controls{
 opacity:1!important;pointer-events:auto!important;
}

/* U19.14.68: real local dates above message days, no server-side plaintext. */
#active #messages>.cc-date-separator{display:block;box-sizing:border-box;align-self:center;position:relative;z-index:4;width:fit-content;max-width:96%;margin:13px auto 2px;padding:6px 15px;border-radius:999px;border:1px solid rgba(119,207,217,.35);background:rgba(4,26,43,.86);box-shadow:0 4px 17px rgba(0,6,21,.32);color:#c4ecee;text-align:center;font:600 11px/1.25 system-ui,sans-serif;letter-spacing:.025em;pointer-events:none;flex:none}
#active.cc-resonance #messages>.cc-date-separator{align-self:center!important;width:fit-content!important;max-width:96%!important;margin:14px auto 0!important;padding:6px 17px!important;z-index:5!important;background:rgba(5,23,44,.82)!important;border:1px solid rgba(106,202,237,.40)!important;color:#cceeff!important;filter:none!important}
#active.cc-resonance-timeline #messages>.cc-date-separator{display:none!important}

/* U4.0 Chat UX Fix3: never make the Android conversation a blank panel. */
#app #active.cc-chat-opening .messages-shell{background:linear-gradient(180deg,#071b29,#081c27)!important}
#app #active.cc-chat-opening #messages{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
#app #active.cc-chat-opening #messages .cc-loading-messages{visibility:visible!important}
#app #active #messages .cc-u40-loading{display:flex;gap:12px;align-items:center;justify-content:center;align-self:center;max-width:min(94%,430px);min-height:90px;margin:auto;padding:18px 16px;border:1px solid #51c9c041;border-radius:17px;background:linear-gradient(130deg,#0f303e,#123a3c);box-shadow:0 8px 30px #0002;color:#bdece5;font-size:13px;font-weight:560;white-space:normal}
.cc-u40-loading-indicator{display:inline-block;flex:0 0 22px;width:22px;height:22px;border-radius:50%;border:2px solid #429ead77;border-top-color:#65e1cd;animation:cc-u40-spinner .9s linear infinite}
@keyframes cc-u40-spinner{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cc-u40-loading-indicator{animation:none}}
/* U4.0 Forward picker: compact, searchable, thumb-friendly and scroll-contained. */
#dialog.cc-forward-dialog{width:min(480px,calc(100vw - 20px))!important;max-width:calc(100vw - 20px)!important;max-height:min(88dvh,780px)!important;background:linear-gradient(150deg,#113c46,#061b28)!important;border:1px solid #57c6c077!important;border-radius:22px!important;color:#e9fcf7!important;padding:16px!important;overflow:hidden!important;box-shadow:0 16px 56px #000a!important}
#dialog.cc-forward-dialog .dialog-head{margin:0 0 10px!important;padding:0 0 12px!important;border-bottom:1px solid #ffffff1a!important}
#dialog.cc-forward-dialog #dialogBody{overflow:hidden!important;max-height:none!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:0!important}
#dialog.cc-forward-dialog .cc-forward-picker{display:flex;flex-direction:column;gap:11px;min-height:0;overflow:hidden}
#dialog.cc-forward-dialog .cc-fwd-preview{padding:10px 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b7d6d9;background:#102d39;border:1px solid #ffffff1b;border-radius:11px;font-size:12px}
#dialog.cc-forward-dialog .cc-fwd-search-wrap{display:flex;align-items:center;gap:8px;padding:0 12px;border:1px solid #54b9af55;background:#092530;border-radius:13px;color:#69d7c3;min-height:46px}
#dialog.cc-forward-dialog .cc-fwd-search-wrap>span{font-size:25px;line-height:1}
#dialog.cc-forward-dialog #ccFwdSearch{flex:1;min-width:0;width:auto;min-height:42px;background:transparent;border:0;color:#eafff8;outline:0;padding:8px 0;font-size:14px}
#dialog.cc-forward-dialog #ccFwdSearch::placeholder{color:#8faeb0}
#dialog.cc-forward-dialog .cc-fwd-search-wrap:focus-within{border-color:#72e2d2;box-shadow:0 0 0 2px #72e2d225}
#dialog.cc-forward-dialog .cc-fwd-section-title{font-size:10px;letter-spacing:.14em;color:#7bc8c0;font-weight:800;padding:1px 5px}
#dialog.cc-forward-dialog #forwardTargets.cc-fwd-list{display:flex!important;flex-direction:column!important;gap:5px!important;overflow-y:auto!important;overscroll-behavior:contain;min-height:0;max-height:min(45dvh,440px)!important;padding:2px 2px 6px;scrollbar-width:thin}
#dialog.cc-forward-dialog #forwardTargets .cc-fwd-row{display:flex;align-items:center;gap:11px;min-height:58px;width:100%;padding:7px 10px!important;border:1px solid transparent;border-radius:14px;background:transparent;color:#eefaf8;text-align:left;box-shadow:none;white-space:normal}
#dialog.cc-forward-dialog #forwardTargets .cc-fwd-row:active,#dialog.cc-forward-dialog #forwardTargets .cc-fwd-row:hover,#dialog.cc-forward-dialog #forwardTargets .cc-fwd-row:focus-visible{background:#23665e66;border-color:#73d9bc45}
#dialog.cc-forward-dialog .cc-fwd-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;overflow:hidden;border-radius:50%;background:linear-gradient(145deg,#218d84,#30667d);border:1px solid #9cefd455;color:#e9fffb;font-size:17px;font-weight:750}
#dialog.cc-forward-dialog .cc-fwd-avatar img,#dialog.cc-forward-dialog .cc-fwd-avatar video{width:100%;height:100%;object-fit:cover}
#dialog.cc-forward-dialog .cc-fwd-details{display:flex;flex:1;flex-direction:column;gap:1px;min-width:0}
#dialog.cc-forward-dialog .cc-fwd-name{font-size:14px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dialog.cc-forward-dialog .cc-fwd-meta{font-size:11px;color:#93b7b9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#dialog.cc-forward-dialog .cc-fwd-arrow{font-size:26px;line-height:1;color:#6cbcb2;font-weight:300}
#dialog.cc-forward-dialog .cc-fwd-footer{border-top:1px solid #ffffff19;padding:10px 5px 0;color:#85adaf;font-size:11px;line-height:1.35}
#dialog.cc-forward-dialog .cc-fwd-empty{text-align:center;background:#112e3a;padding:22px 12px;border-radius:14px;color:#8dbab7;font-size:13px}
@media(max-width:600px){#dialog.cc-forward-dialog{max-height:min(92dvh,750px)!important;border-radius:20px!important;padding:13px!important}#dialog.cc-forward-dialog #forwardTargets.cc-fwd-list{max-height:min(50dvh,480px)!important}#dialog.cc-forward-dialog #forwardTargets .cc-fwd-row{min-height:56px}}

/* U4.0 Fix4: forward search has ONE visual surface, including Android WebView. */
html.cc-resonance-dialog #dialog.cc-forward-dialog .cc-fwd-search-wrap {
  display:flex!important;align-items:center!important;gap:9px!important;
  box-sizing:border-box!important;min-height:48px!important;
  padding:0 13px!important;border:1px solid #60cabb67!important;
  border-radius:15px!important;background:#092c35!important;
  box-shadow:none!important;outline:0!important;
}
html.cc-resonance-dialog #dialog.cc-forward-dialog .cc-fwd-search-wrap:focus-within {
  border-color:#6ee7cb!important;
  box-shadow:0 0 0 2px #6ee7cb25!important;
}
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch,
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch:focus,
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch:active {
  appearance:none!important;-webkit-appearance:none!important;
  display:block!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;
  height:44px!important;min-height:0!important;max-height:44px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;background-image:none!important;color:#eafff8!important;
  outline:none!important;box-shadow:none!important;filter:none!important;
  font:inherit!important;font-size:14px!important;line-height:44px!important;
  -webkit-tap-highlight-color:transparent!important;
}
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch::-webkit-search-decoration,
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch::-webkit-search-cancel-button,
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch::-webkit-search-results-button,
html.cc-resonance-dialog #dialog.cc-forward-dialog input#ccFwdSearch::-webkit-search-results-decoration {
 -webkit-appearance:none!important;appearance:none!important;display:none!important;
}

/* U4.0 Windows Fix7: non-native message-actions and delete confirmation */
.cc-win-delete-overlay{position:fixed;inset:0;z-index:2147483000;display:grid;place-items:center;padding:18px;background:rgba(0,10,19,.70);backdrop-filter:blur(6px)}
.cc-win-delete-panel{box-sizing:border-box;display:flex;flex-direction:column;gap:12px;width:min(455px,calc(100vw - 32px));max-height:min(86dvh,760px);overflow:auto;padding:18px;background:linear-gradient(155deg,#0e3a43,#081722 80%);border:1px solid #68cfc28a;border-radius:20px;color:#e8faf5;box-shadow:0 20px 65px #000b;font-family:inherit}
.cc-win-delete-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid #81d3c52c;padding-bottom:12px}
.cc-win-delete-head h2{margin:4px 0 0;font-size:19px;line-height:1.2;font-weight:750;color:#f1ffff}
.cc-win-delete-eyebrow{font-size:10px;letter-spacing:.13em;color:#8ddbcf;font-weight:750}
.cc-win-delete-x{border:0;background:#16424d;color:#d7fff4;border-radius:50%;width:36px;height:36px;font-size:26px;line-height:1;cursor:pointer}
.cc-win-delete-content{display:flex;flex-direction:column;gap:12px;min-height:0}
.cc-win-delete-note{font-size:13px;line-height:1.5;color:#c1dcd9;margin:0;overflow-wrap:anywhere}
.cc-win-delete-buttons{display:flex;flex-direction:column;gap:8px}
.cc-win-delete-btn,.cc-win-delete-action{cursor:pointer;color:#ecffff;background:linear-gradient(110deg,#174853,#153746);border:1px solid #7dd8c04f;border-radius:13px;min-height:45px;font:inherit;padding:10px 13px;text-align:left}
.cc-win-delete-btn.danger{border-color:#f17c8294;background:linear-gradient(110deg,#6a273d,#4c2737)}
.cc-win-delete-btn:hover,.cc-win-delete-action:hover,.cc-win-delete-action:focus-visible,.cc-win-delete-btn:focus-visible{outline:2px solid #80ebd1;outline-offset:1px;background:#236c6c}
.cc-win-delete-reactions{display:flex;flex-wrap:wrap;gap:6px}
.cc-win-delete-reactions button{border:1px solid #72c8b54d;border-radius:10px;background:#113d48;color:#fff;min-height:36px;min-width:36px;cursor:pointer;font-size:18px}
.cc-win-delete-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.cc-win-delete-action{display:flex;align-items:center;gap:9px;line-height:1.3;font-size:12px;overflow-wrap:anywhere;min-width:0}
.cc-win-delete-action-icon{flex:none;font-size:21px;color:#87e2cf}
@media(max-width:420px){.cc-win-delete-panel{padding:14px}.cc-win-delete-grid{gap:6px}.cc-win-delete-action{padding:9px;font-size:11px}}


/* U44 FIX44 RESONANCE HOLIDAY CARDS — appended AFTER the live resonance-ui.css.
   The ordinary Resonance timeline remains untouched. These rules activate only for
   the existing admin-only cc41-premium switch. Keep live E2EE message nodes. */
html.cc41-premium body #app #active.cc-resonance .messages-shell{
  background:#05122c url('/assets/cc41-chat-wallpaper.webp?v=u44-fix44') center bottom/cover no-repeat!important;
}
html.cc41-premium body #app #active.cc-resonance .messages-shell::before{
  background:linear-gradient(180deg,rgba(3,9,29,.1),rgba(2,7,22,.04) 60%,rgba(1,5,16,.24))!important;
}
/* Crucial: Resonance's original no-card declaration was overriding the holiday skin. */
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment:not(.hidden):not(.cc-sticker-bubble){
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  position:relative!important;isolation:isolate!important;overflow:visible!important;
  width:fit-content!important;min-width:95px!important;max-width:min(83%,540px)!important;
  padding:15px 17px 13px 15px!important;margin-block:7px!important;
  border:1.6px solid rgba(131,218,255,.94)!important;border-radius:21px!important;
  background:linear-gradient(139deg,rgba(21,43,96,.93),rgba(9,25,66,.96))!important;
  background-image:linear-gradient(139deg,rgba(21,43,96,.93),rgba(9,25,66,.96))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.28),0 0 0 1px rgba(87,197,255,.25),0 0 17px rgba(55,130,253,.45),0 5px 20px rgba(0,5,25,.55)!important;
  filter:none!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment.mine:not(.hidden):not(.cc-sticker-bubble){
  max-width:min(83%,540px)!important;padding:15px 17px 13px 15px!important;
  border-color:rgba(218,156,252,.94)!important;
  background:linear-gradient(139deg,rgba(45,38,107,.94),rgba(18,30,78,.96))!important;
  background-image:linear-gradient(139deg,rgba(45,38,107,.94),rgba(18,30,78,.96))!important;
  box-shadow:inset 0 1px rgba(255,255,255,.27),0 0 0 1px rgba(221,150,252,.22),0 0 17px rgba(145,83,233,.42),0 5px 20px rgba(0,5,25,.55)!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment:has(.media-slot),
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment:has(.cc-voice-player){
 max-width:min(90%,540px)!important;
}
/* Keep the ribbon running and its nodes outside the visible glass bubble. */
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment>.rz-node-dot{
  right:-10px!important;left:auto!important;top:var(--rz-node-y,25px)!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment.mine>.rz-node-dot{
  left:-10px!important;right:auto!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment .rz-moment-identity{
  position:relative!important;z-index:2!important;letter-spacing:.13em!important;
  margin-bottom:6px!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment .rich-message,
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment .cc-attachment-caption{
 position:relative!important;z-index:2!important;overflow-wrap:anywhere!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment .message-meta{
 position:relative!important;z-index:2!important;
}
/* Real message-corner ornaments; never floating above the timeline. */
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment>.cc39-bubble-sprig-a{
 display:block!important;position:absolute!important;top:-16px!important;right:-8px!important;
 bottom:auto!important;left:auto!important;width:50px!important;height:35px!important;
 background:url('/assets/cc41-fir-sprig.webp') center/contain no-repeat!important;
 pointer-events:none!important;z-index:4!important;opacity:.9!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment>.cc39-bubble-sprig-b{
 display:none!important;
}
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment:not(.hidden)::before{
 display:block!important;content:''!important;position:absolute!important;left:12px!important;right:12px!important;
 top:-9px!important;height:13px!important;
 background:url('/assets/cc41-snowcap.svg') center/100% 100% no-repeat!important;
 transform:none!important;pointer-events:none!important;z-index:3!important;
}
/* Media content must remain usable: no decorative element can intercept clicks or long hold. */
html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment :is(.media-slot,video,audio,button){position:relative;z-index:2}
@media(max-width:365px){
 html.cc41-premium body #app #active.cc-resonance #messages>.message.rz-moment:not(.hidden):not(.cc-sticker-bubble){
  max-width:87%!important;padding:13px 13px 12px!important;
 }
}
/* END FIX44 */

/* Stage65 R9 FIX5: preserve FIX4 anchors, restore original resonance lighting. */
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages:has(> svg.rz-fix4-geometry) > .message.rz-moment > .rz-node-dot {display:none!important;}
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry {filter:drop-shadow(0 0 7px #45c8ffd1)!important;overflow:hidden!important;}
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-aura {stroke:#85adff!important;stroke-width:13!important;opacity:.14!important;}
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-core {stroke-width:2.35!important;opacity:.94!important;}
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-motion {stroke-width:1.75!important;stroke-dasharray:1.5 17!important;opacity:.95!important;}
#app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-charge {stroke-width:3.2!important;stroke-dasharray:3 208!important;opacity:.95!important;}
#app #active.cc-resonance[data-cc29-peer-typing="1"]:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-motion {stroke:#69fff0!important;stroke-width:2.4!important;stroke-dasharray:3 11!important;opacity:1!important;animation:cc31ThreadFlow .85s linear infinite!important;filter:drop-shadow(0 0 5px rgba(52,255,225,.9))!important;}
#app #active.cc-resonance[data-cc29-peer-typing="1"]:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-core {stroke:#50eddf!important;stroke-width:2.8!important;filter:drop-shadow(0 0 9px rgba(53,247,235,.75))!important;}
#app #active.cc-resonance[data-cc29-peer-typing="1"]:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry .rz-thread-aura {stroke:#69e9e0!important;stroke-width:13!important;opacity:.42!important;animation:cc31ThreadBreath 1.55s ease-in-out infinite!important;}
@media(prefers-reduced-motion:reduce){
 #app #active.cc-resonance:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry :is(.rz-thread-motion,.rz-thread-charge,.rz-thread-aura) {animation:none!important;}
 #app #active.cc-resonance[data-cc29-peer-typing="1"]:not(.cc-resonance-group):not(.cc-resonance-timeline):not(.cc-ai-chat) #messages > svg.rz-fix4-geometry :is(.rz-thread-motion,.rz-thread-charge,.rz-thread-aura) {animation:none!important;}
}


/* STAGE65 R9FIX6: replace the chat-opening text plaque with a circular cosmic loader. */
#app #active.cc-chat-opening #messages .cc-u40-loading{
 position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
 gap:0!important;align-self:center!important;width:112px!important;height:112px!important;max-width:112px!important;
 min-height:112px!important;margin:auto!important;padding:0!important;border:none!important;border-radius:50%!important;
 background:radial-gradient(circle at 50% 50%,rgba(17,47,86,.88) 0 36%,rgba(8,23,44,.44) 57%,rgba(7,17,33,0) 73%)!important;
 box-shadow:0 0 0 1px rgba(111,210,255,.10),0 0 22px rgba(62,208,255,.18),inset 0 0 18px rgba(130,231,255,.16)!important;
 color:transparent!important;overflow:visible!important;pointer-events:none!important;
}
#app #active.cc-chat-opening #messages .cc-u40-loading::before{
 content:'';position:absolute;inset:14px;border-radius:50%;border:3px solid rgba(118,219,255,.18);
 box-shadow:0 0 12px rgba(62,208,255,.14),inset 0 0 8px rgba(124,224,255,.12);
}
#app #active.cc-chat-opening #messages .cc-u40-loading::after{
 content:'';position:absolute;left:50%;top:50%;width:12px;height:12px;margin-left:-6px;margin-top:-48px;border-radius:50%;
 background:radial-gradient(circle,#f1ffff 0,#95f3ff 40%,#35d8ff 72%,rgba(40,185,255,.14) 100%);
 box-shadow:0 0 18px rgba(111,244,255,.82),0 0 34px rgba(63,207,255,.44);
 transform-origin:50% 42px;animation:cc-u40-loader-orbit 1.15s linear infinite;
}
#app #active.cc-chat-opening #messages .cc-u40-loading-indicator{
 position:relative!important;display:block!important;width:68px!important;height:68px!important;flex:0 0 68px!important;border-radius:50%!important;
 border:3px solid rgba(103,210,255,.14)!important;border-top-color:rgba(119,243,255,.98)!important;border-right-color:rgba(92,198,255,.72)!important;
 border-bottom-color:rgba(143,122,255,.34)!important;border-left-color:rgba(103,210,255,.10)!important;animation:cc-u40-spinner 1s linear infinite!important;
 box-shadow:0 0 20px rgba(74,210,255,.26),inset 0 0 14px rgba(60,172,255,.20)!important;
 background:radial-gradient(circle at 50% 50%,rgba(12,35,66,.68) 0,rgba(7,22,43,.22) 62%,rgba(7,22,43,0) 70%)!important;
}
#app #active.cc-chat-opening #messages .cc-u40-loading-indicator::before{
 content:'';position:absolute;inset:8px;border-radius:50%;border:1.5px solid rgba(185,248,255,.14);box-shadow:inset 0 0 8px rgba(120,224,255,.12);
}
#app #active.cc-chat-opening #messages .cc-u40-loading-indicator::after{
 content:'';position:absolute;inset:22px;border-radius:50%;background:radial-gradient(circle,#b4f4ff 0,rgba(102,211,255,.55) 22%,rgba(26,83,145,.10) 56%,rgba(26,83,145,0) 70%);
 box-shadow:0 0 18px rgba(92,220,255,.24);
}
#app #active.cc-chat-opening #messages .cc-u40-loading > span:last-child{
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;
 clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
@keyframes cc-u40-loader-orbit{
 from{transform:rotate(0deg)}
 to{transform:rotate(360deg)}
}
@media (prefers-reduced-motion:reduce){
 #app #active.cc-chat-opening #messages .cc-u40-loading::after,
 #app #active.cc-chat-opening #messages .cc-u40-loading-indicator{animation:none!important}
}

/* FIX7 live nebula, behind the existing scroll pane, personal default wallpaper only. */
.cc65-live-sky{display:none;pointer-events:none;position:absolute;inset:0;overflow:hidden;background:#050f26;isolation:isolate;z-index:0;}
#app #active.cc65-live-sky-on .messages-shell{position:relative!important;isolation:isolate;}
#app #active.cc65-live-sky-on .messages-shell > .cc65-live-sky{display:block;}
html[data-wallpaper="classic"] body #app #active.cc65-live-sky-on #messages#messages.messages:not([data-cc59-wallpaper="custom"]){position:relative!important;z-index:1;background:transparent!important;background-image:none!important;}
.cc65-live-nebula{position:absolute;inset:-14%;background:radial-gradient(ellipse at 20% 65%,#21509260 0%,#18376c40 20%,transparent 53%),radial-gradient(ellipse at 75% 23%,#34568e70 0%,#1d407a40 26%,transparent 55%),radial-gradient(ellipse at 58% 76%,#52367736 0%,transparent 45%),radial-gradient(ellipse at 35% 28%,#153c6850,transparent 58%),linear-gradient(145deg,#060e25,#0a1c39 48%,#07142b);animation:cc65-nebula-drift 100s ease-in-out infinite alternate;transform:translate3d(-2%,1%,0);}
.cc65-live-stars{position:absolute;inset:0;width:100%;height:100%;}
@keyframes cc65-nebula-drift{from{transform:translate3d(-3%,2%,0) scale(1);}to{transform:translate3d(3%,-2%,0) scale(1.06);}}
@media(prefers-reduced-motion:reduce){.cc65-live-nebula{animation:none!important;}}

/* R9 FIX7B: Android defaults to soft, not classic. */
html[data-wallpaper="soft"] body #app #active.cc65-live-sky-on #messages#messages.messages:not([data-cc59-wallpaper="custom"]){position:relative!important;z-index:1;background:transparent!important;background-image:none!important;}
