:root{font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:#e5e7eb;background:#0b1020;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#0b1020,#111827)}button,input,select{font:inherit}.page{max-width:1080px;margin:0 auto;padding:24px}.top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.brand{font-size:26px;font-weight:750}.sub{color:#9ca3af;font-size:14px}.card{background:rgba(17,24,39,.92);border:1px solid #273244;border-radius:16px;padding:18px;margin-bottom:16px;box-shadow:0 8px 30px rgba(0,0,0,.18)}.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.grow{flex:1}.btn{border:0;border-radius:10px;padding:10px 16px;background:#2563eb;color:#fff;cursor:pointer;font-weight:650}.btn:hover{filter:brightness(1.08)}.btn.secondary{background:#334155}.btn.danger{background:#b91c1c}.btn:disabled{opacity:.45;cursor:not-allowed}.input,.select{border:1px solid #334155;background:#0f172a;color:#fff;border-radius:10px;padding:10px 12px;min-height:42px}.input{min-width:180px}.status{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:7px 11px;background:#1f2937;color:#d1d5db}.dot{width:9px;height:9px;border-radius:50%;background:#6b7280}.status.ok .dot{background:#22c55e}.status.warn .dot{background:#eab308}.status.bad .dot{background:#ef4444}.video-wrap{position:relative;background:#000;border-radius:14px;overflow:hidden;min-height:180px;display:flex;align-items:center;justify-content:center}.video-wrap video{display:block;width:100%;max-height:76vh;background:#000}.preview{max-width:640px;margin:0 auto}.overlay{position:absolute;inset:auto 0 0 0;padding:13px;text-align:center;background:rgba(0,0,0,.68);cursor:pointer}.meta{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:10px}.tag{border:1px solid #334155;background:#0f172a;border-radius:999px;padding:5px 9px;font-size:13px;color:#cbd5e1}.urlbox{margin-top:12px;padding:10px 12px;background:#0f172a;border:1px solid #334155;border-radius:10px;word-break:break-all;user-select:all}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.label{display:block;margin-bottom:7px;color:#cbd5e1}.check{display:flex;gap:8px;align-items:center}.muted{color:#9ca3af;font-size:13px}.error{color:#fecaca}.log{white-space:pre-wrap;color:#94a3b8;font-size:12px;max-height:160px;overflow:auto;background:#0f172a;border-radius:10px;padding:10px}.receiver video{cursor:pointer}.fullscreen-btn{position:absolute;right:12px;top:12px;z-index:2;background:rgba(15,23,42,.75)}@media(max-width:720px){.page{padding:12px}.grid{grid-template-columns:1fr}.brand{font-size:22px}.btn{flex:1}.row.mobile-stack>*{flex-basis:100%}.input,.select{width:100%}}
/* V3.2: clearer mobile sound-unlock prompt and adaptive status */
.overlay{inset:auto 12px 12px 12px;border-radius:10px;font-weight:700;z-index:3;background:rgba(0,0,0,.78)}
@media(max-width:720px){.overlay{font-size:15px;padding:14px}.meta{gap:6px}.tag{font-size:12px}}

/* Clean home entry styles */
.call-entry-card{display:flex;align-items:center;gap:18px;background:linear-gradient(135deg,rgba(16,185,129,.13),rgba(37,99,235,.10));border-color:rgba(52,211,153,.28)}
.call-entry-main{flex:1}.call-entry-main h2{margin:0 0 5px}.call-primary{background:linear-gradient(145deg,#22c55e,#16a34a)}

/* ============================================================
   V4.3 MULTI CHAT + GROUP CALL
   Familiar green/white communication UI, generic original icons.
   ============================================================ */

.room-page{margin:0;width:100%;min-height:100dvh;background:#ededed;color:#111;overflow:hidden}
.wechat-chat-shell{height:100dvh;display:grid;grid-template-rows:auto 1fr auto;background:#ededed}
.wechat-chat-header{height:58px;display:grid;grid-template-columns:54px 1fr 54px;align-items:center;background:#f7f7f7;border-bottom:1px solid #d9d9d9;padding-top:env(safe-area-inset-top);box-sizing:content-box;z-index:2}
.wechat-back,.wechat-header-video{display:grid;place-items:center;width:42px;height:42px;margin:auto;border:0;background:transparent;color:#111;text-decoration:none;cursor:pointer}
.wechat-back svg,.wechat-header-video svg{width:25px;height:25px}
.wechat-header-video.in-call{color:#07c160}
.wechat-chat-title{text-align:center;min-width:0}.wechat-chat-title b{display:block;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wechat-chat-title span{display:block;font-size:11px;color:#888;margin-top:2px}
.wechat-chat-messages{overflow-y:auto;padding:18px 14px 24px;scroll-behavior:smooth}
.wechat-message-row{display:flex;gap:9px;margin:10px 0;align-items:flex-start}.wechat-message-row.mine{flex-direction:row-reverse}
.wechat-message-avatar{width:38px;height:38px;border-radius:6px;background:linear-gradient(145deg,#55c982,#1aa85b);color:#fff;font-size:13px;font-weight:750;display:grid;place-items:center;flex:0 0 auto;box-shadow:0 2px 7px rgba(0,0,0,.08)}
.wechat-message-main{max-width:min(76%,620px);display:flex;flex-direction:column}.wechat-message-row.mine .wechat-message-main{align-items:flex-end}
.wechat-message-name{font-size:11px;color:#8a8a8a;margin:0 0 4px 2px}.wechat-message-bubble{position:relative;background:#fff;border-radius:5px;padding:10px 12px;font-size:15px;line-height:1.48;color:#111;word-break:break-word;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.wechat-message-row.mine .wechat-message-bubble{background:#95ec69}.wechat-message-time{font-size:10px;color:#aaa;margin-top:4px}
.wechat-chat-compose{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #d8d8d8}
.wechat-chat-compose textarea{resize:none;min-height:40px;max-height:110px;border:0;border-radius:5px;background:#fff;color:#111;padding:10px 11px;font:inherit;outline:none;box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
.wechat-chat-send{display:flex;align-items:center;gap:5px;border:0;border-radius:5px;background:#07c160;color:#fff;font-weight:650;padding:0 13px;cursor:pointer}.wechat-chat-send svg{width:17px;height:17px}

.group-call-overlay{position:fixed;inset:0;z-index:1000;background:#101312;color:#fff;overflow:hidden}.group-call-overlay.hidden{display:none}
.group-call-video-area{position:absolute;inset:0;background:radial-gradient(circle at 50% 25%,#4b514e,#1a1c1b 50%,#0c0d0d);overflow:hidden}
.group-call-video-area.grid{display:grid;gap:2px}.group-call-video-area.grid.count-3,.group-call-video-area.grid.count-4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.group-call-video-area.grid.count-5,.group-call-video-area.grid.count-6,.group-call-video-area.grid.count-7,.group-call-video-area.grid.count-8{grid-template-columns:repeat(2,1fr);grid-auto-rows:1fr}
.group-call-tile{position:relative;border:0;padding:0;background:#252826;overflow:hidden;color:#fff;cursor:pointer;min-width:0;min-height:0}
.group-call-tile video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#171918}.group-call-tile-fallback{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(145deg,#414844,#252826)}.group-call-tile-fallback.hidden{display:none}
.group-call-avatar{width:76px;height:76px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#43ce82,#168d52);font-size:24px;font-weight:800;box-shadow:0 14px 35px rgba(0,0,0,.22)}
.group-call-tile-name{position:absolute;left:9px;bottom:8px;z-index:3;padding:4px 7px;border-radius:8px;background:rgba(0,0,0,.42);font-size:11px;backdrop-filter:blur(10px)}
.group-call-video-area.duo .duo-main{position:absolute;inset:0}.group-call-video-area.duo .duo-pip{position:absolute;right:14px;top:calc(68px + env(safe-area-inset-top));width:min(29vw,180px);height:min(39vw,235px);border-radius:14px;border:1px solid rgba(255,255,255,.3);box-shadow:0 14px 35px rgba(0,0,0,.35);z-index:5}
.group-call-video-area.spotlight .spotlight-main{position:absolute;inset:0}.group-call-filmstrip{position:absolute;right:10px;top:calc(68px + env(safe-area-inset-top));bottom:150px;z-index:5;width:min(29vw,165px);display:flex;flex-direction:column;gap:8px;overflow-y:auto}.group-call-filmstrip .spotlight-thumb{height:145px;min-height:110px;border-radius:12px;flex:0 0 auto}

.group-call-top{position:absolute;z-index:10;left:0;right:0;top:0;display:flex;justify-content:space-between;align-items:flex-start;padding:max(17px,env(safe-area-inset-top)) 16px 50px;background:linear-gradient(180deg,rgba(0,0,0,.55),transparent);pointer-events:none}
.group-call-title{font-weight:700;font-size:17px;text-shadow:0 1px 8px #000}.group-call-meta{font-size:12px;color:rgba(255,255,255,.75);margin-top:4px}
.group-call-minimize{pointer-events:auto;border:0;background:rgba(0,0,0,.42);color:#fff;border-radius:999px;padding:7px 12px;backdrop-filter:blur(10px);cursor:pointer}

.call-invite-panel{position:absolute;inset:0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(180deg,rgba(65,69,66,.92),rgba(24,26,25,.98));backdrop-filter:blur(20px)}.call-invite-panel.hidden{display:none}
.call-invite-avatar{width:92px;height:92px;border-radius:25px;display:grid;place-items:center;background:linear-gradient(145deg,#43ce82,#178e52);font-size:30px;font-weight:800;margin-bottom:20px;box-shadow:0 16px 48px rgba(0,0,0,.26)}
.call-invite-name{font-size:24px;font-weight:760}.call-invite-text{font-size:14px;color:rgba(255,255,255,.67);margin-top:8px}
.call-invite-actions{display:flex;gap:74px;margin-top:65px}.wechat-invite-btn{border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:9px;cursor:pointer;font-size:13px}.wechat-invite-btn span{width:64px;height:64px;border-radius:50%;display:grid;place-items:center}.wechat-invite-btn span svg{width:29px;height:29px}.wechat-invite-btn.decline span{background:#fa5151}.wechat-invite-btn.accept span{background:#07c160}

.wechat-call-controls{position:absolute;left:50%;bottom:max(20px,calc(env(safe-area-inset-bottom) + 14px));transform:translateX(-50%);z-index:30;width:min(360px,94vw);display:grid;grid-template-columns:repeat(3,1fr);row-gap:20px;column-gap:18px;padding:16px 14px;border-radius:25px;background:rgba(0,0,0,.06)}.wechat-call-controls.hidden{display:none}
.wechat-call-control{border:0;background:transparent;color:#fff;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;cursor:pointer;white-space:nowrap}
.wechat-call-circle{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#050505;box-shadow:0 8px 20px rgba(0,0,0,.16)}.wechat-call-circle svg{width:26px;height:26px}
.wechat-call-circle.dark{background:rgba(47,48,47,.88);color:#fff}.wechat-call-circle.hangup{background:#fa5151;color:#fff}.wechat-call-control.off .wechat-call-circle{background:rgba(47,48,47,.88);color:#fff}
.wechat-call-control.off span:last-child{opacity:.7}

.call-more-panel{position:absolute;z-index:40;right:14px;bottom:180px;width:min(260px,72vw);padding:10px;border-radius:14px;background:rgba(30,32,31,.94);backdrop-filter:blur(16px);box-shadow:0 16px 40px rgba(0,0,0,.35)}.call-more-panel.hidden{display:none}.call-more-panel button{display:block;width:100%;border:0;background:transparent;color:#fff;text-align:left;padding:11px;border-radius:9px;cursor:pointer}.call-more-panel button:hover{background:rgba(255,255,255,.08)}
.group-call-diag{margin-top:8px;padding:9px;border-radius:9px;background:#111;color:#a7b0aa;font:11px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;max-height:180px;overflow:auto}.group-call-diag.hidden{display:none}

@media(max-width:680px){
  .wechat-chat-header{height:52px;grid-template-columns:48px 1fr 48px}
  .wechat-chat-messages{padding:14px 10px 22px}
  .wechat-message-main{max-width:78%}
  .group-call-video-area.grid.count-5,.group-call-video-area.grid.count-6,.group-call-video-area.grid.count-7,.group-call-video-area.grid.count-8{grid-template-columns:repeat(2,1fr)}
  .wechat-call-controls{width:94vw;row-gap:17px;column-gap:8px}.wechat-call-circle{width:56px;height:56px}
  .call-invite-actions{gap:62px}
}

/* V5.6.30 home live updates and temporary direct transfer. */
.joined-latest-message{
  display:block!important;
  max-width:100%!important;
  margin-top:6px!important;
  color:#697386!important;
  font-size:10.5px!important;
  line-height:15px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.home-direct-transfer{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  margin:14px 0 28px;
  padding:18px;
  border:1px solid rgba(22,29,43,.08);
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 24px rgba(24,32,48,.06);
}
.home-direct-copy h2{margin:4px 0 6px;font-size:20px}
.home-direct-copy p{margin:0;color:#697386;font-size:12px;line-height:1.65}
.home-direct-picker{
  position:relative;
  display:grid;
  place-items:center;
  min-width:116px;
  height:42px;
  border-radius:8px;
  background:#2477d1;
  color:#fff;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.home-direct-picker input{position:absolute;inset:0;opacity:0;cursor:pointer}
.home-direct-hint{
  grid-column:1/-1;
  color:#7a8798;
  font-size:11px;
  line-height:1.5;
}
.home-direct-list{
  grid-column:1/-1;
  display:grid;
  gap:8px;
}
.home-direct-item{
  display:grid;
  grid-template-columns:minmax(130px,.8fr) minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid #e3e9f1;
  border-radius:8px;
  background:#f8fafc;
}
.home-direct-item b{
  display:block;
  color:#26334a;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.home-direct-item span{display:block;margin-top:3px;color:#7f8b9c;font-size:10px}
.home-direct-item input{
  min-width:0;
  height:34px;
  border:1px solid #d9e2ee;
  border-radius:7px;
  padding:0 9px;
  background:#fff;
  color:#536174;
  font-size:11px;
}
.home-direct-item button{
  height:34px;
  border:0;
  border-radius:7px;
  padding:0 12px;
  background:#16a36a;
  color:#fff;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.call-float-card.card-template-classic{--card-background:#fff!important;--card-accent:#5b6cff!important}
.call-float-card.card-template-meeting{
  --card-background:#f5f9ff!important;
  --card-accent:#3977e8!important;
  color:#17233a!important;
  border:1px solid #d6e3fa!important;
}
.call-float-card.card-template-family{
  --card-background:#fff6f0!important;
  --card-accent:#e67957!important;
  color:#3a2821!important;
  border:1px solid #f4d8c9!important;
}
.call-float-card.card-template-custom{
  background:var(--card-background)!important;
  border:2px solid color-mix(in srgb,var(--card-accent) 55%,transparent)!important;
}
.call-float-card.card-template-meeting .incoming-call-dot,
.call-float-card.card-template-meeting .call-float-text.accept{background:#3977e8!important}
.call-float-card.card-template-family .incoming-call-dot,
.call-float-card.card-template-family .call-float-text.accept{background:#e67957!important}
.call-float-card.card-template-custom .incoming-call-dot,
.call-float-card.card-template-custom .call-float-text.accept{background:var(--card-accent)!important}
@media(max-width:640px){
  .home-direct-transfer{grid-template-columns:1fr;padding:15px}
  .home-direct-picker{width:100%}
  .home-direct-item{grid-template-columns:1fr}
  .home-direct-item input{width:100%}
}


/* ============================================================
   V4.4 STABLE CHAT CALL
   ============================================================ */

.wechat-room-menu{border:0;background:transparent;font-size:24px;cursor:pointer;color:#111;width:44px;height:44px;margin:auto}
.rich-compose{grid-template-columns:auto auto 1fr auto}
.compose-icon-btn{width:38px;height:38px;border:0;background:transparent;color:#333;display:grid;place-items:center;cursor:pointer;padding:5px}.compose-icon-btn svg{width:27px;height:27px}
.emoji-panel,.attach-panel{position:absolute;left:8px;right:8px;bottom:calc(64px + env(safe-area-inset-bottom));z-index:20;padding:10px;border-radius:12px;background:#fff;box-shadow:0 -6px 30px rgba(0,0,0,.12)}
.emoji-panel.hidden,.attach-panel.hidden{display:none}.emoji-panel{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.emoji-panel button{border:0;background:#f5f5f5;border-radius:8px;height:38px;font-size:22px;cursor:pointer}
.attach-panel{display:flex;gap:12px}.attach-panel button{width:78px;height:72px;border:0;border-radius:12px;background:#f5f5f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;cursor:pointer}.attach-panel b{font-size:25px}.attach-panel span{font-size:12px}
.chat-image-link{display:block;max-width:min(62vw,320px);border-radius:7px;overflow:hidden;background:#ddd}.chat-image{display:block;max-width:100%;max-height:360px;object-fit:contain}
.chat-file-card{display:flex;align-items:center;gap:11px;min-width:220px;max-width:300px;padding:12px;background:#fff;border-radius:6px;color:#111;text-decoration:none}.mine .chat-file-card{background:#95ec69}.chat-file-icon{font-size:31px}.chat-file-info{display:flex;min-width:0;flex-direction:column}.chat-file-info b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-file-info small{font-size:11px;color:#777;margin-top:4px}
.file-type-icon{
  width:38px;height:42px;flex:0 0 38px;border-radius:7px 7px 10px 10px;
  display:grid;place-items:center;position:relative;overflow:hidden;
  background:linear-gradient(160deg,#eef2f7,#cbd5e1);color:#334155;
  box-shadow:inset 0 -10px 18px rgba(0,0,0,.08);font-size:10px!important;font-weight:900;letter-spacing:0
}
.file-type-icon:before{
  content:"";position:absolute;top:0;right:0;border-style:solid;border-width:0 12px 12px 0;
  border-color:transparent rgba(255,255,255,.82) transparent transparent
}
.file-type-icon span{position:relative;z-index:1}
.file-type-icon.direct:after{
  content:"";position:absolute;left:5px;bottom:5px;width:8px;height:8px;border-radius:999px;background:#07c160;
  box-shadow:0 0 0 2px rgba(255,255,255,.85)
}
.file-type-image{background:linear-gradient(160deg,#d1fae5,#22c55e);color:#064e3b}
.file-type-pdf{background:linear-gradient(160deg,#fee2e2,#ef4444);color:#fff}
.file-type-word{background:linear-gradient(160deg,#dbeafe,#2563eb);color:#fff}
.file-type-excel{background:linear-gradient(160deg,#dcfce7,#16a34a);color:#fff}
.file-type-ppt{background:linear-gradient(160deg,#ffedd5,#f97316);color:#fff}
.file-type-archive{background:linear-gradient(160deg,#fef3c7,#d97706);color:#fff}
.file-type-audio{background:linear-gradient(160deg,#fae8ff,#a855f7);color:#fff}
.file-type-video{background:linear-gradient(160deg,#e0e7ff,#6366f1);color:#fff}
.file-type-code{background:linear-gradient(160deg,#e2e8f0,#0f172a);color:#fff}
.file-type-app{background:linear-gradient(160deg,#ccfbf1,#0f766e);color:#fff}

.call-float-card{position:relative;z-index:30;margin:9px 10px 0;padding:10px 11px;border-radius:12px;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.11);display:flex;align-items:center;gap:10px;min-height:58px}.call-float-card.hidden{display:none}.call-float-card.incoming{border-left:3px solid #07c160}.call-float-card.calling{border-left:3px solid #666}.call-float-card.active{border-left:3px solid #07c160}.call-float-card.uploading{border-left:3px solid #1677ff}
.call-float-avatar{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#43ce82,#168d52);color:#fff;font-size:13px;font-weight:800;flex:0 0 auto}.call-float-avatar.active{border-radius:50%;background:#07c160}.call-float-avatar svg{width:22px;height:22px}
.call-float-main{display:flex;flex:1;min-width:0;flex-direction:column}.call-float-main b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.call-float-main span{font-size:11px;color:#888;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.call-float-actions{display:flex;gap:9px}.call-float-icon{width:40px;height:40px;border-radius:50%;border:0;display:grid;place-items:center;color:#fff;cursor:pointer}.call-float-icon svg{width:21px;height:21px}.call-float-icon.danger{background:#fa5151}.call-float-icon.accept{background:#07c160}
.call-float-btn{border:0;border-radius:999px;padding:8px 13px;color:#fff;cursor:pointer;font-weight:650;flex:0 0 auto}.call-float-btn.danger{background:#fa5151}.call-float-btn.accept{background:#07c160}

.room-menu-panel{position:fixed;z-index:100;left:10px;top:calc(55px + env(safe-area-inset-top));width:150px;padding:7px;border-radius:10px;background:#fff;box-shadow:0 8px 30px rgba(0,0,0,.18)}.room-menu-panel.hidden{display:none}.room-menu-panel button{display:block;width:100%;padding:10px;border:0;border-radius:7px;background:transparent;text-align:left;cursor:pointer}.room-menu-panel button:hover{background:#f2f2f2}

/* Critical V4.4 stability rule:
   .group-call-tile and its <video> element are created once and kept alive.
   Polling only moves existing nodes and changes classes/srcObject when needed. */
.group-call-video-area.stable .group-call-tile{transition:none!important}
.group-call-video-area.stable video{will-change:auto;transform:translateZ(0)}
.group-call-video-area.grid.has-pinned{grid-template-columns:repeat(2,1fr)!important;grid-auto-rows:minmax(160px,1fr)}
.group-call-video-area.grid.has-pinned .group-call-tile.pinned{grid-column:1/-1;min-height:48vh}
.group-call-video-area.grid.count-9,.group-call-video-area.grid.count-10,.group-call-video-area.grid.count-11,.group-call-video-area.grid.count-12{grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr}

@media(max-width:680px){
  .emoji-panel{grid-template-columns:repeat(6,1fr)}
  .chat-image-link{max-width:68vw}
  .rich-compose{gap:3px;padding-left:5px;padding-right:6px}
  .compose-icon-btn{width:34px;height:38px}
  .group-call-video-area.grid.count-9,.group-call-video-area.grid.count-10,.group-call-video-area.grid.count-11,.group-call-video-area.grid.count-12{grid-template-columns:repeat(2,1fr)}
}


/* ============================================================
   V4.5 STABILITY / COMPACT FLOAT CARD / RETRO AVATARS
   ============================================================ */

.call-float-card{
  position:fixed!important;
  left:10px!important;
  right:10px!important;
  top:calc(env(safe-area-inset-top) + 60px)!important;
  z-index:600!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  margin:0!important;
  padding:5px 8px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-left:0!important;
  border-radius:10px!important;
  overflow:hidden!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  background:rgba(255,255,255,.97)!important;
  box-shadow:0 5px 18px rgba(0,0,0,.14)!important;
  backdrop-filter:blur(12px);
}
.call-float-card.hidden{display:none!important}
.call-float-card.incoming,.call-float-card.outgoing,.call-float-card.active,.call-float-card.resume{border-left:0!important}
.call-float-avatar{width:34px!important;height:34px!important;min-width:34px!important;border-radius:9px!important;margin:0!important;background:transparent!important;overflow:hidden!important}
.call-float-avatar.active{display:grid!important;place-items:center!important;border-radius:50%!important;background:#07c160!important;color:#fff!important}
.call-float-avatar.active svg{width:19px!important;height:19px!important}
.call-float-main{min-width:0!important;line-height:1.05!important}
.call-float-main b{font-size:12.5px!important;line-height:15px!important}
.call-float-main span{font-size:10.5px!important;line-height:13px!important;margin-top:1px!important}
.call-float-actions{gap:5px!important}
.call-float-icon{width:30px!important;height:30px!important;min-width:30px!important}
.call-float-icon svg{width:16px!important;height:16px!important}
.call-float-icon.neutral{background:#e7e7e7!important;color:#333!important}
.call-float-icon.neutral.muted{background:#555!important;color:#fff!important}
.call-float-btn{padding:6px 10px!important;font-size:11px!important}
.wechat-chat-messages{padding-top:18px!important}

.upload-toast{
  position:fixed;left:50%;top:calc(env(safe-area-inset-top) + 118px);transform:translateX(-50%);
  z-index:650;background:rgba(20,20,20,.88);color:#fff;border-radius:999px;padding:7px 12px;
  font-size:11px;max-width:80vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.upload-toast.hidden{display:none}

.retro-avatar{
  --avatar-bg:#8cc8ff;
  width:100%;height:100%;display:grid;place-items:center;border-radius:inherit;
  background:linear-gradient(145deg,var(--avatar-bg),color-mix(in srgb,var(--avatar-bg) 70%,#fff));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
  font-size:60%;line-height:1;overflow:hidden
}
.retro-avatar span{filter:saturate(.92);transform:translateY(1px)}
.avatar-button{border:0!important;padding:0!important;cursor:pointer!important;overflow:hidden!important}
.wechat-message-avatar .retro-avatar{font-size:23px}
.group-call-avatar .retro-avatar{font-size:43px}

.ui-modal{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;background:rgba(0,0,0,.42);padding:18px}
.ui-modal.hidden{display:none}
.ui-modal-card{width:min(330px,92vw);background:#fff;border-radius:14px;padding:18px;color:#111;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.ui-modal-card h3{margin:0 0 14px;font-size:17px}
.ui-modal-card input{width:100%;height:42px;box-sizing:border-box;border:1px solid #ddd;border-radius:8px;padding:0 11px;font-size:15px;outline:none}
.ui-modal-card>button{width:100%;height:40px;margin-top:12px;border:0;border-radius:8px;background:#07c160;color:#fff;font-weight:700;cursor:pointer}
.ui-modal-card>button.secondary{background:#eee;color:#333}
.avatar-picker-card{width:min(360px,94vw)}
.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.avatar-grid button{aspect-ratio:1;border:2px solid transparent;border-radius:13px;padding:0;background:#f3f3f3;overflow:hidden;cursor:pointer}
.avatar-grid .retro-avatar{font-size:34px}

.room-menu-panel{z-index:900!important}
.group-call-top{
  padding-top:max(14px,env(safe-area-inset-top))!important;
  min-height:52px;box-sizing:border-box
}

/* Never animate or transition video geometry. */
.group-call-video-area.stable,.group-call-video-area.stable *{animation:none!important}
.group-call-video-area.stable .group-call-tile{transition:none!important;contain:layout paint}
.group-call-video-area.stable video{
  transition:none!important;animation:none!important;will-change:auto!important;
  backface-visibility:hidden;transform:translateZ(0)
}

@media(max-width:680px){
  .call-float-card{
    left:7px!important;right:7px!important;
    top:calc(env(safe-area-inset-top) + 55px)!important;
    height:46px!important;min-height:46px!important;max-height:46px!important;
    padding:4px 7px!important
  }
  .call-float-avatar{width:32px!important;height:32px!important;min-width:32px!important}
  .call-float-icon{width:29px!important;height:29px!important;min-width:29px!important}
  .avatar-grid{grid-template-columns:repeat(4,1fr)}
}


/* ============================================================
   V4.6 FIXED CHAT FRAME / MULTI DELETE / IMAGE VIEWER / MINI VIDEO
   ============================================================ */

html,body,#app{
  height:100%;
  max-height:100%;
  overflow:hidden!important;
  overscroll-behavior:none;
}
.room-page{
  position:fixed!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.wechat-chat-shell{
  position:fixed!important;
  inset:0!important;
  height:auto!important;
  min-height:0!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
}
.wechat-chat-header{
  position:relative!important;
  z-index:850!important;
  flex:none!important;
  transform:none!important;
}
.wechat-chat-messages{
  min-height:0!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}
.wechat-chat-compose{
  position:relative!important;
  z-index:820!important;
  flex:none!important;
  transform:none!important;
}
.wechat-room-menu{
  position:relative!important;
  z-index:900!important;
  pointer-events:auto!important;
  touch-action:manipulation!important;
}
.room-menu-panel{
  position:fixed!important;
  left:8px!important;
  top:calc(env(safe-area-inset-top) + 52px)!important;
  z-index:3000!important;
  pointer-events:auto!important;
  width:178px!important;
}
.room-menu-panel .danger{color:#e53935!important}

.call-float-card{
  z-index:1200!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  padding:4px 7px!important;
}
.call-float-avatar{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
}
.call-float-main b{font-size:12px!important}
.call-float-main span{font-size:10px!important}
.call-float-actions.compact-text{gap:4px!important}
.call-float-text{
  height:28px;
  border:0;
  border-radius:999px;
  padding:0 8px;
  font-size:10.5px;
  font-weight:700;
  cursor:pointer
}
.call-float-text.neutral{background:#ececec;color:#333}
.call-float-text.neutral.muted{background:#555;color:#fff}
.call-float-text.danger{background:#fa5151;color:#fff}
.call-float-text.accept{background:#07c160;color:#fff}

.message-selection-bar{
  position:fixed;
  z-index:2500;
  left:8px;
  right:8px;
  bottom:calc(env(safe-area-inset-bottom) + 58px);
  height:46px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-radius:10px;
  background:rgba(35,35,35,.96);
  color:#fff;
  box-shadow:0 8px 26px rgba(0,0,0,.25)
}
.message-selection-bar.hidden{display:none}
.message-selection-bar button{
  border:0;border-radius:999px;padding:7px 12px;margin-left:7px;cursor:pointer
}
.message-selection-bar button.danger{background:#fa5151;color:#fff}
.wechat-message-row.selected{
  border-radius:9px;
  background:rgba(7,193,96,.13);
  outline:2px solid rgba(7,193,96,.32);
}
.wechat-message-row.selected::after{
  content:'✓';
  align-self:center;
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:#07c160;color:#fff;font-weight:900;font-size:12px
}

.chat-image-link{
  border:0!important;
  padding:0!important;
  cursor:zoom-in!important;
}
.image-viewer{
  position:fixed;
  inset:0;
  z-index:5000;
  display:grid;
  place-items:center;
  background:rgba(0,0,0,.94);
  padding:30px 10px;
  touch-action:manipulation
}
.image-viewer.hidden{display:none}
.image-viewer img{
  max-width:96vw;
  max-height:92vh;
  object-fit:contain;
  cursor:pointer;
  user-select:none;
  -webkit-user-drag:none
}
.image-viewer-close{
  position:fixed;
  right:14px;
  top:calc(env(safe-area-inset-top) + 10px);
  z-index:5001;
  width:38px;height:38px;
  border:0;border-radius:50%;
  background:rgba(255,255,255,.17);
  color:#fff;
  font-size:30px;
  line-height:34px;
  cursor:pointer
}

.mini-video-dock{
  position:fixed;
  z-index:1100;
  right:8px;
  top:calc(env(safe-area-inset-top) + 105px);
  display:flex;
  flex-direction:row-reverse;
  gap:6px;
  max-width:calc(100vw - 16px);
  overflow-x:auto;
  pointer-events:auto
}
.mini-video-dock.hidden{display:none}
.mini-video-tile{
  position:relative;
  width:92px;
  height:70px;
  flex:0 0 92px;
  padding:0;
  border:1px solid rgba(255,255,255,.6);
  border-radius:9px;
  overflow:hidden;
  background:#222;
  box-shadow:0 5px 16px rgba(0,0,0,.28);
  cursor:pointer
}
.mini-video-tile video{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover
}
.mini-video-fallback{
  position:absolute;inset:0;display:grid;place-items:center;background:#333
}
.mini-video-fallback.hidden{display:none}
.mini-video-fallback .retro-avatar{width:38px;height:38px;border-radius:10px;font-size:22px}
.mini-video-tile>span{
  position:absolute;left:4px;bottom:3px;z-index:3;
  max-width:84px;padding:2px 4px;border-radius:5px;
  background:rgba(0,0,0,.48);color:#fff;font-size:9px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

/* 3+ participants: one full screen, all others aligned from left at the top. */
.group-call-video-area.multi-spotlight{
  display:block!important;
  position:absolute!important;
  inset:0!important;
}
.group-call-video-area.multi-spotlight .group-call-tile{
  position:absolute!important;
}
.group-call-video-area.multi-spotlight .multi-main{
  inset:0!important;
  width:100%!important;
  height:100%!important;
  z-index:1!important;
  border-radius:0!important;
}
.group-call-video-area.multi-spotlight .multi-thumb{
  top:calc(env(safe-area-inset-top) + 58px)!important;
  width:88px!important;
  height:112px!important;
  z-index:8!important;
  border-radius:9px!important;
  border:1px solid rgba(255,255,255,.4)!important;
  box-shadow:0 5px 16px rgba(0,0,0,.3)!important;
}
/* Explicit left-to-right positions for up to 6 thumbnails. */
.group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(2){left:8px!important}
.group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(3){left:102px!important}
.group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(4){left:196px!important}
.group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(5){left:290px!important}
.group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(6){left:384px!important}

.ui-modal-card h3{user-select:none}
.ui-modal-card input{font-size:16px}

@media(max-width:680px){
  .room-menu-panel{
    top:calc(env(safe-area-inset-top) + 49px)!important;
  }
  .call-float-card{
    height:42px!important;
    min-height:42px!important;
    max-height:42px!important;
  }
  .mini-video-dock{
    top:calc(env(safe-area-inset-top) + 98px);
  }
  .mini-video-tile{
    width:82px;height:62px;flex-basis:82px
  }
  .group-call-video-area.multi-spotlight .multi-thumb{
    width:76px!important;
    height:98px!important;
  }
  .group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(2){left:6px!important}
  .group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(3){left:87px!important}
  .group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(4){left:168px!important}
  .group-call-video-area.multi-spotlight .multi-thumb:nth-of-type(5){left:249px!important}
}


/* ============================================================
   V4.7 gallery / media-connect stability / camera preview
   ============================================================ */
.image-viewer{touch-action:pan-y;user-select:none}
.image-viewer-nav{position:fixed;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:58px;border:0;border-radius:12px;background:rgba(0,0,0,.38);color:#fff;font-size:42px;line-height:48px;cursor:pointer}
.image-viewer-nav.prev{left:12px}.image-viewer-nav.next{right:12px}.image-viewer-nav:disabled{opacity:.18;pointer-events:none}
.image-viewer-info{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:4;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.48);color:#fff;font-size:11px;white-space:nowrap}

.local-preview-overlay{position:fixed;inset:0;z-index:1550;background:#080909;display:grid;place-items:center;overflow:hidden}.local-preview-overlay.hidden{display:none}.local-preview-overlay video{width:100%;height:100%;object-fit:cover}.local-preview-close{position:fixed;right:14px;top:calc(14px + env(safe-area-inset-top));z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:27px;cursor:pointer}.local-preview-label{position:fixed;left:14px;top:calc(20px + env(safe-area-inset-top));z-index:3;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.45);color:#fff;font-size:12px}
.remote-sound-unlock{position:fixed;left:50%;top:calc(74px + env(safe-area-inset-top));transform:translateX(-50%);z-index:1800;border:0;border-radius:999px;background:#07c160;color:#fff;padding:8px 13px;font-size:12px;box-shadow:0 6px 18px rgba(0,0,0,.24);cursor:pointer}.remote-sound-unlock.hidden{display:none}

/* Remote video is permanently muted. Audio uses a separate <audio> element,
   so browser autoplay policy cannot black-screen the video element. */
.group-call-video-area.stable video,.mini-video-dock video{background:#101110}
@media(max-width:680px){.image-viewer-nav{width:34px;height:50px;font-size:34px}.image-viewer-nav.prev{left:5px}.image-viewer-nav.next{right:5px}}


/* ============================================================
   V5.0 ROOM LOBBY + ADMIN
   ============================================================ */

.lobby-page,.admin-page{
  margin:0;
  min-height:100dvh;
  background:
    radial-gradient(circle at 8% 0%,rgba(120,212,255,.22),transparent 27%),
    radial-gradient(circle at 92% 7%,rgba(167,130,255,.18),transparent 25%),
    linear-gradient(180deg,#f8fbff 0%,#f5f7fb 48%,#eef2f7 100%);
  color:#172033;
}
.lobby-shell,.admin-shell{
  width:min(1180px,calc(100% - 28px));
  margin:0 auto;
  padding:34px 0 56px;
}
.lobby-hero,.admin-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}
.lobby-brand-mark{
  width:58px;height:58px;border-radius:19px;
  display:grid;place-items:center;
  background:linear-gradient(145deg,#2f7cff,#745cff);
  color:#fff;font-size:24px;font-weight:900;
  box-shadow:0 12px 34px rgba(70,91,230,.28);
}
.lobby-hero h1,.admin-header h1{
  margin:0;font-size:30px;letter-spacing:-.7px;
}
.lobby-hero p,.admin-header p{
  margin:5px 0 0;color:#6b7486;font-size:14px;
}
.lobby-admin-link,.admin-back{
  margin-left:auto;
  text-decoration:none;color:#566079;
  background:rgba(255,255,255,.8);
  border:1px solid rgba(129,143,170,.2);
  border-radius:999px;padding:9px 14px;font-size:12px;font-weight:700;
  box-shadow:0 6px 24px rgba(30,50,80,.07);
}
.eyebrow{
  display:block;color:#7b89a7;font-size:10px;font-weight:850;
  letter-spacing:1.6px;margin-bottom:5px;
}
.lobby-create-card,.lobby-join-card,.lobby-public-section,
.admin-login-card,.admin-mode-card,.admin-room-card{
  background:rgba(255,255,255,.9);
  border:1px solid rgba(137,151,179,.16);
  border-radius:24px;
  box-shadow:0 16px 44px rgba(41,59,88,.08);
  backdrop-filter:blur(18px);
}
.lobby-create-card{padding:24px;margin-bottom:16px}
.lobby-section-title,.admin-card-title{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
}
.lobby-section-title h2,.admin-card-title h2,.lobby-join-card h2{
  margin:0;font-size:20px;letter-spacing:-.35px;
}
.lobby-icon-button{
  width:42px;height:42px;border:0;border-radius:13px;
  background:#f0f4fb;color:#55637c;font-size:21px;cursor:pointer;
}
.lobby-form-grid{
  margin-top:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;
}
.lobby-form-grid label{display:block}
.lobby-form-grid label>span{
  display:block;margin:0 0 7px 2px;font-size:12px;font-weight:750;color:#59657b;
}
.lobby-form-grid input,.lobby-join-row input,.admin-login-row input{
  width:100%;height:48px;box-sizing:border-box;
  border:1px solid #dce3ee;border-radius:13px;background:#fbfcff;
  padding:0 14px;font:inherit;color:#1e293b;outline:none;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.lobby-form-grid input:focus,.lobby-join-row input:focus,.admin-login-row input:focus{
  border-color:#6b7cff;background:#fff;
  box-shadow:0 0 0 4px rgba(87,103,255,.1);
}
.lobby-create-bottom{
  display:flex;align-items:center;gap:18px;justify-content:space-between;
  margin-top:18px;padding-top:18px;border-top:1px solid #edf0f5;
}
.public-switch{display:flex;align-items:center;gap:11px;cursor:pointer}
.public-switch input{position:absolute;opacity:0;pointer-events:none}
.switch-ui{
  position:relative;width:46px;height:26px;border-radius:999px;background:#cbd3df;flex:0 0 auto;
  transition:.18s;
}
.switch-ui:after{
  content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;
  background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.18);transition:.18s;
}
.public-switch input:checked+.switch-ui{background:#4f73ff}
.public-switch input:checked+.switch-ui:after{transform:translateX(20px)}
.public-switch b{display:block;font-size:13px}.public-switch small{display:block;color:#8a94a7;font-size:10px;margin-top:2px}
.lobby-primary,.lobby-join-row button,.admin-login-row button{
  border:0;border-radius:13px;background:linear-gradient(135deg,#426dff,#7458e9);
  color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(79,91,227,.24);
}
.lobby-primary{height:46px;padding:0 22px}
.lobby-error{color:#e34c58;font-size:12px;min-height:18px;margin-top:9px}
.lobby-join-card{
  padding:19px 22px;display:grid;grid-template-columns:auto minmax(280px,520px);
  align-items:center;gap:24px;margin-bottom:16px;
}
.lobby-join-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.lobby-join-row button{padding:0 18px}
.lobby-public-section{padding:23px}
.public-room-grid{
  margin-top:17px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
}
.public-room-card{
  border:1px solid #e3e8f1;border-radius:17px;background:linear-gradient(180deg,#fff,#fafcff);
  padding:17px;text-align:left;color:#1f2b41;cursor:pointer;transition:transform .14s,box-shadow .14s,border-color .14s;
}
.public-room-card:hover{
  transform:translateY(-2px);border-color:#bfcaff;box-shadow:0 12px 28px rgba(57,76,120,.12)
}
.public-room-top{display:flex;align-items:center;gap:7px}
.public-room-icon{
  width:27px;height:27px;border-radius:8px;display:grid;place-items:center;background:#edf1ff;color:#5d6cff;font-weight:900
}
.public-room-id{font-size:12px;color:#6c7890;font-weight:800}
.online-pill,.quiet-pill,.room-count-pill,.public-badge,.private-badge{
  border-radius:999px;padding:5px 8px;font-size:10px;font-weight:800
}
.online-pill{margin-left:auto;background:#e9faef;color:#21a55b}
.quiet-pill{margin-left:auto;background:#f1f3f7;color:#8a93a3}
.public-room-card h3{font-size:16px;margin:13px 0 5px}
.public-room-card p{font-size:11px;color:#8a94a7;margin:0}
.enter-room-text{display:block;margin-top:14px;font-size:11px;color:#5b6cff;font-weight:850}
.room-count-pill{background:#eef1f7;color:#68738a}
.room-empty{
  grid-column:1/-1;padding:28px;border:1px dashed #d8deea;border-radius:16px;
  color:#8a94a7;text-align:center;background:#fafbfe;font-size:13px
}

/* Admin */
.admin-header{margin-bottom:22px}
.admin-login-card{padding:24px;max-width:620px;margin:70px auto 0}
.admin-login-card h2{margin:0 0 5px}.admin-login-card p{font-size:12px;color:#818b9f}
.admin-login-row{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:16px}
.admin-login-row button{padding:0 22px}
.admin-mode-card,.admin-room-card{padding:23px;margin-bottom:16px}
.transport-mode-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:17px
}
.transport-mode-grid button{
  min-height:94px;border:1px solid #e2e7ef;border-radius:16px;background:#fbfcff;
  color:#26334a;text-align:left;padding:15px;cursor:pointer;transition:.15s
}
.transport-mode-grid button:hover{border-color:#7bdca6}
.transport-mode-grid button.active{
  border-color:#07c160;background:linear-gradient(145deg,#eafff3,#f7fffb);
  color:#078f4d;
  box-shadow:inset 0 0 0 1px rgba(7,193,96,.18),0 8px 20px rgba(7,193,96,.1)
}
.transport-mode-grid button.active span{color:#168f55}
.transport-mode-grid b{display:block;font-size:14px}
.transport-mode-grid span{display:block;font-size:10px;color:#818ca0;line-height:1.45;margin-top:6px}
.admin-mode-note{font-size:11px;color:#8a94a7;margin:12px 2px 0}
.admin-stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px
}
.admin-stats>div{
  background:rgba(255,255,255,.9);border:1px solid rgba(137,151,179,.15);
  border-radius:18px;padding:17px;box-shadow:0 10px 30px rgba(41,59,88,.06)
}
.admin-stats b{display:block;font-size:25px}.admin-stats span{font-size:11px;color:#8a94a7}
.admin-secondary{
  border:1px solid #dde3ec;background:#fff;border-radius:10px;padding:8px 13px;color:#657088;cursor:pointer
}
.admin-room-list{margin-top:15px;display:flex;flex-direction:column;gap:8px}
.admin-room-row{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;gap:8px;
  padding:12px;border:1px solid #e6eaf1;border-radius:14px;background:#fbfcfe
}
.admin-room-name{display:flex;align-items:center;gap:8px}.admin-room-name b{font-size:13px}
.admin-room-meta{font-size:10px;color:#8b95a8;margin-top:4px}
.public-badge{background:#e9faef;color:#239f5b}.private-badge{background:#fff1e7;color:#d67930}
.admin-room-open,.admin-room-clear,.admin-room-delete{
  border:0;border-radius:9px;padding:8px 10px;font-size:10px;font-weight:750;text-decoration:none;cursor:pointer
}
.admin-room-open{background:#eef1ff;color:#5668e7}
.admin-room-clear{background:#fff6dc;color:#a77919}
.admin-room-delete{background:#ffeded;color:#d34c55}

@media(max-width:850px){
  .public-room-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .transport-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-room-row{grid-template-columns:1fr auto auto}
  .admin-room-main{grid-column:1/-1}
}
@media(max-width:620px){
  .lobby-shell,.admin-shell{width:calc(100% - 20px);padding-top:18px}
  .lobby-hero,.admin-header{align-items:flex-start}
  .lobby-brand-mark{width:48px;height:48px;border-radius:15px}
  .lobby-hero h1,.admin-header h1{font-size:24px}
  .lobby-hero p,.admin-header p{font-size:11px}
  .lobby-create-card,.lobby-public-section,.admin-mode-card,.admin-room-card{padding:16px;border-radius:19px}
  .lobby-form-grid{grid-template-columns:1fr;gap:11px}
  .lobby-create-bottom{align-items:flex-end;flex-direction:column}
  .public-switch{width:100%}.lobby-primary{width:100%}
  .lobby-join-card{grid-template-columns:1fr;padding:16px;border-radius:19px;gap:12px}
  .public-room-grid{grid-template-columns:1fr}
  .transport-mode-grid{grid-template-columns:1fr 1fr;gap:8px}
  .transport-mode-grid button{min-height:82px;padding:12px}
  .admin-stats{grid-template-columns:1fr 1fr}
  .admin-room-row{grid-template-columns:repeat(3,1fr)}
  .admin-room-open,.admin-room-clear,.admin-room-delete{text-align:center}
  .lobby-admin-link,.admin-back{font-size:10px;padding:7px 10px}
}

.transport-mode-grid button:disabled{opacity:.62;cursor:wait}


/* ============================================================
   V5.1 PRIVACY / MEETING / FAMILY
   ============================================================ */

html[data-time-theme="day"]{
  color-scheme:light;
  --page-bg-1:#f8fbff;
  --page-bg-2:#eef3f8;
  --surface:rgba(255,255,255,.92);
  --surface-solid:#fff;
  --text:#182235;
  --muted-text:#77839a;
  --line:rgba(125,142,170,.16);
  --chat-bg:#ededed;
  --chat-surface:#f7f7f7;
}
html[data-time-theme="night"]{
  color-scheme:dark;
  --page-bg-1:#111722;
  --page-bg-2:#090d14;
  --surface:rgba(24,31,43,.92);
  --surface-solid:#1b2330;
  --text:#edf3ff;
  --muted-text:#95a3b9;
  --line:rgba(176,192,220,.12);
  --chat-bg:#111820;
  --chat-surface:#17202a;
}

.lobby-page,.admin-page{
  min-height:100dvh!important;
  height:auto!important;
  overflow:visible!important;
  color:var(--text)!important;
  background:
    radial-gradient(circle at 8% 0%,rgba(120,212,255,.18),transparent 27%),
    radial-gradient(circle at 92% 7%,rgba(167,130,255,.15),transparent 25%),
    linear-gradient(180deg,var(--page-bg-1),var(--page-bg-2))!important;
}
.lobby-shell,.admin-shell{min-height:110dvh}
html[data-time-theme="night"] .lobby-create-card,
html[data-time-theme="night"] .lobby-join-card,
html[data-time-theme="night"] .lobby-public-section,
html[data-time-theme="night"] .admin-login-card,
html[data-time-theme="night"] .admin-mode-card,
html[data-time-theme="night"] .admin-room-card,
html[data-time-theme="night"] .admin-call-card-settings,
html[data-time-theme="night"] .admin-stats>div{
  background:var(--surface)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
html[data-time-theme="night"] .lobby-form-grid input,
html[data-time-theme="night"] .lobby-join-row input,
html[data-time-theme="night"] .admin-login-row input,
html[data-time-theme="night"] .call-card-custom input{
  background:#111925!important;color:#eef3ff!important;border-color:#334055!important;
}
html[data-time-theme="night"] .public-room-card,
html[data-time-theme="night"] .admin-room-row,
html[data-time-theme="night"] .transport-mode-grid button,
html[data-time-theme="night"] .call-card-template-grid button{
  background:#151e2a!important;color:#edf3ff!important;border-color:#2a374a!important;
}
html[data-time-theme="night"] .public-room-card p,
html[data-time-theme="night"] .admin-room-meta,
html[data-time-theme="night"] .transport-mode-grid span,
html[data-time-theme="night"] .call-card-template-grid span{
  color:#95a3b9!important;
}

.lobby-value-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px
}
.lobby-value-card{
  display:flex;align-items:flex-start;gap:13px;padding:17px;
  border-radius:20px;border:1px solid var(--line);
  background:var(--surface);box-shadow:0 12px 32px rgba(45,62,90,.06)
}
.lobby-value-card .value-icon{
  width:42px;height:42px;display:grid;place-items:center;border-radius:13px;
  font-size:23px;font-weight:800;flex:0 0 auto
}
.lobby-value-card b{display:block;font-size:15px}
.lobby-value-card p{margin:5px 0 0;font-size:11px;line-height:1.55;color:var(--muted-text)}
.lobby-value-card.privacy .value-icon{background:#e9e8ff;color:#6459df}
.lobby-value-card.meeting .value-icon{background:#e5f2ff;color:#2775d8}
.lobby-value-card.family .value-icon{background:#fff0e7;color:#df7950}
html[data-time-theme="night"] .lobby-value-card.privacy .value-icon{background:#302c55}
html[data-time-theme="night"] .lobby-value-card.meeting .value-icon{background:#1c3858}
html[data-time-theme="night"] .lobby-value-card.family .value-icon{background:#503329}

/* Room automatic night appearance */
html[data-time-theme="night"] .room-page,
html[data-time-theme="night"] .wechat-chat-shell{background:var(--chat-bg)!important;color:#edf3ff!important}
html[data-time-theme="night"] .wechat-chat-header,
html[data-time-theme="night"] .wechat-chat-compose{background:var(--chat-surface)!important;border-color:#25303e!important}
html[data-time-theme="night"] .wechat-chat-title b,
html[data-time-theme="night"] .wechat-header-video,
html[data-time-theme="night"] .wechat-room-menu{color:#edf3ff!important}
html[data-time-theme="night"] .wechat-message-bubble{background:#202b37!important;color:#edf3ff!important}
html[data-time-theme="night"] .wechat-message-row.mine .wechat-message-bubble{background:#285e46!important}
html[data-time-theme="night"] .wechat-chat-compose textarea{background:#202b37!important;color:#fff!important}
html[data-time-theme="night"] .room-menu-panel{background:#202b37!important;color:#fff!important}
html[data-time-theme="night"] .room-menu-panel button{color:#fff!important}
html[data-time-theme="night"] .room-menu-panel button:hover{background:#2b3745!important}

/* Header: group name + room id */
.wechat-chat-title b{font-size:15px!important}
.wechat-chat-title span{margin-top:3px!important}

/* Profile modal */
.avatar-nickname-field{display:block;margin-bottom:14px}
.avatar-nickname-field.hidden{display:none}
.avatar-nickname-field span{display:block;font-size:11px;color:#7f8999;margin:0 0 6px 2px}
.avatar-nickname-field input{
  width:100%;height:40px;border:1px solid #d9e0ea;border-radius:9px;
  padding:0 10px;background:#fff;color:#111;outline:none
}
.avatar-grid button.selected{border-color:#5b6cff!important;box-shadow:0 0 0 3px rgba(91,108,255,.12)}
.avatar-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}
.avatar-modal-actions button{height:40px;border:0;border-radius:8px;background:#07c160;color:#fff;font-weight:700;cursor:pointer}
.avatar-modal-actions button.secondary{background:#eee;color:#333}

/* Larger incoming/outgoing card */
.call-float-card{
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  padding:9px 12px!important;
  border-radius:16px!important;
  background:var(--card-background,#fff)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.18)!important;
}
.call-float-avatar{width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important}
.call-float-main{gap:1px!important}
.call-float-main em{
  display:block;font-style:normal;font-size:9px;line-height:11px;
  letter-spacing:1px;font-weight:850;text-transform:uppercase;color:var(--card-accent,#5b6cff)
}
.call-float-main b{font-size:14px!important;line-height:18px!important}
.call-float-main span{font-size:11px!important;line-height:14px!important;margin-top:1px!important}
.call-float-text{min-width:44px!important;height:34px!important;font-size:11px!important}
.call-float-icon{width:36px!important;height:36px!important;min-width:36px!important}
.call-float-card.card-template-privacy{
  --card-background:#171d26!important;color:#f5f7fb!important;
  --card-accent:#9187ff!important
}
.call-float-card.card-template-privacy .call-float-main span{color:#aeb7c7!important}
.call-float-card.card-template-meeting{
  --card-background:#f5f9ff!important;color:#17233a!important;
  --card-accent:#3977e8!important;border:1px solid #d6e3fa!important
}
.call-float-card.card-template-family{
  --card-background:#fff6f0!important;color:#3a2821!important;
  --card-accent:#e67957!important;border:1px solid #f4d8c9!important
}
.call-float-card.card-template-custom{
  background:var(--card-background)!important;
  border:2px solid color-mix(in srgb,var(--card-accent) 55%,transparent)!important
}
html[data-time-theme="night"] .call-float-card.card-template-meeting{--card-background:#172438!important;color:#eef5ff!important;border-color:#29466b!important}
html[data-time-theme="night"] .call-float-card.card-template-family{--card-background:#35241f!important;color:#fff3ed!important;border-color:#624038!important}

/* Admin call-card setup */
.admin-call-card-settings{
  background:var(--surface);border:1px solid var(--line);border-radius:24px;
  box-shadow:0 16px 44px rgba(41,59,88,.08);padding:23px;margin-bottom:16px
}
.call-card-template-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:17px
}
.call-card-template-grid button{
  border:1px solid #e2e7ef;border-radius:15px;background:#fbfcff;color:#26334a;
  text-align:left;min-height:76px;padding:13px;cursor:pointer
}
.call-card-template-grid button.active{
  border-color:#5e72ff;box-shadow:0 0 0 3px rgba(94,114,255,.1)
}
.call-card-template-grid b{display:block;font-size:13px}
.call-card-template-grid span{display:block;font-size:10px;color:#818ca0;line-height:1.4;margin-top:5px}
.call-card-custom{
  display:grid;grid-template-columns:auto auto minmax(160px,1fr) auto;
  gap:10px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)
}
.call-card-custom label>span{display:block;font-size:10px;color:var(--muted-text);margin-bottom:5px}
.call-card-custom input[type="color"]{width:58px;height:38px;border:1px solid #dce3ee;border-radius:9px;padding:3px;background:#fff}
.call-card-custom input:not([type="color"]){width:100%;height:38px;border:1px solid #dce3ee;border-radius:9px;padding:0 9px}
.call-card-custom button{height:38px;border:0;border-radius:9px;background:#596dff;color:#fff;padding:0 13px;font-weight:750;cursor:pointer}

/* Local preview: once opened it stays until user taps X. */
.local-preview-overlay{z-index:3000!important}
.local-preview-overlay:not(.hidden){display:grid!important}

/* Lobby guaranteed vertical scroll */
body:has(.lobby-page),body:has(.admin-page){overflow-y:auto!important;height:auto!important}
html:has(.lobby-page),html:has(.admin-page){overflow-y:auto!important;height:auto!important}

@media(max-width:760px){
  .lobby-value-grid{grid-template-columns:1fr}
  .call-card-template-grid{grid-template-columns:1fr 1fr}
  .call-card-custom{grid-template-columns:1fr 1fr}
  .call-card-custom .grow{grid-column:1/-1}
  .call-card-custom button{grid-column:1/-1}
  .call-float-card{
    top:calc(env(safe-area-inset-top) + 56px)!important;
    height:70px!important;min-height:70px!important;max-height:70px!important;
    padding:7px 9px!important
  }
  .call-float-avatar{width:48px!important;height:48px!important;min-width:48px!important}
}


/* ============================================================
   V5.2 ROOM PROFILE / MOBILE LOBBY SCROLL / PERSONAL THEME
   ============================================================ */

/* V4.6 globally locked html/body/#app with overflow:hidden!important.
   Use a root class rather than :has(), because some Android browsers
   still handle :has() inconsistently in scrolling/viewport cases. */
html.allow-page-scroll{
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
}
html.allow-page-scroll body{
  height:auto!important;
  min-height:100%!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:visible!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  position:static!important;
}
html.allow-page-scroll body #app{
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  position:static!important;
  touch-action:pan-y!important;
}
html.allow-page-scroll .lobby-page,
html.allow-page-scroll .admin-page{
  height:auto!important;
  min-height:100dvh!important;
  max-height:none!important;
  overflow:visible!important;
  position:static!important;
  touch-action:pan-y!important;
}
html.allow-page-scroll .lobby-shell,
html.allow-page-scroll .admin-shell{
  height:auto!important;
  min-height:calc(100dvh + 1px)!important;
  overflow:visible!important;
  padding-bottom:90px!important;
}

/* V5.2 removes the three V5.1 promo tiles. */
.lobby-value-grid{display:none!important}

/* Cleaner lobby closer to the earlier simple layout. */
.lobby-shell{width:min(1040px,calc(100% - 24px))!important}
.lobby-hero{padding:8px 4px 4px!important;margin-bottom:16px!important}
.lobby-create-card{padding:22px!important}
.lobby-public-section{margin-bottom:24px}
@media(max-width:620px){
  .lobby-shell{width:calc(100% - 16px)!important;padding-top:13px!important}
  .lobby-create-card,.lobby-join-card,.lobby-public-section{border-radius:17px!important}
}

/* Personal appearance: default is always bright. */
html[data-theme-mode="light"]{color-scheme:light!important}

/* Original bright incoming call card becomes the default again. */
.call-float-card.card-template-classic{
  --card-background:#ffffff!important;
  --card-accent:#07c160!important;
  color:#111!important;
  border:0!important;
}
.call-float-card.card-template-classic .call-float-main span{color:#888!important}
html[data-time-theme="night"] .call-float-card.card-template-classic{
  --card-background:#ffffff!important;
  --card-accent:#07c160!important;
  color:#111!important;
}
html[data-time-theme="night"] .call-float-card.card-template-classic .call-float-main span{color:#888!important}

/* Three-dot button opens this full room-profile sheet directly. */
.room-profile-modal{z-index:2400!important}
.room-profile-modal .room-profile-card{
  width:min(430px,94vw)!important;
  max-height:min(760px,88dvh)!important;
  overflow-y:auto!important;
  padding:0!important;
  border-radius:20px!important;
  background:#fff!important;
  color:#182235!important;
}
.room-profile-head{
  position:sticky;top:0;z-index:2;
  display:flex;align-items:center;justify-content:space-between;
  padding:17px 18px 13px;background:rgba(255,255,255,.96);
  border-bottom:1px solid #edf0f5;backdrop-filter:blur(14px);
}
.room-profile-head h3{margin:0;font-size:19px}
.room-profile-close{
  width:34px;height:34px;border:0;border-radius:50%;background:#f2f4f7;
  color:#424c5f;font-size:24px;line-height:1;cursor:pointer
}
.room-profile-section{padding:15px 18px;border-bottom:1px solid #edf0f5}
.room-profile-field{display:block;margin-bottom:14px}
.room-profile-field:last-child{margin-bottom:0}
.room-profile-field>span,.room-profile-label{
  display:block;font-size:11px;font-weight:800;color:#657188;margin:0 0 7px 2px
}
.room-profile-line{display:grid;grid-template-columns:1fr auto;gap:8px}
.room-profile-line input,.room-admin-setup input,.room-admin-verify input{
  min-width:0;width:100%;height:42px;border:1px solid #dbe2ec;border-radius:10px;
  background:#fbfcff;color:#182235;padding:0 11px;outline:none
}
.room-profile-line input:focus,.room-admin-setup input:focus,.room-admin-verify input:focus{
  border-color:#7182ff;box-shadow:0 0 0 3px rgba(93,112,255,.09)
}
.room-profile-line button,.room-admin-setup button,.room-admin-verify button{
  height:42px;border:0;border-radius:10px;background:#596dff;color:#fff;
  padding:0 13px;font-weight:750;cursor:pointer
}
.room-profile-field small,.room-profile-section>small{
  display:block;margin:6px 2px 0;color:#939dad;font-size:10px;line-height:1.45
}
.room-profile-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.room-profile-section-title b{font-size:13px}
.profile-status-pill{
  padding:5px 8px;border-radius:999px;background:#f0f2f6;color:#768195;
  font-size:9px;font-weight:850
}
.profile-status-pill.ok{background:#e8faef;color:#20a35a}
.profile-status-pill.protected{background:#eef1ff;color:#5668dc}
.room-admin-setup,.room-admin-verify{display:grid;grid-template-columns:1fr auto;gap:8px}
.room-admin-setup.hidden,.room-admin-verify.hidden{display:none!important}
.personal-theme-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.personal-theme-modes button{
  height:40px;border:1px solid #dfe5ee;border-radius:10px;background:#f8f9fc;
  color:#59657a;cursor:pointer;font-weight:700;font-size:11px
}
.personal-theme-modes button.active{
  background:#eef1ff;border-color:#7182ff;color:#4f61e7;
  box-shadow:0 0 0 2px rgba(93,112,255,.08)
}
.room-profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:15px 18px 18px}
.room-profile-actions button{
  height:42px;border:0;border-radius:10px;background:#eef1f6;color:#4b566b;
  font-weight:750;cursor:pointer
}
.room-profile-actions button.danger{background:#ffeded;color:#d34c55}

html[data-time-theme="night"] .room-profile-card{background:#1b2430!important;color:#eff4ff!important}
html[data-time-theme="night"] .room-profile-head{
  background:rgba(27,36,48,.97)!important;border-color:#2c3949!important
}
html[data-time-theme="night"] .room-profile-section{border-color:#2c3949!important}
html[data-time-theme="night"] .room-profile-line input,
html[data-time-theme="night"] .room-admin-setup input,
html[data-time-theme="night"] .room-admin-verify input{
  background:#141c27!important;color:#fff!important;border-color:#344154!important
}
html[data-time-theme="night"] .personal-theme-modes button{
  background:#141c27;color:#aab5c8;border-color:#344154
}
html[data-time-theme="night"] .personal-theme-modes button.active{
  background:#283459;color:#dbe1ff;border-color:#7182ff
}

/* Nickname editor gets a one-click random cute name button. */
.nickname-edit-row{display:grid;grid-template-columns:1fr auto;gap:7px}
.nickname-edit-row input{min-width:0}
.nickname-edit-row button{
  border:0;border-radius:9px;background:#eef1ff;color:#5668df;
  padding:0 12px;font-size:11px;font-weight:750;cursor:pointer
}

/* Larger original retro-chat-inspired avatar set. */
.avatar-grid{grid-template-columns:repeat(5,1fr)!important}
@media(max-width:430px){.avatar-grid{grid-template-columns:repeat(4,1fr)!important}}

@media(min-width:621px){
  .lobby-form-grid label:last-child{grid-column:1/-1}
}


/* ============================================================
   V5.3 HOMEPAGE / ADMIN LOGIN / PERSONAL DEPTH
   ============================================================ */

html{
  --personal-depth:var(--theme-depth, .18);
}

/* User-controlled shallow -> deep appearance. */
html[data-time-theme="day"] .room-page,
html[data-time-theme="day"] .wechat-chat-shell{
  background:color-mix(in srgb,#ededed calc(100% - (var(--personal-depth) * 12%)),#cad1dc calc(var(--personal-depth) * 12%))!important;
}
html[data-time-theme="day"] .wechat-chat-header,
html[data-time-theme="day"] .wechat-chat-compose{
  background:color-mix(in srgb,#f7f7f7 calc(100% - (var(--personal-depth) * 10%)),#d8dee7 calc(var(--personal-depth) * 10%))!important;
}
html[data-time-theme="night"] .room-page,
html[data-time-theme="night"] .wechat-chat-shell{
  background:color-mix(in srgb,#111820 calc(100% - (var(--personal-depth) * 18%)),#000 calc(var(--personal-depth) * 18%))!important;
}
html[data-time-theme="night"] .wechat-chat-header,
html[data-time-theme="night"] .wechat-chat-compose{
  background:color-mix(in srgb,#17202a calc(100% - (var(--personal-depth) * 16%)),#05070a calc(var(--personal-depth) * 16%))!important;
}

.theme-depth-row{margin-top:14px;padding-top:12px;border-top:1px solid #edf0f5}
.theme-depth-row>div{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.theme-depth-row b{font-size:11px;color:#657188}
.theme-depth-row span{font-size:10px;color:#8390a5}
.theme-depth-row input[type="range"]{width:100%;accent-color:#5d70ff}

/* Home: richer intro, create is placed last by default. */
.lobby-topbar{
  display:flex;align-items:center;justify-content:space-between;padding:7px 3px 15px
}
.lobby-logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.lobby-logo>span{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:linear-gradient(145deg,#3978ff,#7358e9);color:#fff;font-size:19px;font-weight:900;
  box-shadow:0 9px 24px rgba(67,81,220,.24)
}
.lobby-logo b{display:block;font-size:17px}.lobby-logo small{display:block;color:#8a94a7;font-size:9px;margin-top:2px}
.home-sections{display:flex;flex-direction:column;gap:14px}
.home-trust-strip{
  width:100%;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:12px 0 22px;
  padding:0 2px;
}
.home-trust-strip>div{
  min-width:0;
  padding:14px 15px;
  border:1px solid rgba(22,29,43,.08);
  border-radius:8px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 6px 18px rgba(24,32,48,.05);
}
.home-trust-strip b{
  display:block;
  font-size:13px;
  color:#182234;
  margin-bottom:5px;
}
.home-trust-strip span{
  display:block;
  font-size:11px;
  line-height:1.55;
  color:#697386;
}
.home-hero-card{
  min-height:245px;padding:28px;border-radius:26px;display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:24px;align-items:center;
  overflow:hidden;position:relative;
  background:linear-gradient(135deg,#ffffff,#f1f5ff);
  border:1px solid rgba(124,142,175,.14);
  box-shadow:0 16px 46px rgba(41,59,88,.08)
}
.home-kicker{font-size:9px;font-weight:900;letter-spacing:1.8px;color:#6676de}
.home-hero-copy h1{font-size:34px;line-height:1.15;letter-spacing:-1.1px;margin:9px 0 11px;max-width:650px}
.home-hero-copy p{font-size:13px;line-height:1.7;color:#748096;max-width:630px;margin:0}
.home-hero-pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:18px}
.home-hero-pills span{
  padding:7px 10px;border-radius:999px;background:#eef2ff;color:#5a68cb;font-size:9px;font-weight:800
}
.home-hero-art{position:relative;height:190px}
.mock-chat-card{
  position:absolute;width:190px;height:88px;border-radius:18px;background:rgba(255,255,255,.9);
  border:1px solid #e3e8f3;box-shadow:0 18px 35px rgba(44,62,103,.12);padding:15px
}
.mock-chat-card.one{right:14px;top:13px;transform:rotate(4deg)}
.mock-chat-card.two{left:5px;bottom:8px;transform:rotate(-5deg)}
.mock-chat-card i{display:block;width:30px;height:30px;border-radius:10px;background:#9bb8ff;float:left;margin-right:9px}
.mock-chat-card b,.mock-chat-card em{display:block;height:7px;border-radius:999px;background:#dce4f3;margin-top:5px}
.mock-chat-card b{width:72%}.mock-chat-card em{width:49%}
.mock-video-dot{
  position:absolute;right:4px;bottom:17px;width:45px;height:45px;border-radius:50%;
  display:grid;place-items:center;background:#07c160;color:#fff;font-size:16px;
  box-shadow:0 10px 26px rgba(7,193,96,.3)
}
.home-feature-section{display:grid;grid-template-columns:repeat(3,1fr);gap:11px}
.home-feature-section article{
  padding:18px;border-radius:18px;background:rgba(255,255,255,.9);
  border:1px solid rgba(135,150,178,.14);box-shadow:0 9px 26px rgba(45,60,88,.05)
}
.home-feature-section article>span{font-size:10px;color:#6d79d6;font-weight:900}
.home-feature-section b{display:block;font-size:14px;margin-top:8px}
.home-feature-section p{font-size:10px;color:#8993a5;line-height:1.6;margin:6px 0 0}
.lobby-join-card p{font-size:10px;color:#8b95a8;margin:5px 0 0}

/* Four selectable home visual templates. */
.home-template-aurora .home-hero-card{
  background:
    radial-gradient(circle at 86% 18%,rgba(108,86,255,.32),transparent 34%),
    radial-gradient(circle at 10% 90%,rgba(68,181,255,.27),transparent 35%),
    linear-gradient(135deg,#f9fbff,#edf1ff);
}
.home-template-warm .home-hero-card{
  background:linear-gradient(135deg,#fffaf5,#fff0e7);
}
.home-template-warm .home-kicker,.home-template-warm .home-feature-section article>span{color:#d77952}
.home-template-warm .home-hero-pills span{background:#fff0e7;color:#bd6748}
.home-template-minimal .home-hero-art{display:none}
.home-template-minimal .home-hero-card{grid-template-columns:1fr;min-height:190px;background:#fff}
.home-template-minimal .home-hero-copy h1{max-width:760px}

/* Admin login is the only content before authentication. */
.admin-login-only{
  width:min(520px,calc(100% - 24px));min-height:100dvh;margin:0 auto;
  display:flex;flex-direction:column;justify-content:center;padding:28px 0;box-sizing:border-box
}
.admin-login-brand{display:flex;align-items:center;gap:10px;justify-content:center;margin-bottom:15px}
.admin-login-brand>span{
  width:45px;height:45px;border-radius:14px;background:linear-gradient(145deg,#3978ff,#7358e9);
  color:#fff;display:grid;place-items:center;font-size:19px;font-weight:900
}
.admin-login-brand b{display:block}.admin-login-brand small{display:block;font-size:9px;color:#8d96a7}
.admin-login-focus{margin:0!important;max-width:none!important;padding:25px!important}
.admin-login-focus h1{margin:3px 0 6px;font-size:24px}
.admin-login-home{display:block;text-align:center;margin-top:15px;font-size:11px;color:#748097;text-decoration:none}

.admin-home-settings,.admin-ringtone-settings{
  background:var(--surface);border:1px solid var(--line);border-radius:24px;
  box-shadow:0 16px 44px rgba(41,59,88,.08);padding:23px;margin-bottom:16px
}
.home-template-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:16px}
.home-template-grid button,.ringtone-grid button{
  border:1px solid #e1e6ee;border-radius:14px;background:#fbfcff;text-align:left;
  min-height:72px;padding:12px;color:#26334a;cursor:pointer
}
.home-template-grid button.active,.ringtone-grid button.active{
  border-color:#6174ff;background:#eef1ff;box-shadow:0 0 0 2px rgba(97,116,255,.08)
}
.home-template-grid b,.ringtone-grid b{display:block;font-size:12px}
.home-template-grid span,.ringtone-grid span{display:block;font-size:9px;color:#8490a4;line-height:1.45;margin-top:5px}
.home-order-wrap{margin-top:15px;padding-top:13px;border-top:1px solid var(--line)}
.home-order-wrap>b{font-size:12px}
.home-order-list{display:flex;flex-direction:column;gap:6px;margin-top:9px}
.home-order-row{
  display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;align-items:center;gap:8px;
  padding:9px 10px;border:1px solid #e6eaf1;border-radius:11px;background:#fafbfe
}
.home-order-index{width:24px;height:24px;border-radius:7px;background:#eef1ff;color:#5968df;display:grid;place-items:center;font-size:10px;font-weight:850}
.home-order-row b{font-size:11px}.home-order-row em{font-size:9px;color:#8b95a7;font-style:normal}
.home-order-row>div{display:flex;gap:4px}
.home-order-row button{width:30px;height:28px;border:0;border-radius:7px;background:#edf0f5;color:#5d687a;cursor:pointer}
.home-order-row button:disabled{opacity:.35}
.ringtone-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:16px}
.admin-tone-toggle{display:inline-flex;align-items:center;gap:7px;color:#607088;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.admin-tone-toggle input{width:16px;height:16px;accent-color:#2879d4;cursor:pointer}

/* Removed room-admin section leaves the profile sheet shorter. */
.room-profile-card .room-profile-section-title,
.room-admin-setup,.room-admin-verify{display:none!important}

/* Outgoing call uses the same text controls as incoming. */
.call-float-card.outgoing .call-float-actions.compact-text{gap:6px}

/* Night versions for new admin/home cards. */
html[data-time-theme="night"] .home-hero-card,
html[data-time-theme="night"] .home-feature-section article,
html[data-time-theme="night"] .admin-home-settings,
html[data-time-theme="night"] .admin-ringtone-settings{
  background:#151e2a!important;color:#edf3ff!important;border-color:#2a374a!important
}
html[data-time-theme="night"] .home-hero-copy p,
html[data-time-theme="night"] .home-feature-section p{color:#98a4b7!important}
html[data-time-theme="night"] .home-template-grid button,
html[data-time-theme="night"] .ringtone-grid button,
html[data-time-theme="night"] .home-order-row{
  background:#111925!important;color:#eef3ff!important;border-color:#2d394b!important
}

@media(max-width:760px){
  .home-hero-card{grid-template-columns:1fr;padding:20px;min-height:0}
  .home-hero-copy h1{font-size:27px}
  .home-hero-art{height:145px}
  .home-feature-section{grid-template-columns:1fr}
  .home-template-grid,.ringtone-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:430px){
  .home-template-grid,.ringtone-grid{grid-template-columns:1fr}
  .home-order-row{grid-template-columns:27px minmax(0,1fr) auto}
  .home-order-row em{display:none}
}


/* ============================================================
   V5.4 PROFILE / JOINED ROOMS / HUMAN VIDEO HERO / ADMIN FIX
   ============================================================ */

/* Homepage top visual is intentionally shorter than V5.3. */
.compact-human-hero{
  min-height:174px!important;
  max-height:none!important;
  padding:20px 22px!important;
  grid-template-columns:minmax(0,1fr) 260px!important;
  gap:20px!important;
}
.compact-human-hero .home-hero-copy h1{
  font-size:29px!important;
  margin:7px 0 8px!important;
}
.compact-human-hero .home-hero-copy p{
  font-size:12px!important;
  line-height:1.6!important;
}
.compact-human-hero .home-hero-pills{margin-top:12px!important}
.human-video-demo{
  height:150px;position:relative;border-radius:18px;overflow:hidden;background:#dfe5ef;
  box-shadow:0 13px 30px rgba(39,55,84,.16)
}
.human-video-demo>img{
  width:100%;height:100%;object-fit:cover;object-position:center 31%;display:block
}
.human-video-demo:after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(9,16,28,.52));
  pointer-events:none
}
.human-video-live{
  position:absolute;left:9px;top:9px;z-index:2;border-radius:999px;
  background:rgba(15,21,31,.72);backdrop-filter:blur(8px);color:#fff;
  padding:5px 8px;font-size:9px;font-weight:800
}
.human-video-live i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#24dc7a;margin-right:5px}
.human-video-mini{
  position:absolute;left:11px;right:11px;bottom:9px;z-index:2;color:#fff;
  display:flex;align-items:center;justify-content:space-between;gap:10px
}
.human-video-mini span{font-size:9px;opacity:.8}.human-video-mini b{font-size:10px}

.lobby-logo small{
  max-width:620px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}

/* Joined rooms + yellow star. */
.public-room-card{position:relative}
.room-star{
  position:absolute;right:11px;top:11px;z-index:3;width:29px;height:29px;
  border:0;border-radius:9px;background:#f0f2f5;color:#b7beca;
  font-size:18px;line-height:29px;text-align:center;cursor:pointer
}
.room-star.active{background:#fff5c7;color:#f5b900}
.joined-room-card{cursor:pointer}
.joined-room-card .public-room-top{padding-right:34px}
.private-lobby-room .public-room-icon{background:#fff5df;color:#d49b23}
.private-lobby-room .public-room-id{color:#a98437}

/* Admin login brand starts near the top, not vertically too low. */
.admin-login-only.top-aligned{
  justify-content:flex-start!important;
  padding-top:clamp(28px,7vh,70px)!important
}
.admin-login-brand{margin-top:0!important}
.admin-runtime-info{
  margin-top:7px;text-align:center;color:#8b95a7;font-size:9px
}
.compact-admin-header{margin-top:0!important}

/* Admin editable homepage copy. */
.admin-home-copy-grid{
  display:grid;grid-template-columns:1fr 1fr auto;gap:9px;
  margin-top:16px;padding-bottom:14px;border-bottom:1px solid var(--line)
}
.admin-home-copy-grid label{display:block}
.admin-home-copy-grid label.wide{grid-column:1/3}
.admin-home-copy-grid label>span{
  display:block;font-size:10px;color:#7d899e;margin:0 0 5px 2px
}
.admin-home-copy-grid input{
  width:100%;height:39px;box-sizing:border-box;border:1px solid #dfe5ee;
  border-radius:9px;padding:0 10px;background:#fbfcff;color:#243047
}
.admin-home-copy-grid button{
  align-self:end;height:39px;border:0;border-radius:9px;background:#586cff;color:#fff;
  padding:0 14px;font-weight:800;cursor:pointer
}

/* Profile editor. */
.profile-editor-card{
  width:min(470px,94vw)!important;max-height:88dvh!important;overflow-y:auto!important;
  padding:0!important;border-radius:21px!important;background:#fff!important;color:#172033!important
}
.profile-editor-head{
  position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;
  padding:17px 18px 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);
  border-bottom:1px solid #edf0f4
}
.profile-editor-head h3{margin:0;font-size:19px}
.profile-editor-close{
  width:34px;height:34px;border:0;border-radius:50%;background:#f0f2f5;color:#4b5668;
  font-size:24px;line-height:1;cursor:pointer
}
.profile-self-fields{padding:17px 18px 5px}
.profile-self-fields.hidden{display:none!important}
.profile-main-row{display:grid;grid-template-columns:82px minmax(0,1fr);gap:15px;align-items:start}
.profile-avatar-preview{
  width:82px;height:82px;border-radius:22px;overflow:hidden;
  box-shadow:0 8px 22px rgba(36,54,85,.13)
}
.profile-avatar-preview .retro-avatar{width:82px!important;height:82px!important;border-radius:22px!important;font-size:35px!important}
.profile-main-fields label{display:block;margin-bottom:10px}
.profile-main-fields label>span,.profile-phone-field>span,.profile-avatar-section>span{
  display:block;font-size:10px;font-weight:800;color:#69758b;margin:0 0 6px 2px
}
.profile-main-fields input,.profile-phone-field input{
  width:100%;height:40px;box-sizing:border-box;border:1px solid #dce3ec;border-radius:9px;
  padding:0 10px;background:#fbfcff;color:#1d283b;outline:none
}
.profile-gender-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 2px;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4
}
.profile-gender-row>span{font-size:10px;font-weight:800;color:#69758b}
.profile-gender-row>div{display:flex;gap:13px}
.profile-gender-row label{font-size:11px;color:#4c586d}
.profile-phone-field{display:block;padding:12px 0}
.profile-phone-field>div{display:grid;grid-template-columns:1fr auto;gap:8px}
.profile-phone-field button{
  height:40px;border:0;border-radius:9px;background:#edf1ff;color:#5466de;
  padding:0 14px;font-weight:800;cursor:pointer
}
.profile-phone-field small{
  display:block;margin-top:6px;color:#98a1af;font-size:9px;line-height:1.45
}
.profile-avatar-section{padding:6px 18px 12px;border-top:1px solid #edf0f4}
.profile-editor-card .avatar-grid{grid-template-columns:repeat(6,1fr)!important}
.profile-editor-card .avatar-modal-actions{
  position:sticky;bottom:0;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);
  padding:10px 18px 17px;margin:0!important;border-top:1px solid #edf0f4;
  display:block!important
}
.profile-editor-card .avatar-modal-actions button{width:100%}

/* Personal depth: reliable percentage mixing. */
html[data-time-theme="day"] .room-page,
html[data-time-theme="day"] .wechat-chat-shell{
  background:color-mix(in srgb,#ededed calc(100% - var(--theme-depth-mix,10%)),#bbc2cd var(--theme-depth-mix,10%))!important;
}
html[data-time-theme="day"] .wechat-chat-header,
html[data-time-theme="day"] .wechat-chat-compose{
  background:color-mix(in srgb,#f7f7f7 calc(100% - var(--theme-depth-mix,10%)),#ccd2dc var(--theme-depth-mix,10%))!important;
}
html[data-time-theme="night"] .room-page,
html[data-time-theme="night"] .wechat-chat-shell{
  background:color-mix(in srgb,#111820 calc(100% - var(--theme-depth-mix,10%)),#000 var(--theme-depth-mix,10%))!important;
}
html[data-time-theme="night"] .wechat-chat-header,
html[data-time-theme="night"] .wechat-chat-compose{
  background:color-mix(in srgb,#17202a calc(100% - var(--theme-depth-mix,10%)),#05070a var(--theme-depth-mix,10%))!important;
}

html[data-time-theme="night"] .profile-editor-card{
  background:#1b2430!important;color:#f0f5ff!important
}
html[data-time-theme="night"] .profile-editor-head,
html[data-time-theme="night"] .profile-editor-card .avatar-modal-actions{
  background:rgba(27,36,48,.97)!important;border-color:#2d3949!important
}
html[data-time-theme="night"] .profile-main-fields input,
html[data-time-theme="night"] .profile-phone-field input,
html[data-time-theme="night"] .admin-home-copy-grid input{
  background:#121a25!important;color:#fff!important;border-color:#334154!important
}
html[data-time-theme="night"] .profile-gender-row,
html[data-time-theme="night"] .profile-avatar-section{border-color:#2d3949!important}

@media(max-width:700px){
  .compact-human-hero{
    grid-template-columns:minmax(0,1fr) 145px!important;
    min-height:145px!important;padding:16px!important;gap:12px!important
  }
  .compact-human-hero .home-hero-copy h1{font-size:23px!important}
  .compact-human-hero .home-hero-copy p{font-size:10px!important}
  .compact-human-hero .home-hero-pills span:nth-child(3){display:none}
  .human-video-demo{height:132px;border-radius:15px}
  .human-video-mini{display:none}
  .admin-home-copy-grid{grid-template-columns:1fr}
  .admin-home-copy-grid label.wide{grid-column:auto}
  .admin-home-copy-grid button{width:100%}
}
@media(max-width:430px){
  .profile-editor-card .avatar-grid{grid-template-columns:repeat(4,1fr)!important}
  .profile-main-row{grid-template-columns:72px minmax(0,1fr)}
  .profile-avatar-preview,.profile-avatar-preview .retro-avatar{width:72px!important;height:72px!important}
}


/* ============================================================
   PROFILE / AVATAR / PRODUCT UX BASE
   ============================================================ */

/* Product spacing: denser, calmer vertical rhythm. */
.home-sections{gap:9px!important}
.lobby-public-section,.lobby-join-card,.lobby-create-card{margin-bottom:0!important}
.public-room-grid{gap:8px!important}
.public-room-card{padding:15px 15px 14px!important;border-radius:15px!important}
.public-room-card h3{margin:11px 0 4px!important}
.public-room-card p{line-height:1.45}
.lobby-public-section{padding:19px!important}
.lobby-join-card{padding:16px 19px!important}
.lobby-create-card{padding:19px!important}

/* Star never covers online/quiet status. */
.room-star{
  top:auto!important;
  right:10px!important;
  bottom:9px!important;
  width:30px!important;
  height:30px!important;
  border-radius:10px!important;
  background:rgba(244,246,249,.96)!important;
  color:#b8c0cc!important;
  font-size:17px!important;
  box-shadow:0 3px 10px rgba(38,53,80,.07);
  transition:transform .12s,background .12s,color .12s!important;
}
.room-star:hover{transform:translateY(-1px)}
.room-star.active{
  background:#fff4c8!important;
  color:#f0ae00!important;
  box-shadow:0 4px 12px rgba(240,174,0,.14)!important
}
.public-room-card .enter-room-text{padding-right:35px}
.joined-room-card .public-room-top{padding-right:0!important}

/* Hero is a compact privacy-first product card. */
.compact-human-hero{
  min-height:158px!important;
  padding:17px 19px!important;
}
.compact-human-hero .home-hero-copy h1{
  font-size:27px!important;
  max-width:720px!important;
}
.compact-human-hero .home-hero-copy p{
  max-width:720px!important;
}
.human-video-demo{height:137px!important}
.home-hero-pills span{
  padding:6px 9px!important;
  background:#eef2ff!important;
  color:#5968d7!important;
}

/* Custom mode is direct and reliable; the slider controls these variables. */
.theme-depth-row input:disabled{opacity:.38;cursor:not-allowed}
.personal-theme-modes button.active{
  transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(70,87,185,.09)!important
}

/* Room privacy setting. */
.room-setting-line{display:flex;align-items:center;justify-content:space-between;gap:16px}
.room-setting-line>div{min-width:0}
.room-setting-line b{display:block;font-size:12px;color:#374154}
.room-setting-line small{display:block;font-size:9px;line-height:1.5;color:#929baa;margin-top:4px}
.mini-switch{display:block;flex:0 0 auto}
.mini-switch input{position:absolute;opacity:0;pointer-events:none}
.mini-switch span{
  display:block;width:42px;height:24px;border-radius:999px;background:#d3d9e2;position:relative;transition:.16s
}
.mini-switch span:after{
  content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.16);transition:.16s
}
.mini-switch input:checked+span{background:#566cff}
.mini-switch input:checked+span:after{transform:translateX(18px)}

/* Refined profile: avatar is a single button; choices appear only after tap. */
.refined-profile-card{width:min(445px,94vw)!important}
.refined-profile-top{
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr)!important;
  gap:15px!important;
  align-items:start!important
}
.profile-avatar-button{
  border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer
}
.profile-avatar-button>span{
  font-size:9px;color:#748197;white-space:nowrap
}
.profile-avatar-preview{
  width:78px!important;height:78px!important;border-radius:22px!important;overflow:hidden;
  background:#edf1f6;box-shadow:0 7px 20px rgba(43,57,85,.11)
}
.profile-avatar-preview .retro-avatar{
  width:78px!important;height:78px!important;border-radius:22px!important;font-size:32px!important
}
.retro-avatar.custom-avatar{padding:0!important;overflow:hidden!important;background:#e7ebf1!important}
.retro-avatar.custom-avatar img{width:100%;height:100%;object-fit:cover;display:block}

/* Gender controls deliberately small and quiet. */
.profile-gender-row.compact-gender{
  padding:8px 2px!important;
  min-height:34px!important
}
.profile-gender-row.compact-gender>div{gap:7px!important}
.profile-gender-row.compact-gender label{
  display:inline-flex;align-items:center;gap:3px;
  padding:3px 6px!important;border-radius:999px;background:#f5f6f8;color:#657085!important;
  font-size:9px!important;line-height:1!important
}
.profile-gender-row.compact-gender input{
  width:11px!important;height:11px!important;margin:0!important;accent-color:#5a6cff
}
.profile-gender-row.compact-gender label>span{font-size:9px!important}

/* Other person's profile is read only. */
.profile-other-fields{padding:20px 18px 22px}
.profile-other-fields.hidden{display:none!important}
.other-profile-avatar-button{
  display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;
  border:0;background:transparent;cursor:pointer
}
.other-profile-avatar-button>div .retro-avatar{
  width:96px!important;height:96px!important;border-radius:27px!important;font-size:42px!important
}
.other-profile-avatar-button>span{font-size:9px;color:#8b95a5}
.other-profile-info{margin-top:18px;border-top:1px solid #edf0f4}
.other-profile-info>div{
  display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;padding:11px 2px;border-bottom:1px solid #edf0f4
}
.other-profile-info span{font-size:10px;color:#8b95a5}
.other-profile-info b{font-size:12px;color:#354054;font-weight:650;word-break:break-word}

/* Avatar choice + uploaded image. */
.avatar-choice-card{
  width:min(420px,92vw)!important;padding:0!important;border-radius:20px!important;overflow:hidden;
  background:#fff!important;color:#172033!important
}
.avatar-choice-grid{padding:16px!important;grid-template-columns:repeat(6,1fr)!important}
.avatar-choice-grid button{border-radius:12px!important}
.avatar-upload-area{
  display:flex;align-items:center;gap:12px;padding:13px 16px 17px;border-top:1px solid #edf0f4
}
.avatar-upload-area button{
  height:38px;border:0;border-radius:10px;background:#eef1ff;color:#5365db;padding:0 14px;font-weight:800;cursor:pointer
}
.avatar-upload-area small{font-size:9px;line-height:1.45;color:#9099a9}
.avatar-full-view-card{
  width:min(560px,94vw);max-height:88dvh;position:relative;display:grid;place-items:center;
  padding:48px 18px 22px;border-radius:20px;background:#111820;box-shadow:0 20px 60px rgba(0,0,0,.38)
}
.avatar-full-view-card>button{
  position:absolute;right:12px;top:10px;width:34px;height:34px;border:0;border-radius:50%;
  background:rgba(255,255,255,.13);color:#fff;font-size:23px;cursor:pointer
}
#avatarFullContent{max-width:100%;max-height:74dvh;display:grid;place-items:center}
.avatar-original-image{max-width:100%;max-height:72dvh;border-radius:13px;object-fit:contain}
#avatarFullContent .retro-avatar.xlarge{
  width:220px!important;height:220px!important;border-radius:54px!important;font-size:96px!important
}

/* Dark mode support for new profile/file UI. */
html[data-time-theme="night"] .refined-profile-card,
html[data-time-theme="night"] .avatar-choice-card{
  background:#1b2430!important;color:#f1f5ff!important
}
html[data-time-theme="night"] .profile-gender-row.compact-gender label{background:#263140!important;color:#c8d1df!important}
html[data-time-theme="night"] .other-profile-info,
html[data-time-theme="night"] .other-profile-info>div,
html[data-time-theme="night"] .avatar-upload-area{border-color:#2c3949!important}
html[data-time-theme="night"] .other-profile-info b{color:#edf3ff!important}

@media(max-width:620px){
  .home-sections{gap:7px!important}
  .lobby-public-section{padding:15px!important}
  .public-room-grid{gap:7px!important}
  .compact-human-hero{
    min-height:138px!important;
    grid-template-columns:minmax(0,1fr) 128px!important;
    padding:14px!important
  }
  .compact-human-hero .home-hero-copy h1{font-size:21px!important}
  .compact-human-hero .home-hero-copy p{font-size:9.5px!important;line-height:1.5!important}
  .human-video-demo{height:116px!important}
  .profile-gender-row.compact-gender>div{gap:4px!important}
}
@media(max-width:430px){
  .avatar-choice-grid{grid-template-columns:repeat(4,1fr)!important}
  .refined-profile-top{grid-template-columns:74px minmax(0,1fr)!important;gap:11px!important}
  .profile-avatar-preview,.profile-avatar-preview .retro-avatar{width:70px!important;height:70px!important}
}


/* ============================================================
   V5.6 PRODUCT ID / LEVEL / STICKERS / COORDINATED UX
   ============================================================ */

/* Restore simple compose: +, emoji, input, send. */
.rich-compose{grid-template-columns:auto auto 1fr auto!important}
.product-attach-panel{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,92px))!important;
  gap:10px!important;
}
.product-attach-panel button{
  width:auto!important;height:76px!important;border-radius:14px!important
}

/* Profile typography is now standard product size instead of tiny labels. */
.refined-profile-card,
.profile-editor-card,
.profile-other-fields{
  font-size:calc(14px * var(--profile-scale,1.04))!important
}
.profile-editor-head h3{font-size:calc(20px * var(--profile-scale,1.04))!important}
.profile-main-fields label>span,
.profile-phone-field>span,
.profile-avatar-section>span,
.profile-gender-row>span{
  font-size:calc(12px * var(--profile-scale,1.04))!important
}
.profile-main-fields input,
.profile-phone-field input,
.nickname-edit-row button{
  font-size:calc(13px * var(--profile-scale,1.04))!important
}
.profile-phone-field small,
.profile-avatar-button>span,
.other-profile-avatar-button>span{
  font-size:calc(10px * var(--profile-scale,1.04))!important
}
.profile-gender-row.compact-gender label,
.profile-gender-row.compact-gender label>span{
  font-size:calc(10px * var(--profile-scale,1.04))!important
}
.other-profile-info span{font-size:calc(11px * var(--profile-scale,1.04))!important}
.other-profile-info b{font-size:calc(13px * var(--profile-scale,1.04))!important}

/* Immutable ID and level card. */
.profile-identity-card{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  margin:2px 0 12px;padding:11px;border:1px solid #e6eaf1;border-radius:13px;background:#fafbfe
}
.profile-identity-card>div{min-width:0}
.profile-identity-card span{
  display:block;font-size:calc(10px * var(--profile-scale,1.04));color:#8791a2;margin-bottom:4px
}
.profile-identity-card b{
  font-size:calc(15px * var(--profile-scale,1.04));letter-spacing:.5px;color:#313d51
}
.profile-identity-card small{
  display:block;font-size:calc(9px * var(--profile-scale,1.04));color:#9aa3b1;margin-top:4px;line-height:1.35
}
.profile-level-box{text-align:right}
.profile-level-box #profileLevel{display:flex;justify-content:flex-end;align-items:center;gap:5px;min-height:20px}
.level-icons{display:inline-flex;align-items:center;gap:1px;vertical-align:middle}
.level-star{color:#f3b400}
.level-sun{color:#ff7b25}
.level-crown{color:#7b5cff;font-size:1.08em}
.level-seed{color:#c5cad2}
#profileLevel b,.other-profile-info .level-icons+b{font-size:12px!important}

/* Custom color = exact interpolation from Light to Night. */
/* Emoji panel: swipe horizontally to animated page. */
.emoji-pager-shell{
  padding:0!important;
  overflow:hidden!important;
  height:236px!important
}
.emoji-pager{
  display:flex;width:100%;height:202px;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none
}
.emoji-pager::-webkit-scrollbar{display:none}
.emoji-page{
  flex:0 0 100%;height:202px;box-sizing:border-box;scroll-snap-align:start;
  padding:12px;display:grid;grid-template-columns:repeat(8,1fr);gap:5px;align-content:start
}
.emoji-page button{
  border:0;background:transparent;min-width:0;height:38px;border-radius:9px;font-size:22px;cursor:pointer
}
.emoji-page button:hover{background:#f1f3f6}
.animated-emoji-page{
  grid-template-columns:repeat(4,1fr);gap:9px;padding:12px 15px
}
.animated-emoji-page button{
  height:82px;background:#f7f8fa;border:1px solid #edf0f4;border-radius:13px;padding:3px
}
.animated-emoji-page img{width:100%;height:100%;object-fit:contain;display:block}
.emoji-page-hint{
  height:34px;display:flex;align-items:center;justify-content:center;gap:18px;
  border-top:1px solid #edf0f4;color:#919aaa;font-size:9px
}
.emoji-page-hint b{color:#6674d8;font-weight:750}
.chat-sticker{padding:2px 0}
.chat-sticker img{width:118px;height:118px;object-fit:contain;display:block}

/* Joined/public room cards: visible online state + explicit button. */
.room-card-bottom{
  min-height:31px;margin-top:10px;padding-right:34px;
  display:flex;align-items:center;justify-content:space-between;gap:8px
}
.room-enter-button{
  border:0;border-radius:9px;background:#eef1ff;color:#5364dc;
  height:29px;padding:0 12px;font-size:10px;font-weight:800;cursor:pointer
}
.room-enter-button:hover{background:#e4e8ff}
.room-rank-note{font-size:9px;color:#9aa3b1}
.joined-room-card .room-card-bottom{padding-right:34px}

/* Global room-card style chosen in Admin. */
html[data-room-card-style="outline"] .public-room-card{
  box-shadow:none!important;background:transparent!important;border:1px solid #dce2eb!important
}
html[data-room-card-style="glass"] .public-room-card{
  background:rgba(255,255,255,.70)!important;backdrop-filter:blur(16px)!important;
  box-shadow:0 12px 30px rgba(49,65,94,.10)!important
}
html[data-room-card-style="compact"] .public-room-card{
  padding:11px 13px!important;border-radius:12px!important
}
html[data-room-card-style="compact"] .public-room-card h3{margin:7px 0 2px!important;font-size:14px!important}
html[data-room-card-style="compact"] .public-room-card p{display:none}
html[data-room-card-style="compact"] .room-card-bottom{margin-top:6px}

/* New genuinely different homepage templates. */
.home-template-midnight{
  background:linear-gradient(180deg,#0d1420,#111827)!important;color:#eef4ff!important
}
.home-template-midnight .lobby-logo,
.home-template-midnight .lobby-admin-link{color:#eef4ff!important}
.home-template-midnight .home-hero-card{
  background:linear-gradient(135deg,#17233a,#1a3158)!important;color:#fff!important;border-color:#2f4c78!important
}
.home-template-midnight .home-hero-copy p{color:#b7c6dc!important}
.home-template-midnight .lobby-public-section,
.home-template-midnight .lobby-join-card,
.home-template-midnight .lobby-create-card{
  background:#17202e!important;color:#edf4ff!important;border-color:#28374b!important
}
.home-template-paper{
  background:#f1efe8!important;color:#2e302d!important
}
.home-template-paper .home-hero-card,
.home-template-paper .lobby-public-section,
.home-template-paper .lobby-join-card,
.home-template-paper .lobby-create-card{
  background:#fffdf7!important;border-color:#d9d4c7!important;box-shadow:0 7px 18px rgba(67,62,48,.07)!important
}
.home-template-retro{
  background:linear-gradient(180deg,#dcecff,#f7e9ff)!important
}
.home-template-retro .home-hero-card{
  background:linear-gradient(135deg,#e6f3ff,#f5e7ff)!important;border:2px solid #9fb9e8!important
}
.home-template-retro .lobby-public-section,
.home-template-retro .lobby-join-card,
.home-template-retro .lobby-create-card{
  border:2px solid #b8c8e5!important;box-shadow:3px 3px 0 rgba(119,137,177,.15)!important
}
.home-template-business{
  background:#eef2f7!important;color:#1d2a3d!important
}
.home-template-business .home-hero-card{
  background:linear-gradient(135deg,#122238,#1f4c73)!important;color:#fff!important;border:0!important
}
.home-template-business .home-hero-copy p{color:#cad8e7!important}
.home-template-business .home-kicker{color:#7ed1ff!important}
.home-template-business .home-hero-pills span{background:rgba(255,255,255,.12)!important;color:#fff!important}

/* Admin product parameters + users. */
.admin-product-settings{
  background:var(--surface);border:1px solid var(--line);border-radius:24px;
  box-shadow:0 16px 44px rgba(41,59,88,.08);padding:23px;margin-bottom:16px
}
.admin-parameter-grid{
  margin-top:16px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:end
}
.admin-parameter-grid label>span{
  display:block;font-size:10px;color:#7e899b;margin:0 0 5px 2px
}
.admin-parameter-grid input,.admin-parameter-grid select{
  width:100%;height:39px;box-sizing:border-box;border:1px solid #dfe5ee;border-radius:9px;
  background:#fbfcff;color:#243047;padding:0 9px
}
.admin-parameter-grid label.wide{grid-column:span 2}
.admin-parameter-grid button{
  height:39px;border:0;border-radius:9px;background:#586cff;color:#fff;font-weight:800;cursor:pointer
}
.expanded-template-grid{grid-template-columns:repeat(4,1fr)!important}
.admin-user-list{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.admin-user-row{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;
  padding:10px 11px;border:1px solid #e5e9f0;border-radius:13px;background:#fafbfe
}
.admin-user-avatar .retro-avatar{width:38px!important;height:38px!important;border-radius:11px!important;font-size:18px!important}
.admin-user-main>div{display:flex;align-items:center;gap:8px}
.admin-user-main b{font-size:12px}.admin-user-main span{font-size:9px;color:#6975d2;font-weight:800}
.admin-user-main small{display:block;margin-top:4px;font-size:9px;color:#8d97a8}
.admin-user-level{display:flex;align-items:center;gap:1px;font-size:12px}
.admin-pager{display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:10px 1px 0;color:#7b8797;font-size:11px}.admin-pager span{margin-right:auto}.admin-pager button{height:29px;padding:0 10px;border:1px solid #dce4ee;border-radius:6px;background:#fff;color:#3b5878;font:600 12px "Microsoft YaHei",sans-serif;cursor:pointer}.admin-pager button:disabled{opacity:.45;cursor:default}

/* Night support for new components. */
html[data-time-theme="night"] .profile-identity-card,
html[data-time-theme="night"] .admin-user-row{
  background:#151e2a!important;border-color:#2c3949!important
}
html[data-time-theme="night"] .profile-identity-card b{color:#eef4ff!important}
html[data-time-theme="night"] .admin-product-settings{background:#18212d!important;border-color:#2b384a!important}
html[data-time-theme="night"] .admin-parameter-grid input,
html[data-time-theme="night"] .admin-parameter-grid select{
  background:#111925!important;color:#eef4ff!important;border-color:#334154!important
}
html[data-time-theme="night"] .emoji-page button:hover,
html[data-time-theme="night"] .animated-emoji-page button{
  background:#222d3a!important;border-color:#2d3a4b!important
}
html[data-time-theme="night"] .emoji-page-hint{border-color:#2d3949!important;color:#9eabbd!important}

@media(max-width:760px){
  .emoji-page{grid-template-columns:repeat(7,1fr)}
  .animated-emoji-page{grid-template-columns:repeat(4,1fr)}
  .admin-parameter-grid{grid-template-columns:1fr 1fr}
  .admin-parameter-grid label.wide{grid-column:span 2}
  .expanded-template-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:430px){
  .profile-identity-card{grid-template-columns:1fr}
  .profile-level-box{text-align:left}
  .profile-level-box #profileLevel{justify-content:flex-start}
  .emoji-page{grid-template-columns:repeat(6,1fr)}
  .animated-emoji-page{grid-template-columns:repeat(3,1fr)}
  .admin-parameter-grid{grid-template-columns:1fr}
  .admin-parameter-grid label.wide{grid-column:auto}
  .expanded-template-grid{grid-template-columns:1fr!important}
}


/* V5.6 final coordination overrides. */
.admin-user-avatar>span{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(145deg,#e9edff,#dfe8ff);color:#5262d6;font-weight:900;font-size:15px
}
.other-profile-level{display:flex!important;align-items:center;gap:5px;min-height:19px}
.identity-load-error{
  margin:70px auto!important;max-width:520px!important;line-height:1.7!important
}
.identity-load-error small{font-size:11px;color:#8e98a8}


/* ============================================================
   V5.6.1 UI PROFILE / EMOJI / ATTACH / ROOM ACTION FIX
   ============================================================ */

/* Critical: V5.6 used display:grid!important on the attachment panel,
   which overrode the old .hidden rule. Hidden must always win. */
#attachPanel.hidden,
#emojiPanel.hidden,
#profileSaveActions.hidden{
  display:none!important;
}

#attachPanel.product-attach-panel:not(.hidden){
  display:grid!important;
}

#emojiPanel.emoji-pager-shell:not(.hidden){
  display:block!important;
}

/* Attachment menu exists only after + is tapped. */
.product-attach-panel{
  grid-template-columns:repeat(2,minmax(0,100px))!important;
  width:max-content!important;
  right:auto!important;
  max-width:calc(100vw - 16px)!important;
}
.product-attach-panel button{
  width:96px!important;
  height:74px!important;
}

/* Emoji: old .emoji-panel grid styles must not control the outer shell. */
.emoji-pager-shell{
  display:block;
  height:274px!important;
  padding:0!important;
  overflow:hidden!important;
}
.emoji-pager{
  display:flex!important;
  width:100%!important;
  height:228px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  overscroll-behavior-x:contain;
  touch-action:pan-x;
  scrollbar-width:none;
}
.emoji-pager::-webkit-scrollbar{display:none}

.emoji-page{
  flex:0 0 100%!important;
  width:100%!important;
  min-width:100%!important;
  height:228px!important;
  display:block!important;
  padding:0!important;
  scroll-snap-align:start!important;
  scroll-snap-stop:always;
  overflow:hidden!important;
}

.emoji-page-grid{
  height:100%;
  box-sizing:border-box;
  padding:14px;
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  grid-auto-rows:42px;
  gap:5px;
  align-content:start;
}

.emoji-page-grid button{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  padding:0!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  font-size:24px!important;
  line-height:42px!important;
}

.emoji-page-grid button:active{
  background:#eef1f5!important;
  transform:scale(.94);
}

.animated-emoji-page{
  display:block!important;
  padding:0!important;
}
.animated-sticker-grid{
  height:100%;
  box-sizing:border-box;
  padding:13px 16px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  grid-auto-rows:94px;
  gap:9px;
  align-content:start;
}
.animated-sticker-grid button{
  width:100%!important;
  min-width:0!important;
  height:94px!important;
  padding:4px!important;
  border:1px solid #e8ecf2!important;
  border-radius:14px!important;
  background:#f7f8fa!important;
}
.animated-sticker-grid img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  display:block!important;
}

.emoji-page-tabs{
  height:46px;
  padding:6px 9px 8px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  border-top:1px solid #edf0f4;
  background:#fff;
}
.emoji-page-tabs button{
  height:32px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#7d8798!important;
  font-size:11px!important;
  font-weight:700!important;
}
.emoji-page-tabs button.active{
  background:#eef1ff!important;
  color:#5264dd!important;
}

/* Unified profile card: self and other use the same vertical visual language. */
.unified-profile-card{
  width:min(440px,94vw)!important;
  max-height:89dvh!important;
  overflow:hidden!important;
}
.unified-profile-body{
  padding:16px 18px 12px!important;
  overflow-y:auto;
}
.profile-id-top{
  text-align:center;
  padding:10px 12px 12px;
  margin-bottom:13px;
  border-radius:13px;
  background:#f7f8fb;
  border:1px solid #e8ecf2;
}
.profile-id-top>span{
  display:block;
  font-size:12px!important;
  color:#8993a3!important;
  margin-bottom:4px;
}
.profile-id-top>b{
  display:block;
  font-size:21px!important;
  line-height:1.15;
  letter-spacing:1.2px;
  color:#28354a;
}
.profile-id-top>small{
  display:block;
  margin-top:5px;
  font-size:10px!important;
  color:#9aa3b1!important;
}

.unified-profile-avatar{
  margin:0 auto 14px!important;
  display:flex!important;
  width:max-content!important;
  align-items:center!important;
  justify-content:center!important;
}
.unified-profile-avatar .profile-avatar-preview{
  width:86px!important;
  height:86px!important;
}
.unified-profile-avatar .profile-avatar-preview .retro-avatar{
  width:86px!important;
  height:86px!important;
}
.unified-profile-avatar>div .retro-avatar{
  width:96px!important;
  height:96px!important;
  border-radius:28px!important;
  font-size:42px!important;
}

.profile-detail-list{
  border-top:1px solid #eceff4;
}
.profile-detail-row{
  min-height:48px;
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  padding:9px 2px!important;
  margin:0!important;
  border-bottom:1px solid #eceff4!important;
  background:transparent!important;
}
.profile-detail-row>span{
  font-size:13px!important;
  color:#7b8697!important;
  font-weight:500!important;
}
.profile-detail-row>b,
.profile-detail-value,
.other-profile-level{
  min-width:0;
  font-size:14px!important;
  color:#344054!important;
  font-weight:650!important;
  text-align:left!important;
  word-break:break-word;
}
.profile-detail-value small{
  display:block;
  margin-top:3px;
  font-size:10px!important;
  color:#929cab!important;
}
.profile-edit-control input,
.profile-phone-control input{
  width:100%;
  height:38px!important;
  box-sizing:border-box;
  font-size:14px!important;
  border:1px solid #dfe5ed!important;
  border-radius:9px!important;
  padding:0 10px!important;
  background:#fbfcfe!important;
}
.profile-edit-control.nickname-edit-row,
.profile-phone-control{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:7px!important;
}
.profile-edit-control button,
.profile-phone-control button{
  height:38px!important;
  border:0!important;
  border-radius:9px!important;
  padding:0 12px!important;
  font-size:12px!important;
  font-weight:750!important;
  background:#eef1ff!important;
  color:#5567dc!important;
}
.profile-gender-row.compact-gender{
  min-height:48px!important;
  border-top:0!important;
  border-bottom:1px solid #eceff4!important;
  padding:9px 2px!important;
}
.profile-gender-options{
  display:flex!important;
  justify-content:flex-start!important;
  gap:6px!important;
}
.profile-gender-options label{
  padding:5px 8px!important;
  font-size:11px!important;
}
.profile-gender-options label>span{
  font-size:11px!important;
}
.unified-phone-field>div{
  display:block!important;
}
.profile-phone-field small{
  font-size:10px!important;
}
.other-profile-info{
  margin-top:0!important;
  border-top:1px solid #eceff4!important;
}
.other-profile-info>div{
  grid-template-columns:78px minmax(0,1fr)!important;
  padding:9px 2px!important;
  min-height:48px!important;
}
.profile-save-actions{
  padding:10px 18px calc(14px + env(safe-area-inset-bottom))!important;
}
.profile-save-actions button{
  height:42px!important;
  border-radius:10px!important;
  font-size:14px!important;
}

/* Other profile must never display a save area. */
#profileOtherFields:not(.hidden) ~ #profileSaveActions{
  display:none!important;
}
#profileSelfFields:not(.hidden) ~ #profileOtherFields.hidden ~ #profileSaveActions{
  display:block!important;
}

/* Homepage card actions share the exact same height/baseline. */
.room-card-bottom{
  padding-right:0!important;
  min-height:34px!important;
}
.room-card-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex:0 0 auto;
}
.room-enter-button,
.room-card-actions .room-star{
  position:static!important;
  inset:auto!important;
  width:auto!important;
  min-width:34px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0 11px!important;
  box-sizing:border-box!important;
  border-radius:9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  vertical-align:middle!important;
}
.room-card-actions .room-star{
  width:34px!important;
  padding:0!important;
  font-size:17px!important;
}
.joined-room-card .room-card-bottom{
  padding-right:0!important;
}

/* Night/custom compatibility. */
html[data-time-theme="night"] .profile-id-top{
  background:#151e2a!important;
  border-color:#2d3949!important;
}
html[data-time-theme="night"] .profile-id-top>b,
html[data-time-theme="night"] .profile-detail-row>b,
html[data-time-theme="night"] .profile-detail-value,
html[data-time-theme="night"] .other-profile-level{
  color:#edf3ff!important;
}
html[data-time-theme="night"] .emoji-page-tabs{
  background:#1b2430!important;
  border-color:#2d3949!important;
}
html[data-time-theme="night"] .emoji-page-tabs button.active{
  background:#283452!important;
  color:#cad4ff!important;
}

@media(max-width:520px){
  .emoji-page-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    grid-auto-rows:44px;
  }
  .emoji-page-grid button{
    height:44px!important;
    line-height:44px!important;
    font-size:25px!important;
  }
  .animated-sticker-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-auto-rows:92px;
  }
  .profile-detail-row,
  .other-profile-info>div{
    grid-template-columns:72px minmax(0,1fr)!important;
  }
}

/* V5.6.29: colorful Windows-inspired attachment tiles. Icons are CSS shapes,
   so they do not depend on the operating system emoji/icon font. */
#attachPanel.product-attach-panel:not(.hidden){
  grid-template-columns:repeat(4,82px)!important;
  gap:9px!important;
  padding:11px!important;
  border:1px solid #d8e1eb!important;
  border-radius:8px!important;
  background:#f7f9fc!important;
  box-shadow:0 10px 24px rgba(38,57,78,.14)!important;
}
#attachPanel.product-attach-panel button{
  width:82px!important;
  height:76px!important;
  border:1px solid #d1dce8!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#314155!important;
  box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(28,43,63,.06)!important;
  transition:background .14s ease,border-color .14s ease,transform .14s ease,box-shadow .14s ease;
}
#attachPanel.product-attach-panel button:hover{
  border-color:#75a9dc!important;
  background:#eef6ff!important;
  box-shadow:inset 0 1px 0 #fff,0 3px 8px rgba(48,103,157,.14)!important;
}
#attachPanel.product-attach-panel button:active{transform:translateY(1px);background:#e3f0ff!important}
#attachPanel.product-attach-panel button>span{font-size:11px!important;font-weight:600!important;line-height:14px!important}
.win-attach-icon{
  width:31px;height:31px;display:block;position:relative;box-sizing:border-box;
  color:#2c70b7;flex:0 0 31px;filter:drop-shadow(0 2px 2px rgba(33,72,116,.16));
}
.win-attach-icon::before,.win-attach-icon::after,.win-attach-icon i{content:"";position:absolute;box-sizing:border-box;display:block}
.win-attach-image{border:2px solid #168c67;border-radius:4px;background:linear-gradient(160deg,#d5ffe7 0 47%,#7bdba4 48% 70%,#32a771 71%);overflow:hidden}
.win-attach-image::before{width:6px;height:6px;border-radius:50%;top:4px;right:4px;background:#ffd35a;box-shadow:0 0 0 1px rgba(122,91,0,.16)}
.win-attach-image::after{left:2px;right:2px;bottom:2px;height:14px;background:linear-gradient(140deg,transparent 34%,#e2fff0 35% 51%,transparent 52%),linear-gradient(43deg,transparent 43%,#167d5d 44% 71%,transparent 72%)}
.win-attach-file{border:2px solid #3479ce;border-radius:3px;background:linear-gradient(150deg,#fff 0 70%,#e2efff 71%)}
.win-attach-file::before{top:-2px;right:-2px;width:11px;height:11px;border-left:2px solid #3479ce;border-bottom:2px solid #3479ce;background:#a8d0ff}
.win-attach-file::after{left:5px;right:5px;bottom:6px;height:2px;background:#4b93e5;box-shadow:0 -5px 0 #79b3ee}
.win-attach-direct{border:2px solid #8b63cf;border-radius:6px;background:linear-gradient(145deg,#f0e6ff,#c9b4fa)}
.win-attach-direct::before{left:5px;top:5px;width:10px;height:10px;border:2px solid #7651bb;border-radius:3px;background:#fff;box-shadow:8px 8px 0 -2px #fff,8px 8px 0 0 #7651bb}
.win-attach-direct::after{left:13px;top:13px;width:8px;height:3px;background:#28aa70;transform:rotate(-45deg);transform-origin:left center;border-radius:3px}
.win-attach-screen{border:2px solid #df7a35;border-radius:4px;background:linear-gradient(155deg,#fff1d7 0 43%,#8cd6ed 44% 72%,#429dc3 73%)}
.win-attach-screen::before{left:4px;right:4px;bottom:4px;height:2px;background:#f5c86f;box-shadow:0 -5px 0 #fff3d9}
.win-attach-screen::after{left:8px;right:8px;bottom:-7px;height:2px;background:#bd6530;box-shadow:4px 3px 0 -1px #bd6530,-4px 3px 0 -1px #bd6530}

.chat-file-info b{font-weight:500!important}
.direct-file-card .chat-file-info b{font-weight:430!important;letter-spacing:0!important}
.direct-file-download.expired{background:#d8dde5!important;color:#8d97a5!important;border:1px solid #c9d0da!important;opacity:1!important}

.direct-link-copy-modal{position:fixed!important;z-index:1200;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:22px;background:rgba(17,31,49,.45)}.direct-link-copy-sheet{width:min(100%,340px);border-radius:12px;background:#fff;padding:25px 22px 20px;box-shadow:0 18px 54px rgba(14,32,54,.3);text-align:center;animation:direct-link-sheet-in .16s ease-out}.direct-link-copy-mark{width:42px;height:42px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#e2f8ec;color:#168a58;font-size:25px;font-weight:800}.direct-link-copy-sheet h3{margin:0;color:#1d2939;font-size:19px}.direct-link-copy-sheet p{margin:10px 0 0;color:#5d6b7d;font-size:14px;line-height:1.6}.direct-link-copy-sheet button{margin-top:17px;min-width:112px;height:38px;border:0;border-radius:7px;background:#2477d1;color:#fff;font:600 14px "Microsoft YaHei",sans-serif;cursor:pointer}@keyframes direct-link-sheet-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}

/* Colorful document tiles use a folded-page silhouette so formats scan quickly. */
.file-type-icon{border-radius:5px 5px 11px 11px!important;background:linear-gradient(145deg,#f8fbff 0 58%,#dce8f6 59%)!important;border:1px solid rgba(42,88,136,.18);box-shadow:0 2px 4px rgba(27,62,96,.13),inset 0 -9px 13px rgba(17,73,127,.07)!important;color:#36506e!important}.file-type-icon:before{border-width:0 13px 13px 0!important;border-color:transparent rgba(255,255,255,.95) transparent transparent!important}.file-type-icon span{display:grid;place-items:center;min-width:29px;height:15px;padding:0 3px;border-radius:3px;color:#fff;font-size:8px;line-height:1;background:#5c7694;box-shadow:0 1px rgba(255,255,255,.35)}.file-type-image span{background:#249a6b}.file-type-pdf span{background:#d94b4b}.file-type-word span{background:#2768c2}.file-type-excel span{background:#258a51}.file-type-ppt span{background:#dc7430}.file-type-archive span{background:#ba7a22}.file-type-audio span{background:#9065c9}.file-type-video span{background:#6157c8}.file-type-code span{background:#43566d}.file-type-app span{background:#16877f}.file-type-icon.direct:after{background:#23ae70!important;box-shadow:0 0 0 2px rgba(255,255,255,.92)!important}

/* QQ-era level hierarchy, using the product's own compact badge treatment. */
.profile-id-level .level-icons,.other-profile-level .level-icons{
  padding:3px 5px!important;border-radius:7px!important;background:#f4f7fb!important;
  border:1px solid #dce4ee!important;box-shadow:inset 0 1px 0 #fff!important;
}
.qq-level-number{
  display:inline-flex;align-items:center;height:23px;padding:0 7px;border-radius:7px;
  background:#344d70;color:#fff!important;font-size:11px!important;font-weight:750!important;
  letter-spacing:0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)
}
.profile-id-level .qq-level-icon,.other-profile-level .qq-level-icon{
  width:17px!important;height:17px!important;line-height:17px!important;border-radius:4px!important
}
html[data-time-theme="night"] .profile-id-level .level-icons,
html[data-time-theme="night"] .other-profile-level .level-icons{background:#263444!important;border-color:#3a4b60!important}
html[data-time-theme="night"] .qq-level-number{background:#5879a1!important}

@media(max-width:430px){
  #attachPanel.product-attach-panel:not(.hidden){grid-template-columns:repeat(4,72px)!important;gap:7px!important;padding:8px!important}
  #attachPanel.product-attach-panel button{width:72px!important;height:70px!important}
  .win-attach-icon{transform:scale(.92);transform-origin:center}
}


/* ============================================================
   V5.6.2 LEVEL / PROFILE / EMOJI / TWO-THEME FINAL OVERRIDES
   ============================================================ */

/* Only Light / Night modes remain. */
.two-mode-theme{grid-template-columns:1fr 1fr!important}
.theme-depth-row{display:none!important}
/* Profile top: avatar left, ID / level right. */
.profile-top-horizontal{
  display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:center;
  padding:12px 10px 16px;margin-bottom:3px;border-bottom:1px solid #eceff4
}
.profile-left-avatar{margin:0!important;width:108px!important;display:flex!important;flex-direction:column;align-items:center!important;justify-content:center!important;gap:6px!important}
.profile-left-avatar .profile-avatar-preview,.profile-left-avatar .profile-avatar-preview .retro-avatar{width:88px!important;height:88px!important;border-radius:24px!important}
.profile-left-avatar>div .retro-avatar{width:88px!important;height:88px!important;border-radius:24px!important;font-size:38px!important}
.profile-left-avatar>span{font-size:11px!important;color:#8993a3!important}
.profile-id-right{min-width:0;text-align:left;padding:2px 0}
.profile-id-right>span{display:block;font-size:12px!important;color:#8a95a6!important;margin-bottom:5px}
.profile-id-right>b{display:block;font-size:24px!important;line-height:1.1;letter-spacing:1.4px;color:#28354a;white-space:nowrap}
.profile-id-level{display:flex;align-items:center;gap:6px;min-height:23px;margin-top:8px;font-size:13px;color:#556174}
.profile-id-right>small{display:block;margin-top:5px;font-size:11px!important;color:#929cab!important}

/* QQ-era inspired hierarchy, original project styling (not copied assets). */
.level-icons{display:inline-flex;align-items:center;gap:2px;flex-wrap:wrap}
.qq-level-icon{display:inline-grid;place-items:center;width:18px;height:18px;line-height:18px;font-weight:900;text-shadow:0 1px 0 rgba(255,255,255,.5)}
.level-star{color:#f5b600!important;font-size:16px}
.level-moon{color:#4f7de8!important;font-size:19px;transform:rotate(-8deg)}
.level-sun{color:#ff7b22!important;font-size:18px}
.level-crown{color:#8a5ce6!important;font-size:18px}
.level-seed{color:#c0c7d1!important;font-size:16px}

/* Avatar selection is always a clean white card. */
.avatar-choice-card{background:#fff!important;color:#172033!important}
.avatar-choice-card .profile-editor-head{background:#fff!important;color:#172033!important;border-color:#edf0f4!important}
.avatar-choice-card .avatar-upload-area{background:#fff!important;border-color:#edf0f4!important}
html[data-time-theme="night"] .avatar-choice-card,
html[data-time-theme="night"] .avatar-choice-card .profile-editor-head,
html[data-time-theme="night"] .avatar-choice-card .avatar-upload-area{background:#fff!important;color:#172033!important;border-color:#edf0f4!important}

/* Emoji window itself stays fixed. Only its content pages scroll. */
.emoji-pager-shell{height:300px!important;max-height:min(300px,46dvh)!important;overflow:hidden!important;touch-action:none!important}
.emoji-pager{height:252px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;touch-action:pan-x pan-y!important;overscroll-behavior:contain!important}
.emoji-page{height:252px!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y!important;scrollbar-width:thin}
.emoji-page-grid{height:auto!important;min-height:100%;padding:12px 12px 22px!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-auto-rows:42px!important;align-content:start!important}
.animated-sticker-grid{height:auto!important;min-height:100%;padding:12px 16px 24px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:74px!important;gap:8px!important;align-content:start!important}
.animated-sticker-grid button{height:74px!important;border-radius:12px!important;padding:4px!important;background:#fafbfc!important}
.animated-sticker-grid img{width:66px!important;height:66px!important;max-width:100%!important;max-height:100%!important;margin:auto!important;object-fit:contain!important}
.emoji-page-tabs{position:absolute!important;left:0;right:0;bottom:0;z-index:5;height:48px!important;background:#fff!important}
.emoji-pager-shell{position:absolute!important}

/* Prevent parent/chat screen from moving while user browses emoji pages. */
.emoji-panel,.emoji-pager-shell,.emoji-pager,.emoji-page{overscroll-behavior:contain!important}

html[data-time-theme="night"] .profile-id-right>b{color:#eef4ff!important}
html[data-time-theme="night"] .profile-top-horizontal{border-color:#2d3949!important}

@media(max-width:520px){
  .profile-top-horizontal{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px 4px 14px}
  .profile-left-avatar{width:96px!important}
  .profile-left-avatar .profile-avatar-preview,.profile-left-avatar .profile-avatar-preview .retro-avatar,.profile-left-avatar>div .retro-avatar{width:80px!important;height:80px!important;border-radius:22px!important}
  .profile-id-right>b{font-size:22px!important}
  .emoji-page-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-auto-rows:44px!important}
  .animated-sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:68px!important;padding:10px 12px 24px!important}
  .animated-sticker-grid button{height:68px!important}
  .animated-sticker-grid img{width:60px!important;height:60px!important}
}

/* V5.6.2 emoji viewport correction: tabs always visible; only emoji pages scroll. */
.emoji-pager-shell{height:min(320px,52dvh)!important;max-height:none!important;min-height:240px!important;overflow:hidden!important;touch-action:none!important}
.emoji-pager{height:calc(100% - 48px)!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x pan-y!important}
.emoji-page{height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;touch-action:pan-x pan-y!important;padding-bottom:10px!important;-webkit-overflow-scrolling:touch}
.emoji-page-grid{height:auto!important;min-height:100%;padding-bottom:28px!important}
.animated-sticker-grid{height:auto!important;min-height:100%;padding-bottom:28px!important}
.emoji-page-tabs{grid-template-columns:repeat(5,1fr)!important;height:48px!important;position:absolute!important;left:0;right:0;bottom:0!important}
.emoji-page-tabs button{font-size:10px!important;padding:0 2px!important}
.animated-sticker-grid button{box-shadow:0 2px 7px rgba(39,53,79,.06)!important}
.qq-level-icon{border-radius:5px;background:rgba(255,255,255,.72);box-shadow:0 1px 3px rgba(31,43,65,.12);font-family:Arial,sans-serif}
.level-star{background:#fff7cf!important}.level-moon{background:#e8f0ff!important}.level-sun{background:#fff0df!important}.level-crown{background:#f0eaff!important}

/* V5.6.2 touch/size final correction. */
#emojiPanel{touch-action:pan-x pan-y!important;overscroll-behavior:contain!important}
.chat-sticker img{width:96px!important;height:96px!important;object-fit:contain!important}

/* ============================================================
   V5.6.3 RTC FILE / ADMIN ID / EMOJI / CALL FINAL OVERRIDES
   ============================================================ */

/* Homepage public-room module is opt-in from Admin. */
.home-public-rooms.hidden-by-admin{display:none!important}

/* Custom joined-room removal confirmation card. */
.home-confirm-overlay{
  position:fixed;inset:0;z-index:5000;display:grid;place-items:center;
  padding:18px;background:rgba(24,31,43,.32);backdrop-filter:blur(5px)
}
.home-confirm-card{
  width:min(360px,92vw);box-sizing:border-box;background:#fff;border-radius:19px;
  padding:22px 20px 18px;text-align:center;color:#273348;
  box-shadow:0 22px 65px rgba(30,42,64,.22)
}
.home-confirm-icon{
  width:48px;height:48px;margin:0 auto 10px;border-radius:15px;display:grid;place-items:center;
  background:#fff3bf;color:#efad00;font-size:25px
}
.home-confirm-card h3{margin:0 0 8px;font-size:18px}
.home-confirm-card p{margin:0;color:#526078;font-size:13px;line-height:1.55}
.home-confirm-card small{display:block;margin-top:7px;color:#9aa3b1;font-size:10px;line-height:1.45}
.home-confirm-card>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:17px}
.home-confirm-card button{height:39px;border:0;border-radius:10px;font-size:13px;font-weight:750;cursor:pointer}
.home-confirm-card button.cancel{background:#f0f2f5;color:#5e6878}
.home-confirm-card button.ok{background:#586cff;color:#fff}

/* Admin product toggle + editable user ID/level. */
.admin-toggle-field{display:flex!important;flex-direction:column;justify-content:flex-end;gap:6px}
.admin-param-switch{height:39px;display:flex!important;align-items:center}
.admin-user-row.editable-admin-user{grid-template-columns:42px minmax(0,1fr) auto!important;align-items:start!important}
.admin-user-edit-fields{
  display:grid;grid-template-columns:minmax(110px,1fr) 90px auto;gap:7px;align-items:end;margin-top:8px
}
.admin-user-edit-fields label>span{display:block;font-size:9px;color:#8d97a8;margin:0 0 4px 2px}
.admin-user-edit-fields input{
  width:100%;height:34px;box-sizing:border-box;border:1px solid #dfe5ee;border-radius:8px;
  background:#fff;color:#26344a;padding:0 8px;font-size:11px
}
.admin-user-edit-fields button{
  height:34px;border:0;border-radius:8px;background:#586cff;color:#fff;padding:0 12px;font-size:10px;font-weight:800;cursor:pointer
}
.admin-user-level>b{font-size:11px;color:#5a6578}

/* Avatar browser: current avatar first; every avatar viewer card is white. */
.avatar-choice-card,.avatar-full-view-card{
  background:#fff!important;color:#172033!important
}
.avatar-current-choice{
  padding:14px 16px 10px;border-bottom:1px solid #edf0f4;background:#fff
}
.avatar-current-choice>span{display:block;font-size:11px;color:#7c8799;margin:0 0 7px 2px;font-weight:750}
.avatar-current-choice>button{
  width:100%;height:82px;border:1px solid #e6eaf0;border-radius:13px;background:#f8f9fb;
  display:flex;align-items:center;gap:13px;padding:8px 12px;cursor:pointer;text-align:left
}
.avatar-current-choice .retro-avatar{width:62px!important;height:62px!important;border-radius:18px!important;font-size:28px!important}
.avatar-current-choice small{font-size:11px;color:#66738a}
.avatar-full-view-card{
  border:1px solid #e5e9ef!important;box-shadow:0 22px 70px rgba(29,42,63,.22)!important
}
.avatar-full-view-card>button{background:#eef1f5!important;color:#344055!important}
#avatarFullViewer{background:rgba(236,239,244,.72)!important;backdrop-filter:blur(8px)}
#avatarFullContent .retro-avatar.xlarge{box-shadow:0 14px 35px rgba(36,50,73,.13)}

/* QQ-era-inspired level symbols. Original CSS shapes, not official QQ assets. */
.level-icons{display:inline-flex!important;align-items:center!important;gap:2px!important;flex-wrap:wrap}
.qq-level-icon{
  width:18px!important;height:18px!important;border-radius:5px!important;display:inline-grid!important;place-items:center!important;
  font-family:Arial,sans-serif!important;font-weight:900!important;line-height:18px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 1px 3px rgba(31,43,65,.12)!important
}
.level-star{background:linear-gradient(#fffbe2,#fff0a5)!important;color:#f1ad00!important;font-size:14px!important}
.level-moon{background:linear-gradient(#edf4ff,#dbe8ff)!important;color:#4d79e7!important;font-size:18px!important;transform:none!important}
.level-sun{background:linear-gradient(#fff4e5,#ffe1bd)!important;color:#f57b22!important;font-size:16px!important}
.level-crown{background:linear-gradient(#f5efff,#e7dcff)!important;color:#7a56d7!important;font-size:16px!important}
.level-seed{background:#f2f4f7!important;color:#b5bdc9!important}

/* Emoji window stays fixed. Only the page content scrolls vertically or pages swipe horizontally. */
#emojiPanel.emoji-pager-shell{
  height:min(390px,62dvh)!important;min-height:270px!important;max-height:none!important;
  overflow:hidden!important;touch-action:none!important;padding:0!important
}
#emojiPanel .emoji-pager{
  height:calc(100% - 48px)!important;min-height:0!important;
  overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;
  overscroll-behavior:contain!important;touch-action:pan-x!important
}
#emojiPanel .emoji-page{
  height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;touch-action:pan-y!important;
  padding:0 0 18px!important;box-sizing:border-box!important
}
#emojiPanel .emoji-page-tabs{
  grid-template-columns:repeat(4,1fr)!important;height:48px!important;position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;background:#fff!important;z-index:7!important
}
#emojiPanel .emoji-page-tabs button{font-size:11px!important;padding:0 3px!important}

/* Dynamic is page one, 4 columns x 9 rows = 36 original GIFs. */
#emojiPanel .animated-sticker-grid{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:64px!important;gap:6px!important;padding:10px 12px 22px!important;
  height:auto!important;min-height:auto!important;align-content:start!important
}
#emojiPanel .animated-sticker-grid button{
  height:64px!important;min-height:64px!important;border:1px solid #edf0f4!important;
  border-radius:11px!important;padding:3px!important;background:#fafbfc!important
}
#emojiPanel .animated-sticker-grid img{
  width:56px!important;height:56px!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;margin:auto!important
}
.chat-sticker img{width:88px!important;height:88px!important;object-fit:contain!important}

/* Common emoji first row on the normal Emoji page. */
.common-emoji-block{padding:10px 12px 8px;border-bottom:1px solid #edf0f4;background:#fbfcfe}
.common-emoji-block>span{display:block;margin:0 0 6px 2px;color:#8d97a8;font-size:10px;font-weight:750}
.common-emoji-row{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.common-emoji-row button{
  width:100%;height:38px;border:0;border-radius:9px;background:#f1f3f6;font-size:22px;cursor:pointer
}
#emojiPanel .emoji-page-grid{
  height:auto!important;min-height:0!important;padding:10px 12px 24px!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-auto-rows:42px!important
}

/* Strong local camera preview layer. Polling cannot visually cover it. */
.local-preview-overlay{z-index:9999!important;background:#080909!important}
.local-preview-overlay:not(.hidden){display:grid!important;visibility:visible!important;opacity:1!important}
.local-preview-overlay video{display:block!important;visibility:visible!important;opacity:1!important}

html[data-time-theme="night"] .avatar-choice-card,
html[data-time-theme="night"] .avatar-full-view-card,
html[data-time-theme="night"] .avatar-current-choice,
html[data-time-theme="night"] #emojiPanel .emoji-page-tabs{
  background:#fff!important;color:#172033!important
}
html[data-time-theme="night"] .admin-user-edit-fields input{background:#121a25;color:#eef4ff;border-color:#334154}

@media(max-width:560px){
  #emojiPanel.emoji-pager-shell{height:min(380px,60dvh)!important;min-height:270px!important}
  #emojiPanel .animated-sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:60px!important;padding:9px 9px 20px!important}
  #emojiPanel .animated-sticker-grid button{height:60px!important;min-height:60px!important}
  #emojiPanel .animated-sticker-grid img{width:52px!important;height:52px!important}
  .common-emoji-row{grid-template-columns:repeat(8,minmax(0,1fr))}
  .common-emoji-row button{height:36px;font-size:21px}
  #emojiPanel .emoji-page-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .admin-user-edit-fields{grid-template-columns:1fr 78px!important}
  .admin-user-edit-fields button{grid-column:1/-1}
}

/* V5.6.3 touch correction: allow directional scrolling inside the fixed emoji card. */
#emojiPanel.emoji-pager-shell,
#emojiPanel .emoji-pager,
#emojiPanel .emoji-page{
  touch-action:pan-x pan-y!important;
}
#emojiPanel .emoji-page{
  overscroll-behavior-y:contain!important;
}


/* ============================================================
   V5.6.4 V4.6-UPLOAD / COMPACT EMOJI FINAL OVERRIDES
   ============================================================ */

/* Keep the newer simple product visual style, but restore the compact V4.6
   emoji-window footprint. Only the inside page scrolls. */
#emojiPanel.emoji-pager-shell{
  display:block;
  height:214px!important;
  min-height:214px!important;
  max-height:214px!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border-radius:12px!important;
  box-shadow:0 -6px 30px rgba(0,0,0,.12)!important;
  touch-action:none!important;
}

#emojiPanel.hidden{display:none!important}

#emojiPanel .emoji-pager{
  display:flex!important;
  width:100%!important;
  height:174px!important;
  min-height:174px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;
  scrollbar-width:none!important;
  overscroll-behavior:contain!important;
  touch-action:pan-x!important;
}
#emojiPanel .emoji-pager::-webkit-scrollbar{display:none!important}

#emojiPanel .emoji-page{
  flex:0 0 100%!important;
  width:100%!important;
  min-width:100%!important;
  height:174px!important;
  min-height:174px!important;
  padding:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  box-sizing:border-box!important;
  scroll-snap-align:start!important;
  scroll-snap-stop:always!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
}

/* Static page = exactly the original V4.6 24 emoji set.
   No separate "common row": the whole page is usage-ranked. */
#emojiPanel .emoji-page-grid{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  grid-auto-rows:38px!important;
  gap:5px!important;
  height:auto!important;
  min-height:0!important;
  padding:10px!important;
  align-content:start!important;
  box-sizing:border-box!important;
}
#emojiPanel .emoji-page-grid button{
  width:100%!important;
  min-width:0!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:8px!important;
  background:#f5f5f5!important;
  font-size:22px!important;
  line-height:38px!important;
  cursor:pointer!important;
}

/* Dynamic = 24 useful reactions, 4 columns x 6 rows.
   It scrolls vertically inside the same compact panel. */
#emojiPanel .animated-sticker-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-rows:52px!important;
  gap:5px!important;
  height:auto!important;
  min-height:0!important;
  padding:8px 10px 14px!important;
  align-content:start!important;
  box-sizing:border-box!important;
}
#emojiPanel .animated-sticker-grid button{
  width:100%!important;
  min-width:0!important;
  height:52px!important;
  min-height:52px!important;
  padding:2px!important;
  margin:0!important;
  border:1px solid #edf0f4!important;
  border-radius:9px!important;
  background:#fafbfc!important;
  cursor:pointer!important;
}
#emojiPanel .animated-sticker-grid img{
  width:46px!important;
  height:46px!important;
  max-width:100%!important;
  max-height:100%!important;
  display:block!important;
  margin:auto!important;
  object-fit:contain!important;
}
.chat-sticker img{
  width:82px!important;
  height:82px!important;
  object-fit:contain!important;
}

/* Only two simple tabs. */
#emojiPanel .emoji-page-tabs{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:8!important;
  height:40px!important;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:4px!important;
  padding:4px 8px!important;
  box-sizing:border-box!important;
  border-top:1px solid #edf0f4!important;
  background:#fff!important;
}
#emojiPanel .emoji-page-tabs button{
  height:32px!important;
  border:0!important;
  border-radius:8px!important;
  background:transparent!important;
  color:#7b8595!important;
  font-size:11px!important;
  font-weight:750!important;
}
#emojiPanel .emoji-page-tabs button.active{
  background:#eef1ff!important;
  color:#5264dc!important;
}

/* Old common-row blocks are intentionally gone. */
#emojiPanel .common-emoji-block,
#emojiPanel .common-emoji-row{
  display:none!important;
}

/* Attachment panel remains hidden until + is pressed. */
#attachPanel.hidden{display:none!important}
#attachPanel.product-attach-panel:not(.hidden){
  display:grid!important;
  grid-template-columns:repeat(4,78px)!important;
  gap:12px!important;
}
#attachPanel.product-attach-panel button{
  width:78px!important;
  height:72px!important;
  border-radius:12px!important;
}
.direct-file-card{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:190px;
  max-width:min(68vw,360px);
  padding:10px;
  border-radius:8px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}
.wechat-message-row.mine .direct-file-card{
  background:#95ec69;
}
.direct-file-card .chat-file-info{
  min-width:0;
  flex:1;
  cursor:pointer;
}
.direct-file-card .chat-file-info b,
.direct-file-card .chat-file-info small{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.direct-file-card .chat-file-info b{
  font-size:13px;
  line-height:17px;
}
.direct-file-card .chat-file-info small{
  margin-top:2px;
  font-size:10px;
  color:#667085;
}
.direct-file-download{
  border:0;
  border-radius:999px;
  height:28px;
  padding:0 10px;
  background:#07c160;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.direct-file-download:disabled{
  opacity:.68;
  cursor:default;
}
.direct-file-download.hidden{
  display:none!important;
}
.direct-file-progress{
  height:4px;
  width:100%;
  margin-top:5px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(0,0,0,.08);
}
.direct-file-progress i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#07c160;
  transition:width .18s ease;
}
html[data-time-theme="night"] .direct-file-card{
  background:#202b37;
  color:#edf3ff;
}
.call-more-panel{
  width:min(300px,78vw)!important;
  padding:12px!important;
}
.call-more-title{
  padding:2px 4px 8px;
  color:rgba(255,255,255,.72);
  font-size:11px;
  font-weight:800;
}
.call-more-title.info-title{
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  margin-top:10px;
}
.call-quality-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.call-quality-grid button{
  min-height:52px;
  padding:8px 10px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.06)!important;
}
.call-quality-grid button.active{
  border-color:rgba(7,193,96,.78)!important;
  background:rgba(7,193,96,.18)!important;
  color:#fff!important;
}
.call-quality-grid b,
.call-quality-grid span{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.call-quality-grid b{
  font-size:12px;
  line-height:15px;
}
.call-quality-grid span{
  margin-top:3px;
  color:rgba(255,255,255,.62);
  font-size:10px;
  line-height:13px;
}
.call-info-toggle{
  height:34px;
  padding:0 10px!important;
  border-radius:9px!important;
  background:rgba(255,255,255,.07)!important;
  font-size:12px;
}
@media(max-width:430px){
  #attachPanel.product-attach-panel:not(.hidden){
    grid-template-columns:repeat(4,72px)!important;
    gap:8px!important;
  }
  #attachPanel.product-attach-panel button{
    width:72px!important;
    height:68px!important;
  }
  .direct-file-card{
    max-width:72vw;
    min-width:176px;
  }
}

/* Night mode still uses a white emoji chooser, matching the requested
   clean/neutral picker card. */
html[data-time-theme="night"] #emojiPanel.emoji-pager-shell,
html[data-time-theme="night"] #emojiPanel .emoji-page-tabs{
  background:#fff!important;
  color:#172033!important;
}
html[data-time-theme="night"] #emojiPanel .emoji-page-grid button{
  background:#f5f5f5!important;
  color:#172033!important;
}

@media(max-width:560px){
  #emojiPanel.emoji-pager-shell{
    height:228px!important;
    min-height:228px!important;
    max-height:228px!important;
  }
  #emojiPanel .emoji-pager,
  #emojiPanel .emoji-page{
    height:188px!important;
    min-height:188px!important;
  }
  #emojiPanel .emoji-page-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:38px!important;
    padding:10px!important;
  }
  #emojiPanel .animated-sticker-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:50px!important;
    padding:8px 9px 14px!important;
  }
  #emojiPanel .animated-sticker-grid button{
    height:50px!important;
    min-height:50px!important;
  }
  #emojiPanel .animated-sticker-grid img{
    width:44px!important;
    height:44px!important;
  }
}


/* ============================================================
   V5.6.5 UPLOAD / ROOM / PRIVACY CLEAN
   ============================================================ */

/* User display mode was removed; the product is light-only. */
html,
html[data-time-theme="day"],
html[data-theme-mode="light"]{
  color-scheme:light!important;
}

/* Admin: iPhone/Android browsers zoom forms when font-size <16px.
   Keep controls at 16px so tapping a field does not magnify/break the layout. */
.admin-page input,
.admin-page select,
.admin-page textarea,
.admin-login-only input{
  font-size:16px!important;
  line-height:1.2!important;
  transform:none!important;
  -webkit-text-size-adjust:100%;
}
@media(max-width:900px){
  .admin-page input,
  .admin-page select,
  .admin-page textarea,
  .admin-login-only input{
    font-size:16px!important;
  }
}

/* Homepage privacy notice: compact and professional. */
.compact-human-hero .home-hero-copy h1{
  max-width:680px;
}
.compact-human-hero .home-hero-copy p{
  max-width:720px;
  line-height:1.62!important;
}
#homeHeroTags{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
#homeHeroTags span{
  background:#eef2ff!important;
  color:#5264d9!important;
  border:1px solid #dfe5ff;
}

/* Public-room UI was removed. */
.home-public-rooms,
.public-switch,
.admin-toggle-field{
  display:none!important;
}
.create-only-bottom{
  justify-content:flex-end!important;
}

/* Room profile controls stay visually consistent. */
.room-profile-line button{
  min-width:64px;
  height:38px;
  border-radius:9px;
  font-weight:750;
}

/* Message time is truly hidden when room setting is off. */
.wechat-message-time.hidden{
  display:none!important;
}

/* Avatar/profile cards are light-only. */
.profile-editor-card,
.avatar-choice-card,
.avatar-full-view-card{
  color-scheme:light!important;
}
.avatar-choice-card,
.avatar-full-view-card{
  background:#fff!important;
  color:#202938!important;
}
.avatar-full-view-card{
  box-shadow:0 18px 52px rgba(35,48,70,.18)!important;
}
.avatar-full-view-card>button{
  background:#f0f2f5!important;
  color:#526072!important;
}

/* Removed gender/phone leaves a cleaner two-row profile form. */
.profile-edit-list{
  margin-top:8px;
}


.joined-room-actions-only{
  justify-content:flex-end!important;
}

/* Room profile no longer has appearance/public sections, keep spacing compact. */
.room-profile-card .privacy-room-settings{
  margin-top:10px!important;
}


/* ============================================================
   V5.6.6 ROOM RELEASE / JOINED ROOM PRODUCT UI
   ============================================================ */
.joined-room-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
}
.joined-room-product{
  min-height:86px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:13px 13px;
  box-sizing:border-box;
  border:1px solid rgba(92,110,145,.10);
  border-radius:17px;
  background:linear-gradient(135deg,#fbfdff,#f4f7ff);
  box-shadow:0 9px 24px rgba(45,61,92,.07);
  cursor:pointer;
  overflow:hidden;
  position:relative;
}
.joined-room-product:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--joined-accent,#6f7cff)
}
.joined-room-product.tone-0{--joined-accent:#6f7cff;--joined-soft:#eef0ff}
.joined-room-product.tone-1{--joined-accent:#ff8aa5;--joined-soft:#fff0f4}
.joined-room-product.tone-2{--joined-accent:#41bba1;--joined-soft:#ebfaf6}
.joined-room-product.tone-3{--joined-accent:#e7a63f;--joined-soft:#fff7e9}
.joined-room-product.tone-4{--joined-accent:#8b6edb;--joined-soft:#f3efff}
.joined-room-product.tone-5{--joined-accent:#4d9bd8;--joined-soft:#edf7ff}
.joined-room-accent{
  width:44px;height:44px;border-radius:14px;background:var(--joined-soft,#eef0ff);
  display:grid;place-items:center;color:var(--joined-accent,#6f7cff);font-size:17px;font-weight:900
}
.joined-room-content{min-width:0}
.joined-room-title-row{display:flex;align-items:center;gap:7px;min-width:0}
.joined-room-title-row h3{
  margin:0!important;font-size:14px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#263249
}
.joined-online,.joined-quiet{
  flex:0 0 auto;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:750
}
.joined-online{background:#eaf9f2;color:#27956e}
.joined-online i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#35c88f;margin-right:4px}
.joined-quiet{background:#f1f3f6;color:#8b95a5}
.joined-room-meta{display:flex;gap:7px;margin-top:7px;color:#8d97a8;font-size:9px}
.joined-room-meta span:first-child{color:var(--joined-accent,#6f7cff);font-weight:800}
.joined-room-actions{display:flex;align-items:center;gap:6px}
.joined-room-actions .room-enter-button,
.joined-room-actions .room-accept-button,
.joined-room-actions .room-star{
  position:static!important;inset:auto!important;height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;border-radius:9px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important
}
.joined-room-actions .room-enter-button{padding:0 11px!important}
.joined-room-actions .room-accept-button{padding:0 11px!important;background:#07c160!important;color:#fff!important}
.joined-room-actions .room-star{width:32px!important;min-width:32px!important;padding:0!important}
.home-template-warm .joined-room-product{background:linear-gradient(135deg,#fffdf9,#fff8f1)}
.home-template-paper .joined-room-product{background:#fffdf7;border-color:#ddd8ca}
.home-template-retro .joined-room-product{background:linear-gradient(135deg,#f4f9ff,#fbf3ff);border-width:1px!important}
.home-template-business .joined-room-product{background:#f8fbff;border-color:#dbe4ef}
.home-template-midnight .joined-room-product{background:#172230;border-color:#293a4f;color:#eef4ff}
.home-template-midnight .joined-room-title-row h3{color:#eef4ff}
.home-template-midnight .joined-room-meta{color:#95a4b8}

/* Admin selections: formal desktop layout is exactly two rows. */
.admin-two-row-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  align-items:stretch!important;
}
.admin-two-row-grid button{min-height:72px!important}
@media(max-width:760px){
  .joined-room-grid{grid-template-columns:1fr!important}
  .admin-two-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:430px){
  .admin-two-row-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .joined-room-product{grid-template-columns:42px minmax(0,1fr);gap:9px;padding:11px}
  .joined-room-accent{width:40px;height:40px;border-radius:12px}
  .joined-room-actions{grid-column:1/-1;justify-content:flex-end;margin-top:-2px}
}


/* ============================================================
   V5.6.7 JOINED LIST / OWNER AVATAR / EMOJI ORDER / HERO TAG FIX
   ============================================================ */
/* All three hero tags must remain visible, including on mobile. */
.compact-human-hero .home-hero-pills{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
.compact-human-hero .home-hero-pills span,
.compact-human-hero .home-hero-pills span:nth-child(3){display:inline-flex!important;visibility:visible!important}

/* Joined rooms are now a compact list, not colorful cards. */
.joined-room-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:5px!important;
}
.joined-room-product{
  min-height:62px!important;
  height:auto!important;
  display:grid!important;
  grid-template-columns:38px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:9px!important;
  padding:7px 9px!important;
  border:1px solid #e8ecf2!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(39,53,79,.035)!important;
  overflow:hidden!important;
  position:relative!important;
}
.joined-room-product:before{display:none!important;content:none!important}
.joined-room-owner{width:38px;height:38px;display:grid;place-items:center}
.joined-owner-avatar{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  overflow:hidden;background:var(--owner-avatar-bg,#eaf0ff);font-size:18px;line-height:1;
}
.joined-owner-avatar.custom img{width:100%;height:100%;object-fit:cover;display:block}
.joined-room-content{min-width:0!important;align-self:center!important}
.joined-room-content h3{
  margin:0 0 3px!important;font-size:13.5px!important;line-height:18px!important;font-weight:750!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#273348!important
}
.joined-room-meta{
  display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;
  min-height:15px!important;color:#929bab!important;font-size:9.5px!important;line-height:15px!important
}
.joined-room-meta>span:first-child{color:#768195!important;font-weight:700!important}
.joined-online,.joined-quiet{
  display:inline-flex!important;align-items:center!important;height:16px!important;box-sizing:border-box!important;
  border-radius:999px!important;padding:0 6px!important;font-size:8.5px!important;font-weight:700!important
}
.joined-online{background:#edf9f4!important;color:#2c9a72!important}
.joined-online i{width:4px!important;height:4px!important;margin-right:3px!important}
.joined-quiet{background:#f4f5f7!important;color:#939cab!important}
.joined-room-actions{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important;
  margin:0!important;align-self:center!important
}
.joined-room-actions .room-enter-button,
.joined-room-actions .room-accept-button,
.joined-room-actions .room-star{
  position:static!important;inset:auto!important;height:30px!important;min-height:30px!important;max-height:30px!important;
  margin:0!important;box-sizing:border-box!important;border-radius:8px!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;transform:translateY(-1px)!important
}
.joined-room-actions .room-enter-button,
.joined-room-actions .room-accept-button{
  min-width:66px!important;padding:0 10px 1px!important;font-size:11px!important;line-height:1!important;font-weight:800!important
}
.joined-room-actions .room-accept-button{
  border:0!important;background:#07c160!important;color:#fff!important;box-shadow:0 4px 10px rgba(7,193,96,.18)!important
}
.joined-room-actions .room-star{
  width:30px!important;min-width:30px!important;padding:0!important;font-size:16px!important
}
/* Keep the list neutral across homepage styles; only small accents inherit. */
.home-template-warm .joined-room-product,
.home-template-paper .joined-room-product,
.home-template-retro .joined-room-product,
.home-template-business .joined-room-product,
.home-template-midnight .joined-room-product{background:#fff!important;border-color:#e8ecf2!important;color:#273348!important}
.home-template-midnight .joined-room-content h3{color:#273348!important}
.home-template-midnight .joined-room-meta{color:#929bab!important}

@media(max-width:430px){
  .joined-room-product{
    grid-template-columns:36px minmax(0,1fr) auto!important;
    min-height:58px!important;padding:6px 8px!important;gap:8px!important
  }
  .joined-room-owner,.joined-owner-avatar{width:36px!important;height:36px!important;border-radius:10px!important}
  .joined-room-actions{grid-column:auto!important;margin:0!important}
  .joined-room-actions .room-enter-button{min-width:64px!important;font-size:10.5px!important;padding-left:8px!important;padding-right:8px!important}
}


/* ANDROID V1.3 HOME ALERT / UNREAD */
.joined-room-content h3{display:flex!important;align-items:center!important;gap:6px!important}
.joined-call-badge{flex:0 0 auto;display:inline-flex!important;align-items:center!important;height:18px!important;padding:0 6px!important;border-radius:999px!important;background:#fff0f0!important;color:#e25050!important;font-size:8.5px!important;line-height:18px!important;font-weight:800!important}
.joined-unread-badge{flex:0 0 auto;min-width:19px!important;height:19px!important;padding:0 5px!important;box-sizing:border-box!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#ff5d62!important;color:#fff!important;font-size:9px!important;line-height:19px!important;font-weight:800!important;box-shadow:0 2px 6px rgba(255,93,98,.22)!important}


/* ============================================================
   V5.6.9 CALL UX / HOME ANSWER / SINGLE-PERSON WAITING
   ============================================================ */
.call-float-card.incoming{
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  top:calc(env(safe-area-inset-top) + 56px)!important;
  padding:8px 12px!important;
  border-radius:24px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:0 10px 30px rgba(20,24,28,.18)!important;
  gap:12px!important;
}
.incoming-call-dot{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#07c160!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
.call-float-card.incoming .call-float-main b{
  font-size:19px!important;
  line-height:24px!important;
  font-weight:850!important;
}
.call-float-card.incoming .call-float-main span{
  font-size:14px!important;
  line-height:18px!important;
  color:#737b86!important;
}
.call-float-card.incoming .call-float-actions{
  gap:11px!important;
}
.call-float-card.incoming .call-float-text{
  min-width:72px!important;
  height:50px!important;
  border-radius:999px!important;
  padding:0 18px!important;
  font-size:19px!important;
  font-weight:900!important;
  letter-spacing:0!important;
}
.call-float-card.incoming .call-float-text.danger{
  background:#ff4d4f!important;
  color:#fff!important;
}
.call-float-card.incoming .call-float-text.accept{
  background:#07c160!important;
  color:#fff!important;
}
.incoming-call-avatar,
.outgoing-call-mark{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
}
.incoming-call-avatar .retro-avatar{
  width:54px!important;
  height:54px!important;
  border-radius:50%!important;
}
.outgoing-call-mark{
  background:linear-gradient(135deg,#eef7ff,#eafff3)!important;
  color:#07a85b!important;
  box-shadow:inset 0 0 0 1px rgba(7,193,96,.14)!important;
}
.outgoing-call-mark svg{
  width:27px!important;
  height:27px!important;
}
.call-connecting-state{
  position:absolute!important;
  inset:0!important;
  z-index:8!important;
  display:grid!important;
  place-items:center!important;
  padding:88px 18px 156px!important;
  background:rgba(13,15,15,.94)!important;
  box-sizing:border-box!important;
  pointer-events:none!important;
}
.call-connecting-state.hidden{display:none!important}
.call-connecting-card{
  display:grid!important;
  justify-items:center!important;
  gap:10px!important;
  color:#fff!important;
  text-align:center!important;
}
.call-connecting-avatar{
  width:96px!important;
  height:96px!important;
  border-radius:28px!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  box-shadow:0 18px 46px rgba(0,0,0,.36)!important;
}
.call-connecting-card b{
  font-size:20px!important;
  line-height:25px!important;
  max-width:min(72vw,360px)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.call-connecting-card span{
  font-size:13px!important;
  line-height:18px!important;
  color:rgba(255,255,255,.72)!important;
}
.joined-room-product.has-incoming-call{
  border-color:rgba(7,193,96,.55)!important;
  box-shadow:0 5px 16px rgba(7,193,96,.12)!important;
  cursor:pointer!important;
}
.joined-incoming-state{
  display:inline-flex!important;
  align-items:center!important;
  min-width:0!important;
  max-width:100%!important;
  height:16px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:#edf9f4!important;
  color:#168f55!important;
  font-size:8.5px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.joined-incoming-state i{
  flex:0 0 auto!important;
  width:5px!important;
  height:5px!important;
  margin-right:4px!important;
  border-radius:50%!important;
  background:#07c160!important;
  box-shadow:0 0 0 4px rgba(7,193,96,.13)!important;
}
.joined-call-badge{
  background:#eafff3!important;
  color:#07984d!important;
}
.joined-room-actions .room-accept-button{
  min-width:76px!important;
  background:#07c160!important;
  color:#fff!important;
}
.joined-room-actions.incoming-only{
  gap:5px!important;
}
.joined-room-actions.incoming-only .joined-unread-badge{
  display:none!important;
}
.joined-room-actions.incoming-only .room-accept-button{
  min-width:58px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:17px!important;
}
.joined-room-actions.incoming-only .room-star{
  width:28px!important;
  height:28px!important;
}
.transport-share-links{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-top:10px!important;
}
.transport-share-links button{
  min-width:0!important;
  min-height:45px!important;
  border:1px solid #e3e8ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#273348!important;
  padding:7px 6px!important;
  cursor:pointer!important;
  text-align:center!important;
}
.transport-share-links button b,
.transport-share-links button span{
  display:block!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.transport-share-links button b{
  font-size:11px!important;
  line-height:14px!important;
  font-weight:900!important;
}
.transport-share-links button span{
  margin-top:2px!important;
  font-size:8.5px!important;
  line-height:11px!important;
  color:#7a8595!important;
}
.transport-share-links button:hover{
  border-color:#7bdca6!important;
}
.transport-share-links button.active{
  border-color:#07c160!important;
  background:#eafff3!important;
  color:#078f4d!important;
  box-shadow:0 4px 12px rgba(7,193,96,.12)!important;
}
.transport-share-links button.active span{
  color:#168f55!important;
}
.card:has(#sendTransportModes),
.card.receiver{
  background:linear-gradient(180deg,#ffffff,#f7fbff)!important;
  border:1px solid #dbe7f3!important;
  box-shadow:0 14px 38px rgba(22,45,72,.08)!important;
}
.card:has(#sendTransportModes) .row:first-child,
.card.receiver .row{
  align-items:center!important;
  gap:9px!important;
}
.card:has(#sendTransportModes) .status,
.card.receiver .status{
  min-height:34px!important;
  padding:0 13px!important;
  border-radius:999px!important;
  background:#eef7ff!important;
  color:#203348!important;
  font-weight:900!important;
}
.card:has(#sendTransportModes) .urlbox{
  border:1px dashed #91d9ad!important;
  background:#f2fff7!important;
  color:#126337!important;
  border-radius:10px!important;
  font-weight:800!important;
}
.transport-share-links{
  padding:8px!important;
  border-radius:14px!important;
  background:#eef3f8!important;
}
.transport-share-links button{
  position:relative!important;
  min-height:58px!important;
  border-radius:12px!important;
  border-color:transparent!important;
  background:#fff!important;
  box-shadow:0 5px 15px rgba(30,55,80,.06)!important;
}
.transport-share-links button.active{
  background:linear-gradient(145deg,#07c160,#18a85b)!important;
  color:#fff!important;
  border-color:#07c160!important;
  box-shadow:0 10px 24px rgba(7,193,96,.24)!important;
}
.transport-share-links button.active span,
.transport-share-links button.active b{
  color:#fff!important;
}
.transport-share-links button.active::after{
  content:"";
  position:absolute;
  right:8px;
  top:8px;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#fff;
}
.video-wrap.preview,
.video-wrap.receiver{
  background:#05080f!important;
  border-radius:16px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 16px 34px rgba(0,0,0,.12)!important;
}
.video-wrap.preview video,
.video-wrap.receiver video{
  background:#05080f!important;
}
.call-float-card.resume .call-float-text.neutral{
  background:#edf0f5!important;
  color:#344054!important;
}
@media(max-width:430px){
  .call-float-card.incoming{
    left:6px!important;
    right:6px!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    padding:7px 9px!important;
    border-radius:20px!important;
    gap:8px!important;
  }
  .incoming-call-dot{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    font-size:15px!important;
  }
  .incoming-call-avatar,
  .incoming-call-avatar .retro-avatar,
  .outgoing-call-mark{
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
  }
  .outgoing-call-mark svg{
    width:23px!important;
    height:23px!important;
  }
  .call-float-card.incoming .call-float-main b{
    font-size:16px!important;
    line-height:20px!important;
  }
  .call-float-card.incoming .call-float-main span{
    font-size:12px!important;
    line-height:16px!important;
  }
  .call-float-card.incoming .call-float-actions{
    gap:6px!important;
  }
  .call-float-card.incoming .call-float-text{
    min-width:56px!important;
    height:44px!important;
    padding:0 11px!important;
    font-size:16px!important;
  }
  .joined-room-product.has-incoming-call{
    grid-template-columns:36px minmax(0,1fr) auto!important;
  }
  .joined-room-actions .room-accept-button,
  .joined-room-actions .room-enter-button{
    min-width:58px!important;
    padding-left:7px!important;
    padding-right:7px!important;
  }
  .joined-room-actions.incoming-only .room-accept-button{
    min-width:50px!important;
    height:32px!important;
    padding:0 10px!important;
    font-size:11px!important;
  }
  .joined-room-actions.incoming-only .room-star{
    width:26px!important;
    height:26px!important;
  }
  .transport-share-links{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .transport-share-links button{
    min-height:40px!important;
    padding:6px 5px!important;
  }
  .transport-share-links button b{
    font-size:10.5px!important;
  }
  .transport-share-links button span{
    font-size:8px!important;
  }
  .home-trust-strip{
    grid-template-columns:1fr!important;
    gap:7px!important;
    margin-bottom:16px!important;
  }
  .home-trust-strip>div{
    padding:12px 13px!important;
  }
}

/* Final cascade guard for Admin incoming-call card templates. */
.call-float-card.card-template-classic{--card-background:#fff!important;--card-accent:#5b6cff!important}
.call-float-card.card-template-meeting{
  --card-background:#f5f9ff!important;
  --card-accent:#3977e8!important;
  background:#f5f9ff!important;
  color:#17233a!important;
  border:1px solid #d6e3fa!important;
}
.call-float-card.card-template-family{
  --card-background:#fff6f0!important;
  --card-accent:#e67957!important;
  background:#fff6f0!important;
  color:#3a2821!important;
  border:1px solid #f4d8c9!important;
}
.call-float-card.card-template-custom{
  background:var(--card-background)!important;
  border:2px solid color-mix(in srgb,var(--card-accent) 55%,transparent)!important;
}
.call-float-card.card-template-meeting .incoming-call-dot,
.call-float-card.card-template-meeting .call-float-text.accept{background:#3977e8!important}
.call-float-card.card-template-family .incoming-call-dot,
.call-float-card.card-template-family .call-float-text.accept{background:#e67957!important}
.call-float-card.card-template-custom .incoming-call-dot,
.call-float-card.card-template-custom .call-float-text.accept{background:var(--card-accent)!important}

/* ============================================================
   V5.6.32 HOME / OFFICIAL ROOM / FIXED DIRECT CARDS
   ============================================================ */
html{-webkit-text-size-adjust:100%}
.home-sections>[data-home-section]{width:100%;min-width:0}
.home-direct-transfer{width:100%;min-width:0;margin:14px 0}
.home-direct-list{min-width:0}
.home-direct-item{width:100%;min-width:0;max-width:100%;overflow:hidden}
.home-direct-item>div,.home-direct-item input{min-width:0}
.home-direct-item span{overflow-wrap:anywhere;word-break:break-word}

.joined-unread-badge{
  min-width:0!important;height:24px!important;padding:0 8px 0 5px!important;
  border:1px solid #ffd0d0!important;border-radius:8px!important;background:#fff7f7!important;
  color:#cf4141!important;gap:5px!important;font-size:9px!important;line-height:22px!important;
  box-shadow:0 2px 7px rgba(189,52,52,.08)!important;white-space:nowrap!important
}
.joined-unread-badge>i{
  width:14px;height:14px;border-radius:50%;display:inline-grid;place-items:center;
  background:#ef4d4d;color:#fff;font-style:normal;font-size:9px;font-weight:900;line-height:14px
}
.joined-unread-badge>span{display:inline-block!important}
.joined-official-badge{
  flex:0 0 auto;display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:6px;
  background:#edf5ff;color:#2670c9;font-size:8.5px;line-height:18px;font-weight:850
}
.joined-official-meta{color:#2d78c7!important;font-weight:750}
.official-room-card{border-color:#dce9f8!important;background:linear-gradient(135deg,#fff,#f8fbff)!important}
.official-room-card .joined-owner-avatar{box-shadow:0 0 0 2px #e6f1ff}

.admin-trust-editor,.admin-official-settings{
  margin-top:14px;padding:16px;border:1px solid #e1e7ef;border-radius:12px;background:#fff
}
.admin-trust-editor>b{display:block;margin-bottom:12px;color:#2b3c52;font-size:13px}
.admin-trust-grid,.admin-official-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-trust-grid label,.admin-official-grid label{display:grid;gap:6px;min-width:0}
.admin-trust-grid label.wide,.admin-official-grid label.wide{grid-column:1/-1}
.admin-trust-grid label span,.admin-official-grid label span{font-size:11px;color:#6f7f92}
.admin-trust-grid input,.admin-official-grid input,.admin-official-grid textarea{
  width:100%;min-width:0;border:1px solid #d7e0ea;border-radius:8px;background:#fff;color:#26364a;padding:9px 10px;font:inherit
}
.admin-official-grid textarea{resize:vertical;min-height:78px;line-height:1.55}
.admin-toggle-line{display:inline-flex!important;align-items:center!important;gap:7px!important;font-size:11px!important;color:#607287!important}
.admin-toggle-line input{width:auto!important}
.admin-official-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
.admin-official-actions button{border:0;border-radius:8px;padding:9px 13px;background:#2879d4;color:#fff;font-weight:750;cursor:pointer}
.admin-official-actions .admin-secondary{background:#e9eef5;color:#52657b}
.official-welcome-preview{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 10px;border:1px dashed #d8e2ed;border-radius:9px;color:#7d8b9c;font-size:11px}
.official-welcome-preview img{width:64px;height:48px;object-fit:cover;border-radius:7px;border:1px solid #dde6ef}

@media(max-width:640px){
  .admin-trust-grid,.admin-official-grid{grid-template-columns:1fr}
  .admin-trust-grid label.wide,.admin-official-grid label.wide{grid-column:auto}
  .home-direct-item{grid-template-columns:1fr!important;min-height:0!important}
  .home-direct-item b{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .joined-unread-badge{height:22px!important;line-height:20px!important;padding-right:6px!important}
}

.admin-official-open{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cfe0f3;border-radius:8px;padding:8px 13px;background:#f4f9ff;color:#2772c7;font-size:11px;font-weight:750;text-decoration:none}
.official-welcome-row{background:transparent}

/* ============================================================
   V5.6.32 ADMIN ID / OFFICIAL / CALL / FOOTER / QQ LEVEL FIX
   ============================================================ */

/* Homepage sections use one consistent vertical rhythm. */
.home-direct-transfer,
.home-trust-strip{
  margin-top:0!important;
  margin-bottom:0!important;
}
.home-sections{gap:9px!important}

/* V5.6.32 removes the red unread badge entirely. */
.joined-unread-badge{display:none!important}
.joined-room-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
}
.joined-room-actions .room-accept-button{
  order:1!important;
  min-width:76px!important;
  height:34px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:linear-gradient(180deg,#19c96b,#08ad58)!important;
  color:#fff!important;
  font-weight:850!important;
  box-shadow:0 5px 12px rgba(8,173,88,.20)!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.joined-room-actions .room-enter-button{
  order:2!important;
  min-width:70px!important;
  height:34px!important;
  padding:0 11px!important;
  border:1px solid #d7e0ea!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#31455e!important;
  font-weight:750!important;
  cursor:pointer!important;
  white-space:nowrap!important;
}
.joined-room-actions .room-star{order:3!important}

/* Enterprise-style footer configured from Admin. */
.enterprise-footer{
  width:min(1180px,calc(100% - 32px));
  margin:10px auto 22px;
  padding:18px 20px 12px;
  box-sizing:border-box;
  border-top:1px solid #e3e8ef;
  color:#758398;
}
.enterprise-footer-main{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(140px,.8fr));
  gap:18px;
  align-items:start;
}
.enterprise-footer-main>div{min-width:0;display:grid;gap:4px}
.enterprise-footer-main b{font-size:13px;color:#35465d}
.enterprise-footer-main span{font-size:10.5px;line-height:1.55;overflow-wrap:anywhere}
.enterprise-footer-item small{font-size:9px;color:#a0aaba;text-transform:uppercase;letter-spacing:.08em}
.enterprise-footer-copy{margin-top:13px;padding-top:10px;border-top:1px solid #eef1f5;font-size:9.5px;color:#a0a9b6}

/* Admin footer editor. */
.admin-footer-editor{
  margin-top:14px;
  padding:16px;
  border:1px solid #e1e7ef;
  border-radius:12px;
  background:#fff;
}
.admin-footer-editor>b{display:block;margin-bottom:12px;color:#2b3c52;font-size:13px}
.admin-footer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.admin-footer-grid label{display:grid;gap:6px;min-width:0}
.admin-footer-grid label.wide{grid-column:1/-1}
.admin-footer-grid label span{font-size:11px;color:#6f7f92}
.admin-footer-grid input{width:100%;min-width:0;box-sizing:border-box;border:1px solid #d7e0ea;border-radius:8px;background:#fff;color:#26364a;padding:9px 10px;font:inherit}

/* Admin call-card selector: all three presets stay clickable and visibly selected. */
.call-card-template-grid{position:relative;z-index:2!important}
.call-card-template-grid button{
  position:relative!important;
  z-index:3!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  min-height:92px!important;
  padding:12px!important;
  overflow:hidden!important;
  border:1px solid #dce4ee!important;
  background:#fff!important;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease!important;
}
.call-card-template-grid button:hover{transform:translateY(-1px)!important;box-shadow:0 7px 18px rgba(45,66,96,.10)!important}
.call-card-template-grid button.active{border-color:#4b88df!important;box-shadow:0 0 0 2px rgba(75,136,223,.13),0 8px 18px rgba(45,66,96,.10)!important}
.call-style-preview{display:block!important;width:100%!important;height:24px!important;margin-bottom:9px!important;border-radius:7px!important;border:1px solid rgba(0,0,0,.05)!important}
.call-style-preview.preview-classic{background:linear-gradient(100deg,#f5fff8 0 55%,#16bf65 55% 100%)!important}
.call-style-preview.preview-meeting{background:linear-gradient(100deg,#f3f8ff 0 55%,#3478db 55% 100%)!important}
.call-style-preview.preview-family{background:linear-gradient(100deg,#fffaf6 0 55%,#e6865d 55% 100%)!important}
.call-style-preview.preview-custom{background:linear-gradient(90deg,#f2f4f7,#ded9ff,#ffdfe7)!important}

/* Three polished incoming-call looks. */
.call-float-card.card-template-classic{
  --card-background:#ffffff!important;
  --card-accent:#14b866!important;
  background:linear-gradient(145deg,#ffffff,#f6fff9)!important;
  color:#20332a!important;
  border:1px solid #d8eee1!important;
  box-shadow:0 14px 34px rgba(32,71,49,.16)!important;
}
.call-float-card.card-template-classic .incoming-call-dot,
.call-float-card.card-template-classic .call-float-text.accept{background:#14b866!important}
.call-float-card.card-template-meeting{
  --card-background:#f6f9ff!important;
  --card-accent:#3478db!important;
  background:linear-gradient(145deg,#ffffff,#eef5ff)!important;
  color:#162b49!important;
  border:1px solid #cfe0f6!important;
  box-shadow:0 14px 34px rgba(41,89,151,.17)!important;
}
.call-float-card.card-template-meeting .incoming-call-dot,
.call-float-card.card-template-meeting .call-float-text.accept{background:#3478db!important}
.call-float-card.card-template-family{
  --card-background:#fffaf6!important;
  --card-accent:#e6865d!important;
  background:linear-gradient(145deg,#fffdfa,#fff3ec)!important;
  color:#463027!important;
  border:1px solid #f0d6c9!important;
  box-shadow:0 14px 34px rgba(119,72,49,.15)!important;
}
.call-float-card.card-template-family .incoming-call-dot,
.call-float-card.card-template-family .call-float-text.accept{background:#e6865d!important}

/* Original vector level emblems inspired by classic QQ-era hierarchy. */
.qq-level-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-shadow:none!important;
  overflow:visible!important;
}
.qq-level-icon svg{display:block!important;width:17px!important;height:17px!important;filter:drop-shadow(0 1px 1px rgba(48,61,78,.12))}
.level-icons{display:inline-flex!important;align-items:center!important;gap:1px!important;vertical-align:middle!important}
.qq-level-number{margin-left:4px!important;vertical-align:middle!important}

/* Administrator identity is visually distinct in chat. */
.wechat-message-row.admin-message.other .wechat-message-name,
.official-welcome-row.admin-message .wechat-message-name{
  color:#e43f3f!important;
  font-weight:850!important;
}
@media(max-width:640px){
  .home-direct-transfer,.home-trust-strip{margin:0!important}
  .joined-room-actions{gap:5px!important}
  .joined-room-actions .room-accept-button{min-width:70px!important;height:32px!important;padding:0 9px!important;font-size:10px!important}
  .joined-room-actions .room-enter-button{min-width:62px!important;height:32px!important;padding:0 8px!important;font-size:10px!important}
  .enterprise-footer{width:calc(100% - 24px);margin:8px auto 18px;padding:14px 4px 10px}
  .enterprise-footer-main{grid-template-columns:1fr;gap:9px}
  .admin-footer-grid{grid-template-columns:1fr}
  .admin-footer-grid label.wide{grid-column:auto}
}


/* V5.6.34: homepage incoming call + administrator identity refinements. */
.joined-room-actions .room-accept-button{
  background:#08a94f!important;color:#fff!important;border:0!important;
  box-shadow:0 5px 14px rgba(8,169,79,.18)!important;font-weight:700!important
}
.wechat-message-row.admin-message.other .wechat-message-name,
.official-welcome-row.admin-message .wechat-message-name{
  color:#e43f3f!important;font-weight:400!important
}
.chat-admin-badge{
  display:inline-flex;align-items:center;height:17px;margin-left:5px;padding:0 5px;
  border-radius:5px;background:#fff0f0;color:#df3f3f;border:1px solid #ffd4d4;
  font-size:9px!important;line-height:17px;font-weight:650!important;vertical-align:1px
}

/* 27 built-in avatars: 3 vertical snap pages, 9 avatars per page. */
.avatar-choice-pager{
  height:276px;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;
  padding:0 16px;background:#fff
}
.avatar-choice-pager::-webkit-scrollbar{display:none}
.avatar-choice-page{
  height:276px;min-height:276px;scroll-snap-align:start;scroll-snap-stop:always;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,1fr);
  gap:10px;padding:14px 0;box-sizing:border-box
}
.avatar-choice-page button{
  min-width:0;border:2px solid transparent;border-radius:14px;background:#f5f7fa;
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:4px
}
.avatar-choice-page button.selected{border-color:#5b6cff;box-shadow:0 0 0 3px rgba(91,108,255,.12)}
.avatar-choice-page .retro-avatar{width:58px;height:58px;font-size:28px}
.avatar-page-dots{height:24px;display:flex;align-items:center;justify-content:center;gap:5px;color:#9aa4b2;font-size:9px;background:#fff}
.avatar-page-dots i{width:5px;height:5px;border-radius:99px;background:#d8dee7;transition:.18s}
.avatar-page-dots i.active{width:13px;background:#6b79ee}
.avatar-page-dots span{margin-left:5px}

/* Official room information is visibly read-only to normal users. */
.official-room-readonly input,.official-room-readonly textarea,.official-room-readonly select{opacity:.68!important;cursor:not-allowed!important}
.official-room-readonly #profileSaveGroupName,
.official-room-readonly #profileRenameRoom{display:none!important}

.admin-official-grid select{
  width:100%;min-height:38px;border:1px solid #d8e2ed;border-radius:8px;background:#fff;
  padding:0 10px;color:#33455a;font:inherit
}
@media(max-width:520px){
  .avatar-choice-pager,.avatar-choice-page{height:258px;min-height:258px}
  .avatar-choice-page .retro-avatar{width:54px;height:54px;font-size:26px}
}

/* ============================================================
   V5.6.34 HOME CALL / QR / LEAVE FIX
   ============================================================ */
/* Homepage direct-file QR sits above the generated URL. */
.home-direct-share-link{
  width:100%;min-width:0;box-sizing:border-box;padding:13px;
  border:1px solid #e1e8f1;border-radius:10px;background:#f8fafc;
  display:grid;gap:12px;justify-items:center
}
.home-direct-qr-wrap{display:grid;justify-items:center;gap:6px;color:#66778b;font-size:10.5px}
.home-direct-qr{
  display:block;width:156px;height:156px;max-width:52vw;max-height:52vw;
  padding:7px;box-sizing:border-box;border:1px solid #dbe3ed;border-radius:10px;background:#fff
}
.home-direct-url-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.home-direct-url-row input{
  min-width:0;height:36px;border:1px solid #d9e2ee;border-radius:8px;padding:0 10px;
  background:#fff;color:#536174;font-size:11px
}
.home-direct-copy-btn{
  height:36px;border:0;border-radius:8px;padding:0 14px;background:#2477d1;color:#fff;
  font-size:12px;font-weight:800;cursor:pointer
}
.home-direct-file-stack{display:grid;gap:7px;width:100%;min-width:0}
.home-direct-item.home-direct-file-only{grid-template-columns:minmax(0,1fr)!important}
.home-direct-item.home-direct-file-only b{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}

/* Footer is intentionally compact: company, description and copyright only. */
.enterprise-footer-main{grid-template-columns:minmax(0,1fr)!important}

/* Admin identity uses the same blue visual language as the homepage "官方" badge. */
.wechat-message-row.admin-message.other .wechat-message-name,
.official-welcome-row.admin-message .wechat-message-name{
  color:#8a8a8a!important;font-size:11px!important;font-weight:400!important
}
.chat-admin-badge{
  display:inline-flex!important;align-items:center!important;height:18px!important;margin-left:5px!important;
  padding:0 6px!important;border-radius:6px!important;background:#edf5ff!important;color:#2670c9!important;
  border:0!important;font-size:8.5px!important;line-height:18px!important;font-weight:850!important;vertical-align:1px!important
}

/* The joined-room card no longer reserves room for a favorite star. */
.joined-room-actions{padding-right:0!important}
.joined-room-card .room-card-bottom,.joined-room-card .public-room-top{padding-right:0!important}

@media(max-width:640px){
  .home-direct-share-link{padding:11px}
.home-direct-qr{width:148px;height:148px;max-width:58vw;max-height:58vw}
.home-direct-url-row{grid-template-columns:minmax(0,1fr) 62px}
.home-direct-copy-btn{padding:0 8px}
}

/* V5.6.39 homepage call/favorite/footer polish. */
.friend-links-section{
  display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;
  margin:12px auto 0;padding:10px 0;border-top:1px solid rgba(139,152,174,.18);
  color:#718096;font-size:12px
}
.friend-links-section.hidden{display:none!important}
.friend-links-section>b{font-size:12px;color:#4d5d72}
.friend-links-list{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.friend-links-list a{
  display:inline-flex;align-items:center;max-width:160px;height:26px;padding:0 9px;border-radius:7px;
  background:#f5f8fb;color:#426080;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.joined-room-product.has-incoming-call .joined-latest-message{color:#627086!important}
.joined-room-actions .room-star{
  border:1px solid #e2e8f0!important;background:#fff!important;color:#c1cad6!important;cursor:pointer!important
}
.joined-room-actions .room-star.active{background:#fff8e7!important;border-color:#f2d492!important;color:#e2a100!important}
.admin-home-copy-grid textarea,
.admin-trust-grid textarea,
.admin-footer-grid textarea{
  width:100%;min-width:0;border:1px solid #d7e0ea;border-radius:8px;background:#fff;color:#26364a;
  padding:9px 10px;font:inherit;line-height:1.55;resize:vertical
}
.admin-home-copy-grid textarea{min-height:86px}
.admin-trust-grid textarea,.admin-footer-grid textarea{min-height:68px}
.admin-footer-grid label.wide{grid-column:1/-1}
@media(max-width:430px){
  .joined-room-product.has-incoming-call{grid-template-columns:36px minmax(0,1fr) auto!important}
  .joined-incoming-state{max-width:100%;font-size:8px!important}
  .joined-room-actions.incoming-only .room-accept-button{min-width:52px!important;padding:0 9px!important}
  .joined-room-actions .room-star{width:28px!important;min-width:28px!important}
  .friend-links-section{justify-content:flex-start}
  .friend-links-list{justify-content:flex-start}
}


/* ============================================================
   V5.6.39 HOMEPAGE GLOBAL INCOMING CALL FIX6
   Dedicated fixed incoming-call banner. It does not depend on
   the joined-room card being visible or on chat-state polling.
   ============================================================ */
.home-incoming-call-bar{
  position:fixed!important;
  z-index:10050!important;
  left:50%!important;
  top:max(12px,env(safe-area-inset-top))!important;
  transform:translateX(-50%)!important;
  width:min(560px,calc(100vw - 24px))!important;
  min-height:74px!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:11px!important;
  padding:10px 11px!important;
  box-sizing:border-box!important;
  border:1px solid rgba(7,193,96,.28)!important;
  border-radius:16px!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:0 16px 42px rgba(21,48,40,.22)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}
.home-incoming-call-bar.hidden{display:none!important}
.home-incoming-call-bar.active-call{border-color:rgba(74,111,255,.26)!important}
.home-incoming-call-avatar{width:48px!important;height:48px!important;display:grid!important;place-items:center!important}
.home-incoming-call-avatar .joined-owner-avatar{width:48px!important;height:48px!important;border-radius:15px!important;font-size:23px!important}
.home-incoming-call-avatar .joined-owner-avatar.custom img{width:100%!important;height:100%!important;object-fit:cover!important}
.home-incoming-call-copy{min-width:0!important;display:flex!important;flex-direction:column!important;gap:3px!important}
.home-incoming-call-copy b{display:block!important;min-width:0!important;color:#17212e!important;font-size:15px!important;line-height:20px!important;font-weight:850!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.home-incoming-call-copy span{display:block!important;min-width:0!important;color:#687689!important;font-size:11px!important;line-height:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.home-incoming-call-accept{min-width:78px!important;height:40px!important;padding:0 15px!important;border:0!important;border-radius:20px!important;background:#07c160!important;color:#fff!important;font-size:13px!important;font-weight:850!important;cursor:pointer!important;box-shadow:0 6px 16px rgba(7,193,96,.24)!important}
.home-incoming-call-bar.active-call .home-incoming-call-accept{background:#4a6fff!important;box-shadow:0 6px 16px rgba(74,111,255,.22)!important}
.home-incoming-call-accept:disabled{opacity:.68!important;cursor:default!important}
@media(max-width:520px){
  .home-incoming-call-bar{top:max(8px,env(safe-area-inset-top))!important;width:calc(100vw - 16px)!important;min-height:66px!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:8px!important;padding:8px!important;border-radius:14px!important}
  .home-incoming-call-avatar{width:42px!important;height:42px!important}
  .home-incoming-call-avatar .joined-owner-avatar{width:42px!important;height:42px!important;border-radius:13px!important;font-size:20px!important}
  .home-incoming-call-copy b{font-size:13px!important}
  .home-incoming-call-copy span{font-size:9.5px!important}
  .home-incoming-call-accept{min-width:66px!important;height:36px!important;padding:0 11px!important;font-size:12px!important}
}


/* ============================================================
   V5.6.39 HOMEPAGE INCOMING CALL FIX7
   Audible ringtone + soft visual pulse. Motion is intentionally
   a glow/pulse rather than rapid flashing, and respects reduced motion.
   ============================================================ */
@keyframes homeIncomingGlow{
  0%,100%{box-shadow:0 16px 42px rgba(21,48,40,.22),0 0 0 0 rgba(7,193,96,.20)}
  50%{box-shadow:0 18px 46px rgba(21,48,40,.28),0 0 0 7px rgba(7,193,96,.07)}
}
@keyframes homeIncomingAvatarRing{
  0%,100%{transform:rotate(0deg) scale(1)}
  18%{transform:rotate(-4deg) scale(1.03)}
  36%{transform:rotate(4deg) scale(1.05)}
  54%{transform:rotate(-3deg) scale(1.03)}
  72%{transform:rotate(2deg) scale(1.01)}
}
@keyframes homeIncomingButtonPulse{
  0%,100%{transform:scale(1);box-shadow:0 6px 16px rgba(7,193,96,.24)}
  50%{transform:scale(1.035);box-shadow:0 8px 24px rgba(7,193,96,.38)}
}
@keyframes homeIncomingHalo{
  0%{opacity:.62;transform:scale(.82)}
  75%,100%{opacity:0;transform:scale(1.42)}
}
.home-incoming-call-bar.ringing{
  animation:homeIncomingGlow 1.35s ease-in-out infinite!important;
  border-color:rgba(7,193,96,.52)!important;
}
.home-incoming-call-bar.ringing .home-incoming-call-avatar{
  position:relative!important;
  animation:homeIncomingAvatarRing 1.15s ease-in-out infinite!important;
}
.home-incoming-call-bar.ringing .home-incoming-call-avatar::after{
  content:"";
  position:absolute;
  inset:-4px;
  pointer-events:none;
  border:2px solid rgba(7,193,96,.45);
  border-radius:18px;
  animation:homeIncomingHalo 1.35s ease-out infinite;
}
.home-incoming-call-bar.ringing .home-incoming-call-copy b::before{
  content:"来电中";
  display:inline-flex;
  align-items:center;
  margin-right:7px;
  padding:1px 6px;
  border-radius:999px;
  background:rgba(7,193,96,.11);
  color:#07994d;
  font-size:10px;
  line-height:17px;
  font-weight:900;
  vertical-align:1px;
}
.home-incoming-call-bar.ringing .home-incoming-call-accept{
  min-width:96px!important;
  animation:homeIncomingButtonPulse 1.05s ease-in-out infinite!important;
}
@media(max-width:520px){
  .home-incoming-call-bar.ringing .home-incoming-call-accept{min-width:82px!important}
  .home-incoming-call-bar.ringing .home-incoming-call-copy b::before{margin-right:4px;padding:0 5px;font-size:9px;line-height:15px}
}
@media(prefers-reduced-motion:reduce){
  .home-incoming-call-bar.ringing,
  .home-incoming-call-bar.ringing .home-incoming-call-avatar,
  .home-incoming-call-bar.ringing .home-incoming-call-avatar::after,
  .home-incoming-call-bar.ringing .home-incoming-call-accept{animation:none!important}
}

/* ============================================================
   V5.6.39 HOMEPAGE JOINED-LIST INCOMING CALL FIX8
   Incoming call is shown only inside "我加入的聊天室".
   Keep online count unchanged; keep Enter Room; accept button is left.
   ============================================================ */
/* Disable the old standalone fixed homepage banner completely. */
.home-incoming-call-bar{display:none!important}

/* The caller name + 来电 sits beside the room nickname. */
.joined-room-product.is-ringing-call .joined-call-badge{
  background:#eafff3!important;
  border:1px solid rgba(7,193,96,.22)!important;
  color:#078f49!important;
  box-shadow:0 0 0 0 rgba(7,193,96,0)!important;
}

/* Only the joined-room row flashes softly; no separate floating card. */
@keyframes joinedIncomingBorderPulse{
  0%,100%{border-color:rgba(7,193,96,.28);box-shadow:0 2px 8px rgba(39,53,79,.035),0 0 0 0 rgba(7,193,96,0)}
  50%{border-color:rgba(7,193,96,.95);box-shadow:0 4px 15px rgba(7,193,96,.16),0 0 0 2px rgba(7,193,96,.10)}
}
@keyframes joinedIncomingBadgePulse{
  0%,100%{background:#eafff3;color:#078f49;box-shadow:0 0 0 0 rgba(7,193,96,0)}
  50%{background:#07c160;color:#fff;box-shadow:0 0 0 4px rgba(7,193,96,.10)}
}
.joined-room-product.is-ringing-call{
  animation:joinedIncomingBorderPulse 1.15s ease-in-out infinite!important;
  cursor:pointer!important;
}
.joined-room-product.is-ringing-call .joined-call-badge{
  animation:joinedIncomingBadgePulse 1.15s ease-in-out infinite!important;
}

/* Incoming call keeps the normal online/quiet state unchanged. */
.joined-room-product.has-incoming-call .joined-room-meta .joined-online,
.joined-room-product.has-incoming-call .joined-room-meta .joined-quiet{
  display:inline-flex!important;
}

/* Required order: 接听来电 -> 进入房间 -> 收藏. */
.joined-room-actions.has-call-actions{
  gap:6px!important;
  flex-wrap:nowrap!important;
}
.joined-room-actions.has-call-actions .room-accept-button{order:1!important}
.joined-room-actions.has-call-actions .room-enter-button{order:2!important}
.joined-room-actions.has-call-actions .room-star{order:3!important}

@media(max-width:520px){
  .joined-room-actions.has-call-actions{gap:4px!important}
  .joined-room-actions.has-call-actions .room-accept-button{
    min-width:68px!important;padding:0 8px!important;font-size:9.5px!important
  }
  .joined-room-actions.has-call-actions .room-enter-button{
    min-width:58px!important;padding:0 7px!important;font-size:9.5px!important
  }
  .joined-room-actions.has-call-actions .room-star{width:28px!important;min-width:28px!important}
  .joined-room-product.is-ringing-call .joined-call-badge{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

@media(prefers-reduced-motion:reduce){
  .joined-room-product.is-ringing-call,
  .joined-room-product.is-ringing-call .joined-call-badge{animation:none!important}
}

/* ============================================================
   V5.6.39 HOMEPAGE JOINED CALL / WECHAT RING FIX9
   Keep the room row stable. Only the "某某 来电" badge changes color.
   On narrow WeChat WebViews the call actions move to a second row so
   both 接听来电 and 进入房间 are always visible.
   ============================================================ */
.joined-room-content h3{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.joined-room-content h3 .joined-room-name{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.joined-room-content h3 .joined-official-badge,
.joined-room-content h3 .joined-call-badge{
  flex:0 0 auto!important;
}

/* Do not flash the whole room row. */
.joined-room-product.is-ringing-call{
  animation:none!important;
  border-color:#e8ecf2!important;
  box-shadow:0 2px 8px rgba(39,53,79,.035)!important;
}

@keyframes joinedIncomingBadgeColorFix9{
  0%,100%{
    background:#fff1f1!important;
    border-color:#ffb8bb!important;
    color:#d9363e!important;
    box-shadow:0 0 0 0 rgba(255,77,79,0)!important;
  }
  50%{
    background:#ff4d4f!important;
    border-color:#ff4d4f!important;
    color:#fff!important;
    box-shadow:0 0 0 4px rgba(255,77,79,.12)!important;
  }
}
.joined-room-product.is-ringing-call .joined-call-badge{
  animation:joinedIncomingBadgeColorFix9 .92s ease-in-out infinite!important;
  border-width:1px!important;
  border-style:solid!important;
  font-weight:900!important;
}

/* Small embedded browsers cannot fit three call actions beside the room name.
   Put actions below only while a call is present; the normal list stays compact. */
@media(max-width:520px){
  .joined-room-product.has-incoming-call{
    grid-template-columns:36px minmax(0,1fr)!important;
    grid-auto-rows:auto!important;
  }
  .joined-room-product.has-incoming-call .joined-room-actions{
    grid-column:1/-1!important;
    width:100%!important;
    justify-content:flex-end!important;
    margin-top:1px!important;
    gap:5px!important;
  }
  .joined-room-product.has-incoming-call .room-accept-button{
    min-width:76px!important;
    height:31px!important;
    padding:0 9px!important;
    font-size:10px!important;
  }
  .joined-room-product.has-incoming-call .room-enter-button{
    min-width:64px!important;
    height:31px!important;
    padding:0 8px!important;
    font-size:10px!important;
  }
  .joined-room-product.has-incoming-call .room-star{
    width:30px!important;
    min-width:30px!important;
    height:31px!important;
  }
  .joined-room-product.is-ringing-call .joined-call-badge{
    max-width:112px!important;
  }
}

/* Color-only status remains readable when reduced-motion is requested. */
@media(prefers-reduced-motion:reduce){
  .joined-room-product.is-ringing-call .joined-call-badge{
    animation-duration:1.8s!important;
  }
}

/* ============================================================
   V5.6.39 HOMEPAGE WECHAT RING / BADGE / COMPACT CARD FIX10
   - no second action row, so incoming calls do not make cards taller
   - JS class toggling instead of CSS keyframes for WeChat reliability
   - only the caller badge changes color; room row itself stays still
   ============================================================ */
.joined-room-product.has-incoming-call{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  grid-auto-rows:unset!important;
  align-items:center!important;
}
.joined-room-product.has-incoming-call .joined-room-actions,
.joined-room-actions.has-call-actions{
  grid-column:auto!important;
  width:auto!important;
  margin:0!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:4px!important;
  align-self:center!important;
}
.joined-room-actions.has-call-actions .room-accept-button{
  min-width:66px!important;
  width:66px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0 6px!important;
  font-size:9.5px!important;
  line-height:30px!important;
  transform:translateY(-1px)!important;
}
.joined-room-actions.has-call-actions .room-enter-button{
  min-width:60px!important;
  width:60px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0 5px!important;
  font-size:9.5px!important;
  line-height:30px!important;
  transform:translateY(-1px)!important;
}
.joined-room-actions.has-call-actions .room-star{
  width:28px!important;
  min-width:28px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  transform:translateY(-1px)!important;
}
.joined-room-product.is-ringing-call{
  animation:none!important;
  border-color:#e8ecf2!important;
  box-shadow:0 2px 8px rgba(39,53,79,.035)!important;
}
.joined-room-product.is-ringing-call .joined-call-badge{
  animation:none!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  max-width:86px!important;
  height:18px!important;
  box-sizing:border-box!important;
  padding:0 6px!important;
  border:1px solid #ffb7b7!important;
  border-radius:999px!important;
  background:#fff1f1!important;
  color:#d9363e!important;
  box-shadow:none!important;
  font-size:8.5px!important;
  line-height:16px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  transition:background-color .12s linear,border-color .12s linear,color .12s linear,box-shadow .12s linear!important;
}
.joined-room-product.is-ringing-call .joined-call-badge.call-flash-on{
  background:#ff3b30!important;
  border-color:#ff3b30!important;
  color:#fff!important;
  box-shadow:0 0 0 3px rgba(255,59,48,.13)!important;
}
.joined-call-badge .joined-call-caller{
  display:block!important;
  min-width:0!important;
  max-width:52px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.joined-call-badge .joined-call-word{
  display:block!important;
  flex:0 0 auto!important;
  margin-left:2px!important;
  white-space:nowrap!important;
}

@media(max-width:520px){
  .joined-room-product.has-incoming-call{
    grid-template-columns:36px minmax(0,1fr) auto!important;
    grid-auto-rows:unset!important;
    gap:6px!important;
    padding:6px 7px!important;
  }
  .joined-room-product.has-incoming-call .joined-room-actions,
  .joined-room-actions.has-call-actions{
    grid-column:auto!important;
    width:auto!important;
    margin:0!important;
    gap:3px!important;
  }
  .joined-room-actions.has-call-actions .room-accept-button{
    min-width:58px!important;width:58px!important;height:29px!important;min-height:29px!important;max-height:29px!important;
    padding:0 4px!important;font-size:8.8px!important;line-height:29px!important
  }
  .joined-room-actions.has-call-actions .room-enter-button{
    min-width:54px!important;width:54px!important;height:29px!important;min-height:29px!important;max-height:29px!important;
    padding:0 3px!important;font-size:8.8px!important;line-height:29px!important
  }
  .joined-room-actions.has-call-actions .room-star{
    width:27px!important;min-width:27px!important;height:29px!important;min-height:29px!important;max-height:29px!important
  }
  .joined-room-product.is-ringing-call .joined-call-badge{
    max-width:74px!important;
    padding:0 5px!important;
    font-size:8px!important;
  }
  .joined-call-badge .joined-call-caller{max-width:42px!important}
  .joined-room-content h3{gap:3px!important}
}

@media(max-width:380px){
  .joined-room-actions.has-call-actions .room-accept-button{min-width:54px!important;width:54px!important;font-size:8.3px!important}
  .joined-room-actions.has-call-actions .room-enter-button{min-width:50px!important;width:50px!important;font-size:8.3px!important}
  .joined-room-actions.has-call-actions .room-star{width:25px!important;min-width:25px!important}
  .joined-room-product.is-ringing-call .joined-call-badge{max-width:66px!important}
  .joined-call-badge .joined-call-caller{max-width:34px!important}
}


/* ============================================================
   V5.6.39 HOMEPAGE WECHAT RING / GREEN CALL / ACCEPT-ONLY FIX11
   - ringing room gets a bright green border again
   - only "某某 来电" flashes green
   - while ringing, only 接听来电 is shown
   - accept button matches the normal 进入房间 size
   ============================================================ */
.joined-room-product.is-ringing-call{
  border-color:#19c96b!important;
  box-shadow:0 0 0 1px rgba(25,201,107,.16),0 4px 14px rgba(7,193,96,.12)!important;
}
.joined-room-product.is-ringing-call .joined-call-badge{
  background:#eafff2!important;
  border-color:#61d99b!important;
  color:#078f49!important;
  box-shadow:none!important;
}
.joined-room-product.is-ringing-call .joined-call-badge.call-flash-on{
  background:#07c160!important;
  border-color:#07c160!important;
  color:#fff!important;
  box-shadow:0 0 0 3px rgba(7,193,96,.14)!important;
}
.joined-room-actions.ringing-accept-only{
  gap:0!important;
}
.joined-room-actions.ringing-accept-only .room-accept-button{
  min-width:66px!important;
  width:auto!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0 10px 1px!important;
  font-size:11px!important;
  line-height:1!important;
  border-radius:8px!important;
  transform:translateY(-1px)!important;
}
@media(max-width:430px){
  .joined-room-actions.ringing-accept-only .room-accept-button{
    min-width:64px!important;
    width:auto!important;
    height:30px!important;
    min-height:30px!important;
    max-height:30px!important;
    padding:0 8px 1px!important;
    font-size:10.5px!important;
  }
}

/* ============================================================
   V5.6.39 FIX12 - stop-safe ringing + keep favorite while ringing
   - incoming: 接听来电 + 收藏, no 进入房间 while ringing
   - keep the compact single-row card height
   ============================================================ */
.joined-room-actions.ringing-accept-only{
  gap:5px!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
}
.joined-room-actions.ringing-accept-only .room-accept-button{
  min-width:66px!important;
  height:30px!important;
}
.joined-room-actions.ringing-accept-only .room-star{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:28px!important;
  min-width:28px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
}
@media(max-width:430px){
  .joined-room-actions.ringing-accept-only{gap:4px!important}
  .joined-room-actions.ringing-accept-only .room-accept-button{min-width:64px!important}
  .joined-room-actions.ringing-accept-only .room-star{width:27px!important;min-width:27px!important;height:30px!important}
}
