/* Yambuzz Community Chat (chat.php, chat.php?embed=1). Scoped to #ygChat so site-wide rules do not leak in. */
body.ygc-page{background:#f4f0ff}
html.yg-dark body.ygc-page{background:#101322}
html.ygc-embed-html,html.ygc-embed-html body{height:100%;margin:0;overflow:hidden}
body.ygc-embed-body{background:#f7f4ff}
html.yg-dark body.ygc-embed-body{background:#13112a}

#ygChat{
 --ygc-text:#2b1f5c;--ygc-muted:#7a6f99;--ygc-faint:#a59cc2;--ygc-border:#e6dcfb;--ygc-border-strong:#d6c7f7;
 --ygc-panel:rgba(255,255,255,.82);--ygc-solid:#fff;--ygc-input:#fbf9ff;--ygc-chip:#f5f0ff;
 --ygc-hover:rgba(122,82,224,.07);--ygc-mine:rgba(138,92,240,.075);--ygc-mine-hover:rgba(138,92,240,.12);
 --ygc-mention:rgba(242,169,59,.13);--ygc-accent:#7a52e0;--ygc-accent-text:#6a3fe0;
 --ygc-grad:linear-gradient(135deg,#8a5cf0,#5b36c4);--ygc-shadow:0 1px 0 #fff inset,0 14px 36px rgba(80,50,150,.10);
 --ygc-danger:#d0344f;--ygc-online:#22b37a;
 box-sizing:border-box;display:grid;grid-template-columns:276px minmax(0,1fr) 248px;gap:14px;
 width:100%;max-width:1600px;margin:0 auto;padding:14px;
 height:calc(100vh - var(--ygc-top,80px));height:calc(100dvh - var(--ygc-top,80px));min-height:480px;
 font-family:'DM Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:15px;line-height:1.45;color:var(--ygc-text);
 -webkit-text-size-adjust:100%;text-align:left
}
html.yg-dark #ygChat{
 --ygc-text:#f1ecff;--ygc-muted:#aa9fcb;--ygc-faint:#7d7399;--ygc-border:#2f2850;--ygc-border-strong:#3d3466;
 --ygc-panel:rgba(30,26,53,.82);--ygc-solid:#221d3d;--ygc-input:#1a1631;--ygc-chip:#2a2448;
 --ygc-hover:rgba(179,156,255,.07);--ygc-mine:rgba(138,92,240,.13);--ygc-mine-hover:rgba(138,92,240,.19);
 --ygc-mention:rgba(242,169,59,.12);--ygc-accent:#b39cff;--ygc-accent-text:#c9b5ff;
 --ygc-shadow:0 14px 36px rgba(0,0,0,.35)
}
#ygChat *,#ygChat *::before,#ygChat *::after{box-sizing:border-box}
#ygChat [hidden]{display:none!important}
#ygChat a{color:inherit;text-decoration:none}
#ygChat button,#ygChat input,#ygChat select,#ygChat textarea{font-family:inherit;letter-spacing:normal;text-transform:none;margin:0}
#ygChat button{cursor:pointer}
#ygChat :focus-visible{outline:2px solid var(--ygc-accent);outline-offset:2px}
#ygChat .ygc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* panels */
#ygChat .ygc-side,#ygChat .ygc-main,#ygChat .ygc-members{
 display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;
 background:var(--ygc-panel);border:1px solid var(--ygc-border);border-radius:22px;box-shadow:var(--ygc-shadow);
 -webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2)
}
#ygChat .ygc-main{position:relative}

/* gradient tiles */
#ygChat .ygc-tile,#ygChat .ygc-chan-tile{--tone:linear-gradient(145deg,#b39cff,#7a52e0 55%,#5232b8);display:inline-grid;place-items:center;flex:0 0 auto;color:#fff;background:var(--tone);box-shadow:0 6px 14px rgba(82,50,184,.25),inset 0 1px 0 rgba(255,255,255,.35)}
#ygChat .ygc-tile{width:40px;height:40px;border-radius:13px}
#ygChat .ygc-tile-sm{width:30px;height:30px;border-radius:10px}
#ygChat .ygc-tile-md{width:44px;height:44px;border-radius:14px}
#ygChat .ygc-tile-lg{width:64px;height:64px;border-radius:20px}
#ygChat [data-tone=violet],#ygChat [data-tone=violet] .ygc-chan-tile,#ygChat [data-tone="0"]{--tone:linear-gradient(145deg,#b39cff,#7a52e0 55%,#5232b8)}
#ygChat [data-tone=mint],#ygChat [data-tone=mint] .ygc-chan-tile,#ygChat [data-tone="1"]{--tone:linear-gradient(145deg,#7ff0d0,#22b39b 55%,#1d6fb5)}
#ygChat [data-tone=amber],#ygChat [data-tone=amber] .ygc-chan-tile,#ygChat [data-tone="2"]{--tone:linear-gradient(145deg,#ffe08a,#f2a93b 55%,#c9701d)}
#ygChat [data-tone=pink],#ygChat [data-tone=pink] .ygc-chan-tile,#ygChat [data-tone="3"]{--tone:linear-gradient(145deg,#ff9be0,#e0458f 55%,#a32a6a)}
#ygChat [data-tone=blue],#ygChat [data-tone=blue] .ygc-chan-tile,#ygChat [data-tone="4"]{--tone:linear-gradient(145deg,#7cc8ff,#2f7de1 55%,#1a4fb0)}
#ygChat [data-tone=coral],#ygChat [data-tone=coral] .ygc-chan-tile,#ygChat [data-tone="5"]{--tone:linear-gradient(145deg,#ffb38a,#f0643b 55%,#b0331d)}

/* buttons */
#ygChat .ygc-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:40px;padding:0 16px;border:0;border-radius:13px;background:var(--ygc-grad);color:#fff;font-weight:800;font-size:14px;line-height:1;white-space:nowrap;box-shadow:0 8px 18px rgba(91,54,196,.28);transition:transform .15s,box-shadow .15s,filter .15s}
#ygChat .ygc-btn:hover{transform:translateY(-1px);filter:brightness(1.06);box-shadow:0 10px 22px rgba(91,54,196,.34)}
#ygChat .ygc-btn-ghost{background:var(--ygc-chip);color:var(--ygc-accent-text);box-shadow:inset 0 0 0 1px var(--ygc-border-strong)}
#ygChat .ygc-btn-danger{background:linear-gradient(135deg,#f0647a,#c22846);box-shadow:0 8px 18px rgba(194,40,70,.28)}
#ygChat .ygc-btn-block{width:100%}
#ygChat .ygc-icon-btn{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;border:1px solid var(--ygc-border);background:var(--ygc-solid);color:var(--ygc-muted);transition:background .15s,color .15s,border-color .15s}
#ygChat .ygc-icon-btn:hover{color:var(--ygc-accent-text);border-color:var(--ygc-border-strong);background:var(--ygc-chip)}
#ygChat .ygc-icon-sm{width:28px;height:28px;border-radius:9px}

/* sidebar */
#ygChat .ygc-server{display:flex;align-items:center;gap:12px;padding:16px 16px 14px;border-bottom:1px solid var(--ygc-border)}
#ygChat .ygc-server-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:15px;background:var(--ygc-grad);box-shadow:0 8px 18px rgba(91,54,196,.32)}
#ygChat .ygc-server-copy{flex:1;min-width:0}
#ygChat .ygc-server-copy strong{display:block;font-size:15.5px;font-weight:850;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ygChat .ygc-server-copy small{display:block;font-size:12px;color:var(--ygc-muted);margin-top:2px}
#ygChat .ygc-close-side{display:none}
#ygChat .ygc-search{position:relative;display:flex;align-items:center;margin:12px 12px 4px;color:var(--ygc-faint)}
#ygChat .ygc-search svg{position:absolute;left:12px;pointer-events:none}
#ygChat .ygc-search input{width:100%;height:38px;padding:0 12px 0 34px;border-radius:12px;border:1px solid var(--ygc-border);background:var(--ygc-input);color:var(--ygc-text);font-size:14px;outline:none;-webkit-appearance:none;appearance:none}
#ygChat .ygc-search input:focus{border-color:var(--ygc-accent);box-shadow:0 0 0 3px rgba(138,92,240,.16)}
#ygChat .ygc-channels{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 8px 14px;scrollbar-width:thin}
#ygChat .ygc-cat-head{display:flex;align-items:center;gap:6px;width:100%;padding:14px 8px 6px;border:0;background:none;color:var(--ygc-muted);font-size:11.5px;font-weight:850;letter-spacing:.8px;text-transform:uppercase;text-align:left}
#ygChat .ygc-cat-head:hover{color:var(--ygc-text)}
#ygChat .ygc-cat-head svg{transition:transform .2s}
#ygChat .ygc-cat.is-collapsed .ygc-cat-head svg{transform:rotate(-90deg)}
#ygChat .ygc-cat.is-collapsed .ygc-chan-list{display:none}
#ygChat .ygc-cat-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ygChat .ygc-cat-dot{width:8px;height:8px;border-radius:50%;background:#e0458f;box-shadow:0 0 0 3px rgba(224,69,143,.18)}
#ygChat .ygc-chan-list{list-style:none;margin:0;padding:0}
#ygChat .ygc-chan-list li{margin:0;padding:0}
#ygChat .ygc-chan{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;padding:5px 8px;margin:1px 0;border-radius:13px;color:var(--ygc-muted);font-size:14.5px;font-weight:650;transition:background .15s,color .15s,box-shadow .15s}
#ygChat .ygc-chan:hover{background:var(--ygc-hover);color:var(--ygc-text)}
#ygChat .ygc-chan .ygc-chan-tile{width:28px;height:28px;border-radius:9px;opacity:.78;box-shadow:none;transition:opacity .15s,transform .15s}
#ygChat .ygc-chan:hover .ygc-chan-tile{opacity:1;transform:scale(1.05)}
#ygChat .ygc-chan.is-active{background:linear-gradient(135deg,rgba(138,92,240,.17),rgba(91,54,196,.08));color:var(--ygc-text);font-weight:800;box-shadow:inset 0 0 0 1px rgba(138,92,240,.26)}
#ygChat .ygc-chan.is-active .ygc-chan-tile,#ygChat .ygc-chan.has-unread .ygc-chan-tile{opacity:1;box-shadow:0 5px 12px rgba(82,50,184,.25)}
#ygChat .ygc-chan.has-unread{color:var(--ygc-text);font-weight:800}
#ygChat .ygc-chan.has-unread::before{content:"";position:absolute;left:-8px;top:50%;width:4px;height:12px;margin-top:-6px;border-radius:0 4px 4px 0;background:var(--ygc-text)}
#ygChat .ygc-chan-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ygChat .ygc-chan-flag{display:inline-grid;color:var(--ygc-faint)}
#ygChat .ygc-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:linear-gradient(135deg,#ff6fae,#e0458f);color:#fff;font-size:11px;font-weight:850;line-height:1;box-shadow:0 4px 10px rgba(224,69,143,.35)}
#ygChat .ygc-me{display:flex;align-items:center;gap:10px;padding:12px;border-top:1px solid var(--ygc-border)}
#ygChat .ygc-me-link{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:6px;border-radius:14px;transition:background .15s}
#ygChat .ygc-me-link:hover{background:var(--ygc-hover)}
#ygChat .ygc-me-copy{min-width:0}
#ygChat .ygc-me-copy strong{display:block;font-size:14px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ygChat .ygc-me-copy small{display:block;font-size:12px;color:var(--ygc-muted)}
#ygChat .ygc-empty{padding:14px 10px;font-size:13px;color:var(--ygc-muted)}

/* header */
#ygChat .ygc-head{display:flex;align-items:center;gap:12px;min-height:66px;padding:12px 16px;border-bottom:1px solid var(--ygc-border)}
#ygChat .ygc-open-side{display:none}
#ygChat .ygc-side-dot{position:absolute;top:6px;right:6px;width:9px;height:9px;border-radius:50%;background:#e0458f;box-shadow:0 0 0 2px var(--ygc-solid)}
#ygChat .ygc-head-copy{flex:1;min-width:0}
#ygChat .ygc-head h1{margin:0;padding:0;font-size:17px;font-weight:850;line-height:1.25;color:var(--ygc-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0;text-transform:none;background:none;-webkit-text-fill-color:currentColor}
#ygChat .ygc-head h1::before{content:"# ";color:var(--ygc-faint)}
#ygChat #ygcTopic{display:block;font-size:12.5px;color:var(--ygc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ygChat .ygc-online-chip{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:30px;padding:0 11px;border-radius:999px;background:var(--ygc-chip);border:1px solid var(--ygc-border);font-size:12.5px;font-weight:750;color:var(--ygc-muted);white-space:nowrap}
#ygChat .ygc-online-chip i{width:8px;height:8px;border-radius:50%;background:var(--ygc-online);box-shadow:0 0 0 3px rgba(34,179,122,.18)}
#ygChat .ygc-online-chip b{color:var(--ygc-text);font-weight:850}

/* messages */
#ygChat .ygc-stage{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
#ygChat .ygc-scroll{position:relative;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;overscroll-behavior:contain;padding:10px 0 14px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
#ygChat .ygc-history{position:absolute;top:10px;left:50%;transform:translateX(-50%);z-index:4;padding:6px 14px;border-radius:999px;background:var(--ygc-solid);border:1px solid var(--ygc-border);box-shadow:var(--ygc-shadow);font-size:12.5px;font-weight:750;color:var(--ygc-muted);white-space:nowrap}
#ygChat .ygc-loading{padding:40px 20px;text-align:center;color:var(--ygc-muted);font-size:14px}
#ygChat .ygc-start{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:26px 20px 12px}
#ygChat .ygc-start strong{font-size:22px;font-weight:900;line-height:1.2;margin-top:8px}
#ygChat .ygc-start span:last-child{color:var(--ygc-muted);font-size:14px;max-width:560px}
#ygChat .ygc-day{display:flex;align-items:center;gap:12px;margin:18px 20px 6px;color:var(--ygc-muted);font-size:11.5px;font-weight:850;letter-spacing:.6px;text-transform:uppercase}
#ygChat .ygc-day::before,#ygChat .ygc-day::after{content:"";flex:1;height:1px;background:var(--ygc-border)}
#ygChat .ygc-day span{padding:3px 10px;border-radius:999px;background:var(--ygc-chip);border:1px solid var(--ygc-border)}
#ygChat .ygc-msg{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;margin:0 8px;padding:4px 14px 4px 12px;border-radius:14px;transition:background .12s;outline:none}
#ygChat .ygc-msg:not(.is-grouped){margin-top:8px;padding-top:7px}
#ygChat .ygc-msg:hover,#ygChat .ygc-msg.is-active{background:var(--ygc-hover)}
#ygChat .ygc-msg.is-mine{background:var(--ygc-mine)}
#ygChat .ygc-msg.is-mine:hover,#ygChat .ygc-msg.is-mine.is-active{background:var(--ygc-mine-hover)}
#ygChat .ygc-msg.is-mention{background:var(--ygc-mention);box-shadow:inset 3px 0 0 #f2a93b}
#ygChat .ygc-msg.is-flash{animation:ygcFlash 1.6s ease}
@keyframes ygcFlash{0%,40%{background:rgba(138,92,240,.24)}100%{background:transparent}}
#ygChat .ygc-msg:focus-visible{box-shadow:inset 0 0 0 2px var(--ygc-accent)}
#ygChat .ygc-ava{display:block;width:40px;height:40px;margin-top:2px;border-radius:14px}
#ygChat .ygc-ava-in{position:relative;display:inline-grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:14px;overflow:hidden;color:#fff;font-weight:850;font-size:16px;line-height:1;background:var(--tone,linear-gradient(145deg,#b39cff,#7a52e0 55%,#5232b8));box-shadow:0 4px 10px rgba(82,50,184,.18)}
#ygChat .ygc-ava-in img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#ygChat .ygc-ava-in.is-small{width:32px;height:32px;border-radius:11px;font-size:13px}
#ygChat .ygc-side-time{align-self:start;padding-top:3px;font-size:10.5px;line-height:1.6;color:var(--ygc-faint);text-align:right;white-space:nowrap;opacity:0;transition:opacity .12s}
#ygChat .ygc-msg:hover .ygc-side-time,#ygChat .ygc-msg.is-active .ygc-side-time{opacity:1}
#ygChat .ygc-body{min-width:0}
#ygChat .ygc-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 8px;min-width:0}
#ygChat .ygc-name{max-width:100%;font-weight:850;font-size:14.5px;color:var(--ygc-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ygChat .ygc-name:hover{color:var(--ygc-accent-text);text-decoration:underline}
#ygChat .ygc-lv{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;background:var(--ygc-grad);color:#fff;font-size:10px;font-weight:850;letter-spacing:.35px;line-height:1;white-space:nowrap}
#ygChat .ygc-staff{display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;background:linear-gradient(135deg,#ffe08a,#f2a93b);color:#4a2a00;font-size:10px;font-weight:900;letter-spacing:.5px;line-height:1}
#ygChat .ygc-time{font-size:11.5px;color:var(--ygc-faint);white-space:nowrap}
#ygChat .ygc-text{margin:1px 0 0;font-size:15px;line-height:1.5;color:var(--ygc-text);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
#ygChat .ygc-edited{font-size:11px;color:var(--ygc-faint)}
#ygChat .ygc-link{color:var(--ygc-accent-text);text-decoration:underline;text-underline-offset:2px}
#ygChat .ygc-mention{padding:0 4px;border-radius:6px;background:rgba(122,82,224,.14);color:var(--ygc-accent-text);font-weight:750}
#ygChat .ygc-mention.is-me{background:rgba(242,169,59,.26);color:#9a5a00}
html.yg-dark #ygChat .ygc-mention.is-me{color:#ffd58a}
#ygChat .ygc-reply{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0;margin:0 0 2px;padding:0;border:0;background:none;color:var(--ygc-muted);font-size:12.5px;line-height:1.4;text-align:left}
#ygChat .ygc-reply::before{content:"";flex:0 0 18px;height:9px;margin-top:6px;border:2px solid var(--ygc-border-strong);border-right:0;border-bottom:0;border-top-left-radius:7px}
#ygChat .ygc-reply:hover{color:var(--ygc-text)}
#ygChat .ygc-reply-name{flex:0 0 auto;font-weight:800;color:var(--ygc-accent-text)}
#ygChat .ygc-reply-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ygChat .ygc-reacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
#ygChat .ygc-react{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 9px;border-radius:999px;border:1px solid var(--ygc-border);background:var(--ygc-chip);color:var(--ygc-text);font-size:13px;font-weight:800;line-height:1;transition:transform .12s,border-color .12s,background .12s}
#ygChat .ygc-react:hover{transform:translateY(-1px);border-color:var(--ygc-border-strong)}
#ygChat .ygc-react.is-mine{border-color:rgba(138,92,240,.6);background:rgba(138,92,240,.16);color:var(--ygc-accent-text)}
#ygChat .ygc-react-emoji{font-size:15px}
#ygChat .ygc-tools{position:absolute;top:-16px;right:12px;z-index:3;display:flex;align-items:center;gap:1px;padding:3px;border-radius:13px;background:var(--ygc-solid);border:1px solid var(--ygc-border);box-shadow:0 10px 24px rgba(40,20,100,.16)}
#ygChat .ygc-tool{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:9px;background:none;color:var(--ygc-muted);font-size:16px;line-height:1;transition:background .12s,color .12s,transform .12s}
#ygChat .ygc-tool:hover{background:var(--ygc-chip);color:var(--ygc-accent-text);transform:scale(1.08)}
#ygChat .ygc-tool[data-tool=delete]:hover,#ygChat .ygc-tool[data-tool=report]:hover{color:var(--ygc-danger)}
#ygChat .ygc-tools-sep{width:1px;height:18px;margin:0 3px;background:var(--ygc-border)}
#ygChat .ygc-pill{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:4;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 16px;border:0;border-radius:999px;background:var(--ygc-grad);color:#fff;font-size:13px;font-weight:850;white-space:nowrap;box-shadow:0 10px 24px rgba(91,54,196,.4);animation:ygcPill .25s ease}
@keyframes ygcPill{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* composer */
#ygChat .ygc-compose{padding:8px 14px 14px}
#ygChat .ygc-context{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 6px;padding:5px 6px 5px 12px;border-radius:12px;background:rgba(138,92,240,.1);color:var(--ygc-text);font-size:12.5px;font-weight:700}
#ygChat .ygc-context span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ygChat .ygc-composer{display:flex;align-items:flex-end;gap:8px;padding:6px 6px 6px 14px;border-radius:18px;border:1px solid var(--ygc-border-strong);background:var(--ygc-input);transition:border-color .15s,box-shadow .15s}
#ygChat .ygc-composer:focus-within{border-color:var(--ygc-accent);box-shadow:0 0 0 4px rgba(138,92,240,.15)}
#ygChat .ygc-composer textarea{flex:1;min-width:0;min-height:24px;max-height:150px;height:auto;padding:8px 0;border:0;outline:none;background:transparent;color:var(--ygc-text);font-size:15px;line-height:1.45;resize:none;box-shadow:none;-webkit-appearance:none;appearance:none}
#ygChat .ygc-composer textarea::placeholder{color:var(--ygc-faint)}
#ygChat .ygc-count{align-self:center;font-size:11.5px;font-weight:750;color:var(--ygc-muted)}
#ygChat .ygc-count.is-over{color:var(--ygc-danger)}
#ygChat .ygc-send{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:0;border-radius:13px;background:var(--ygc-grad);color:#fff;box-shadow:0 6px 16px rgba(91,54,196,.35);transition:transform .15s,filter .15s}
#ygChat .ygc-send:hover{transform:translateY(-1px);filter:brightness(1.08)}
#ygChat .ygc-send:disabled{opacity:.55;transform:none}
#ygChat .ygc-notice{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;background:var(--ygc-chip);border:1px dashed var(--ygc-border-strong);color:var(--ygc-muted);font-size:13.5px;font-weight:650}
#ygChat .ygc-notice svg{flex:0 0 auto;color:var(--ygc-accent)}
#ygChat .ygc-login{display:flex;align-items:center;gap:12px;padding:12px;border-radius:18px;background:linear-gradient(135deg,rgba(138,92,240,.12),rgba(224,69,143,.08));border:1px solid var(--ygc-border-strong)}
#ygChat .ygc-login-copy{flex:1;min-width:0}
#ygChat .ygc-login-copy strong{display:block;font-size:14.5px;font-weight:850}
#ygChat .ygc-login-copy small{display:block;font-size:12.5px;color:var(--ygc-muted);line-height:1.4}
#ygChat .ygc-login-actions{display:flex;gap:8px;flex:0 0 auto}
#ygChat .ygc-status{min-height:0;padding:4px 4px 0;font-size:12.5px;color:var(--ygc-muted)}
#ygChat .ygc-status:empty{padding:0}
#ygChat .ygc-status.is-error{color:var(--ygc-danger);font-weight:700}

/* members */
#ygChat .ygc-members-head{display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid var(--ygc-border)}
#ygChat .ygc-members-head strong{flex:1;font-size:14.5px;font-weight:850}
#ygChat .ygc-members-head b{min-width:26px;height:24px;padding:0 8px;border-radius:999px;display:inline-grid;place-items:center;background:rgba(34,179,122,.14);color:#168a5c;font-size:12px;font-weight:850}
html.yg-dark #ygChat .ygc-members-head b{color:#6fe3b4}
#ygChat .ygc-members-list{flex:1;min-height:0;overflow-y:auto;padding:6px 8px 14px;scrollbar-width:thin}
#ygChat .ygc-members-group{padding:12px 8px 6px;font-size:11px;font-weight:850;letter-spacing:.7px;text-transform:uppercase;color:var(--ygc-muted)}
#ygChat .ygc-member{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:13px;transition:background .15s}
#ygChat .ygc-member:hover{background:var(--ygc-hover)}
#ygChat .ygc-member .ygc-ava-in{overflow:visible}
#ygChat .ygc-member .ygc-ava-in img{border-radius:11px}
#ygChat .ygc-member .ygc-ava-in::after{content:"";position:absolute;right:-2px;bottom:-2px;width:11px;height:11px;border-radius:50%;background:var(--ygc-online);border:2px solid var(--ygc-solid)}
#ygChat .ygc-member-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
#ygChat .ygc-member-name{font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#ygChat .ygc-member-tags{display:flex;gap:4px}

/* dialog */
#ygChat .ygc-dialog{position:fixed;inset:0;z-index:10060;display:grid;place-items:center;padding:16px;background:rgba(16,12,40,.5);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
#ygChat .ygc-dialog-box{width:min(400px,100%);display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:22px;background:var(--ygc-solid);border:1px solid var(--ygc-border);box-shadow:0 24px 60px rgba(20,10,60,.35)}
#ygChat .ygc-dialog-title{font-size:17px;font-weight:900}
#ygChat .ygc-dialog-text{font-size:14px;color:var(--ygc-muted)}
#ygChat .ygc-field{width:100%;height:42px;padding:0 12px;border-radius:12px;border:1px solid var(--ygc-border-strong);background:var(--ygc-input);color:var(--ygc-text);font-size:15px}
#ygChat .ygc-dialog-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}

/* tablet: members hidden */
@media (max-width:999px){
 #ygChat{grid-template-columns:256px minmax(0,1fr);gap:12px;padding:12px}
 #ygChat .ygc-members{display:none}
}
/* phone: channel drawer + compact composer */
@media (max-width:760px){
 #ygChat{grid-template-columns:minmax(0,1fr);gap:0;padding:8px;min-height:420px}
 #ygChat .ygc-main{border-radius:18px}
 #ygChat .ygc-side{position:fixed;top:0;bottom:0;left:0;z-index:10050;width:min(308px,86vw);border-radius:0 22px 22px 0;background:var(--ygc-solid);transform:translateX(-104%);visibility:hidden;transition:transform .25s ease,visibility 0s linear .25s}
 #ygChat.side-open .ygc-side{transform:none;visibility:visible;transition:transform .25s ease}
 #ygChat .ygc-backdrop{position:fixed;inset:0;z-index:10040;background:rgba(16,12,40,.45);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
 #ygChat .ygc-open-side,#ygChat .ygc-close-side{display:inline-grid}
 #ygChat .ygc-head{gap:10px;min-height:58px;padding:9px 10px}
 #ygChat .ygc-head .ygc-tile{width:34px;height:34px;border-radius:11px}
 #ygChat .ygc-chip-label{display:none}
 #ygChat .ygc-msg{grid-template-columns:34px minmax(0,1fr);column-gap:10px;margin:0 4px;padding:3px 8px}
 #ygChat .ygc-msg:not(.is-grouped){padding-top:6px}
 #ygChat .ygc-ava,#ygChat .ygc-msg .ygc-ava-in{width:34px;height:34px;border-radius:12px;font-size:14px}
 #ygChat .ygc-side-time{display:none}
 #ygChat .ygc-day{margin:14px 12px 4px}
 #ygChat .ygc-tools{right:6px;top:-18px}
 #ygChat .ygc-tool{width:32px;height:32px}
 #ygChat .ygc-compose{padding:6px 8px 8px}
 #ygChat .ygc-composer{padding:4px 4px 4px 12px;border-radius:16px}
 #ygChat .ygc-composer textarea{font-size:16px;max-height:110px;padding:7px 0}
 #ygChat .ygc-send{flex-basis:38px;width:38px;height:38px;border-radius:12px}
 #ygChat .ygc-login{flex-wrap:wrap}
 #ygChat .ygc-login-actions{width:100%}
 #ygChat .ygc-login-actions .ygc-btn{flex:1}
 #ygChat .ygc-start{padding:20px 14px 8px}
 #ygChat .ygc-start strong{font-size:19px}
}

/* embed (app side panel ~380px) */
#ygChat.ygc-embed{display:flex;flex-direction:column;gap:0;width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;padding:0}
#ygChat.ygc-embed .ygc-main{flex:1;border:0;border-radius:0;box-shadow:none;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
#ygChat .ygc-embed-bar{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--ygc-border);background:var(--ygc-panel)}
#ygChat .ygc-select-wrap{position:relative;flex:1;min-width:0}
#ygChat .ygc-select-wrap::after{content:"";position:absolute;right:12px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:2px solid var(--ygc-muted);border-bottom:2px solid var(--ygc-muted);transform:rotate(45deg);pointer-events:none}
#ygChat .ygc-embed-bar select{width:100%;height:38px;padding:0 30px 0 12px;border-radius:12px;border:1px solid var(--ygc-border-strong);background:var(--ygc-input);color:var(--ygc-text);font-size:14.5px;font-weight:800;-webkit-appearance:none;appearance:none;text-overflow:ellipsis}
#ygChat .ygc-embed-bar select optgroup{font-weight:850}
#ygChat .ygc-embed-bar .ygc-online-chip{height:28px;padding:0 9px}
#ygChat .ygc-embed-bar .ygc-icon-btn{width:34px;height:34px;border-radius:11px}
#ygChat .ygc-embed-topic{padding:5px 12px;font-size:12px;color:var(--ygc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--ygc-border)}
#ygChat .ygc-embed-topic:empty{display:none}
#ygChat.ygc-embed .ygc-msg{grid-template-columns:32px minmax(0,1fr);column-gap:9px;margin:0 4px;padding:3px 8px}
#ygChat.ygc-embed .ygc-msg:not(.is-grouped){padding-top:6px}
#ygChat.ygc-embed .ygc-ava,#ygChat.ygc-embed .ygc-msg .ygc-ava-in{width:32px;height:32px;border-radius:11px;font-size:13px}
#ygChat.ygc-embed .ygc-side-time{display:none}
#ygChat.ygc-embed .ygc-text{font-size:14.5px}
#ygChat.ygc-embed .ygc-day{margin:12px 10px 4px}
#ygChat.ygc-embed .ygc-tools{right:4px;top:-18px}
#ygChat.ygc-embed .ygc-tool{width:29px;height:29px;font-size:15px}
#ygChat.ygc-embed .ygc-start{padding:16px 12px 8px}
#ygChat.ygc-embed .ygc-start strong{font-size:18px}
#ygChat.ygc-embed .ygc-tile-lg{width:52px;height:52px;border-radius:16px}
#ygChat.ygc-embed .ygc-compose{padding:6px 8px 8px;border-top:1px solid var(--ygc-border);background:var(--ygc-panel)}
#ygChat.ygc-embed .ygc-composer{padding:4px 4px 4px 12px;border-radius:15px}
#ygChat.ygc-embed .ygc-send{flex-basis:36px;width:36px;height:36px;border-radius:11px}
#ygChat.ygc-embed .ygc-login{flex-wrap:wrap;padding:10px}
#ygChat.ygc-embed .ygc-login .ygc-tile-md{display:none}
#ygChat.ygc-embed .ygc-login-actions{width:100%}
#ygChat.ygc-embed .ygc-login-actions .ygc-btn{flex:1;height:36px}

@media (prefers-reduced-motion:reduce){#ygChat *{transition:none!important;animation:none!important}}

/* Promote creator badge (platform/creator-badge.php) */
#ygChat .ygc-staff.ygc-creator{background:linear-gradient(135deg,#ff5f9e,#8a5cf0);color:#fff;border-color:transparent}
.ygc-live-strip{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:8px 16px;background:#1b1430;color:#fff;font:600 13px/1.3 system-ui,sans-serif;scrollbar-width:thin}
.ygc-live-strip strong{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;text-transform:uppercase;font-size:11.5px;letter-spacing:.08em}
.ygc-live-dot{width:9px;height:9px;border-radius:50%;background:#ff3b5c;box-shadow:0 0 0 3px rgba(255,59,92,.25)}
.ygc-live-strip a{display:grid;flex:0 0 auto;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.1);color:#fff;text-decoration:none;white-space:nowrap}
.ygc-live-strip a:hover{background:rgba(255,255,255,.18)}
.ygc-live-strip small{opacity:.75;font-size:11px}
