*{box-sizing:border-box}:root{--gh-border:#d0d7de;--gh-subtle:#f6f8fa;--gh-muted:#57606a;--gh-card:#fff;--gh-hover:#f3f4f6;--gh-blue:#0969da}html[data-theme="dark"]{--gh-border:#30363d;--gh-subtle:#161b22;--gh-muted:#8b949e;--gh-card:#0d1117;--gh-hover:#21262d;--gh-blue:#58a6ff}body{margin:0;min-height:100vh;font-family:Nunito,sans-serif;background:var(--theme-bg);color:var(--theme-text)}a{color:var(--theme-accent)}.account-page{width:min(1320px,100%);margin:0 auto;padding:24px}.account-topbar{display:flex;align-items:center;justify-content:space-between;background:#17243a;border:1px solid #2c415d;border-radius:18px;padding:12px 16px;margin-bottom:22px;box-shadow:0 12px 28px rgba(13,25,43,.12)}.account-brand{display:flex;align-items:center;gap:11px;color:#f3f7fb;text-decoration:none;font-size:22px;font-weight:900}.account-brand img{width:44px;height:44px;border-radius:13px}.topbar-tools{display:flex;align-items:center;gap:9px}.topbar-icon{width:44px;height:44px;border:1px solid #38516f;border-radius:12px;background:#223451;color:#f3f7fb;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;cursor:pointer;font-size:20px;transition:.18s ease}.topbar-icon:hover{transform:translateY(-1px);border-color:#43bdf1;color:#73d3fa}.topbar-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.account-alert{padding:12px 15px;border-radius:10px;margin:0 0 18px;font-weight:800;border:1px solid}.account-alert.success{background:#dafbe1;border-color:#82e596;color:#116329}.account-alert.danger{background:#ffebe9;border-color:#ff8182;color:#cf222e}.github-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}.github-sidebar{position:sticky;top:18px}.sidebar-profile{display:flex;align-items:center;gap:12px;padding:14px 10px 20px;border-bottom:1px solid var(--gh-border)}.sidebar-profile img,.avatar-fallback{width:52px;height:52px;border-radius:50%;object-fit:cover;border:1px solid var(--gh-border)}.avatar-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#20b8f4,#1477d4);color:#fff;font-size:23px;font-weight:900}.sidebar-profile div:last-child{min-width:0;display:grid;gap:2px}.sidebar-profile strong{font-size:17px;overflow:hidden;text-overflow:ellipsis}.sidebar-profile span{font-size:13px;color:var(--gh-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-nav{display:grid;gap:3px;padding:14px 0}.sidebar-link,.sidebar-logout{width:100%;border:0;background:transparent;color:var(--theme-text);display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:7px;font:800 15px Nunito,sans-serif;text-align:left;text-decoration:none;cursor:pointer;position:relative}.sidebar-link span,.sidebar-logout span{width:20px;text-align:center;color:var(--gh-muted)}.sidebar-link:hover,.sidebar-logout:hover{background:var(--gh-hover)}.sidebar-link.is-active{background:var(--gh-hover)}.sidebar-link.is-active:before{content:"";position:absolute;left:-4px;top:8px;bottom:8px;width:4px;border-radius:8px;background:#fd8c73}.sidebar-logout{border-top:1px solid var(--gh-border);border-radius:0;padding-top:16px;margin-top:6px;color:#cf222e}.github-content{min-width:0}.account-panel{display:none}.account-panel.is-active{display:block;animation:panelIn .18s ease}@keyframes panelIn{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:1px solid var(--gh-border);margin-bottom:20px}.page-heading.compact{display:block}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900;color:var(--gh-muted);margin:0 0 5px}.page-heading h1{font-size:28px;line-height:1.2;margin:0 0 6px}.page-heading p:not(.eyebrow){margin:0;color:var(--gh-muted)}.status-pill,.premium-badge{display:inline-flex;padding:6px 11px;border-radius:999px;background:#dafbe1;color:#116329;font-size:13px;font-weight:900;white-space:nowrap}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card,.github-card,.bot-card{background:var(--gh-card);border:1px solid var(--gh-border);border-radius:8px}.stat-card{padding:18px;display:grid;gap:5px}.stat-card span{font-size:13px;color:var(--gh-muted);font-weight:800}.stat-card strong{font-size:20px;overflow-wrap:anywhere}.stat-card small{color:var(--gh-muted)}.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.github-card{padding:20px}.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.card-title h2,.github-card h2{margin:0;font-size:18px}.text-button{border:0;background:none;color:var(--gh-blue);font:800 14px Nunito;cursor:pointer}.details-list{margin:0}.details-list div,.readonly-row{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--gh-border)}.details-list div:last-child,.readonly-row:last-of-type{border-bottom:0}.details-list dt,.readonly-row span{color:var(--gh-muted)}.details-list dd{margin:0;font-weight:800;text-align:right;overflow-wrap:anywhere}.quick-actions{display:grid}.quick-actions a{padding:11px 0;border-bottom:1px solid var(--gh-border);text-decoration:none;font-weight:800}.quick-actions a:last-child{border:0}.quick-actions a:after{content:"→";float:right;color:var(--gh-muted)}.form-card{max-width:760px}.field{display:grid;gap:7px;margin:18px 0}.field label{font-weight:900}.field input{width:100%;padding:11px 12px;border:1px solid var(--gh-border);border-radius:6px;background:var(--gh-card);color:var(--theme-text);font:700 15px Nunito}.field input:focus{outline:2px solid rgba(9,105,218,.25);border-color:var(--gh-blue)}.field small{color:var(--gh-muted)}.form-actions{padding-top:4px}.primary,.primary-link{border:1px solid #1a7f37;border-radius:6px;background:#1f883d;color:#fff!important;font:900 15px Nunito;padding:10px 16px;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.primary:hover,.primary-link:hover{background:#1a7f37}.premium-card{display:flex;justify-content:space-between;align-items:center;gap:20px}.premium-card h2{margin:12px 0 6px}.premium-card p{margin:0;color:var(--gh-muted)}.bot-grid{display:grid;gap:12px}.bot-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:16px}.bot-icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--gh-border);background:var(--gh-subtle)}.bot-icon img{width:100%;height:100%;display:block;object-fit:cover}.bot-card.tune .bot-icon{background:#dff5ff}.bot-card.shield .bot-icon{background:#dafbe1}.bot-card.game .bot-icon{background:#ffeff7}.bot-card h2{margin:0 0 3px;font-size:17px}.bot-card p{margin:0;color:var(--gh-muted)}.bot-card>span{color:var(--gh-muted);font-size:13px;font-weight:900}.bot-action{min-width:92px;min-height:38px;padding:8px 14px;border:1px solid #1a7f37;border-radius:7px;background:#1f883d;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font:900 14px Nunito,sans-serif;cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease}.bot-action:hover{background:#1a7f37;transform:translateY(-1px)}.bot-action.is-disabled{border-color:var(--gh-border);background:var(--gh-subtle);color:var(--gh-muted)!important;cursor:not-allowed;transform:none}.security-row,.settings-list>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid var(--gh-border)}.security-row:last-child,.settings-list>div:last-child{border:0}.security-row>div,.settings-list>div>div{display:grid;gap:3px}.security-row span,.settings-list span{color:var(--gh-muted);font-size:14px}.check{color:#1a7f37!important;font-weight:900}.muted-status{white-space:nowrap}.secondary-button{border:1px solid var(--gh-border);background:var(--gh-subtle);color:var(--theme-text);border-radius:6px;padding:8px 12px;font:800 14px Nunito;cursor:pointer}.empty-state{text-align:center;padding:50px 20px}.empty-icon{font-size:32px;color:var(--gh-muted)}.empty-state h2{margin:12px 0 4px}.empty-state p{margin:0;color:var(--gh-muted)}.auth-footer{margin-top:38px;padding:24px 4px 8px;border-top:1px solid var(--gh-border);display:grid;grid-template-columns:1fr auto auto;gap:22px;align-items:center;color:var(--gh-muted)}.auth-footer>div{display:grid;gap:2px}.auth-footer strong{color:var(--theme-text);font-size:18px}.auth-footer nav{display:flex;gap:16px;flex-wrap:wrap}.auth-footer a{text-decoration:none;font-weight:800}.auth-footer small{white-space:nowrap}@media(max-width:960px){.github-layout{grid-template-columns:230px minmax(0,1fr)}.stats-grid{grid-template-columns:1fr}.content-grid{grid-template-columns:1fr}}@media(max-width:760px){.account-page{padding:12px}.account-brand span{display:none}.github-layout{grid-template-columns:1fr;gap:16px}.github-sidebar{position:static}.sidebar-profile{padding-top:4px}.sidebar-nav{display:flex;overflow:auto;padding:10px 0}.sidebar-link{width:auto;white-space:nowrap}.sidebar-link.is-active:before{left:10px;right:10px;top:auto;bottom:2px;width:auto;height:3px}.sidebar-logout{display:none}.page-heading{display:block}.status-pill{margin-top:12px}.premium-card{align-items:flex-start;flex-direction:column}.auth-footer{grid-template-columns:1fr;text-align:center}.auth-footer nav{justify-content:center}.auth-footer small{white-space:normal}}@media(max-width:520px){.topbar-icon{width:41px;height:41px}.page-heading h1{font-size:24px}.stats-grid{gap:10px}.github-card{padding:16px}.bot-card{grid-template-columns:auto 1fr}.bot-card>span,.bot-card>.bot-action{grid-column:2;justify-self:start}.security-row,.settings-list>div{align-items:flex-start;flex-direction:column}.details-list div,.readonly-row{align-items:flex-start;flex-direction:column;gap:4px}.details-list dd{text-align:left}} .account-shell{min-height:100vh;display:flex;flex-direction:column;width:min(1180px,calc(100% - 32px));margin:0 auto;padding:26px 0 0}.account-shell .account-nav{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:12px 18px;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);box-shadow:var(--theme-shadow)}.account-shell .brand{display:inline-flex;align-items:center;gap:12px;color:var(--theme-text);text-decoration:none;font-size:24px;font-weight:900;line-height:1}.account-shell .brand img{width:52px;height:52px;min-width:52px;object-fit:cover;border-radius:15px;display:block}.account-shell .nav-tools{display:flex;align-items:center;gap:10px;margin-left:auto}.account-shell .home-link,.account-shell .theme-toggle{width:46px;height:46px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--theme-border);border-radius:13px;background:var(--theme-surface);color:var(--theme-text);text-decoration:none;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease}.account-shell .home-link:hover,.account-shell .theme-toggle:hover{transform:translateY(-1px);border-color:var(--theme-accent);background:var(--theme-surface-2)}.account-shell .home-icon{width:21px;height:21px}.account-shell .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.account-shell .auth-wrap{flex:1;display:grid;place-items:center;padding:54px 0 44px}.account-shell .auth-card{width:min(100%,540px);margin:0;padding:34px;border:1px solid var(--theme-border);border-radius:20px;background:var(--theme-surface);color:var(--theme-text);box-shadow:var(--theme-shadow)}.account-shell .auth-card h1{margin:0 0 8px;font-size:36px;line-height:1.15;text-align:center;color:var(--theme-text)}.account-shell .auth-card .lead{margin:0 0 26px;text-align:center;color:var(--theme-muted)}.account-shell .field{display:grid;gap:8px;margin:0 0 18px}.account-shell .field label{font-weight:900;color:var(--theme-text)}.account-shell .field input{width:100%;min-height:54px;padding:12px 15px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface);color:var(--theme-text);font:700 16px Nunito,sans-serif}.account-shell .field input:focus{outline:none;border-color:var(--theme-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--theme-accent) 18%,transparent)}.account-shell .primary{width:100%;min-height:54px;border:0;border-radius:14px;background:#38bdf8;color:#07111d!important;font:900 17px Nunito,sans-serif;cursor:pointer;transition:transform .18s ease,filter .18s ease}.account-shell .primary:hover{transform:translateY(-1px);filter:brightness(1.04)}.account-shell .auth-divider{display:flex;align-items:center;gap:14px;margin:25px 0;color:var(--theme-muted);font-weight:900}.account-shell .auth-divider:before,.account-shell .auth-divider:after{content:"";height:1px;flex:1;background:var(--theme-border)}.account-shell .oauth-stack{display:grid;gap:12px}.account-shell .google-button,.account-shell .yandex-button{min-height:58px;display:flex;align-items:center;justify-content:center;gap:12px;border-radius:14px;text-decoration:none;font:900 17px Nunito,sans-serif;transition:transform .18s ease,filter .18s ease,border-color .18s ease}.account-shell .google-button{background:#fff;color:#111827;border:1px solid #d7e2ec}.account-shell .yandex-button{background:#111;color:#fff;border:1px solid #111}.account-shell .google-button:hover,.account-shell .yandex-button:hover{transform:translateY(-1px);filter:brightness(.98)}.account-shell .google-logo,.account-shell .yandex-logo{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900;flex:0 0 30px}.account-shell .google-logo{color:#4285f4;background:#fff;font-size:22px}.account-shell .yandex-logo{color:#fff;background:#ff3b30;font-size:20px}.account-shell .links,.account-shell .forgot-link{text-align:center;color:var(--theme-muted);font-size:16px}.account-shell .links{margin-top:22px}.account-shell .forgot-bottom{margin-top:14px}.account-shell .links a,.account-shell .forgot-link a{color:var(--theme-accent);font-weight:800}.account-shell .alert{padding:13px 15px;border-radius:12px;margin:0 0 20px;font-weight:800}.account-shell .alert.error{background:#fff0f1;color:#b42335;border:1px solid #ffc6cd}.account-shell .alert.ok{background:#eafaf0;color:#116329;border:1px solid #a8e6bb}.account-shell .auth-footer{margin:0;padding:24px 4px 26px;border-top:1px solid var(--theme-border);display:grid;grid-template-columns:1fr auto auto;gap:22px;align-items:center;color:var(--theme-muted)}.account-shell .auth-footer>div{display:grid;gap:2px}.account-shell .auth-footer strong{color:var(--theme-text);font-size:18px}.account-shell .auth-footer nav{display:flex;gap:16px;flex-wrap:wrap}.account-shell .auth-footer a{text-decoration:none;font-weight:800}.account-shell .auth-footer small{white-space:nowrap}html[data-theme="dark"] .account-shell .account-nav,html[data-theme="dark"] .account-shell .auth-card{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}html[data-theme="dark"] .account-shell .home-link,html[data-theme="dark"] .account-shell .theme-toggle{background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important}html[data-theme="dark"] .account-shell .google-button{background:#fff!important;color:#111827!important}html[data-theme="dark"] .account-shell .yandex-button{background:#111!important;color:#fff!important}@media(max-width:700px){.account-shell{width:min(100% - 20px,1180px);padding-top:10px}.account-shell .account-nav{min-height:66px;padding:9px 11px;border-radius:15px}.account-shell .brand{font-size:20px}.account-shell .brand img{width:44px;height:44px;min-width:44px;border-radius:12px}.account-shell .home-link,.account-shell .theme-toggle{width:42px;height:42px}.account-shell .auth-wrap{padding:28px 0}.account-shell .auth-card{padding:24px 18px;border-radius:17px}.account-shell .auth-card h1{font-size:30px}.account-shell .auth-footer{grid-template-columns:1fr;text-align:center}.account-shell .auth-footer nav{justify-content:center}.account-shell .auth-footer small{white-space:normal}} .profile-grid,.security-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:16px;align-items:start}.linked-services-card{padding:0;overflow:hidden}.linked-services-card .card-title{padding:18px 20px;margin:0;border-bottom:1px solid var(--gh-border)}.linked-service-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;border-bottom:1px solid var(--gh-border)}.linked-service-row:last-child{border-bottom:0}.service-identity{display:flex;align-items:center;gap:12px;min-width:0}.service-identity>div{display:grid;gap:2px}.service-identity strong{font-size:15px}.service-identity span:not(.service-logo){font-size:13px;color:var(--gh-muted)}.service-logo{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;font:900 19px Nunito,sans-serif;border:1px solid var(--gh-border)}.service-logo.google{background:#fff;color:#4285f4}.service-logo.lolka{background:#edf7ff;color:#087fb9}.service-action{min-height:36px;padding:7px 13px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-subtle);color:var(--theme-text);font:900 14px Nunito,sans-serif;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;white-space:nowrap}.service-action:hover{border-color:var(--theme-accent);color:var(--theme-accent)}.service-action.is-disabled{opacity:.58;cursor:not-allowed}.service-action.is-disabled:hover{border-color:var(--gh-border);color:var(--theme-text)}.password-card .card-description{margin:-4px 0 18px;color:var(--gh-muted);font-size:14px;line-height:1.55}.security-grid .github-card{min-width:0}html[data-theme="dark"] .service-logo.google{background:#fff;color:#4285f4}html[data-theme="dark"] .service-logo.lolka{background:#102f43;color:#53c8ff}@media(max-width:980px){.profile-grid,.security-grid{grid-template-columns:1fr}}@media(max-width:520px){.linked-service-row{align-items:flex-start;flex-direction:column}.service-action{width:100%}} .account-shell .manual-auth-toggle{width:100%;min-height:54px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface-2);color:var(--theme-text);font:900 16px Nunito,sans-serif;cursor:pointer;transition:transform .18s ease,border-color .18s ease,color .18s ease}.account-shell .manual-auth-toggle:hover{transform:translateY(-1px);border-color:var(--theme-accent);color:var(--theme-accent)}.account-shell .manual-auth-panel{display:none;margin-top:20px;padding-top:20px;border-top:1px solid var(--theme-border)}.account-shell .manual-auth-panel.is-open{display:block}.account-shell .turnstile-auth-wrap{margin:4px 0 18px;padding:14px;border:1px solid var(--theme-border);border-radius:14px;background:var(--theme-surface-2);overflow:hidden}.account-shell .turnstile-auth-wrap>p{margin:9px 0 0;color:var(--theme-muted);font-size:13px;line-height:1.45}.account-shell .turnstile-auth-wrap .cf-turnstile,.account-shell #login-turnstile{min-height:65px}@media(max-width:420px){.account-shell .turnstile-auth-wrap{padding:10px;overflow-x:auto}} .service-logo.yandex{background:#ff4f35;color:#fff;font-size:18px}.service-logo.lolka{overflow:hidden;padding:0;background:#fff}.service-logo.lolka img{width:100%;height:100%;object-fit:cover;display:block}.service-form{margin:0}.service-action.danger{color:#d1242f;background:transparent;border-color:rgba(209,36,47,.45)}.service-action.danger:hover{color:#fff;background:#d1242f;border-color:#d1242f}html[data-theme="dark"] .service-logo.yandex{background:#ff4f35;color:#fff}html[data-theme="dark"] .service-logo.lolka{background:#fff}html[data-theme="dark"] .service-action.danger{color:#ff7b72;border-color:rgba(255,123,114,.45)}html[data-theme="dark"] .service-action.danger:hover{color:#fff;background:#da3633;border-color:#da3633} .console-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:28px 0 14px}.console-heading h2{margin:0 0 4px;font-size:22px}.console-heading p:not(.eyebrow){margin:0;color:var(--gh-muted)}.console-status{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border:1px solid var(--gh-border);border-radius:999px;background:var(--gh-card);font-size:13px;font-weight:900;white-space:nowrap}.console-status i{width:9px;height:9px;border-radius:50%;background:#2da44e;box-shadow:0 0 0 4px rgba(45,164,78,.14)}.bot-console-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:14px}.console-form{display:grid;gap:14px}.console-fields{display:grid;grid-template-columns:minmax(120px,.45fr) minmax(220px,1fr);gap:14px}.range-row{display:grid;grid-template-columns:1fr 58px;gap:12px;align-items:center}.range-row input{width:100%;accent-color:#1f883d}.range-row output{padding:9px 8px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-subtle);text-align:center;font-weight:900}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid var(--gh-border);cursor:pointer}.toggle-row span{display:grid;gap:2px}.toggle-row small{color:var(--gh-muted)}.toggle-row input{position:absolute;opacity:0;pointer-events:none}.toggle-row i{position:relative;width:44px;height:24px;border-radius:999px;background:var(--gh-border);transition:.18s;flex:none}.toggle-row i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.18s}.toggle-row input:checked+i{background:#1f883d}.toggle-row input:checked+i:after{transform:translateX(20px)}.command-card{align-self:start}.command-list{display:grid;gap:8px}.command-list button{display:grid;grid-template-columns:minmax(90px,auto) 1fr;align-items:center;gap:12px;width:100%;padding:10px 11px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-subtle);color:var(--theme-text);text-align:left;cursor:pointer;font-family:Nunito,sans-serif}.command-list button:hover,.command-list button.is-copied{border-color:var(--gh-blue)}.command-list code{color:var(--gh-blue);font-weight:900}.command-list span{color:var(--gh-muted);font-size:13px}.console-note{margin-top:14px;padding:13px;border:1px dashed var(--gh-border);border-radius:7px;background:var(--gh-subtle)}.console-note p{margin:4px 0 0;color:var(--gh-muted);font-size:13px;line-height:1.45}@media(max-width:980px){.bot-console-grid{grid-template-columns:1fr}}@media(max-width:620px){.console-heading{align-items:flex-start;flex-direction:column}.console-fields{grid-template-columns:1fr}.console-status{white-space:normal}} .bot-manager-layout{display:grid;grid-template-columns:270px minmax(0,1fr);gap:18px;align-items:start}.bot-picker{padding:12px;position:sticky;top:18px}.bot-picker .card-title{padding:8px 8px 12px;margin:0}.bot-picker-item{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--gh-text);font:inherit;text-align:left;cursor:pointer;transition:.18s ease}.bot-picker-item+.bot-picker-item{margin-top:6px}.bot-picker-item:hover{background:var(--gh-subtle);border-color:var(--gh-border)}.bot-picker-item.is-active{background:rgba(56,139,253,.12);border-color:var(--gh-blue)}.bot-picker-item img{width:44px;height:44px;border-radius:11px;object-fit:cover}.bot-picker-item span{display:grid;min-width:0}.bot-picker-item strong{font-size:15px}.bot-picker-item small{color:var(--gh-muted);font-size:12px}.bot-picker-item i{font-style:normal;font-size:11px;font-weight:900;color:var(--gh-muted);white-space:nowrap}.bot-picker-item.is-active i{color:var(--gh-blue)}.bot-control-panel{display:none}.bot-control-panel.is-active{display:block}.bot-manager-content{min-width:0}.bot-manager-content .console-heading{margin-top:0}.bot-coming-soon{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:38px}.bot-coming-soon img{width:82px;height:82px;border-radius:20px;margin-bottom:18px}.bot-coming-soon h2{margin:0 0 8px}.bot-coming-soon p{max-width:430px;margin:0 0 16px;color:var(--gh-muted)}@media(max-width:1050px){.bot-manager-layout{grid-template-columns:220px minmax(0,1fr)}.bot-console-grid{grid-template-columns:1fr}}@media(max-width:760px){.bot-manager-layout{grid-template-columns:1fr}.bot-picker{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bot-picker .card-title{grid-column:1/-1}.bot-picker-item{grid-template-columns:36px minmax(0,1fr);padding:9px}.bot-picker-item+.bot-picker-item{margin-top:0}.bot-picker-item img{width:36px;height:36px}.bot-picker-item i{display:none}}@media(max-width:520px){.bot-picker{grid-template-columns:1fr}.bot-picker .card-title{grid-column:auto}.bot-picker-item i{display:block}} .github-layout{transition:grid-template-columns .22s ease}.sidebar-toggle{width:100%;display:flex;align-items:center;gap:11px;margin:12px 0 2px;padding:9px 12px;border:1px solid var(--gh-border);border-radius:9px;background:var(--gh-subtle);color:var(--theme-text);font:800 13px Nunito,sans-serif;cursor:pointer;transition:.18s ease}.sidebar-toggle:hover{border-color:var(--gh-blue);color:var(--gh-blue)}.sidebar-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none;transition:transform .22s ease}.sidebar-link b,.sidebar-logout b{font:inherit;white-space:nowrap}.sidebar-icon{width:30px!important;height:30px;display:grid;place-items:center;flex:0 0 30px;color:var(--gh-muted)}.sidebar-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.sidebar-link{min-height:50px;gap:13px;padding:10px 13px;font-size:16px}.sidebar-logout{min-height:52px;gap:13px;padding-left:13px;font-size:16px}.sidebar-link.is-active .sidebar-icon{color:var(--gh-blue)}.github-layout.sidebar-collapsed{grid-template-columns:82px minmax(0,1fr);gap:22px}.sidebar-collapsed .sidebar-profile{justify-content:center;padding:12px 4px 16px}.sidebar-collapsed .sidebar-profile img,.sidebar-collapsed .avatar-fallback{width:48px;height:48px}.sidebar-collapsed .sidebar-profile>div:last-child,.sidebar-collapsed .sidebar-link b,.sidebar-collapsed .sidebar-logout b,.sidebar-collapsed .sidebar-toggle span{display:none}.sidebar-collapsed .sidebar-toggle{justify-content:center;padding-inline:0}.sidebar-collapsed .sidebar-toggle svg{transform:rotate(180deg)}.sidebar-collapsed .sidebar-link,.sidebar-collapsed .sidebar-logout{justify-content:center;padding-inline:0;gap:0}.sidebar-collapsed .sidebar-icon{width:34px!important;height:34px;flex-basis:34px}.sidebar-collapsed .sidebar-icon svg{width:27px;height:27px}.sidebar-collapsed .sidebar-link.is-active:before{left:-3px}.bot-picker{position:static!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px;margin:-4px 0 20px}.bot-picker .card-title{grid-column:1/-1;padding:0 2px 4px;margin:0}.bot-picker-item,.bot-picker-item+.bot-picker-item{margin:0}.bot-picker-item{min-height:76px;grid-template-columns:52px minmax(0,1fr) auto;padding:11px 13px}.bot-picker-item img{width:52px;height:52px;border-radius:14px}.bot-picker-item strong{font-size:16px}.bot-picker-item small{font-size:13px}.bot-manager-content{width:100%}@media(max-width:960px){.github-layout.sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}}@media(max-width:760px){.github-layout,.github-layout.sidebar-collapsed{grid-template-columns:1fr;gap:16px}.sidebar-toggle{display:none}.sidebar-profile>div:last-child,.sidebar-link b,.sidebar-logout b{display:initial!important}.sidebar-nav{display:flex}.sidebar-icon{width:27px!important;height:27px;flex-basis:27px}.sidebar-icon svg{width:22px;height:22px}.bot-picker{grid-template-columns:1fr;gap:8px}.bot-picker .card-title{grid-column:auto}.bot-picker-item i{display:block}} .security-overview{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(230px,.7fr);gap:24px;align-items:center;margin-bottom:18px;padding:24px}.security-score-ring{--score:0;position:relative;width:112px;height:112px;border-radius:50%;display:grid;place-content:center;text-align:center;background:conic-gradient(var(--gh-blue) calc(var(--score)*1%),var(--gh-border) 0)}.security-score-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:var(--gh-card)}.security-score-ring strong,.security-score-ring span{position:relative;z-index:1}.security-score-ring strong{font-size:25px;line-height:1}.security-score-ring span{margin-top:4px;color:var(--gh-muted);font-size:12px;font-weight:800}.security-overview-copy h2{margin:5px 0 6px;font-size:24px}.security-overview-copy p{margin:0;color:var(--gh-muted)}.security-level{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(56,139,253,.12);color:var(--gh-blue);font-size:12px;font-weight:900}.security-checks{display:grid;gap:9px}.security-checks span{position:relative;padding-left:27px;color:var(--gh-muted);font-size:13px;font-weight:800}.security-checks span:before{content:"×";position:absolute;left:0;top:-1px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:var(--gh-subtle);border:1px solid var(--gh-border);font-size:12px}.security-checks span.is-done{color:var(--theme-text)}.security-checks span.is-done:before{content:"✓";background:rgba(45,164,78,.14);border-color:rgba(45,164,78,.35);color:#2da44e}.current-session-card{align-self:start}.session-device{display:grid;grid-template-columns:48px 1fr;gap:13px;align-items:center;padding:14px 0 18px}.session-device-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:var(--gh-subtle);border:1px solid var(--gh-border);font-size:24px}.session-device div:last-child{display:grid;gap:3px}.session-device span,.session-device small{color:var(--gh-muted);font-size:13px}.security-session-button{width:100%}.security-password-card{grid-column:1/2}.security-tips-card{grid-column:2/3;align-self:start}.password-input-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--gh-border);border-radius:8px;background:var(--gh-card);overflow:hidden}.password-input-wrap:focus-within{border-color:var(--gh-blue);box-shadow:0 0 0 3px rgba(56,139,253,.14)}.password-input-wrap input{border:0!important;border-radius:0!important;box-shadow:none!important}.password-input-wrap button{border:0;border-left:1px solid var(--gh-border);background:var(--gh-subtle);color:var(--gh-blue);padding:0 12px;font:800 12px Nunito,sans-serif;cursor:pointer}.password-strength{height:7px;margin:-4px 0 11px;border-radius:999px;background:var(--gh-border);overflow:hidden}.password-strength i{display:block;width:0;height:100%;border-radius:inherit;background:#d1242f;transition:width .2s ease,background .2s ease}.password-strength i[data-level="2"]{background:#bf8700}.password-strength i[data-level="3"]{background:#2da44e}.password-strength i[data-level="4"]{background:#1f883d}.password-rules{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin-bottom:15px}.password-rules span{position:relative;padding-left:20px;color:var(--gh-muted);font-size:12px}.password-rules span:before{content:"○";position:absolute;left:0}.password-rules span.is-valid{color:#2da44e}.password-rules span.is-valid:before{content:"✓"}.password-field small.is-match{color:#2da44e}.password-field small.is-error{color:#d1242f}.security-tip{display:grid;grid-template-columns:34px 1fr;gap:12px;padding:14px 0;border-top:1px solid var(--gh-border)}.security-tip:first-of-type{border-top:0}.security-tip>b{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--gh-subtle);color:var(--gh-blue);font-size:11px}.security-tip>div{display:grid;gap:3px}.security-tip span{color:var(--gh-muted);font-size:13px;line-height:1.45}@media(max-width:900px){.security-overview{grid-template-columns:auto 1fr}.security-checks{grid-column:1/-1;grid-template-columns:repeat(3,1fr)}.security-password-card,.security-tips-card{grid-column:auto}}@media(max-width:620px){.security-overview{grid-template-columns:1fr;text-align:center}.security-score-ring{margin:auto}.security-checks{grid-template-columns:1fr;text-align:left}.password-rules{grid-template-columns:1fr}.security-grid{grid-template-columns:1fr!important}} .security-services-card .linked-service-row{margin-top:10px}.security-services-card .card-description{margin:0 0 8px}.security-lolka-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.security-lolka-form input{width:150px;min-height:40px;border:1px solid var(--border,#d0d7de);border-radius:10px;padding:8px 10px;background:var(--surface,#fff);color:inherit;font:inherit}.password-method-row{margin-top:12px;padding-top:16px;border-top:1px solid var(--border,#d0d7de)}.password-age-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 18px;padding:14px;border:1px solid var(--border,#d0d7de);border-radius:14px;background:color-mix(in srgb,var(--surface,#fff) 92%,#4f46e5 8%)}.password-age-box>div{display:flex;flex-direction:column;gap:4px}.password-age-box span{font-size:12px;color:var(--muted,#667085)}.password-age-box strong{font-size:14px}.password-age-box p{grid-column:1/-1;margin:0;font-size:13px;color:var(--muted,#667085)}.password-age-box.is-warning{border-color:#f59e0b;background:rgba(245,158,11,.09)}.password-age-box.is-warning p{color:#b45309;font-weight:800}@media(max-width:720px){.security-lolka-row{align-items:flex-start}.security-lolka-form{width:100%;justify-content:stretch}.security-lolka-form input{width:auto;flex:1;min-width:130px}.password-age-box{grid-template-columns:1fr}}[data-theme="dark"] .security-lolka-form input{background:#111827;border-color:#334155;color:#f8fafc} .control-context{padding:16px;margin-bottom:18px;display:grid;gap:14px}.control-context-field{display:flex;align-items:center;gap:12px}.control-context-field label{font-weight:700}.control-context-field select{min-width:240px;background:var(--surface,#0d1117);color:inherit;border:1px solid var(--border,#30363d);border-radius:8px;padding:10px 34px 10px 12px}.control-context-bots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.compact-bot{display:flex;align-items:center;gap:10px;text-align:left;background:transparent;color:inherit;border:1px solid var(--border,#30363d);border-radius:9px;padding:10px;cursor:pointer}.compact-bot:hover,.compact-bot.is-active{background:rgba(56,139,253,.1);border-color:#388bfd}.compact-bot img{width:42px;height:42px;border-radius:10px}.compact-bot span{display:grid;min-width:0}.compact-bot small{color:var(--muted,#8b949e)}.compact-bot i{margin-left:auto;font-style:normal;font-size:12px;color:var(--muted,#8b949e)}.compact-bot .status-online{color:#3fb950}.bot-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start}.bot-module-sidebar{padding:12px;position:sticky;top:18px}.bot-module-head{display:flex;align-items:center;gap:11px;padding:7px 7px 14px;border-bottom:1px solid var(--border,#30363d);margin-bottom:8px}.bot-module-head img{width:42px;height:42px;border-radius:10px}.bot-module-head div{display:grid}.bot-module-head small{color:var(--muted,#8b949e)}.bot-module-menu{display:none;gap:4px}.bot-module-menu.is-active{display:grid}.bot-module-menu button{border:0;background:transparent;color:inherit;text-align:left;padding:10px 12px;border-radius:7px;font-weight:650;cursor:pointer}.bot-module-menu button:hover{background:rgba(177,186,196,.08)}.bot-module-menu button.is-active{background:rgba(56,139,253,.15);color:#58a6ff}.bot-module-panel{display:none}.bot-module-panel.is-active{display:block}.status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.metric-card{padding:16px;display:grid;gap:5px}.metric-card small,.metric-card span{color:var(--muted,#8b949e)}.metric-card strong{font-size:20px}.good-text{color:#3fb950!important}.console-note-card,.placeholder-module{padding:22px}.placeholder-module p{color:var(--muted,#8b949e);max-width:720px}.inline-button{display:inline-flex;margin-top:10px;text-decoration:none}.bot-coming-soon{padding:28px;text-align:center}.bot-coming-soon img{width:72px;height:72px;border-radius:16px;margin-bottom:12px}@media(max-width:1050px){.control-context-bots{grid-template-columns:1fr}.bot-workspace{grid-template-columns:1fr}.bot-module-sidebar{position:static}.bot-module-menu.is-active{display:flex;overflow:auto;padding-bottom:2px}.bot-module-menu button{white-space:nowrap}.status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.control-context-field{align-items:stretch;flex-direction:column}.control-context-field select{width:100%;min-width:0}.status-grid{grid-template-columns:1fr}.compact-bot i{display:none}} .control-context-field small{display:block;margin-top:6px;color:var(--muted,#8b949e);font-size:13px}.server-manager{margin:16px 0 20px;padding:22px}.server-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.server-manager-head h2{margin:2px 0 6px}.server-manager-head p{margin:0;color:var(--muted,#8b949e)}.server-limit-badge{white-space:nowrap;border:1px solid var(--border,#30363d);border-radius:999px;padding:7px 12px;font-weight:700;background:var(--surface-2,#161b22)}.server-add-form>label{display:block;font-weight:700;margin-bottom:8px}.server-add-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.server-add-row input{width:100%;min-height:44px}.server-id-list{display:grid;gap:9px;margin-top:18px}.server-id-item{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--border,#30363d);background:var(--surface-2,#161b22);border-radius:8px;padding:12px 14px}.server-id-item>div{display:flex;align-items:center;gap:12px;min-width:0}.server-id-item code{color:var(--accent,#58a6ff);font-size:14px;overflow-wrap:anywhere}.server-id-item form{margin:0}.danger-outline{border:1px solid #f85149;color:#ff7b72;background:transparent;border-radius:7px;padding:8px 12px;font-weight:700;cursor:pointer}.danger-outline:hover{background:rgba(248,81,73,.12)}.server-empty-state{border:1px dashed var(--border,#30363d);border-radius:8px;padding:18px;color:var(--muted,#8b949e);text-align:center}.server-premium-note{margin-top:14px;padding:12px 14px;border-left:3px solid #d29922;background:rgba(210,153,34,.08);border-radius:6px;color:var(--muted,#c9d1d9)}@media(max-width:700px){.server-manager-head{display:block}.server-limit-badge{display:inline-block;margin-top:12px}.server-add-row{grid-template-columns:1fr}.server-id-item{align-items:flex-start}.server-id-item>div{display:block}.server-id-item code{display:block;margin-top:4px}} .console-status.is-offline{color:var(--muted,#8b949e)}.console-status.is-offline i{background:#8b949e;box-shadow:none}.api-form-message{font-size:13px;color:var(--muted,#8b949e)}.api-form-message.is-success{color:#3fb950}.api-form-message.is-error{color:#f85149}.shieldy-command-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}.shieldy-command-grid code{display:block;padding:10px 12px;border:1px solid var(--border,#30363d);border-radius:8px;background:rgba(110,118,129,.08);font-size:13px}.api-diagnostics{padding:20px;display:grid;gap:12px}.api-diagnostics>div{display:flex;justify-content:space-between;gap:20px;padding-bottom:12px;border-bottom:1px solid var(--border,#30363d)}.api-diagnostics span{color:var(--muted,#8b949e)}.api-diagnostics strong{text-align:right;word-break:break-word}@media(max-width:700px){.api-diagnostics>div{display:grid;gap:4px}.api-diagnostics strong{text-align:left}.shieldy-command-grid{grid-template-columns:repeat(2,minmax(0,1fr))}} .server-api-note{display:flex;align-items:center;justify-content:space-between;padding:20px 22px;margin-bottom:18px}.server-api-note h2{margin:2px 0 6px;font-size:18px}.server-api-note p:last-child{margin:0;color:var(--muted,#57606a);line-height:1.5}[data-theme="dark"] .server-api-note p:last-child{color:#8c959f} #panel-bot-control .control-context{margin-bottom:24px}#panel-bot-control .control-context-bots{align-items:stretch}#panel-bot-control .compact-bot{min-height:80px;padding:14px;box-sizing:border-box;align-items:center}#panel-bot-control .compact-bot img{flex:0 0 42px}#panel-bot-control .server-api-note{margin:0 0 24px;padding:22px;min-height:132px;box-sizing:border-box;align-items:center}#panel-bot-control .server-api-note>div{width:100%}#panel-bot-control .bot-workspace{margin-top:0}@media (max-width:1050px){#panel-bot-control .compact-bot{min-height:76px}}@media (max-width:620px){#panel-bot-control .control-context,#panel-bot-control .server-api-note{margin-bottom:18px}#panel-bot-control .server-api-note{min-height:0;padding:18px}} .shieldy-advanced-form{display:grid;gap:16px}.automod-rule-card{padding:20px}.automod-rule-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.automod-rule-head h3{margin:0 0 4px}.automod-rule-head p{margin:0;color:var(--muted,#8b949e)}.mini-switch{display:inline-flex}.mini-switch input{position:absolute;opacity:0}.mini-switch i{width:44px;height:24px;border-radius:99px;background:#30363d;border:1px solid #484f58;position:relative;cursor:pointer;transition:.2s}.mini-switch i:after{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#f0f6fc;transition:.2s}.mini-switch input:checked+i{background:#238636;border-color:#2ea043}.mini-switch input:checked+i:after{transform:translateX(20px)}.inline-toggles{display:flex;gap:16px;flex-wrap:wrap}.inline-toggles label{display:flex;gap:7px;align-items:center;color:#c9d1d9}.rule-options{display:none;margin-top:18px;padding-top:18px;border-top:1px solid var(--border,#30363d);grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:16px}.rule-options.is-open{display:grid}.three-fields{grid-template-columns:repeat(3,minmax(0,1fr))}.shieldy-advanced-form textarea{resize:vertical;min-height:84px}.sticky-save-bar{position:sticky;bottom:12px;z-index:4;display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #30363d;border-radius:10px;background:color-mix(in srgb,#0d1117 94%,transparent);box-shadow:0 8px 24px rgba(0,0,0,.25)}@media(max-width:900px){.three-fields,.rule-options.is-open{grid-template-columns:1fr}.automod-rule-head{align-items:flex-start}.sticky-save-bar{position:static}} .shieldy-advanced-form,.shieldy-advanced-form *{box-sizing:border-box}.shieldy-advanced-form .console-card{min-width:0;overflow:hidden}.shieldy-advanced-form .field{min-width:0;margin:0}.shieldy-advanced-form .field input,.shieldy-advanced-form .field select,.shieldy-advanced-form .field textarea{display:block;width:100%;max-width:100%;min-width:0;padding:11px 12px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-subtle);color:var(--theme-text);font:700 15px Nunito,sans-serif;line-height:1.45}.shieldy-advanced-form .field select{height:46px;appearance:auto}.shieldy-advanced-form .field textarea{min-height:112px}.shieldy-advanced-form .console-fields{width:100%;align-items:start}.shieldy-advanced-form .three-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.shieldy-advanced-form .card-title{align-items:flex-start;margin-bottom:20px}.shieldy-advanced-form .console-card{padding:24px}.moderation-dependent{display:none}.moderation-dependent.is-open{display:block;animation:shieldyReveal .18s ease-out}.rule-options.is-open{animation:shieldyReveal .18s ease-out}@keyframes shieldyReveal{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}@media(max-width:1100px){.shieldy-advanced-form .three-fields{grid-template-columns:1fr 1fr}.shieldy-advanced-form .three-fields .field:last-child{grid-column:1/-1}}@media(max-width:720px){.shieldy-advanced-form .three-fields{grid-template-columns:1fr}.shieldy-advanced-form .three-fields .field:last-child{grid-column:auto}.shieldy-advanced-form .console-card{padding:18px}.automod-rule-head{gap:14px}.inline-toggles{width:100%;justify-content:flex-start}} .log-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.log-summary-card{padding:18px;display:grid;gap:5px;min-width:0}.log-summary-card span,.log-summary-card small{color:var(--muted,#8b949e)}.log-summary-card strong{font-size:28px;line-height:1.1}.log-filter-card,.log-stream-card,.log-retention-card{padding:22px;margin-bottom:16px}.log-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.log-filter-grid .field{margin:0;min-width:0}.log-filter-grid input,.log-filter-grid select{width:100%;min-width:0}.log-quick-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#30363d)}.log-quick-tabs button{border:1px solid var(--border,#30363d);background:transparent;color:var(--theme-text);border-radius:999px;padding:8px 12px;font-weight:700;cursor:pointer}.log-quick-tabs button:hover,.log-quick-tabs button.is-active{border-color:var(--accent,#58a6ff);background:rgba(88,166,255,.12);color:var(--accent,#58a6ff)}.shieldy-log-list{display:grid}.shieldy-log-item{display:grid;grid-template-columns:12px minmax(0,1fr);gap:14px;padding:17px 0;border-bottom:1px solid var(--border,#30363d)}.shieldy-log-item:first-child{padding-top:2px}.shieldy-log-item:last-child{border-bottom:0;padding-bottom:2px}.log-dot{width:10px;height:10px;border-radius:50%;margin-top:7px;background:#8b949e;box-shadow:0 0 0 4px rgba(139,148,158,.12)}.log-dot.warning{background:#d29922;box-shadow:0 0 0 4px rgba(210,153,34,.13)}.log-dot.danger{background:#f85149;box-shadow:0 0 0 4px rgba(248,81,73,.13)}.log-dot.info{background:#58a6ff;box-shadow:0 0 0 4px rgba(88,166,255,.13)}.log-dot.success{background:#3fb950;box-shadow:0 0 0 4px rgba(63,185,80,.13)}.log-main>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:18px}.log-main time{color:var(--muted,#8b949e);font-size:13px;white-space:nowrap}.log-main p{margin:6px 0 10px;color:var(--muted,#8b949e);line-height:1.5}.log-main code{color:var(--accent,#58a6ff)}.log-meta{display:flex;gap:7px;flex-wrap:wrap}.log-meta span,.log-retention-pills span{border:1px solid var(--border,#30363d);background:rgba(110,118,129,.08);border-radius:999px;padding:5px 9px;color:var(--muted,#8b949e);font-size:12px;font-weight:700}.log-empty-state{margin-top:14px}.log-retention-card{display:flex;align-items:center;justify-content:space-between;gap:24px}.log-retention-card h3{margin:0 0 6px}.log-retention-card p{margin:0;color:var(--muted,#8b949e);max-width:720px;line-height:1.5}.log-retention-pills{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.server-limit-badge{font-variant-numeric:tabular-nums}@media(max-width:1100px){.log-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.log-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.log-summary-grid,.log-filter-grid{grid-template-columns:1fr}.log-main>div:first-child{display:grid;gap:4px}.log-main time{white-space:normal}.log-retention-card{display:grid}.log-retention-pills{justify-content:flex-start}} .module-premium-star{margin-left:auto;color:#d29922;font-size:12px}.premium-feature-badge{display:inline-flex;align-items:center;gap:6px;padding:7px 11px;border:1px solid rgba(210,153,34,.45);border-radius:999px;background:rgba(210,153,34,.1);color:#d29922;font-size:13px;font-weight:900;white-space:nowrap}.welcome-builder{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:18px;align-items:start}.welcome-settings-column{display:grid;gap:16px}.welcome-settings-column>.github-card{margin:0}.welcome-master-card{padding:22px}.premium-preview-note{display:grid;gap:3px;margin-top:18px;padding:13px 14px;border:1px solid rgba(210,153,34,.35);border-radius:8px;background:rgba(210,153,34,.08)}.premium-preview-note strong{color:#d29922}.premium-preview-note span{color:var(--muted,#8b949e);font-size:13px;line-height:1.45}.welcome-dependent{display:none;gap:16px}.welcome-dependent.is-open{display:grid;animation:shieldyReveal .18s ease-out}.welcome-dependent>.github-card{margin:0;padding:22px}.welcome-two-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.compact-toggle{margin-top:12px}.welcome-inline-toggles{margin-top:16px;padding-top:16px;border-top:1px solid var(--border,#30363d)}.color-field{display:grid;grid-template-columns:48px minmax(0,1fr);gap:9px}.color-field input[type=color]{padding:3px;height:46px;cursor:pointer}.welcome-save-bar{margin-top:0}.welcome-preview-column{position:sticky;top:18px;min-width:0}.welcome-preview-card{padding:20px;overflow:hidden}.welcome-chat-preview{border:1px solid var(--border,#30363d);border-radius:10px;background:#313338;color:#dbdee1;padding:18px;min-height:390px}.welcome-message-author{display:flex;align-items:center;gap:10px;margin-bottom:12px}.welcome-message-author img{width:38px;height:38px;border-radius:50%;object-fit:cover}.welcome-message-author div{display:grid}.welcome-message-author strong{color:#f2f3f5}.welcome-message-author small{color:#949ba4;font-size:11px;font-weight:800}.welcome-mention-preview{color:#c9cdfb;background:rgba(88,101,242,.25);display:inline-block;border-radius:3px;padding:1px 3px;margin-bottom:8px;font-weight:700}.welcome-embed-preview{--welcome-accent:#2f81f7;border-left:4px solid var(--welcome-accent);border-radius:4px;background:#2b2d31;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.15)}.welcome-banner-preview{height:140px;background-position:center;background-size:cover;background-repeat:no-repeat}.welcome-embed-body{display:flex;gap:13px;padding:16px}.welcome-avatar-preview{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:none}.welcome-preview-content{min-width:0}.welcome-preview-content h4{margin:0 0 8px;color:#f2f3f5;font-size:17px;line-height:1.3;overflow-wrap:anywhere}.welcome-preview-content p{margin:0;color:#dbdee1;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.welcome-preview-content a{display:inline-flex;margin-top:13px;padding:8px 12px;border-radius:5px;background:var(--welcome-accent);color:#fff;text-decoration:none;font-weight:800;font-size:13px}.welcome-preview-footer{padding:0 16px 14px;color:#949ba4;font-size:12px}.welcome-embed-preview.is-plain{border-left:0;background:transparent;box-shadow:none}.welcome-embed-preview.is-plain .welcome-banner-preview,.welcome-embed-preview.is-plain .welcome-avatar-preview,.welcome-embed-preview.is-plain .welcome-preview-footer,.welcome-embed-preview.is-plain .welcome-preview-content h4,.welcome-embed-preview.is-plain .welcome-preview-content a{display:none!important}.welcome-embed-preview.is-plain .welcome-embed-body{padding:0}.welcome-embed-preview.is-plain .welcome-preview-content p{color:#dbdee1}@media(max-width:1150px){.welcome-builder{grid-template-columns:1fr}.welcome-preview-column{position:static}.welcome-chat-preview{min-height:300px}}@media(max-width:720px){.welcome-two-columns{grid-template-columns:1fr}.welcome-dependent>.github-card,.welcome-master-card{padding:18px}.welcome-chat-preview{padding:14px}.welcome-embed-body{display:grid}.welcome-preview-column{min-width:0}.welcome-save-bar{align-items:stretch;flex-direction:column}.welcome-save-bar .inline-button,.welcome-save-bar button{width:100%;justify-content:center}} .free-feature-badge{display:inline-flex;align-items:center;padding:3px 8px;border:1px solid rgba(46,160,67,.35);border-radius:999px;background:rgba(46,160,67,.1);color:#3fb950;font-size:11px;font-weight:800}.premium-feature-badge.compact{padding:3px 7px;font-size:10px;white-space:nowrap}.welcome-premium-card{padding:0!important;overflow:hidden}.welcome-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px}.welcome-section-head h3{margin:0 0 4px}.welcome-section-head p{margin:0;color:var(--muted,#8b949e);font-size:13px;line-height:1.45}.welcome-section-actions{display:flex;align-items:center;gap:10px;flex:none}.welcome-section-body{display:none;padding:0 22px 22px;border-top:1px solid var(--border,#30363d);gap:16px}.welcome-section-body.is-open{display:grid;padding-top:20px;animation:shieldyReveal .18s ease-out}.variable-chips{display:flex;flex-wrap:wrap;gap:8px}.variable-chips button{border:1px solid var(--border,#30363d);background:var(--surface-subtle,#161b22);color:var(--text,#f0f6fc);border-radius:6px;padding:6px 9px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.variable-chips button:hover{border-color:#2f81f7;background:rgba(47,129,247,.08)}.welcome-premium-card.is-locked .welcome-section-head{cursor:pointer}.welcome-premium-card.is-locked .welcome-section-body{opacity:.62}@media(max-width:720px){.welcome-section-head{align-items:flex-start;padding:18px}.welcome-section-actions{gap:7px}.welcome-section-body{padding-left:18px;padding-right:18px}.welcome-section-body.is-open{padding-top:18px}} .welcome-global-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.welcome-global-head h3{margin:0 0 5px}.welcome-global-head p{margin:0;color:var(--muted,#8b949e)}.welcome-master-status{display:flex;align-items:center;gap:12px;font-weight:900}.welcome-event-form{margin:0}.welcome-event-card{padding:0!important;overflow:hidden}.welcome-event-card>.automod-rule-head{padding:22px}.welcome-event-icon{display:inline-grid;place-items:center;width:36px;height:36px;margin-bottom:8px;border:1px solid var(--gh-border);border-radius:9px;background:var(--gh-subtle);font-size:19px}.welcome-event-card .welcome-dependent{border-top:1px solid var(--gh-border);padding:0 22px 22px}.welcome-subsection{padding:22px 0;border-bottom:1px solid var(--gh-border)}.welcome-subsection:last-child{border-bottom:0;padding-bottom:0}.welcome-subsection .card-title{margin-bottom:16px}.preview-event-select{width:auto;min-width:170px;padding:7px 10px;border:1px solid var(--gh-border);border-radius:7px;background:var(--gh-subtle);color:var(--theme-text);font:800 13px Nunito,sans-serif}.welcome-preview-meta{margin-top:12px;padding:9px 11px;border:1px solid var(--gh-border);border-radius:7px;color:#3fb950;background:rgba(46,160,67,.08);font-size:12px;font-weight:900}.welcome-preview-meta.is-off{color:var(--muted,#8b949e);background:rgba(110,118,129,.08)}.welcome-embed-preview.is-disabled-preview{opacity:.48;filter:saturate(.55)}.welcome-premium-card.is-locked .welcome-section-body{position:relative}.welcome-premium-card.is-locked .welcome-section-body:after{content:"Предпросмотр Premium";position:absolute;right:10px;top:10px;padding:5px 8px;border-radius:99px;background:#d29922;color:#0d1117;font-size:10px;font-weight:900}.welcome-premium-card.is-locked input,.welcome-premium-card.is-locked textarea,.welcome-premium-card.is-locked select{opacity:.82}@media(max-width:720px){.welcome-global-head{align-items:flex-start}.welcome-master-status{flex:none}.welcome-event-card>.automod-rule-head{padding:18px}.welcome-event-card .welcome-dependent{padding:0 18px 18px}.preview-event-select{min-width:0;width:150px}} .module-master-switch{display:flex;align-items:center;gap:12px;font-weight:800}.role-template-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}.role-template-grid button{min-height:104px;text-align:left;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:14px;padding:16px;cursor:pointer;transition:.18s ease}.role-template-grid button:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 28px rgba(47,129,247,.13)}.role-template-grid strong,.role-template-grid span{display:block}.role-template-grid span{margin-top:8px;color:var(--muted);font-size:.82rem;line-height:1.45}.reaction-role-layout,.custom-message-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;align-items:start}.reaction-role-editor-column,.custom-message-editor-column{display:grid;gap:16px}.reaction-role-preview-column,.custom-message-preview-column{position:sticky;top:20px;display:grid;gap:16px}.reaction-role-main-fields,.custom-message-two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.reaction-role-options{flex-wrap:wrap}.reaction-role-items{display:grid;gap:10px}.reaction-role-item-row{display:grid;grid-template-columns:90px minmax(160px,1fr) minmax(170px,1fr) 42px;gap:10px;align-items:center}.reaction-role-item-row input{min-width:0}.builder-help{display:block;margin-top:12px;color:var(--muted)}.compact-button{padding:8px 12px!important;min-height:36px!important}.rr-message-preview{padding:8px 2px}.rr-embed-preview{--rr-accent:#2f81f7;border-left:4px solid var(--rr-accent);background:color-mix(in srgb,var(--surface) 78%,var(--rr-accent) 7%);border-radius:5px;padding:14px 16px;margin-top:12px}.rr-embed-preview.is-plain{border-left:0;background:transparent;padding-left:0}.rr-embed-preview h4{margin:0 0 7px}.rr-embed-preview p{margin:0;color:var(--muted);white-space:pre-wrap}.rr-reactions-preview{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.rr-reactions-preview span{background:var(--surface-2);border:1px solid var(--border);padding:7px 10px;border-radius:999px;font-size:.86rem}.saved-builder-list{display:grid;gap:10px}.saved-builder-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border:1px solid var(--border);border-radius:12px;padding:12px}.saved-builder-row strong,.saved-builder-row span{display:block}.saved-builder-row span{margin-top:4px;color:var(--muted);font-size:.82rem}.saved-builder-row>div:last-child{display:flex;gap:8px}.custom-message-buttons-builder{display:grid;gap:10px;margin-bottom:10px}.custom-message-button-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(220px,1.3fr) 42px;gap:10px}.custom-preview-content{white-space:pre-wrap;color:var(--text);margin:12px 0}.custom-message-embed-preview{--cm-accent:#2f81f7;border-left:4px solid var(--cm-accent);background:color-mix(in srgb,var(--surface) 78%,var(--cm-accent) 7%);border-radius:5px;padding:14px 16px;margin-top:12px}.custom-message-embed-preview h4{margin:0 0 8px}.custom-message-embed-preview p{white-space:pre-wrap;color:var(--muted)}.custom-message-embed-preview small{display:block;margin-top:10px;color:var(--muted)}.custom-preview-image{height:180px;border-radius:10px;background-size:cover;background-position:center;margin-top:12px}.custom-preview-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.custom-preview-buttons span{background:var(--accent);color:#07111f;padding:8px 12px;border-radius:8px;font-weight:800;font-size:.86rem}.is-hidden{display:none!important}@media(max-width:1180px){.role-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reaction-role-layout,.custom-message-layout{grid-template-columns:1fr}.reaction-role-preview-column,.custom-message-preview-column{position:static}}@media(max-width:720px){.role-template-grid{grid-template-columns:1fr 1fr}.reaction-role-main-fields,.custom-message-two-columns{grid-template-columns:1fr}.reaction-role-item-row{grid-template-columns:68px 1fr 42px}.reaction-role-item-row .rr-role-id{grid-column:1 / -1}.custom-message-button-row{grid-template-columns:1fr 42px}.custom-message-button-row .cm-button-url{grid-column:1 / -1}.saved-builder-row{grid-template-columns:1fr}.saved-builder-row>div:last-child{justify-content:flex-start}} .custom-banner-field small{display:block;margin-top:7px;color:var(--muted);line-height:1.45}.custom-banner-library{margin-top:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);padding:14px}.custom-banner-library-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.custom-banner-library-head strong,.custom-banner-library-head small{display:block}.custom-banner-library-head small{margin-top:4px;color:var(--muted)}.custom-banner-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.custom-banner-presets button{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:12px;padding:0;background:var(--surface);cursor:pointer;min-width:0;transition:.18s ease;text-align:left;color:var(--text)}.custom-banner-presets button:hover,.custom-banner-presets button.is-selected{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 10px 24px rgba(47,129,247,.18)}.custom-banner-presets button.is-selected::after{content:'✓';position:absolute;right:8px;top:8px;width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:var(--accent);color:#07111f;font-weight:900}.custom-banner-presets img{display:block;width:100%;aspect-ratio:3.27/1;object-fit:cover;background:#101827}.custom-banner-presets span{display:block;padding:8px 10px;font-size:.82rem;font-weight:800}.custom-banner-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.custom-banner-upload .api-form-message{margin:0}.custom-message-embed-preview{overflow:hidden;padding:0}.custom-preview-image{height:auto;aspect-ratio:3.27/1;border-radius:0;background-size:cover;background-position:center;margin:0;border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent)}.custom-preview-embed-body{padding:14px 16px}.custom-preview-embed-body h4{margin-top:0}@media(max-width:760px){.custom-banner-presets{grid-template-columns:1fr 1fr}.custom-banner-library-head{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.custom-banner-presets{grid-template-columns:1fr}}.custom-banner-selection{margin-top:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--muted);font-size:.86rem;font-weight:700}.custom-banner-presets{max-height:520px;overflow:auto;padding-right:4px}.custom-banner-presets button:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 42%,transparent);outline-offset:2px} .custom-banner-tabs{display:flex;gap:8px;margin:0 0 12px;padding:4px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.custom-banner-tabs button{flex:1;border:0;border-radius:9px;padding:10px 14px;background:transparent;color:var(--muted);font:inherit;font-weight:850;cursor:pointer;transition:.18s ease}.custom-banner-tabs button:hover{color:var(--text)}.custom-banner-tabs button.is-active{background:var(--accent);color:#07111f;box-shadow:0 6px 16px rgba(47,129,247,.22)}.custom-banner-panel[hidden]{display:none!important}.custom-banner-presets span{display:flex;align-items:center;justify-content:space-between;gap:8px}.custom-banner-presets span b{font-size:.65rem;letter-spacing:.06em;padding:3px 6px;border-radius:999px;background:var(--surface-2);color:var(--muted)}.custom-banner-upload{align-items:flex-start}.custom-banner-upload .api-form-message{max-width:520px;line-height:1.45} .custom-channel-list{display:grid;gap:10px;margin-bottom:10px}.custom-channel-row{display:grid;grid-template-columns:34px minmax(0,1fr) 40px;gap:10px;align-items:center}.custom-channel-row>span{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--panel-soft,#17233a);border:1px solid var(--border,#30415f);font-weight:800;color:var(--muted,#9fb0ca)}.custom-channel-row input{width:100%}.custom-channel-row .cm-channel-remove{width:40px;height:40px;padding:0}.custom-channel-row .cm-channel-remove[hidden]{visibility:hidden;display:block}.custom-card-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;border:1px solid var(--border,#30415f);border-radius:14px;background:var(--panel-soft,#111b2d);margin:14px 0}.custom-card-toolbar>div:first-child{display:grid;gap:4px}.custom-card-toolbar small{color:var(--muted,#9fb0ca);line-height:1.45}.compact-color-field{display:grid;grid-template-columns:48px 104px;gap:8px;align-items:center;flex:0 0 auto}.compact-color-field input[type=color]{width:48px;height:42px;padding:3px}.custom-block-add{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.custom-block-add button{border:1px solid var(--border,#30415f);background:var(--panel-soft,#111b2d);color:var(--text,#eef4ff);border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}.custom-block-add button:hover{border-color:#35b8ff;color:#35b8ff}.custom-block-list{display:grid;gap:12px;margin-bottom:18px}.custom-block-row{border:1px solid var(--border,#30415f);border-radius:14px;background:var(--panel-soft,#111b2d);overflow:hidden}.custom-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid var(--border,#30415f)}.custom-block-head>div{display:flex;gap:6px}.custom-block-grip{color:var(--muted,#9fb0ca);letter-spacing:-2px;font-size:17px}.icon-mini{min-width:32px;height:30px;border-radius:8px;padding:0;display:grid;place-items:center;border:1px solid var(--border,#30415f);background:transparent;color:var(--text,#eef4ff);cursor:pointer}.custom-block-fields{display:grid;gap:10px;padding:12px}.custom-block-fields input,.custom-block-fields textarea{width:100%}.custom-divider-sample{display:flex;align-items:center;gap:10px;color:var(--muted,#9fb0ca);font-size:12px}.custom-divider-sample i{height:1px;background:var(--border,#30415f);flex:1}.custom-preview-channel-hint{font-size:12px;color:var(--muted,#9fb0ca);margin-bottom:8px}.custom-preview-fields{display:grid;gap:10px;margin-top:10px}.custom-preview-field{display:grid;gap:3px}.custom-preview-field strong{font-size:13px}.custom-preview-field span{font-size:13px;color:var(--muted,#9fb0ca);white-space:pre-wrap}.custom-preview-divider{height:1px;background:color-mix(in srgb,var(--cm-accent,#2f81f7) 35%,transparent);margin:3px 0}@media(max-width:720px){.custom-card-toolbar{align-items:flex-start;flex-direction:column}.compact-color-field{width:100%;grid-template-columns:48px minmax(0,1fr)}.custom-channel-row{grid-template-columns:30px minmax(0,1fr) 38px}.custom-block-head{align-items:flex-start}.custom-block-head>div{flex-wrap:wrap;justify-content:flex-end}} .custom-block-grip{cursor:grab;user-select:none;padding:4px 6px;border-radius:7px}.custom-block-grip:active{cursor:grabbing}.custom-block-row.is-dragging{opacity:.42;transform:scale(.99);border-color:#35b8ff}.custom-block-row.drag-over{box-shadow:0 -3px 0 #35b8ff}.custom-block-row.is-banner-target{border-color:#35b8ff;box-shadow:0 0 0 2px rgba(53,184,255,.18)}.custom-block-fields textarea,.field textarea.auto-grow-textarea,#custom-message-content{resize:none!important;overflow:hidden;min-height:72px;max-height:520px}.cm-block-banner-preview{width:100%;aspect-ratio:15/4;border-radius:10px;background-position:center;background-size:cover;border:1px solid var(--border,#30415f);margin-bottom:10px}.cm-block-banner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cm-block-banner-label{margin-right:auto;color:var(--muted,#9fb0ca);font-size:13px;font-weight:800}.custom-preview-blocks{display:grid;gap:10px;padding:14px 16px}.custom-preview-blocks h4,.custom-preview-blocks p,.custom-preview-blocks small{margin:0}.custom-preview-blocks p{white-space:pre-wrap;color:var(--muted,#9fb0ca)}.custom-preview-banner{display:block;width:100%;height:auto;max-height:320px;object-fit:cover;border-radius:8px}.custom-preview-footer{display:block;color:var(--muted,#9fb0ca);padding-top:4px} .preview-card-title{align-items:center}.preview-card-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.preview-toggle-button{min-height:34px;padding:7px 11px;border:1px solid var(--border,#30415f);border-radius:8px;background:var(--panel-soft,#111b2d);color:var(--text,#eef4ff);font:800 12px Nunito,sans-serif;cursor:pointer;transition:.18s ease}.preview-toggle-button:hover{border-color:#35b8ff;color:#35b8ff}.preview-toggle-button::before{content:'▾';display:inline-block;margin-right:6px;transition:transform .18s ease}.preview-toggle-button.is-collapsed::before{transform:rotate(-90deg)}.preview-collapsible[hidden]{display:none!important}@media(max-width:720px){.preview-card-title{align-items:flex-start}.preview-card-actions{width:100%;justify-content:space-between}.preview-event-select{flex:1}.preview-toggle-button{flex:0 0 auto}} .cm-block-buttons{display:grid;gap:10px;margin-bottom:10px}.custom-block-row[data-block-type="buttons"] .custom-message-button-row{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(220px,1.3fr) 42px;gap:10px}.custom-preview-plain-text{white-space:pre-wrap;color:var(--text)!important;background:transparent;border:0;padding:4px 0;margin:0!important}.custom-preview-buttons-block{margin:2px 0!important}.custom-message-embed-preview.is-plain{border-left:0;background:transparent;padding:0}.custom-message-embed-preview.is-plain .custom-preview-blocks{padding:8px 0}.custom-block-row[data-block-type="plain_text"]{border-style:dashed}.custom-block-row[data-block-type="buttons"]{border-color:color-mix(in srgb,var(--accent,#35b8ff) 50%,var(--border,#30415f))}@media(max-width:720px){.custom-block-row[data-block-type="buttons"] .custom-message-button-row{grid-template-columns:1fr 42px}.custom-block-row[data-block-type="buttons"] .cm-button-url{grid-column:1 / -1}} .custom-sequence-panel{border:1px solid var(--border,#30415f);border-radius:14px;background:var(--panel-soft,#111b2d);padding:14px;margin:14px 0}.custom-sequence-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:12px}.custom-sequence-head>div{display:grid;gap:4px}.custom-sequence-head small{color:var(--muted,#9fb0ca)}.custom-sequence-list{display:grid;gap:8px}.custom-sequence-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--border,#30415f);border-radius:11px;background:var(--surface,#0d1728);padding:7px}.custom-sequence-item.is-active{border-color:var(--accent,#35b8ff);box-shadow:0 0 0 2px rgba(53,184,255,.12)}.custom-sequence-select{border:0;background:transparent;color:var(--text,#eef4ff);text-align:left;padding:7px 8px;cursor:pointer;display:grid;gap:3px}.custom-sequence-select small{color:var(--muted,#9fb0ca);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-sequence-actions{display:flex;gap:5px}.custom-preview-sequence{display:grid;gap:14px}.custom-preview-message{border-top:1px solid var(--border,#30415f);padding-top:12px}.custom-preview-message:first-child{border-top:0;padding-top:0}.custom-preview-message-number{font-size:11px;font-weight:800;color:var(--muted,#9fb0ca);margin-bottom:6px;text-transform:uppercase;letter-spacing:.04em}@media(max-width:720px){.custom-sequence-head{align-items:flex-start;flex-direction:column}.custom-sequence-head .compact-button{width:100%}.custom-sequence-item{grid-template-columns:1fr}.custom-sequence-actions{justify-content:flex-end}} .custom-message-layout{overflow:hidden;transition:grid-template-columns .28s ease}.custom-message-preview-column{min-width:0;transform:translateX(0);opacity:1;visibility:visible;transition:transform .28s ease,opacity .22s ease,visibility .22s ease}.custom-message-layout.is-preview-collapsed{grid-template-columns:minmax(0,1fr) 0}.custom-message-layout.is-preview-collapsed .custom-message-preview-column{transform:translateX(calc(100%+24px));opacity:0;visibility:hidden;pointer-events:none}.custom-preview-side-toggle::before{content:'›';transform:rotate(180deg)}.custom-preview-side-toggle.is-collapsed::before{transform:none}@media(max-width:1180px){.custom-message-layout.is-preview-collapsed{grid-template-columns:1fr}.custom-message-layout.is-preview-collapsed .custom-message-preview-column{display:none}} .custom-element-picker{margin:14px 0 18px;padding:16px;border:1px solid var(--border,#30415f);border-radius:16px;background:var(--panel-soft,#111b2d)}.custom-element-picker-head{display:grid;gap:4px;margin-bottom:14px}.custom-element-picker-head small{color:var(--muted,#9fb0ca);line-height:1.45}.custom-element-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.custom-element-card{position:relative;display:grid;gap:10px;min-height:190px;padding:18px;text-align:left;border:1px solid var(--border,#30415f);border-radius:14px;background:var(--panel,#0d1627);color:var(--text,#eef4ff);cursor:pointer;transition:.18s ease}.custom-element-card:hover{transform:translateY(-2px);border-color:#35b8ff;box-shadow:0 12px 28px rgba(0,0,0,.18)}.custom-element-card>b{position:absolute;top:14px;right:14px;font-size:28px;font-weight:400;color:#cbd8ec}.custom-element-card:hover>b{color:#35b8ff}.custom-element-card-title{padding-right:34px;font-weight:800;font-size:16px}.custom-element-card>small{color:var(--muted,#9fb0ca);line-height:1.4}.custom-element-card-preview{height:82px;border-radius:10px;border:1px solid color-mix(in srgb,var(--border,#30415f) 80%,transparent);background:#263047;overflow:hidden}.custom-element-card-preview-embed{display:grid;align-content:center;gap:9px;padding:16px;border-left:4px solid #35b8ff}.custom-element-card-preview-embed i{display:block;height:9px;border-radius:99px;background:#3b465d}.custom-element-card-preview-embed i:nth-child(1){width:58%}.custom-element-card-preview-embed i:nth-child(2){width:88%}.custom-element-card-preview-embed i:nth-child(3){width:72%}.custom-element-card-preview-buttons{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:14px}.custom-element-card-preview-buttons i{grid-column:1/-1;display:block;height:9px;border-radius:99px;background:#3b465d}.custom-element-card-preview-buttons i:nth-child(2){width:72%}.custom-element-card-preview-buttons em{height:25px;border-radius:7px;background:#38465e;border:1px solid #4b5b77}.custom-element-card-preview-banner{display:grid;place-items:center;font-weight:900;letter-spacing:.12em;color:#9fb0ca;background:linear-gradient(135deg,#25324a,#344462)}.custom-element-card-preview-banner.is-gif{background:linear-gradient(135deg,#3c255f,#633b89);color:#e4cbff}.custom-block-row[data-block-type="custom_embed"]{border-left:3px solid #35b8ff}.custom-block-row[data-block-type="button_message"]{border-left:3px solid #8b5cf6}.custom-block-row[data-block-type="static_banner"]{border-left:3px solid #22c55e}.custom-block-row[data-block-type="animated_banner"]{border-left:3px solid #f59e0b}.custom-preview-composite-embed,.custom-preview-button-message{display:grid;gap:9px}.custom-preview-composite-embed h4,.custom-preview-button-message p{margin:0}.custom-preview-composite-embed p{margin:0;white-space:pre-wrap}@media(max-width:760px){.custom-element-grid{grid-template-columns:1fr}.custom-element-card{min-height:170px}} .custom-message-layout{grid-template-columns:minmax(0,1fr)!important}.custom-message-preview-column{display:none!important}.custom-message-editor-column{min-width:0;width:100%} .premium-feature-badge{display:inline-flex;align-items:center;margin-left:7px;padding:3px 8px;border-radius:999px;background:rgba(210,153,34,.14);border:1px solid rgba(210,153,34,.42);color:#d29922;font-size:.7rem;font-weight:900;letter-spacing:.02em;vertical-align:middle}.custom-premium-lock-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-bottom:18px;border-color:rgba(210,153,34,.36);background:linear-gradient(135deg,rgba(210,153,34,.12),rgba(47,129,247,.06))}.custom-premium-lock-card>div{display:grid;gap:5px}.custom-premium-lock-card strong{font-size:1rem;color:var(--text)}.custom-premium-lock-card span{color:var(--muted);line-height:1.45}.custom-messages-module.is-premium-locked .custom-message-layout{opacity:.48;filter:saturate(.65);pointer-events:none;user-select:none}.custom-messages-module.has-premium .custom-message-layout{opacity:1;filter:none;pointer-events:auto}@media(max-width:720px){.custom-premium-lock-card{align-items:flex-start;flex-direction:column}} .custom-card-toolbar{position:relative}.custom-color-control{position:relative;flex:0 0 auto}.custom-color-toggle{width:42px;height:42px;font-size:18px;background:var(--panel-soft,#111b2d)}.custom-color-popover{position:absolute;right:0;top:calc(100%+9px);z-index:40;width:230px;padding:14px;border:1px solid var(--border,#30415f);border-radius:12px;background:var(--panel,#0d1627);box-shadow:0 18px 42px rgba(0,0,0,.34);display:grid;gap:11px}.custom-color-popover[hidden]{display:none!important}.custom-color-popover>strong{font-size:14px}.custom-color-presets{display:flex;gap:8px;flex-wrap:wrap}.custom-color-presets button{width:28px;height:28px;border:2px solid rgba(255,255,255,.7);border-radius:50%;background:var(--swatch);cursor:pointer;box-shadow:0 0 0 1px rgba(0,0,0,.25)}.custom-color-presets button:hover{transform:scale(1.08)}.custom-element-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.custom-element-card-preview-plain{display:grid;align-content:center;gap:9px;padding:16px}.custom-element-card-preview-plain i{display:block;height:9px;border-radius:99px;background:#3b465d}.custom-element-card-preview-plain i:nth-child(1){width:84%}.custom-element-card-preview-plain i:nth-child(2){width:66%}.custom-element-card-preview-plain i:nth-child(3){width:76%}.custom-preview-plain-message{white-space:pre-wrap;margin:0;padding:10px 0;color:var(--text,#eef4ff)}@media(max-width:1280px){.custom-element-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.custom-element-grid{grid-template-columns:1fr}.custom-color-popover{right:auto;left:0}}.custom-element-card-preview-banner.is-upload{background:linear-gradient(135deg,#173d4d,#23637a);color:#bfefff;font-size:.72rem;letter-spacing:.08em}.cm-block-banner-text{margin-top:12px;width:100%;resize:none;overflow:hidden}.custom-preview-banner-block{display:grid;gap:10px}.custom-preview-banner-text{margin:0;white-space:pre-wrap} .custom-channel-config-panel{border:1px solid var(--border,#30415f);border-radius:14px;background:var(--panel-soft,#111b2d);padding:14px;margin:14px 0}.custom-channel-config-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}.custom-channel-config-head>div{display:grid;gap:4px}.custom-channel-config-head small{color:var(--muted,#9fb0ca)}.custom-channel-config-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.custom-channel-config-item{display:grid;grid-template-columns:minmax(0,1fr) 34px;align-items:center;gap:6px;border:1px solid var(--border,#30415f);border-radius:12px;background:var(--surface,#0d1728);padding:6px}.custom-channel-config-item.is-active{border-color:var(--accent,#35b8ff);box-shadow:0 0 0 2px rgba(53,184,255,.12)}.custom-channel-config-select{display:flex;align-items:center;gap:10px;min-width:0;border:0;background:transparent;color:var(--text,#eef4ff);text-align:left;padding:7px;cursor:pointer}.custom-channel-config-select>span:last-child{display:grid;gap:2px;min-width:0}.custom-channel-config-select small{color:var(--muted,#9fb0ca);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.custom-channel-config-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:color-mix(in srgb,var(--accent,#35b8ff) 15%,transparent);color:var(--accent,#35b8ff);font-weight:900}.custom-channel-config-delete:disabled,.custom-sequence-actions button:disabled{opacity:.35;cursor:not-allowed}.custom-active-channel-field{margin-top:14px}.custom-sequence-head-actions{display:flex;align-items:center;gap:10px}.custom-message-limit{padding:7px 10px;border:1px solid var(--border,#30415f);border-radius:999px;color:var(--muted,#9fb0ca);font-size:12px;font-weight:800;white-space:nowrap}@media(max-width:900px){.custom-channel-config-list{grid-template-columns:1fr}.custom-channel-config-head{align-items:flex-start;flex-direction:column}.custom-channel-config-head .compact-button{width:100%}.custom-sequence-head-actions{width:100%;justify-content:space-between}} .account-user-menu{position:relative}.account-user-trigger{height:46px;min-width:58px;padding:4px 8px 4px 4px;display:flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:14px;background:var(--panel-soft);color:var(--text);cursor:pointer;transition:.18s ease}.account-user-trigger:hover,.account-user-menu.is-open .account-user-trigger{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel-soft))}.account-user-trigger img,.account-user-fallback{width:36px;height:36px;border-radius:10px;object-fit:cover;display:grid;place-items:center;background:linear-gradient(135deg,#35b8ff,#1f7ed0);color:#fff;font-weight:900}.account-user-chevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s ease}.account-user-menu.is-open .account-user-chevron{transform:rotate(180deg)}.account-user-dropdown{position:absolute;right:0;top:calc(100%+10px);z-index:100;width:min(330px,calc(100vw - 24px));padding:10px;border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:0 24px 60px rgba(0,0,0,.34)}.account-user-dropdown[hidden]{display:none!important}.account-user-summary{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px 10px 14px}.account-user-summary img,.account-user-summary .account-user-fallback{width:44px;height:44px;border-radius:12px}.account-user-summary>div{display:grid;gap:2px;min-width:0}.account-user-summary strong,.account-user-summary span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-user-summary span{color:var(--muted);font-size:12px}.account-user-summary em{padding:4px 8px;border-radius:999px;background:rgba(210,153,34,.16);color:#d29922;font-size:11px;font-style:normal;font-weight:900}.account-user-group{display:grid;padding:7px 0;border-top:1px solid var(--border)}.account-user-group button,.account-user-logout{width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--text);font:800 14px Nunito,sans-serif;text-align:left;text-decoration:none;cursor:pointer}.account-user-group button:hover,.account-user-logout:hover{background:var(--panel-soft);color:var(--accent)}.account-user-logout{display:block;border-top:1px solid var(--border);margin-top:2px;padding-top:12px;color:#ff8f8f}.github-sidebar{padding-top:12px}@media(max-width:620px){.account-user-trigger{min-width:46px;padding:4px}.account-user-chevron{display:none}.account-user-dropdown{position:fixed;right:12px;top:78px}.account-user-summary{grid-template-columns:42px minmax(0,1fr)}.account-user-summary em{grid-column:2}} .github-layout.bot-console-layout{grid-template-columns:minmax(0,1fr)}.github-layout.bot-console-layout .github-content{width:100%;max-width:none}.bot-install-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.bot-install-card h3{margin:0 0 6px}.bot-install-card p{margin:0}@media (max-width:720px){.bot-install-card{align-items:stretch;flex-direction:column}.bot-install-card .inline-button{width:100%;justify-content:center}} .bot-workspace{transition:grid-template-columns .22s ease}.bot-sidebar-top{display:flex;align-items:center;gap:8px;padding:2px 2px 12px;border-bottom:1px solid var(--border,#30363d);margin-bottom:10px}.bot-picker{position:relative!important;display:block!important;margin:0!important;padding:0!important;min-width:0;flex:1}.bot-picker-trigger{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--border,#30363d);border-radius:10px;background:var(--surface-2,#161b22);color:inherit;padding:8px 10px;text-align:left;cursor:pointer}.bot-picker-trigger:hover,.bot-picker-trigger[aria-expanded="true"]{border-color:#388bfd;background:rgba(56,139,253,.08)}.bot-picker-trigger img,.bot-picker-menu img{width:40px;height:40px;border-radius:10px;object-fit:cover}.bot-picker-trigger span,.bot-picker-menu span{display:grid;min-width:0}.bot-picker-trigger small,.bot-picker-menu small{color:var(--muted,#8b949e)}.bot-picker-trigger b{font-size:18px;color:var(--muted,#8b949e)}.bot-picker-menu{position:absolute;left:0;right:0;top:calc(100%+8px);z-index:1000;padding:7px;border:1px solid var(--border,#30363d);border-radius:12px;background:var(--surface,#0d1117);box-shadow:0 18px 45px rgba(0,0,0,.35)}.bot-picker-menu button{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;border:0;border-radius:8px;background:transparent;color:inherit;padding:8px;text-align:left;cursor:pointer}.bot-picker-menu button:hover,.bot-picker-menu button.is-active{background:rgba(56,139,253,.12)}.bot-picker-menu i{font-style:normal;color:var(--muted,#8b949e);font-size:12px}.bot-sidebar-collapse{width:38px;height:38px;display:grid;place-items:center;flex:none;border:1px solid var(--border,#30363d);border-radius:9px;background:var(--surface-2,#161b22);color:inherit;font-size:18px;cursor:pointer}.bot-sidebar-collapse:hover{border-color:#388bfd;color:#58a6ff}.bot-module-menu button{display:flex;align-items:center;gap:11px;min-height:44px}.module-icon{width:26px;height:26px;display:grid;place-items:center;flex:none;font-size:18px;color:var(--muted,#8b949e)}.bot-module-menu button.is-active .module-icon{color:#58a6ff}.module-label{min-width:0}.bot-workspace.is-sidebar-collapsed{grid-template-columns:76px minmax(0,1fr)}.bot-module-sidebar.is-collapsed{padding:10px 8px}.bot-module-sidebar.is-collapsed .bot-sidebar-top{display:grid;grid-template-columns:1fr;justify-items:center}.bot-module-sidebar.is-collapsed .bot-picker{width:48px}.bot-module-sidebar.is-collapsed .bot-picker-trigger{display:grid;grid-template-columns:1fr;padding:4px;width:48px;height:48px}.bot-module-sidebar.is-collapsed .bot-picker-trigger img{width:38px;height:38px}.bot-module-sidebar.is-collapsed .bot-picker-trigger span,.bot-module-sidebar.is-collapsed .bot-picker-trigger b{display:none}.bot-module-sidebar.is-collapsed .bot-picker-menu{left:58px;right:auto;top:0;width:240px}.bot-module-sidebar.is-collapsed .bot-sidebar-collapse{width:44px}.bot-module-sidebar.is-collapsed .bot-module-menu button{justify-content:center;padding:9px 0}.bot-module-sidebar.is-collapsed .module-label{display:none}.bot-module-sidebar.is-collapsed .module-icon{width:34px;height:34px;font-size:20px}.bot-module-sidebar.is-collapsed .bot-module-menu button{position:relative}.bot-module-sidebar.is-collapsed .bot-module-menu button:hover:after{content:attr(title);position:absolute;left:58px;top:50%;transform:translateY(-50%);z-index:1100;white-space:nowrap;padding:7px 10px;border-radius:7px;background:#0d1117;color:#fff;border:1px solid #30363d;box-shadow:0 8px 24px rgba(0,0,0,.35);font-size:12px}.general-control-card{padding:18px;margin-bottom:16px}.general-control-grid{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr);gap:18px;align-items:start}.general-control-card .control-context-field{display:grid;gap:7px;align-items:initial}.general-control-card .control-context-field select{width:100%;min-width:0}.quick-link-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 14px;align-items:center;padding-left:18px;border-left:1px solid var(--border,#30363d)}.quick-link-box>div:first-child{display:grid;gap:4px}.quick-link-box small{color:var(--muted,#8b949e);line-height:1.45}.quick-link-result{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(56,139,253,.4);border-radius:10px;background:rgba(56,139,253,.08)}.quick-link-result code{font-size:20px;font-weight:900;letter-spacing:.08em;color:#58a6ff}.quick-link-result span{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:800}.quick-link-result.is-expired{opacity:.55}.quick-link-box .api-form-message{grid-column:1/-1;margin:0}.icon-button{width:34px;height:34px;border:1px solid var(--border,#30363d);border-radius:8px;background:var(--surface-2,#161b22);color:inherit;cursor:pointer}@media(max-width:1050px){.bot-workspace,.bot-workspace.is-sidebar-collapsed{grid-template-columns:1fr}.bot-module-sidebar{position:static}.bot-sidebar-collapse{display:none}.bot-module-menu.is-active{display:flex;overflow:auto}.bot-module-menu button{white-space:nowrap}.general-control-grid{grid-template-columns:1fr}.quick-link-box{padding-left:0;padding-top:16px;border-left:0;border-top:1px solid var(--border,#30363d)}}@media(max-width:620px){.quick-link-box{grid-template-columns:1fr}.quick-link-box>button{width:100%}.quick-link-result{flex-wrap:wrap}.quick-link-result span{margin-left:0}} .account-topbar{position:relative;z-index:5000;overflow:visible!important;isolation:isolate}.topbar-tools,.account-user-menu{position:relative;z-index:5001;overflow:visible!important}.account-user-dropdown{z-index:99999!important;background:#0d1627!important;opacity:1!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 24px 70px rgba(0,0,0,.62)!important}html:not([data-theme="dark"]) .account-user-dropdown,body:not(.dark-theme) .account-user-dropdown{background:#ffffff!important}[data-theme="dark"] .account-user-dropdown,body.dark-theme .account-user-dropdown{background:#0d1627!important}.account-user-dropdown::before{content:"";position:absolute;inset:0;border-radius:inherit;background:inherit;z-index:-1}.bot-workspace{grid-template-columns:272px minmax(0,1fr);gap:22px}.bot-module-sidebar{width:272px;min-width:0;padding:14px;overflow:visible}.bot-sidebar-top{display:grid;grid-template-columns:minmax(0,1fr) 42px;align-items:center;gap:10px;padding:0 0 14px}.bot-picker{width:100%;min-width:0}.bot-picker-trigger{min-width:0;grid-template-columns:40px minmax(0,1fr) 16px;padding:8px}.bot-picker-trigger span{overflow:hidden}.bot-picker-trigger strong,.bot-picker-trigger small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bot-sidebar-collapse{width:42px;height:42px}.bot-module-menu{gap:6px}.bot-module-menu button{width:100%;min-width:0;padding:10px 11px;border-radius:9px}.module-icon{width:28px;height:28px}.module-label{overflow:hidden;text-overflow:ellipsis;line-height:1.25}.bot-module-menu button.is-active{box-shadow:inset 3px 0 0 #58a6ff}.bot-picker-menu{min-width:240px;right:auto;width:100%}.bot-workspace.is-sidebar-collapsed{grid-template-columns:82px minmax(0,1fr)}.bot-module-sidebar.is-collapsed{width:82px;padding:10px}.bot-module-sidebar.is-collapsed .bot-sidebar-top{display:grid;grid-template-columns:1fr;gap:8px}.bot-module-sidebar.is-collapsed .bot-picker{width:48px;justify-self:center}.bot-module-sidebar.is-collapsed .bot-picker-trigger{width:48px;height:48px;display:grid;grid-template-columns:1fr;place-items:center;padding:4px}.bot-module-sidebar.is-collapsed .bot-picker-trigger img{width:40px;height:40px}.bot-module-sidebar.is-collapsed .bot-picker-trigger span,.bot-module-sidebar.is-collapsed .bot-picker-trigger b{display:none}.bot-module-sidebar.is-collapsed .bot-sidebar-collapse{width:48px;height:40px;justify-self:center}.bot-module-sidebar.is-collapsed .bot-module-menu button{justify-content:center;padding:8px}.bot-module-sidebar.is-collapsed .module-label{display:none}.bot-module-sidebar.is-collapsed .module-icon{width:34px;height:34px;font-size:19px}@media(max-width:1050px){.bot-workspace,.bot-workspace.is-sidebar-collapsed{grid-template-columns:1fr}.bot-module-sidebar,.bot-module-sidebar.is-collapsed{width:100%;position:static}.bot-sidebar-top,.bot-module-sidebar.is-collapsed .bot-sidebar-top{grid-template-columns:minmax(0,1fr);display:grid}.bot-sidebar-collapse{display:none}.bot-module-sidebar.is-collapsed .bot-picker{width:100%}.bot-module-sidebar.is-collapsed .bot-picker-trigger{width:100%;height:auto;display:grid;grid-template-columns:40px minmax(0,1fr) 16px;place-items:initial;padding:8px}.bot-module-sidebar.is-collapsed .bot-picker-trigger span,.bot-module-sidebar.is-collapsed .bot-picker-trigger b{display:grid}.bot-module-sidebar.is-collapsed .bot-module-menu button{justify-content:flex-start;padding:10px 12px}.bot-module-sidebar.is-collapsed .module-label{display:inline}} html[data-theme="dark"] .account-user-dropdown{background:#0b1322!important;border-color:#2b405c!important;color:#f4f8ff!important}html[data-theme="dark"] .account-user-dropdown .account-user-summary strong,html[data-theme="dark"] .account-user-dropdown .account-user-group button,html[data-theme="dark"] .account-user-dropdown .account-user-logout{color:#f4f8ff!important}html[data-theme="dark"] .account-user-dropdown .account-user-summary span{color:#a9bad0!important}html[data-theme="dark"] .account-user-dropdown .account-user-group{border-color:#263a55!important}html[data-theme="dark"] .account-user-dropdown .account-user-group button:hover,html[data-theme="dark"] .account-user-dropdown .account-user-logout:hover{background:#17263d!important;color:#7dd3fc!important}html[data-theme="dark"] .account-user-dropdown .account-user-logout{border-color:#263a55!important;color:#ff9b9b!important}html[data-theme="light"] .account-user-dropdown{background:#ffffff!important;border-color:#d0d7de!important;color:#1f2328!important}html[data-theme="light"] .account-user-dropdown .account-user-summary strong,html[data-theme="light"] .account-user-dropdown .account-user-group button{color:#1f2328!important}html[data-theme="light"] .account-user-dropdown .account-user-summary span{color:#57606a!important}.bot-workspace{grid-template-columns:300px minmax(0,1fr)!important;gap:24px!important}.bot-module-sidebar{width:300px!important;padding:14px!important;border-radius:14px!important}.bot-sidebar-top{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:10px!important;align-items:center!important;padding:0 0 14px!important}.bot-picker-trigger{width:100%!important;min-height:56px!important;display:grid!important;grid-template-columns:44px minmax(0,1fr) 18px!important;align-items:center!important;gap:10px!important;padding:7px 10px!important}.bot-picker-trigger img{width:44px!important;height:44px!important;border-radius:12px!important}.bot-sidebar-collapse{width:44px!important;height:44px!important;align-self:center!important}.bot-module-menu{gap:5px!important}.bot-module-menu button{width:100%!important;min-height:48px!important;display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;align-items:center!important;column-gap:12px!important;padding:8px 12px!important;text-align:left!important;border-radius:10px!important}.module-icon{width:38px!important;height:38px!important;display:grid!important;place-items:center!important;margin:0!important;font-size:20px!important;line-height:1!important}.module-label{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;line-height:1.2!important}.bot-module-menu button.is-active{box-shadow:inset 4px 0 0 #58a6ff!important;padding-left:12px!important}.bot-workspace.is-sidebar-collapsed{grid-template-columns:84px minmax(0,1fr)!important}.bot-module-sidebar.is-collapsed{width:84px!important;padding:10px!important}.bot-module-sidebar.is-collapsed .bot-module-menu button{display:grid!important;grid-template-columns:1fr!important;place-items:center!important;min-height:48px!important;padding:5px!important}.bot-module-sidebar.is-collapsed .module-icon{width:38px!important;height:38px!important}.bot-module-sidebar.is-collapsed .module-label{display:none!important}@media(max-width:1050px){.bot-workspace,.bot-workspace.is-sidebar-collapsed{grid-template-columns:1fr!important}.bot-module-sidebar,.bot-module-sidebar.is-collapsed{width:100%!important}.bot-module-menu.is-active{display:flex!important;overflow-x:auto!important}.bot-module-menu button,.bot-module-sidebar.is-collapsed .bot-module-menu button{display:flex!important;width:auto!important;min-width:max-content!important;grid-template-columns:none!important;padding:8px 12px!important}.bot-module-sidebar.is-collapsed .module-label{display:inline!important}} #panel-bot-control .bot-control-heading{margin-bottom:12px}.bot-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 0 12px}.bot-switch-button{position:relative;min-height:58px;display:flex;align-items:center;justify-content:center;gap:10px;padding:9px 14px;border:1px solid var(--gh-border,#d0d7de);border-radius:10px;background:var(--gh-card,#fff);color:var(--gh-text,#1f2328);font:inherit;font-weight:800;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.bot-switch-button img{width:38px;height:38px;border-radius:10px;object-fit:cover;flex:none}.bot-switch-button span{font-size:15px;white-space:nowrap}.bot-switch-button small{position:absolute;right:8px;top:7px;font-size:10px;color:var(--gh-muted,#656d76);font-weight:800}.bot-switch-button:hover{border-color:#54aeff;background:rgba(84,174,255,.07);transform:translateY(-1px)}.bot-switch-button.is-active{border-color:#218bff;background:rgba(33,139,255,.10);box-shadow:inset 0 -3px 0 #218bff,0 4px 14px rgba(33,139,255,.10)}.bot-switch-divider{height:1px;background:var(--gh-border,#d0d7de);margin:0 0 16px}.bot-sidebar-top-compact{justify-content:space-between}.bot-sidebar-caption{font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;color:var(--gh-muted,#656d76)}.bot-module-sidebar.is-collapsed .bot-sidebar-caption{display:none}.bot-module-sidebar.is-collapsed .bot-sidebar-top-compact{display:flex;justify-content:center}[data-theme="dark"] .bot-switch-button,html.dark .bot-switch-button,body.dark .bot-switch-button{background:#161b22;color:#f0f6fc;border-color:#30363d}[data-theme="dark"] .bot-switch-button:hover,html.dark .bot-switch-button:hover,body.dark .bot-switch-button:hover{background:#1c2633;border-color:#58a6ff}[data-theme="dark"] .bot-switch-button.is-active,html.dark .bot-switch-button.is-active,body.dark .bot-switch-button.is-active{background:rgba(56,139,253,.16);border-color:#58a6ff;box-shadow:inset 0 -3px 0 #58a6ff}@media(max-width:700px){.bot-switcher{grid-template-columns:1fr;gap:8px}.bot-switch-button{justify-content:flex-start;min-height:52px}.bot-switch-button img{width:34px;height:34px}} .account-user-trigger .account-user-chevron{display:block!important;flex:0 0 16px;color:currentColor!important;opacity:.95}.account-user-trigger{overflow:visible!important}.account-user-menu,.topbar-tools{position:relative;z-index:10020!important}.account-user-dropdown{z-index:10030!important;isolation:isolate;backdrop-filter:none!important}html[data-theme="dark"] .account-user-dropdown,body[data-theme="dark"] .account-user-dropdown,html.dark .account-user-dropdown,body.dark .account-user-dropdown,body.dark-theme .account-user-dropdown{background:#0b1322!important;color:#f4f8ff!important;border-color:#2b405c!important;box-shadow:0 24px 70px rgba(0,0,0,.58)!important}html[data-theme="dark"] .account-user-dropdown .account-user-summary strong,html[data-theme="dark"] .account-user-dropdown .account-user-group button,html[data-theme="dark"] .account-user-dropdown .account-user-logout,body.dark-theme .account-user-dropdown .account-user-summary strong,body.dark-theme .account-user-dropdown .account-user-group button,body.dark-theme .account-user-dropdown .account-user-logout{color:#f4f8ff!important}html[data-theme="dark"] .account-user-dropdown .account-user-summary span,body.dark-theme .account-user-dropdown .account-user-summary span{color:#a9bad0!important}html[data-theme="dark"] .account-user-dropdown .account-user-group,body.dark-theme .account-user-dropdown .account-user-group{border-color:#263a55!important}html[data-theme="light"] .account-user-dropdown,body[data-theme="light"] .account-user-dropdown,body:not(.dark-theme) .account-user-dropdown{background:#fff!important;color:#1f2328!important;border-color:#d0d7de!important;box-shadow:0 24px 60px rgba(31,35,40,.18)!important}.bot-module-sidebar{overflow:visible!important}.bot-sidebar-top,.bot-sidebar-top.bot-sidebar-top-compact{position:relative!important;min-height:50px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:0 0 12px!important;margin:0 0 10px!important}.bot-sidebar-collapse{position:static!important;inset:auto!important;transform:none!important;margin:0!important;width:42px!important;height:42px!important;min-width:42px!important;flex:0 0 42px!important;border-radius:11px!important;line-height:1!important}.bot-module-sidebar.is-collapsed .bot-sidebar-top,.bot-module-sidebar.is-collapsed .bot-sidebar-top.bot-sidebar-top-compact{display:flex!important;justify-content:center!important;min-height:50px!important;padding:0 0 12px!important}.bot-module-sidebar.is-collapsed .bot-sidebar-collapse{position:static!important;width:48px!important;height:44px!important;min-width:48px!important;margin:0 auto!important}.bot-module-sidebar.is-collapsed .bot-module-menu button{margin:0 auto!important;width:52px!important;min-width:52px!important;max-width:52px!important;min-height:52px!important;border-radius:12px!important}.bot-module-sidebar.is-collapsed .module-icon{margin:0 auto!important}.module-icon-svg svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round} html[data-theme="light"] .bot-sidebar-collapse,html[data-theme="light"] .icon-button,html[data-theme="light"] .preview-toggle-button,body:not(.dark-theme) .bot-sidebar-collapse,body:not(.dark-theme) .icon-button,body:not(.dark-theme) .preview-toggle-button{background:#fff!important;color:#0969da!important;border-color:#d0d7de!important;box-shadow:none!important}html[data-theme="light"] .bot-sidebar-collapse:hover,html[data-theme="light"] .icon-button:hover,html[data-theme="light"] .preview-toggle-button:hover{background:#f6f8fa!important;border-color:#54aeff!important}html[data-theme="light"] .general-control-card,html[data-theme="light"] .quick-link-result,body:not(.dark-theme) .general-control-card,body:not(.dark-theme) .quick-link-result{background:#fff!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] .quick-link-result{background:#f6f8fa!important}html[data-theme="light"] .general-control-card select,html[data-theme="light"] .preview-event-select,body:not(.dark-theme) .general-control-card select,body:not(.dark-theme) .preview-event-select{background:#fff!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] #generate-link-key,body:not(.dark-theme) #generate-link-key{background:#fff!important;color:#0969da!important;border:1px solid #d0d7de!important;border-radius:8px!important;font-family:inherit!important;font-weight:800!important;padding:9px 14px!important}html[data-theme="light"] .mini-switch i,body:not(.dark-theme) .mini-switch i{background:#d8dee4!important;border-color:#afb8c1!important}html[data-theme="light"] .mini-switch i:after,body:not(.dark-theme) .mini-switch i:after{background:#fff!important}html[data-theme="light"] .mini-switch input:checked+i,body:not(.dark-theme) .mini-switch input:checked+i{background:#2da44e!important;border-color:#1f883d!important} html[data-theme="light"] .welcome-preview-card,html[data-theme="light"] .reaction-role-preview-column>.github-card,body:not(.dark-theme) .welcome-preview-card,body:not(.dark-theme) .reaction-role-preview-column>.github-card{background:#fff!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] .welcome-chat-preview,body:not(.dark-theme) .welcome-chat-preview{background:#f6f8fa!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] .welcome-message-author strong,body:not(.dark-theme) .welcome-message-author strong{color:#1f2328!important}html[data-theme="light"] .welcome-message-author small,body:not(.dark-theme) .welcome-message-author small{color:#656d76!important}html[data-theme="light"] .welcome-mention-preview,body:not(.dark-theme) .welcome-mention-preview{color:#0969da!important;background:#ddf4ff!important}html[data-theme="light"] .welcome-embed-preview,body:not(.dark-theme) .welcome-embed-preview{background:#fff!important;color:#1f2328!important;border-top:1px solid #d0d7de!important;border-right:1px solid #d0d7de!important;border-bottom:1px solid #d0d7de!important;box-shadow:0 1px 2px rgba(31,35,40,.08)!important}html[data-theme="light"] .welcome-preview-content h4,body:not(.dark-theme) .welcome-preview-content h4{color:#1f2328!important}html[data-theme="light"] .welcome-preview-content p,html[data-theme="light"] .welcome-embed-preview.is-plain .welcome-preview-content p,body:not(.dark-theme) .welcome-preview-content p,body:not(.dark-theme) .welcome-embed-preview.is-plain .welcome-preview-content p{color:#57606a!important}html[data-theme="light"] .welcome-preview-footer,body:not(.dark-theme) .welcome-preview-footer{color:#656d76!important}html[data-theme="light"] .rr-embed-preview,body:not(.dark-theme) .rr-embed-preview{background:#fff!important;color:#1f2328!important;border-top:1px solid #d0d7de!important;border-right:1px solid #d0d7de!important;border-bottom:1px solid #d0d7de!important}html[data-theme="light"] .rr-reactions-preview span,body:not(.dark-theme) .rr-reactions-preview span{background:#f6f8fa!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] .custom-element-card-preview,body:not(.dark-theme) .custom-element-card-preview{background:#f6f8fa!important;border-color:#d0d7de!important}html[data-theme="light"] .custom-element-card-preview i,body:not(.dark-theme) .custom-element-card-preview i{background:#afb8c1!important}html[data-theme="light"] .custom-element-card-preview-buttons em,body:not(.dark-theme) .custom-element-card-preview-buttons em{background:#eaeef2!important;border-color:#d0d7de!important}@media(max-width:620px){.account-user-trigger .account-user-chevron{display:none!important}} .bot-module-panel>.github-card+.github-card,.bot-module-panel>article+article{margin-top:16px} .log-filter-card{overflow:hidden}.log-filter-grid{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(160px,.9fr) minmax(240px,1.25fr);gap:16px;align-items:end}.log-filter-grid .field{display:grid;gap:8px;min-width:0}.log-filter-grid .field label{margin:0;font-size:13px;font-weight:800;color:var(--theme-text)}.log-filter-grid input,.log-filter-grid select{box-sizing:border-box;width:100%;height:44px;min-width:0;margin:0;padding:0 14px;border:1px solid var(--gh-border,var(--border,#30363d));border-radius:10px;background:var(--gh-subtle,var(--surface,#0d1117));color:var(--theme-text);font:700 14px Nunito,sans-serif;line-height:44px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}.log-filter-grid select{appearance:none;padding-right:38px;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 17px) 19px,calc(100% - 12px) 19px;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.log-filter-grid input::placeholder{color:var(--muted,#8b949e);opacity:1}.log-filter-grid input:hover,.log-filter-grid select:hover{border-color:color-mix(in srgb,var(--accent,#58a6ff) 55%,var(--gh-border,var(--border,#30363d)))}.log-filter-grid input:focus,.log-filter-grid select:focus{border-color:var(--accent,#58a6ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#58a6ff) 18%,transparent)}.log-quick-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--gh-border,var(--border,#30363d))}.log-quick-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;margin:0;padding:8px 14px;border:1px solid var(--gh-border,var(--border,#30363d));border-radius:999px;background:var(--gh-subtle,var(--surface,#0d1117));color:var(--theme-text);font:800 13px/1 Nunito,sans-serif;white-space:nowrap;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}.log-quick-tabs button .module-icon{display:inline-grid;place-items:center;width:16px;height:16px;margin:0;font-size:13px;line-height:1}.log-quick-tabs button .module-label{display:inline;line-height:1}.log-quick-tabs button:hover{border-color:var(--accent,#58a6ff);background:color-mix(in srgb,var(--accent,#58a6ff) 10%,var(--gh-subtle,var(--surface,#0d1117)));transform:translateY(-1px)}.log-quick-tabs button.is-active{border-color:var(--accent,#58a6ff);background:var(--accent,#58a6ff);color:#fff;box-shadow:0 4px 14px color-mix(in srgb,var(--accent,#58a6ff) 25%,transparent)}body:not(.dark-theme) .log-filter-grid input,body:not(.dark-theme) .log-filter-grid select,body:not(.dark-theme) .log-quick-tabs button{background:#fff;border-color:#c9d4e3;color:#10213f}body:not(.dark-theme) .log-quick-tabs button.is-active{background:#2f81f7;border-color:#2f81f7;color:#fff}@media(max-width:1180px){.log-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.log-filter-grid{grid-template-columns:1fr}.log-quick-tabs{gap:7px}.log-quick-tabs button{flex:1 1 auto;min-width:max-content}} html[data-theme="light"] .account-page{--panel:#ffffff;--panel-soft:#f6f8fa;--surface:#ffffff;--surface-2:#f6f8fa;--text:#1f2328;--muted:#656d76;--border:#d0d7de;--accent:#2f81f7}html[data-theme="dark"] .account-page{--panel:#0d1627;--panel-soft:#111d31;--surface:#0f1c2e;--surface-2:#14243b;--text:#eef4ff;--muted:#9fb0ca;--border:#30415f;--accent:#58a6ff} html[data-theme="dark"] .general-control-card,html[data-theme="dark"] .quick-link-result{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}html[data-theme="dark"] .quick-link-result{background:var(--panel-soft)!important}html[data-theme="dark"] .general-control-card select,html[data-theme="dark"] .preview-event-select{background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}html[data-theme="dark"] #generate-link-key{background:var(--surface-2)!important;color:#7dd3fc!important;border:1px solid var(--border)!important;border-radius:8px!important;font-family:inherit!important;font-weight:800!important;padding:9px 14px!important}html[data-theme="dark"] #generate-link-key:hover{background:#1b304b!important;border-color:#58a6ff!important}html[data-theme="dark"] .bot-sidebar-collapse,html[data-theme="dark"] .icon-button,html[data-theme="dark"] .preview-toggle-button{background:var(--surface-2)!important;color:#7dd3fc!important;border-color:var(--border)!important}html[data-theme="dark"] .bot-sidebar-collapse:hover,html[data-theme="dark"] .icon-button:hover,html[data-theme="dark"] .preview-toggle-button:hover{background:#1b304b!important;border-color:#58a6ff!important} .custom-messages-module.is-premium-locked .custom-message-layout{opacity:.82!important;filter:none!important}html[data-theme="light"] .custom-messages-module.is-premium-locked .custom-message-layout{background:transparent!important}html[data-theme="light"] .custom-channel-config-panel,html[data-theme="light"] .custom-channel-config-item,html[data-theme="light"] .custom-sequence-panel,html[data-theme="light"] .custom-sequence-item,html[data-theme="light"] .custom-element-picker,html[data-theme="light"] .custom-element-card,html[data-theme="light"] .custom-card-toolbar,html[data-theme="light"] .custom-block-row{background:#fff!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="light"] .custom-channel-config-panel,html[data-theme="light"] .custom-element-picker,html[data-theme="light"] .custom-card-toolbar{background:#f6f8fa!important}html[data-theme="light"] .custom-channel-config-select,html[data-theme="light"] .custom-sequence-select,html[data-theme="light"] .custom-element-card{color:#1f2328!important}html[data-theme="light"] .custom-channel-config-select small,html[data-theme="light"] .custom-sequence-select small,html[data-theme="light"] .custom-element-card>small,html[data-theme="light"] .custom-message-limit{color:#656d76!important}html[data-theme="light"] .custom-message-limit{background:#fff!important;border-color:#d0d7de!important}html[data-theme="light"] .custom-sequence-actions button,html[data-theme="light"] .compact-button,html[data-theme="light"] .custom-color-toggle{background:#fff!important;color:#0969da!important;border-color:#d0d7de!important}html[data-theme="light"] .custom-sequence-actions button:hover,html[data-theme="light"] .compact-button:hover,html[data-theme="light"] .custom-color-toggle:hover{background:#f3f6f9!important;border-color:#54aeff!important} html[data-theme="dark"] .welcome-preview-card,html[data-theme="dark"] .reaction-role-preview-column>.github-card{background:var(--panel)!important;color:var(--text)!important;border-color:var(--border)!important}html[data-theme="dark"] .welcome-chat-preview{background:#252a32!important;color:#f2f3f5!important;border-color:#3f454f!important}html[data-theme="dark"] .welcome-message-author strong,html[data-theme="dark"] .welcome-preview-content h4{color:#f2f3f5!important}html[data-theme="dark"] .welcome-message-author small,html[data-theme="dark"] .welcome-preview-content p,html[data-theme="dark"] .welcome-preview-footer{color:#b5bac1!important}html[data-theme="dark"] .welcome-mention-preview{color:#dee0fc!important;background:#5865a6!important}html[data-theme="dark"] .welcome-embed-preview,html[data-theme="dark"] .rr-embed-preview{background:#2b2d31!important;color:#f2f3f5!important;border-top-color:#3f454f!important;border-right-color:#3f454f!important;border-bottom-color:#3f454f!important}html[data-theme="dark"] .rr-reactions-preview span{background:#383a40!important;color:#dbdee1!important;border-color:#4e5058!important} html[data-theme="light"] .welcome-chat-preview{background:#f6f8fa!important}html[data-theme="light"] .welcome-preview-content,html[data-theme="light"] .welcome-preview-content h4,html[data-theme="light"] .welcome-preview-content p,html[data-theme="light"] .welcome-preview-footer{opacity:1!important} html[data-theme="light"] .custom-premium-lock-card{background:linear-gradient(135deg,#fff8db,#f0f7ff)!important;border-color:#d4a72c!important}html[data-theme="dark"] .custom-premium-lock-card{background:linear-gradient(135deg,rgba(210,153,34,.16),rgba(47,129,247,.10))!important;border-color:rgba(210,153,34,.5)!important} .automod-builder{display:grid;gap:16px}.automod-master-card{border-color:var(--account-border)}.automod-master-state{display:flex;align-items:center;gap:12px;font-weight:800}.automod-module-list{display:grid;gap:12px;transition:opacity .2s ease}.automod-module-list.is-disabled{opacity:.58}.automod-module{padding:0!important;overflow:hidden}.automod-module-summary{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto 24px;align-items:center;gap:14px;padding:18px 20px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.automod-module-summary:hover{background:var(--account-surface-soft)}.automod-module-summary strong{display:block;font-size:16px}.automod-module-summary small{display:block;margin-top:4px;color:var(--account-muted);font-weight:500}.automod-module-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);font-weight:900}.automod-module-meta{font-size:12px;font-weight:800;color:var(--account-muted);padding:5px 9px;border:1px solid var(--account-border);border-radius:999px}.automod-chevron{font-size:22px;transition:transform .2s ease}.automod-module.is-expanded .automod-chevron{transform:rotate(180deg)}.automod-module-body{display:none;padding:0 20px 20px;border-top:1px solid var(--account-border)}.automod-module.is-expanded .automod-module-body{display:block}.automod-module-body>.toggle-row:first-child,.automod-module-body>.inline-toggles:first-child{margin-top:16px}.four-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.automod-shared-card{display:none}.automod-shared-card.is-open{display:block}.automod-builder textarea{resize:vertical;min-height:74px}.automod-builder .sticky-save-bar{z-index:8}@media (max-width:1050px){.four-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:700px){.automod-module-summary{grid-template-columns:38px minmax(0,1fr) 22px}.automod-module-meta{display:none}.four-fields{grid-template-columns:1fr}.automod-module-body{padding:0 14px 16px}.automod-module-summary{padding:15px 14px}} .automod-module-exceptions{margin-top:18px;padding-top:18px;border-top:1px solid var(--account-border)}.module-exceptions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:12px}.module-exceptions-head strong{font-size:14px}.module-exceptions-head small{max-width:520px;color:var(--account-muted);text-align:right}.automod-module-exceptions textarea{min-height:68px}@media(max-width:700px){.module-exceptions-head{display:block}.module-exceptions-head small{display:block;margin-top:4px;text-align:left}} .log-collection-builder{display:grid;gap:16px}.log-collection-master .card-title,.log-style-card .card-title{align-items:flex-start}.log-collection-master .card-title p,.log-style-card .card-title p{margin:4px 0 0;color:var(--account-muted)}.log-category-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.log-category-card{display:grid;gap:16px}.log-category-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.log-category-head>div{display:flex;gap:12px;align-items:flex-start}.log-category-head h3{margin:0}.log-category-head p{margin:4px 0 0;color:var(--account-muted);font-size:13px}.log-category-icon{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft);font-weight:900}.log-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.log-event-grid label{display:flex;align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft);font-size:13px;cursor:pointer}.log-event-grid input{accent-color:var(--account-accent)}.log-category-channel{display:none}.log-category-channel.is-visible{display:block}.log-common-channel.is-hidden{display:none}.log-category-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--account-border)}.log-category-foot>label{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700}.log-category-foot input[type=color]{width:38px;height:30px;padding:2px;border:1px solid var(--account-border);border-radius:8px;background:transparent}.compact-log-test{min-height:34px!important;padding:6px 11px!important;font-size:12px!important}.log-style-card .toggle-row{min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft)}html[data-theme="light"] .log-event-grid label,html[data-theme="light"] .log-category-icon,html[data-theme="light"] .log-style-card .toggle-row{background:#f6f8fa;color:#1f2328;border-color:#d0d7de}html[data-theme="dark"] .log-event-grid label,html[data-theme="dark"] .log-category-icon,html[data-theme="dark"] .log-style-card .toggle-row{background:#18243a;color:#e6edf3;border-color:#2f405d}@media(max-width:1050px){.log-category-grid{grid-template-columns:1fr}}@media(max-width:650px){.log-event-grid{grid-template-columns:1fr}.log-category-foot{align-items:stretch;flex-direction:column}.compact-log-test{width:100%}} .unified-log-builder{gap:18px}.unified-log-list{display:grid;gap:12px}.unified-log-card{padding:0!important;overflow:hidden}.unified-log-head{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto auto 24px;align-items:center;gap:12px;padding:16px 18px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.unified-log-head:hover{background:var(--account-surface-soft)}.unified-log-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft);font-size:18px}.unified-log-title{display:grid;gap:3px}.unified-log-title strong{font-size:15px}.unified-log-title small{color:var(--account-muted);font-size:12px}.unified-log-count{padding:5px 9px;border:1px solid var(--account-border);border-radius:999px;background:var(--account-surface-soft);color:var(--account-muted);font-size:12px;white-space:nowrap}.unified-log-chevron{font-size:20px;transition:transform .18s ease;color:var(--account-muted)}.unified-log-card.is-open .unified-log-chevron{transform:rotate(180deg)}.unified-log-body{display:none;padding:0 18px 18px;border-top:1px solid var(--account-border)}.unified-log-card.is-open .unified-log-body{display:grid;gap:16px;padding-top:18px}.unified-log-card.is-disabled .unified-log-body{opacity:.58}.log-scope-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px;border-top:1px solid var(--account-border)}.log-scope-grid .field{display:grid;gap:7px}.log-scope-grid .field select+.field,.log-scope-grid .field select+input{margin-top:6px}.bot-log-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.bot-log-picker label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft);font-size:13px;font-weight:700}.bot-log-picker img{width:24px;height:24px;border-radius:7px;object-fit:cover}.compact-log-style .console-fields{align-items:stretch}.compact-log-style .toggle-row{height:100%}html[data-theme="light"] .unified-log-head:hover,html[data-theme="light"] .unified-log-icon,html[data-theme="light"] .unified-log-count,html[data-theme="light"] .bot-log-picker label{background:#f6f8fa;color:#1f2328;border-color:#d0d7de}html[data-theme="dark"] .unified-log-head:hover,html[data-theme="dark"] .unified-log-icon,html[data-theme="dark"] .unified-log-count,html[data-theme="dark"] .bot-log-picker label{background:#18243a;color:#e6edf3;border-color:#2f405d}@media(max-width:900px){.log-scope-grid{grid-template-columns:1fr}.bot-log-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.unified-log-head{grid-template-columns:40px minmax(0,1fr) auto 20px;padding:14px}.unified-log-head>.switch{grid-column:3}.unified-log-count{display:none}.unified-log-title small{display:none}.bot-log-picker{grid-template-columns:1fr}.unified-log-body{padding-left:14px!important;padding-right:14px!important}} .log-collection-master{padding:20px!important}.log-general-grid{display:grid;grid-template-columns:minmax(260px,1.35fr) repeat(3,minmax(150px,1fr));gap:14px;align-items:start}.log-general-grid .field{min-width:0}.log-general-grid input,.log-general-grid select{width:100%;min-height:44px}.unified-log-list{gap:14px}.unified-log-card{border-radius:14px!important}.unified-log-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:0;background:transparent}.unified-log-toggle-area{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto 22px;align-items:center;gap:12px;padding:16px 18px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.unified-log-toggle-area:hover{background:var(--account-surface-soft)}.unified-log-master{margin-right:18px;flex:0 0 auto}.unified-log-body{padding:0 18px 20px!important}.unified-log-card.is-open .unified-log-body{padding-top:18px!important}.log-event-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.log-event-grid label{min-height:46px;padding:10px 12px;border-radius:10px;justify-content:space-between;flex-direction:row-reverse}.log-event-grid input[type="checkbox"]{width:18px;height:18px;flex:0 0 auto}.log-scope-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:var(--account-surface-soft);border:1px solid var(--account-border);border-radius:12px;padding:16px}.log-scope-grid .field input,.log-scope-grid .field select{min-height:42px;width:100%}.bot-log-picker label{min-height:46px;justify-content:flex-start}.log-display-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.log-display-grid .toggle-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;margin:0;padding:12px 14px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft)}.log-display-grid .toggle-row span{font-weight:700}.sticky-save-bar{border-radius:13px!important;background:var(--account-surface)!important;border:1px solid var(--account-border)!important;box-shadow:0 10px 30px rgba(0,0,0,.12)!important}html[data-theme="light"] .unified-log-toggle-area:hover,html[data-theme="light"] .log-scope-grid,html[data-theme="light"] .log-display-grid .toggle-row{background:#f6f8fa;color:#1f2328;border-color:#d0d7de}html[data-theme="dark"] .unified-log-toggle-area:hover,html[data-theme="dark"] .log-scope-grid,html[data-theme="dark"] .log-display-grid .toggle-row{background:#121d30;color:#e6edf3;border-color:#2f405d}@media(max-width:1100px){.log-general-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.log-default-channel{grid-column:1/-1}}@media(max-width:720px){.log-general-grid,.log-event-grid,.log-scope-grid,.log-display-grid{grid-template-columns:1fr}.unified-log-toggle-area{grid-template-columns:38px minmax(0,1fr) 20px}.unified-log-count{display:none}.unified-log-master{margin-right:12px}.unified-log-title small{display:none}} .unified-log-card{overflow:hidden!important}.unified-log-head{display:flex!important;align-items:stretch!important;justify-content:space-between!important;width:100%!important;min-height:72px!important;padding:0!important;gap:0!important}.unified-log-toggle-area{flex:1 1 auto!important;min-width:0!important;width:auto!important;min-height:72px!important;display:grid!important;grid-template-columns:42px minmax(0,1fr) auto 22px!important;align-items:center!important;gap:12px!important;padding:15px 18px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;transform:none!important;font:inherit!important;line-height:1.25!important;text-align:left!important}.unified-log-toggle-area:hover{transform:none!important}.unified-log-title{min-width:0!important}.unified-log-title strong,.unified-log-title small{display:block!important;white-space:normal!important;overflow:visible!important}.unified-log-master{display:flex!important;align-items:center!important;align-self:center!important;margin:0 18px 0 12px!important}.unified-log-chevron{display:block!important;text-align:center!important} .log-event-grid label,.bot-log-picker label{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;cursor:pointer!important}.log-event-grid label>span:first-child,.bot-log-picker label>span:first-child{min-width:0!important}.mini-switch{position:relative;display:inline-flex;flex:0 0 auto;width:42px;height:24px}.mini-switch input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;margin:0!important;cursor:pointer!important}.mini-switch i{display:block;width:42px;height:24px;border-radius:999px;background:#8c959f;border:1px solid rgba(27,31,36,.16);transition:.18s ease;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.mini-switch i::after{content:"";display:block;width:18px;height:18px;margin:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.28);transition:transform .18s ease}.mini-switch input:checked+i{background:var(--account-accent);border-color:var(--account-accent)}.mini-switch input:checked+i::after{transform:translateX(18px)}.mini-switch input:focus-visible+i{outline:3px solid color-mix(in srgb,var(--account-accent) 30%,transparent);outline-offset:2px}html[data-theme="dark"] .mini-switch i{background:#344057;border-color:#46536b}html[data-theme="dark"] .mini-switch input:checked+i{background:var(--account-accent);border-color:var(--account-accent)} .log-event-grid .mini-switch input,.bot-log-picker .mini-switch input{accent-color:initial!important}@media(max-width:720px){.unified-log-head{min-height:64px!important}.unified-log-toggle-area{min-height:64px!important;grid-template-columns:38px minmax(0,1fr) 20px!important;padding:12px 14px!important}.unified-log-master{margin-right:12px!important;margin-left:8px!important}} .account-page .ui-switch-control{-webkit-appearance:none;appearance:none;width:42px!important;min-width:42px!important;height:24px!important;margin:0!important;padding:0!important;border:1px solid var(--account-border)!important;border-radius:999px!important;background:#8c959f!important;position:relative!important;flex:0 0 42px!important;vertical-align:middle!important;cursor:pointer!important;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.10)!important}.account-page .ui-switch-control::after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.28);transition:transform .18s ease}.account-page .ui-switch-control:checked{background:var(--account-accent)!important;border-color:var(--account-accent)!important}.account-page .ui-switch-control:checked::after{transform:translateX(18px)}.account-page .ui-switch-control:focus-visible{outline:3px solid color-mix(in srgb,var(--account-accent) 30%,transparent)!important;outline-offset:2px!important}.account-page .ui-switch-control:disabled{opacity:.55;cursor:not-allowed!important}html[data-theme="dark"] .account-page .ui-switch-control{background:#344057!important;border-color:#46536b!important}html[data-theme="dark"] .account-page .ui-switch-control:checked{background:var(--account-accent)!important;border-color:var(--account-accent)!important} .account-page .inline-toggles label,.account-page .reaction-role-options label,.account-page .welcome-inline-toggles label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:48px!important;padding:10px 12px!important;border:1px solid var(--account-border)!important;border-radius:10px!important;background:var(--account-surface-soft)!important;cursor:pointer!important}.account-page .inline-toggles label .ui-switch-control,.account-page .reaction-role-options label .ui-switch-control,.account-page .welcome-inline-toggles label .ui-switch-control{order:2}.account-page .bot-log-picker label:has(.ui-switch-control){justify-content:flex-start!important;position:relative!important;padding-right:62px!important}.account-page .bot-log-picker label:has(.ui-switch-control) .ui-switch-control{position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important}html[data-theme="light"] .account-page .inline-toggles label,html[data-theme="light"] .account-page .reaction-role-options label,html[data-theme="light"] .account-page .welcome-inline-toggles label{background:#f6f8fa!important;color:#1f2328!important;border-color:#d0d7de!important}html[data-theme="dark"] .account-page .inline-toggles label,html[data-theme="dark"] .account-page .reaction-role-options label,html[data-theme="dark"] .account-page .welcome-inline-toggles label{background:#18243a!important;color:#e6edf3!important;border-color:#2f405d!important}@media(max-width:650px){.account-page .inline-toggles,.account-page .reaction-role-options,.account-page .welcome-inline-toggles{grid-template-columns:1fr!important}} .unified-log-builder .switch{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:46px!important;min-width:46px!important;height:26px!important;flex:0 0 46px!important;margin:0!important;cursor:pointer!important;vertical-align:middle!important}.unified-log-builder .switch>input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;margin:0!important;padding:0!important;cursor:pointer!important;z-index:2!important}.unified-log-builder .switch>i{position:relative!important;display:block!important;width:46px!important;height:26px!important;border:1px solid #8c959f!important;border-radius:999px!important;background:#afb8c1!important;box-sizing:border-box!important;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important}.unified-log-builder .switch>i::after{content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.28)!important;transition:transform .18s ease!important}.unified-log-builder .switch>input:checked+i{background:var(--account-accent)!important;border-color:var(--account-accent)!important}.unified-log-builder .switch>input:checked+i::after{transform:translateX(20px)!important}.unified-log-builder .switch>input:focus-visible+i{outline:3px solid color-mix(in srgb,var(--account-accent) 28%,transparent)!important;outline-offset:2px!important}html[data-theme="dark"] .unified-log-builder .switch>i,body.dark-theme .unified-log-builder .switch>i{background:#344057!important;border-color:#46536b!important}html[data-theme="dark"] .unified-log-builder .switch>input:checked+i,body.dark-theme .unified-log-builder .switch>input:checked+i{background:var(--account-accent)!important;border-color:var(--account-accent)!important} .unified-log-builder .unified-log-head{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;min-height:76px!important}.unified-log-builder .unified-log-toggle-area{width:100%!important;min-width:0!important;grid-template-columns:42px minmax(0,1fr) auto 22px!important}.unified-log-builder .unified-log-master{justify-self:end!important;margin:0 18px 0 10px!important} .unified-log-builder .field{min-width:0!important}.unified-log-builder .field>label{display:block!important;margin:0 0 8px!important;font-weight:800!important;color:var(--account-text)!important}.unified-log-builder input[type="text"],.unified-log-builder input[inputmode="numeric"],.unified-log-builder select,.unified-log-builder textarea{width:100%!important;min-height:44px!important;box-sizing:border-box!important;padding:10px 12px!important;border:1px solid var(--account-border)!important;border-radius:9px!important;background:var(--account-surface)!important;color:var(--account-text)!important;font:inherit!important;box-shadow:none!important}.unified-log-builder select{appearance:auto!important;-webkit-appearance:auto!important}.unified-log-builder input::placeholder,.unified-log-builder textarea::placeholder{color:var(--account-muted)!important;opacity:.9!important}.unified-log-builder input:focus,.unified-log-builder select:focus,.unified-log-builder textarea:focus{outline:none!important;border-color:var(--account-accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent) 18%,transparent)!important}.unified-log-builder .field small{display:block!important;margin-top:7px!important;color:var(--account-muted)!important;line-height:1.4!important} .unified-log-builder .log-collection-master,.unified-log-builder .unified-log-card,.unified-log-builder .log-style-card{background:var(--account-surface)!important;border:1px solid var(--account-border)!important;border-radius:14px!important;box-shadow:none!important}.unified-log-builder .unified-log-body{border-top:1px solid var(--account-border)!important;background:var(--account-surface)!important}.unified-log-builder .log-event-grid label{background:var(--account-surface-soft)!important;color:var(--account-text)!important;border:1px solid var(--account-border)!important}.unified-log-builder .log-display-grid .toggle-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:52px!important;padding:11px 13px!important;border:1px solid var(--account-border)!important;border-radius:10px!important;background:var(--account-surface-soft)!important;color:var(--account-text)!important}@media(max-width:720px){.unified-log-builder .unified-log-head{grid-template-columns:minmax(0,1fr) auto!important}.unified-log-builder .unified-log-toggle-area{grid-template-columns:38px minmax(0,1fr) 20px!important}.unified-log-builder .unified-log-count{display:none!important}.unified-log-builder .unified-log-master{margin-right:12px!important}} .unified-log-builder{--log-switch-on:#2da44e;--log-switch-on-border:#1f883d}.unified-log-builder .switch>input:checked+i,.unified-log-builder .mini-switch input:checked+i,.unified-log-builder .ui-switch-control:checked{background:var(--log-switch-on)!important;border-color:var(--log-switch-on-border)!important}html[data-theme="dark"] .unified-log-builder .switch>input:checked+i,html[data-theme="dark"] .unified-log-builder .mini-switch input:checked+i,html[data-theme="dark"] .unified-log-builder .ui-switch-control:checked,body.dark-theme .unified-log-builder .switch>input:checked+i,body.dark-theme .unified-log-builder .mini-switch input:checked+i,body.dark-theme .unified-log-builder .ui-switch-control:checked{background:var(--log-switch-on)!important;border-color:var(--log-switch-on-border)!important}.unified-log-builder .unified-log-card.is-disabled .unified-log-body{opacity:.42!important;filter:saturate(.35);pointer-events:none!important;user-select:none}.unified-log-builder .unified-log-card.is-disabled .unified-log-title,.unified-log-builder .unified-log-card.is-disabled .unified-log-icon,.unified-log-builder .unified-log-card.is-disabled .unified-log-count{opacity:.62}.unified-log-builder .unified-log-card.is-disabled .unified-log-body input,.unified-log-builder .unified-log-card.is-disabled .unified-log-body select,.unified-log-builder .unified-log-card.is-disabled .unified-log-body textarea,.unified-log-builder .unified-log-card.is-disabled .unified-log-body button{cursor:not-allowed!important}.unified-log-builder.logs-collection-disabled .unified-log-list,.unified-log-builder.logs-collection-disabled .log-style-card,.unified-log-builder.logs-collection-disabled .log-general-grid{opacity:.48}.unified-log-builder input:disabled,.unified-log-builder select:disabled,.unified-log-builder textarea:disabled,.unified-log-builder button:disabled{cursor:not-allowed!important} .unified-log-builder input.ui-switch-control[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;width:42px!important;min-width:42px!important;height:24px!important;margin:0!important;border:1px solid #8c959f!important;border-radius:999px!important;background:#afb8c1!important;position:relative!important;cursor:pointer!important;transition:.18s ease!important}.unified-log-builder input.ui-switch-control[type="checkbox"]::after{content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.28);transition:transform .18s ease}.unified-log-builder input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(18px)}.unified-log-builder input.ui-switch-control[type="checkbox"]:disabled{opacity:.5} .bot-premium-module{display:none}.bot-premium-module.is-active{display:block}.bot-premium-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:18px}.bot-premium-summary img{width:58px;height:58px;border-radius:16px;object-fit:cover}.bot-premium-summary div{display:grid;gap:4px}.bot-premium-summary strong{font-size:18px}.bot-premium-summary span{color:var(--muted)}.bot-premium-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bot-premium-plan{position:relative;display:flex;flex-direction:column;min-height:360px;padding:24px;overflow:hidden}.bot-premium-plan.is-featured{border-color:#2f81f7;box-shadow:0 0 0 1px rgba(47,129,247,.18)}.bot-premium-plan.is-network{border-color:#d29922}.bot-premium-plan h3{font-size:26px;margin:10px 0 6px}.bot-premium-plan p{color:var(--muted);line-height:1.5}.bot-premium-plan ul{display:grid;gap:10px;padding-left:20px;margin:18px 0 24px;color:var(--text)}.bot-premium-plan .primary{margin-top:auto;width:100%;justify-content:center}.plan-kicker{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#58a6ff}.plan-badge{position:absolute;top:14px;right:14px;padding:5px 9px;border-radius:999px;background:#0969da;color:#fff;font-size:11px;font-weight:900}html[data-theme="light"] .bot-premium-plan,body:not(.dark-theme) .bot-premium-plan{background:#fff}@media(max-width:1050px){.bot-premium-plans{grid-template-columns:1fr}.bot-premium-plan{min-height:0}.bot-premium-summary{grid-template-columns:auto 1fr}.bot-premium-summary>a{grid-column:1/-1}}@media(max-width:620px){.bot-premium-summary{grid-template-columns:1fr}.bot-premium-summary img{width:52px;height:52px}}:root{--ui-zebra-a:#ffffff;--ui-zebra-b:#f4f7fb;--ui-zebra-border:#d8e0ea}html[data-theme="dark"]{--ui-zebra-a:#111b2d;--ui-zebra-b:#17243a;--ui-zebra-border:#30415f} .stats-grid>.stat-card:nth-child(odd),.content-grid>.github-card:nth-child(odd),.bot-grid>.bot-card:nth-child(odd),.bot-premium-plans>.bot-premium-plan:nth-child(odd),.automod-module-list>.automod-module:nth-child(odd),.unified-log-list>.unified-log-card:nth-child(odd),.saved-builder-list>.saved-builder-row:nth-child(odd),.role-template-grid>button:nth-child(odd){background:var(--ui-zebra-a)!important}.stats-grid>.stat-card:nth-child(even),.content-grid>.github-card:nth-child(even),.bot-grid>.bot-card:nth-child(even),.bot-premium-plans>.bot-premium-plan:nth-child(even),.automod-module-list>.automod-module:nth-child(even),.unified-log-list>.unified-log-card:nth-child(even),.saved-builder-list>.saved-builder-row:nth-child(even),.role-template-grid>button:nth-child(even){background:var(--ui-zebra-b)!important;border-color:var(--ui-zebra-border)!important} .details-list>div:nth-child(even),.settings-list>div:nth-child(even),.linked-services-card .linked-service-row:nth-child(even),.log-event-grid>label:nth-child(even),.log-scope-grid>.field:nth-child(even),.log-display-grid>.toggle-row:nth-child(even),.reaction-role-items>.reaction-role-item-row:nth-child(even),.custom-message-buttons-builder>.custom-message-button-row:nth-child(even),.custom-block-list>.custom-block-row:nth-child(even),.welcome-event-card .welcome-subsection:nth-child(even){background:var(--ui-zebra-b)!important}.details-list>div:nth-child(odd),.settings-list>div:nth-child(odd),.linked-services-card .linked-service-row:nth-child(odd),.log-event-grid>label:nth-child(odd),.log-scope-grid>.field:nth-child(odd),.log-display-grid>.toggle-row:nth-child(odd),.reaction-role-items>.reaction-role-item-row:nth-child(odd),.custom-message-buttons-builder>.custom-message-button-row:nth-child(odd),.custom-block-list>.custom-block-row:nth-child(odd),.welcome-event-card .welcome-subsection:nth-child(odd){background:var(--ui-zebra-a)!important} .log-event-grid>label,.log-display-grid>.toggle-row,.reaction-role-item-row,.custom-message-button-row,.custom-block-row,.welcome-subsection,.linked-service-row{border-color:var(--ui-zebra-border)!important}.log-event-grid>label,.log-display-grid>.toggle-row,.log-scope-grid>.field,.settings-list>div,.details-list>div{border-radius:8px}.log-event-grid>label,.log-display-grid>.toggle-row{padding:10px 12px}.log-scope-grid>.field{padding:12px} .bot-premium-plan.is-featured{background:linear-gradient(180deg,color-mix(in srgb,var(--ui-zebra-b) 86%,#2f81f7 14%),var(--ui-zebra-b))!important}@media(max-width:720px){.log-event-grid>label,.log-display-grid>.toggle-row,.log-scope-grid>.field{border-radius:10px}} .bot-premium-plan.is-current-plan{border-color:#238636;box-shadow:0 0 0 1px rgba(35,134,54,.2)}.current-plan-badge{background:rgba(35,134,54,.14);border-color:rgba(35,134,54,.42);color:#3fb950}.upgrade-placeholder{display:grid;gap:3px;margin-top:auto;margin-bottom:12px;padding:12px 14px;border:1px dashed var(--border);border-radius:12px;background:rgba(47,129,247,.06)}.upgrade-placeholder strong{font-size:14px;color:var(--text)}.upgrade-placeholder small{font-size:12px;color:var(--muted)}.premium-upgrade-modal[hidden]{display:none}.premium-upgrade-modal{position:fixed;inset:0;z-index:120000;display:grid;place-items:center;padding:20px}.premium-upgrade-backdrop{position:absolute;inset:0;background:rgba(1,4,9,.72);backdrop-filter:blur(6px)}.premium-upgrade-dialog{position:relative;z-index:1;width:min(520px,100%);padding:26px;border:1px solid var(--border);border-radius:18px;background:var(--card);color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.48)}.premium-upgrade-dialog h2{margin:5px 0 18px}.premium-upgrade-close{position:absolute;top:12px;right:14px;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:26px;cursor:pointer}.premium-upgrade-close:hover{background:var(--hover);color:var(--text)}.premium-upgrade-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.premium-upgrade-summary>div{display:grid;gap:5px;padding:13px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}.premium-upgrade-summary span{font-size:12px;color:var(--muted)}.premium-upgrade-summary strong{font-size:15px}.premium-upgrade-note{margin-bottom:18px;padding:14px;border-radius:12px;background:rgba(210,153,34,.1);border:1px solid rgba(210,153,34,.35)}.premium-upgrade-note strong{color:#d29922}.premium-upgrade-note p{margin:6px 0 0;color:var(--muted);line-height:1.5}.has-modal-open{overflow:hidden}html[data-theme="light"] .upgrade-placeholder,body:not(.dark-theme) .upgrade-placeholder{background:#f6f9ff}html[data-theme="light"] .premium-upgrade-dialog,body:not(.dark-theme) .premium-upgrade-dialog{background:#fff}@media(max-width:560px){.premium-upgrade-summary{grid-template-columns:1fr}.premium-upgrade-dialog{padding:22px 18px}} .bot-module-sidebar.is-collapsed .bot-module-menu button:hover:after{left:calc(100%+14px)!important;top:50%;transform:translateY(-50%);pointer-events:none;max-width:260px;overflow:hidden;text-overflow:ellipsis;z-index:12050}.bot-module-sidebar.is-collapsed .bot-module-menu button:hover:before{content:"";position:absolute;left:calc(100%+7px);top:50%;width:10px;height:10px;transform:translateY(-50%) rotate(45deg);background:#0d1117;border-left:1px solid #30363d;border-bottom:1px solid #30363d;z-index:12049;pointer-events:none}@media(max-width:1050px){.bot-module-sidebar.is-collapsed .bot-module-menu button:hover:after,.bot-module-sidebar.is-collapsed .bot-module-menu button:hover:before{display:none}} .music-tabs{display:flex;gap:10px;margin:0 0 18px;flex-wrap:wrap}.music-tabs button{border:1px solid var(--border-color,#ddd);background:var(--card-bg,#fff);padding:10px 18px;border-radius:12px;font-weight:600;cursor:pointer;color:inherit}.music-tabs button.is-active{background:#00bfff;color:#fff;border-color:#00bfff}.tunetune-player-placeholder{display:flex;gap:24px;align-items:center;padding:24px;margin-bottom:18px}.player-cover{width:150px;height:150px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:rgba(0,191,255,.12);font-size:55px;flex:none}.player-info{flex:1}.player-info h2{margin:0 0 8px}.player-progress{height:8px;background:rgba(127,127,127,.25);border-radius:20px;overflow:hidden;margin:20px 0 8px}.player-progress span{display:block;width:35%;height:100%;background:#00bfff}.player-time{display:flex;justify-content:space-between;color:#777}.player-controls{display:flex;gap:10px;margin-top:16px}.player-controls button{border:0;border-radius:50%;width:42px;height:42px;background:rgba(0,191,255,.12);cursor:pointer}.history-placeholder{padding:20px}@media(max-width:700px){.tunetune-player-placeholder{flex-direction:column;text-align:center}} .music-tabs{gap:8px;margin-bottom:20px}.music-tabs button{background:var(--card-bg,#fff);border:1px solid var(--border-color,#d9e2f0);color:var(--text-color,#10233f);box-shadow:0 2px 8px rgba(0,0,0,.04);transition:.2s}.music-tabs button:hover{transform:translateY(-1px)}.music-tabs button.is-active{background:#00bfff;color:#fff;border-color:#00bfff}.tunetune-player-placeholder{display:grid;grid-template-columns:180px 1fr;padding:28px;border-radius:18px;border:1px solid var(--border-color,#d9e2f0);background:var(--card-bg,#fff);box-shadow:0 8px 24px rgba(0,0,0,.06);margin-bottom:18px}.player-cover{width:180px;height:180px;border-radius:22px;background:linear-gradient(145deg,rgba(0,191,255,.18),rgba(0,191,255,.05));border:1px solid rgba(0,191,255,.25);font-size:64px}.player-info h2{font-size:24px}.player-info p{color:var(--muted-color,#71809b)}.player-progress{height:10px;margin:22px 0 10px}.player-controls button{width:46px;height:46px;background:var(--button-bg,rgba(0,191,255,.12));font-size:18px;border:1px solid rgba(0,191,255,.18)}.player-controls button:hover{background:#00bfff;color:#fff}.history-placeholder{border-radius:18px}@media(max-width:700px){.tunetune-player-placeholder{display:flex;padding:20px}.player-cover{width:130px;height:130px}} .music-tabs{display:flex;gap:10px;margin:18px 0}.music-tabs button{border:1px solid var(--border,#334155);background:var(--card,#111827);color:inherit;border-radius:12px;padding:10px 18px;font-weight:800;cursor:pointer}.music-tabs button.is-active{background:#1597ff;color:#fff;border-color:#1597ff}.music-tab-panel{margin-bottom:18px}.tunetune-player-placeholder{display:flex;gap:24px;align-items:center;padding:28px}.player-cover{width:180px;height:180px;border-radius:24px;background:linear-gradient(135deg,#e0f5ff,#f8fbff);display:flex;align-items:center;justify-content:center;font-size:64px;border:1px solid #9bdcff;flex:none}.player-info{flex:1}.player-progress{height:8px;background:#334155;border-radius:20px;overflow:hidden;margin:22px 0 8px}.player-progress span{display:block;width:0;height:100%;background:#16a34a}.player-time{display:flex;justify-content:space-between;opacity:.7}.player-controls{display:flex;gap:10px;margin-top:18px}.player-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #38bdf8;background:transparent;color:inherit;cursor:pointer;font-size:18px}.history-item{padding:14px;border-radius:12px;background:rgba(148,163,184,.12);margin-top:10px;display:flex;justify-content:space-between;gap:10px}@media(max-width:700px){.tunetune-player-placeholder{flex-direction:column;align-items:stretch}.player-cover{width:100%;height:150px}} .music-tab-panel[style*="display:none"]{display:none!important}.music-tab-panel{animation:musicFade .15s ease}.tunetune-player-placeholder{background:var(--card-bg,#fff);color:var(--text-color,#10233f)}.player-progress span{background:#00bfff}.command-card code{color:#00bfff}.bot-module-panel[data-module-panel="tt-music"] .console-card .field:first-child{display:none!important}@keyframes musicFade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}} .bot-module-panel[data-module-panel="tt-music"] .music-tabs button{background:var(--card-bg,#fff);color:var(--text-color,#10233f);border:1px solid var(--border-color,#d9e2f0);opacity:1}.bot-module-panel[data-module-panel="tt-music"] .music-tabs button.is-active{background:#00bfff;color:#fff;border-color:#00bfff}[data-theme="dark"] .bot-module-panel[data-module-panel="tt-music"] .music-tabs button{background:#111827;color:#e5edf8;border-color:#334155}[data-theme="dark"] .bot-module-panel[data-module-panel="tt-music"] .music-tabs button.is-active{background:#1597ff;color:#fff}.bot-module-panel[data-module-panel="tt-music"] .music-tab-panel[style*="display:none"]{display:none!important}.bot-module-panel[data-module-panel="tt-music"] .music-tab-panel{animation:musicFade .18s ease}@keyframes musicFade{from{opacity:.5;transform:translateY(4px)}to{opacity:1;transform:none}}.bot-module-panel[data-module-panel="tt-music"] .player-progress span{width:0} .music-queue-card,.music-search-card,.radio-card-wrapper{margin-top:18px;padding:20px}.queue-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--border-color,#ddd);border-radius:12px;margin-bottom:10px}.queue-item button{border:0;background:transparent;cursor:pointer}.music-search-row{display:flex;gap:10px;flex-wrap:wrap}.music-search-row input,.music-search-row select{flex:1;min-height:42px;border-radius:12px;border:1px solid var(--border-color,#ddd);padding:0 12px;background:var(--card-bg,#fff);color:inherit}.radio-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.radio-station{min-height:90px;border-radius:16px;border:1px solid var(--border-color,#ddd);background:var(--card-bg,#fff);color:inherit;text-align:left;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:8px}.radio-station small{opacity:.75}.premium-radio{position:relative}.premium-radio:before{content:"💎 Premium";position:absolute;top:8px;right:10px;font-size:11px;background:#eef6ff;border-radius:10px;padding:3px 7px;color:#1477d4}.premium-radio{opacity:1}.premium-radio:after{content:'💎';position:absolute}@media(max-width:900px){.radio-grid{grid-template-columns:repeat(2,1fr)}}.queue-clear-btn{border-radius:12px!important;padding:10px 16px!important;display:inline-flex;align-items:center;gap:6px;font-weight:600}.queue-item button{width:34px;height:34px;border-radius:10px;background:var(--card-bg,#fff);border:1px solid var(--border-color,#ddd)!important}.radio-logo{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-right:8px;background:rgba(0,191,255,.12);font-size:18px}.radio-station b{display:flex;align-items:center;gap:6px}.premium-radio{position:relative}.station-logo-img{width:42px;height:42px;border-radius:14px;background:rgba(0,191,255,.12);display:flex;align-items:center;justify-content:center;font-weight:700;color:#1785db;margin-bottom:6px}.radio-station b{display:block} .radio-station{position:relative;min-height:118px;justify-content:center;transition:.2s ease}.radio-station:hover{transform:translateY(-2px)}.radio-logo{width:44px;height:44px;border-radius:14px;font-size:13px;font-weight:800;color:#0b65d8;background:linear-gradient(135deg,#e8f6ff,#c9eaff)}.premium-radio{background:linear-gradient(145deg,#eef1f5,#dfe3e8);opacity:.75}.premium-badge{display:inline-flex;align-items:center;font-size:11px;padding:3px 7px;border-radius:999px;background:#e8f0ff;color:#0969da;margin-left:6px}.premium-corner{position:absolute;top:8px;right:8px;font-size:11px;background:#fff7d6;color:#9a6700;border-radius:999px;padding:3px 7px;z-index:2}.radio-station{position:relative}.general-statistics-card .stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.general-statistics-card .stats-grid div{padding:16px;border-radius:12px;background:var(--gh-subtle);text-align:center}.general-statistics-card small{display:block;color:var(--gh-muted)}@media(max-width:800px){.general-statistics-card .stats-grid{grid-template-columns:repeat(2,1fr)}} .station-logo-img{width:72px;height:72px;border-radius:18px;object-fit:cover;display:block;margin:0 auto 10px}.radio-station{position:relative;overflow:hidden}.premium-corner{position:absolute;top:8px;right:8px;font-size:11px} .bot-module-panel[data-module-panel="tt-general"] .general-statistics-card{margin-bottom:14px}.equalizer-heading{align-items:center}.equalizer-power{display:flex;align-items:center;gap:12px;font-weight:900;white-space:nowrap}.equalizer-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,.8fr);gap:16px}.equalizer-layout .github-card{min-width:0}.equalizer-visual-card{padding:20px}.equalizer-card-title{align-items:flex-start}.equalizer-card-title h3,.equalizer-presets-card h3{margin:0;font-size:17px}.equalizer-card-title p,.equalizer-presets-card .card-title p{margin:4px 0 0;color:var(--gh-muted);font-size:13px}.equalizer-state{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border:1px solid var(--gh-border);border-radius:999px;background:var(--gh-subtle);color:var(--gh-muted);font-size:12px;font-weight:900;white-space:nowrap}.equalizer-state.is-dirty{border-color:#d4a72c;background:#fff8c5;color:#7d4e00}.equalizer-state.is-saved{border-color:#2da44e;background:#dafbe1;color:#116329}html[data-theme="dark"] .equalizer-state.is-dirty{background:rgba(187,128,9,.15);color:#e3b341}html[data-theme="dark"] .equalizer-state.is-saved{background:rgba(46,160,67,.15);color:#56d364}.equalizer-chart{position:relative;height:245px;margin-top:14px;padding-left:44px;border:1px solid var(--gh-border);border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--gh-blue) 7%,var(--gh-card)),var(--gh-card));overflow:hidden}.equalizer-chart svg{width:100%;height:100%;display:block;overflow:visible}.eq-chart-grid line{stroke:var(--gh-border);stroke-width:1;stroke-dasharray:5 8;opacity:.85}.eq-zero-line{stroke:var(--gh-muted);stroke-width:1.5;opacity:.7}#eq-curve-shadow{fill:none;stroke:color-mix(in srgb,var(--gh-blue) 28%,transparent);stroke-width:16;stroke-linecap:round;stroke-linejoin:round}#eq-curve{fill:none;stroke:var(--gh-blue);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}#eq-points circle{fill:var(--gh-card);stroke:var(--gh-blue);stroke-width:4}.equalizer-chart-scale{position:absolute;left:8px;top:17px;bottom:17px;display:flex;flex-direction:column;justify-content:space-between;color:var(--gh-muted);font-size:11px;font-weight:800}.equalizer-presets-card{padding:20px;display:flex;flex-direction:column}.equalizer-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.equalizer-presets button{min-height:38px;padding:8px 10px;border:1px solid var(--gh-border);border-radius:9px;background:var(--gh-subtle);color:var(--theme-text);font:800 13px Nunito,sans-serif;cursor:pointer;transition:.16s ease}.equalizer-presets button:hover{border-color:var(--gh-blue);transform:translateY(-1px)}.equalizer-presets button.is-active{border-color:var(--gh-blue);background:color-mix(in srgb,var(--gh-blue) 16%,var(--gh-card));color:var(--gh-blue)}.equalizer-preamp{display:grid;gap:9px;margin-top:auto;padding-top:20px}.equalizer-preamp>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:900}.equalizer-preamp output{color:var(--gh-blue);font-weight:900}.equalizer-preamp small{color:var(--gh-muted);line-height:1.45}.equalizer-preamp input[type="range"]{width:100%;accent-color:var(--gh-blue)}.equalizer-bands-card{grid-column:1/-1;padding:20px;overflow-x:auto}.equalizer-bands{min-width:760px;display:grid;grid-template-columns:repeat(10,minmax(58px,1fr));gap:12px;align-items:end}.equalizer-band{display:grid;grid-template-rows:25px 210px auto auto;justify-items:center;gap:7px;min-width:0}.equalizer-band output{font-size:12px;font-weight:900;color:var(--gh-blue);white-space:nowrap}.equalizer-band input[type="range"]{width:190px;height:28px;margin:90px -66px;transform:rotate(-90deg);accent-color:var(--gh-blue);cursor:pointer}.equalizer-band strong{font-size:14px;line-height:1}.equalizer-band small{color:var(--gh-muted);font-size:11px;line-height:1}.equalizer-actions-card{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:16px 20px}.equalizer-actions-card>div:first-child{display:grid;gap:3px;min-width:220px}.equalizer-actions-card small{color:var(--gh-muted)}.equalizer-actions-card .api-form-message{margin:0 auto;min-height:20px;text-align:center}.equalizer-actions{display:flex;gap:10px;margin-left:auto}.equalizer-actions .secondary{min-height:41px;padding:9px 15px}.equalizer-actions .primary{white-space:nowrap}.equalizer-power .switch{margin:0}.equalizer-power .switch i{display:block}#tunetune-equalizer-panel.is-bypassed .equalizer-chart,#tunetune-equalizer-panel.is-bypassed .equalizer-bands-card{opacity:.55}@media(max-width:1000px){.equalizer-layout{grid-template-columns:1fr}.equalizer-bands-card,.equalizer-actions-card{grid-column:auto}}@media(max-width:720px){.equalizer-heading{align-items:flex-start}.equalizer-power{margin-top:12px}.equalizer-chart{height:210px;padding-left:38px}.equalizer-actions-card{align-items:stretch;flex-direction:column}.equalizer-actions-card>div:first-child{min-width:0}.equalizer-actions-card .api-form-message{margin:0;text-align:left}.equalizer-actions{width:100%;margin:0}.equalizer-actions button{flex:1}}@media(max-width:520px){.equalizer-presets{grid-template-columns:1fr 1fr}.equalizer-visual-card,.equalizer-presets-card,.equalizer-bands-card{padding:16px}.equalizer-chart{height:190px}} #tunetune-equalizer-panel{--eq-accent:var(--gh-blue);--eq-success:#1f883d;--eq-track:color-mix(in srgb,var(--gh-border) 82%,transparent)}#tunetune-equalizer-panel .console-heading{margin-bottom:16px;padding:18px 20px;border:1px solid var(--gh-border);border-radius:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--eq-accent) 8%,var(--gh-card)),var(--gh-card) 58%)}.equalizer-power{min-width:250px;padding:10px 12px;border:1px solid var(--gh-border);border-radius:12px;background:var(--gh-card);box-shadow:0 5px 16px rgba(31,35,40,.06);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}.equalizer-power:hover{border-color:color-mix(in srgb,var(--eq-accent) 58%,var(--gh-border));box-shadow:0 8px 20px rgba(31,35,40,.09);transform:translateY(-1px)}.equalizer-power-copy{display:flex;align-items:center;gap:10px;min-width:0}.equalizer-power-copy>span:last-child{display:grid;gap:1px}.equalizer-power-copy strong{font-size:14px;line-height:1.2;color:var(--theme-text)}.equalizer-power-copy small{font-size:12px;line-height:1.2;color:var(--gh-muted);font-weight:800}.equalizer-power-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--eq-accent) 13%,var(--gh-card));color:var(--eq-accent);font-size:18px;font-weight:900}.equalizer-switch{position:relative;width:48px;height:28px;flex:0 0 48px;display:block}.equalizer-switch input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}.equalizer-switch i{position:absolute;inset:0;display:block;border:1px solid var(--gh-border);border-radius:999px;background:var(--gh-border);box-shadow:inset 0 1px 2px rgba(31,35,40,.12);transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}.equalizer-switch i::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(31,35,40,.28);transition:transform .2s cubic-bezier(.2,.8,.2,1)}.equalizer-switch input:checked+i{background:var(--eq-success);border-color:var(--eq-success);box-shadow:0 0 0 3px color-mix(in srgb,var(--eq-success) 13%,transparent)}.equalizer-switch input:checked+i::after{transform:translateX(20px)}.equalizer-switch input:focus-visible+i{outline:3px solid color-mix(in srgb,var(--eq-accent) 26%,transparent);outline-offset:2px}.equalizer-layout{gap:14px}.equalizer-layout .github-card{border-radius:14px;box-shadow:0 8px 24px rgba(31,35,40,.055)}.equalizer-visual-card,.equalizer-presets-card,.equalizer-bands-card,.equalizer-actions-card{background:linear-gradient(180deg,var(--gh-card),color-mix(in srgb,var(--gh-subtle) 42%,var(--gh-card)))}.equalizer-chart{border-radius:12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}.equalizer-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.equalizer-presets button{min-height:58px;padding:9px 11px;display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;border:1px solid var(--gh-border);border-radius:11px;background:var(--gh-card);color:var(--theme-text);text-align:left;font-family:Nunito,sans-serif;box-shadow:0 2px 8px rgba(31,35,40,.035);transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}.equalizer-presets button>span:last-child{display:grid;gap:1px;min-width:0}.equalizer-presets button strong{font-size:13px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.equalizer-presets button small{font-size:10px;line-height:1.25;color:var(--gh-muted);font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.eq-preset-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--gh-subtle);color:var(--gh-muted);font-size:15px;font-weight:900;transition:background .16s ease,color .16s ease,transform .16s ease}.equalizer-presets button:hover{border-color:color-mix(in srgb,var(--eq-accent) 62%,var(--gh-border));background:color-mix(in srgb,var(--eq-accent) 5%,var(--gh-card));box-shadow:0 7px 16px rgba(31,35,40,.08);transform:translateY(-1px)}.equalizer-presets button:hover .eq-preset-icon{color:var(--eq-accent);transform:scale(1.04)}.equalizer-presets button.is-active{border-color:var(--eq-accent);background:color-mix(in srgb,var(--eq-accent) 10%,var(--gh-card));color:var(--theme-text);box-shadow:0 0 0 3px color-mix(in srgb,var(--eq-accent) 12%,transparent)}.equalizer-presets button.is-active .eq-preset-icon{background:var(--eq-accent);color:#fff}.equalizer-presets button.is-active small{color:color-mix(in srgb,var(--eq-accent) 72%,var(--theme-text))}.equalizer-preamp{margin-top:18px;padding:15px;border:1px solid var(--gh-border);border-radius:11px;background:var(--gh-card)}.equalizer-preamp output,.equalizer-band output{display:inline-flex;align-items:center;justify-content:center;min-height:25px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--eq-accent) 24%,var(--gh-border));border-radius:999px;background:color-mix(in srgb,var(--eq-accent) 8%,var(--gh-card));color:var(--eq-accent)}#tunetune-equalizer-panel input[type="range"]{-webkit-appearance:none;appearance:none;height:6px;border:0;border-radius:999px;outline:0;background:linear-gradient(90deg,var(--eq-accent) 0 var(--eq-level,50%),var(--eq-track) var(--eq-level,50%) 100%);box-shadow:inset 0 1px 2px rgba(31,35,40,.14);cursor:pointer}#tunetune-equalizer-panel input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border:3px solid var(--gh-card);border-radius:50%;background:var(--eq-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--eq-accent) 70%,var(--gh-border)),0 3px 8px rgba(31,35,40,.24);transition:transform .14s ease,box-shadow .14s ease}#tunetune-equalizer-panel input[type="range"]::-moz-range-thumb{width:13px;height:13px;border:3px solid var(--gh-card);border-radius:50%;background:var(--eq-accent);box-shadow:0 0 0 1px color-mix(in srgb,var(--eq-accent) 70%,var(--gh-border)),0 3px 8px rgba(31,35,40,.24)}#tunetune-equalizer-panel input[type="range"]:hover::-webkit-slider-thumb{transform:scale(1.12)}#tunetune-equalizer-panel input[type="range"]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px color-mix(in srgb,var(--eq-accent) 20%,transparent)}.equalizer-bands-card{padding:18px 16px 16px}.equalizer-bands{gap:9px}.equalizer-band{grid-template-rows:28px 210px auto auto;gap:7px;padding:10px 5px 9px;border:1px solid transparent;border-radius:11px;transition:background .16s ease,border-color .16s ease,transform .16s ease}.equalizer-band:hover{border-color:color-mix(in srgb,var(--eq-accent) 28%,var(--gh-border));background:color-mix(in srgb,var(--eq-accent) 5%,var(--gh-card));transform:translateY(-1px)}.equalizer-band strong{font-size:14px;color:var(--theme-text)}.equalizer-band small{text-transform:uppercase;letter-spacing:.05em;font-weight:900}.equalizer-actions-card{padding:15px 18px}.equalizer-actions button{min-height:42px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font:900 14px Nunito,sans-serif;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.equalizer-actions button:hover{transform:translateY(-1px)}.equalizer-reset-button{border:1px solid var(--gh-border);background:var(--gh-card);color:var(--theme-text);box-shadow:0 2px 8px rgba(31,35,40,.04)}.equalizer-reset-button:hover{border-color:var(--eq-accent);color:var(--eq-accent);box-shadow:0 7px 15px rgba(31,35,40,.08)}.equalizer-save-button{border-radius:9px;box-shadow:0 7px 16px rgba(31,136,61,.18)}.equalizer-save-button:hover{box-shadow:0 9px 20px rgba(31,136,61,.24)}#tunetune-equalizer-panel.is-bypassed .equalizer-layout{filter:saturate(.72)}#tunetune-equalizer-panel.is-bypassed .equalizer-chart,#tunetune-equalizer-panel.is-bypassed .equalizer-bands-card,#tunetune-equalizer-panel.is-bypassed .equalizer-presets-card{opacity:.55}html[data-theme="dark"] .equalizer-power,html[data-theme="dark"] .equalizer-presets button,html[data-theme="dark"] .equalizer-preamp{box-shadow:none}html[data-theme="dark"] .equalizer-switch i{background:#30363d;border-color:#484f58}html[data-theme="dark"] .equalizer-switch input:checked+i{background:#2ea043;border-color:#2ea043}@media(max-width:720px){#tunetune-equalizer-panel .console-heading{padding:16px}.equalizer-power{width:100%;min-width:0;margin-top:12px}}@media(max-width:520px){.equalizer-presets{grid-template-columns:1fr}.equalizer-actions{display:grid;grid-template-columns:1fr;width:100%}} #tunetune-channels-logs-panel{--tt-route-accent:#2f81f7;--tt-route-soft:rgba(47,129,247,.09)}.tunetune-routing-heading{align-items:center}.tunetune-routing-form{gap:16px}.routing-intro-card{display:flex;align-items:center;gap:14px;padding:16px 18px!important;border-color:color-mix(in srgb,var(--account-accent) 35%,var(--account-border))!important;background:linear-gradient(135deg,var(--account-surface),var(--account-surface-soft))!important}.routing-intro-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:13px;background:var(--tt-route-accent);color:#fff;font-size:22px;font-weight:900;box-shadow:0 8px 20px rgba(47,129,247,.22)}.routing-intro-card>div{display:grid;gap:3px}.routing-intro-card small{color:var(--account-muted);line-height:1.45}.tunetune-routing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.routing-card{padding:20px!important;min-width:0;display:grid;align-content:start;gap:16px;overflow:hidden}.routing-card-wide{grid-column:1/-1}.routing-card .card-title{align-items:flex-start;margin:0}.routing-card .card-title h3{margin:0}.routing-card .card-title p{margin:5px 0 0;color:var(--account-muted);font-size:13px;line-height:1.45}.routing-card-badge{flex:0 0 auto;padding:5px 9px;border:1px solid var(--account-border);border-radius:999px;background:var(--account-surface-soft);color:var(--account-muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.routing-fields{display:grid;gap:14px}.routing-fields.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.routing-card .field.routing-field-visible{display:grid!important;gap:7px;margin:0!important;min-width:0}.routing-card .field.routing-field-visible label{font-size:13px;font-weight:850;color:var(--account-text)}.routing-card .field.routing-field-visible input,.routing-card .field.routing-field-visible textarea,.routing-card .field.routing-field-visible select{width:100%;min-width:0;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft);color:var(--account-text);padding:11px 12px;font:inherit;outline:none;transition:border-color .16s,box-shadow .16s,background .16s}.routing-card .field.routing-field-visible textarea{resize:vertical;min-height:82px;line-height:1.45}.routing-card .field.routing-field-visible input:focus,.routing-card .field.routing-field-visible textarea:focus,.routing-card .field.routing-field-visible select:focus{border-color:var(--tt-route-accent);box-shadow:0 0 0 3px rgba(47,129,247,.14);background:var(--account-surface)}.routing-card .field.routing-field-visible small{color:var(--account-muted);line-height:1.45}.routing-card .field.routing-field-visible code{color:var(--account-accent);font-weight:800}.premium-field-label{display:flex;align-items:center;justify-content:space-between;gap:12px}.premium-channel-field.is-locked{position:relative;padding:13px;border:1px dashed #d4a72c;border-radius:12px;background:rgba(210,153,34,.07)}.premium-channel-field.is-locked input{cursor:not-allowed;opacity:.68}.premium-channel-field.is-locked small{color:#9a6700!important}.routing-toggle-list{display:grid}.routing-toggle-list.no-top-border .toggle-row:first-child{border-top:0}.routing-toggle-list .toggle-row{margin:0;padding:13px 0}.routing-toggle-list .toggle-row strong{font-size:14px}.routing-toggle-list .toggle-row small{font-size:12px;line-height:1.4}.compact-field{padding-top:2px}.routing-number-control{display:flex;align-items:center;gap:10px}.routing-number-control input{max-width:120px}.routing-number-control span{color:var(--account-muted);font-weight:800}.routing-log-channel{max-width:620px}.routing-events-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.routing-events-grid>label{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:66px;padding:12px 13px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft);cursor:pointer;transition:border-color .15s,transform .15s,background .15s}.routing-events-grid>label:hover{border-color:color-mix(in srgb,var(--account-accent) 48%,var(--account-border));transform:translateY(-1px)}.routing-events-grid>label>span:first-child{display:grid;gap:3px;min-width:0}.routing-events-grid strong{font-size:13px}.routing-events-grid small{color:var(--account-muted);font-size:12px;line-height:1.35}.routing-events-grid .mini-switch{flex:0 0 auto;position:relative;width:44px;height:24px}.routing-events-grid .mini-switch input{position:absolute;opacity:0;pointer-events:none}.routing-events-grid .mini-switch i{position:absolute;inset:0;border-radius:999px;background:var(--account-border);transition:.18s}.routing-events-grid .mini-switch i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:.18s}.routing-events-grid .mini-switch input:checked+i{background:#2da44e}.routing-events-grid .mini-switch input:checked+i:after{transform:translateX(20px)}.routing-display-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.routing-display-grid .toggle-row{margin:0;padding:13px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft)}.routing-display-grid .toggle-row strong{font-size:13px}.routing-display-grid .toggle-row small{font-size:12px;line-height:1.35}.tunetune-routing-save{position:sticky;bottom:12px;z-index:8;border:1px solid var(--account-border);border-radius:13px;background:color-mix(in srgb,var(--account-surface) 92%,transparent);box-shadow:0 12px 28px rgba(0,0,0,.12);backdrop-filter:blur(12px)}html[data-theme="light"] .routing-card,html[data-theme="light"] .routing-intro-card{box-shadow:0 8px 24px rgba(31,35,40,.055)}html[data-theme="light"] .routing-events-grid>label,html[data-theme="light"] .routing-display-grid .toggle-row,html[data-theme="light"] .routing-card .field.routing-field-visible input,html[data-theme="light"] .routing-card .field.routing-field-visible textarea{background:#f6f8fa;color:#1f2328;border-color:#d0d7de}html[data-theme="dark"] .routing-events-grid>label,html[data-theme="dark"] .routing-display-grid .toggle-row,html[data-theme="dark"] .routing-card .field.routing-field-visible input,html[data-theme="dark"] .routing-card .field.routing-field-visible textarea{background:#121d30;color:#e6edf3;border-color:#2f405d}html[data-theme="dark"] .premium-channel-field.is-locked{background:rgba(210,153,34,.09);border-color:#9e6a03}html[data-theme="dark"] .premium-channel-field.is-locked small{color:#e3b341!important}@media(max-width:980px){.tunetune-routing-grid{grid-template-columns:1fr}.routing-card-wide{grid-column:auto}.routing-display-grid{grid-template-columns:1fr}.routing-fields.two-columns{grid-template-columns:1fr}}@media(max-width:680px){.routing-intro-card{align-items:flex-start}.routing-events-grid{grid-template-columns:1fr}.routing-card{padding:16px!important}.premium-field-label{align-items:flex-start;flex-direction:column}.tunetune-routing-save{position:static;align-items:stretch}.tunetune-routing-save .primary{width:100%}} textarea.auto-grow-textarea,.account-shell textarea.auto-grow-textarea,.bot-module-panel textarea.auto-grow-textarea{box-sizing:border-box!important;width:100%;resize:none!important;overflow-y:hidden!important;max-height:none!important;transition:height .12s ease,border-color .16s ease,box-shadow .16s ease}.routing-fields{align-items:start}.routing-card .field.routing-field-visible textarea.auto-grow-textarea{min-height:48px!important;height:48px}.routing-switch-row,.routing-event-item,.routing-display-item{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;cursor:pointer}.routing-switch-row{min-height:64px;padding:12px 0;border-top:1px solid var(--account-border)}.routing-toggle-list.no-top-border .routing-switch-row:first-child{border-top:0}.routing-switch-row>span:first-child,.routing-event-item>span:first-child,.routing-display-item>span:first-child{display:grid;gap:4px;min-width:0}.routing-switch-row strong,.routing-event-item strong,.routing-display-item strong{font-size:14px;line-height:1.3;color:var(--account-text)}.routing-switch-row small,.routing-event-item small,.routing-display-item small{font-size:12px;line-height:1.42;color:var(--account-muted);font-weight:600}.tt-route-switch{position:relative;display:inline-flex;flex:0 0 46px;width:46px;height:26px;align-self:center}.tt-route-switch input{position:absolute!important;inset:0!important;z-index:2;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer!important;pointer-events:auto!important}.tt-route-switch i{position:absolute;inset:0;display:block;border:1px solid #a8b3c2;border-radius:999px;background:#d8e0e9;box-shadow:inset 0 1px 2px rgba(16,35,63,.08);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}.tt-route-switch i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(16,35,63,.25);transition:transform .18s ease}.tt-route-switch input:checked+i{background:#2da44e;border-color:#2da44e;box-shadow:0 0 0 3px rgba(45,164,78,.10)}.tt-route-switch input:checked+i::after{transform:translateX(20px)}.tt-route-switch input:focus-visible+i{outline:3px solid rgba(47,129,247,.22);outline-offset:2px}.tt-route-switch input:disabled{cursor:not-allowed!important}.tt-route-switch input:disabled+i{opacity:.55}html[data-theme="dark"] .tt-route-switch i{background:#344057;border-color:#53627a}html[data-theme="dark"] .tt-route-switch input:checked+i{background:#2ea043;border-color:#3fb950}.routing-events-grid{align-items:stretch}.routing-event-item,.routing-display-item{min-height:78px;padding:14px 15px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);transition:border-color .16s ease,background .16s ease,transform .16s ease}.routing-event-item:hover,.routing-display-item:hover{border-color:color-mix(in srgb,var(--account-accent) 52%,var(--account-border));transform:translateY(-1px)}.routing-display-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.premium-card-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.premium-card-heading h3{margin:0}.premium-routing-option.is-locked,.premium-routing-card.is-locked{position:relative;border-color:#d4a72c!important;background:color-mix(in srgb,#fff7d6 55%,var(--account-surface))!important}.premium-routing-card.is-locked .routing-display-grid{opacity:.62}.premium-routing-lock-note{padding:10px 12px;border:1px dashed #d4a72c;border-radius:10px;background:rgba(210,153,34,.08);color:#7d4e00;font-size:12px;font-weight:800}html[data-theme="dark"] .premium-routing-option.is-locked,html[data-theme="dark"] .premium-routing-card.is-locked{background:rgba(210,153,34,.08)!important;border-color:#9e6a03!important}html[data-theme="dark"] .premium-routing-lock-note{color:#e3b341;border-color:#9e6a03;background:rgba(210,153,34,.08)} .account-panel.is-active .github-card,.bot-module-panel.is-active>article,.bot-module-panel.is-active>.github-card{content-visibility:auto;contain-intrinsic-size:auto 180px}.custom-banner-library{content-visibility:auto;contain-intrinsic-size:auto 520px}
/* v125: unified music center, favorites, alerts and panel persistence */
.bot-module-sidebar.is-collapsed .bot-module-menu button:hover::before{display:none!important;content:none!important}
.account-alert{position:relative;display:flex;align-items:center;justify-content:space-between;gap:16px;transition:opacity .22s ease,transform .22s ease,max-height .22s ease,margin .22s ease,padding .22s ease}
.account-alert>span{min-width:0}
.account-alert [data-alert-close]{width:30px;height:30px;display:grid;place-items:center;flex:0 0 30px;border:1px solid currentColor;border-radius:9px;background:transparent;color:inherit;font:900 20px/1 Nunito,sans-serif;cursor:pointer;opacity:.72}
.account-alert [data-alert-close]:hover{opacity:1;background:rgba(255,255,255,.28)}
.account-alert.is-dismissing{opacity:0;transform:translateY(-7px);max-height:0!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;overflow:hidden}
.account-live-alert{margin:14px auto 0;width:min(1320px,calc(100% - 48px));z-index:40}

.tunetune-music-module{--music-accent:#1597ff;--music-accent-soft:rgba(21,151,255,.12);--music-card:var(--account-surface,var(--gh-card));--music-soft:var(--account-surface-soft,var(--gh-subtle));--music-border:var(--account-border,var(--gh-border));--music-muted:var(--account-muted,var(--gh-muted))}
.music-console-heading{margin-bottom:14px}
.music-tabs{display:flex!important;gap:8px!important;margin:0 0 18px!important;padding:5px!important;width:max-content;max-width:100%;overflow:auto;border:1px solid var(--music-border)!important;border-radius:14px!important;background:var(--music-soft)!important;box-shadow:none!important}
.music-tabs button{min-height:38px!important;padding:8px 16px!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--theme-text)!important;box-shadow:none!important;font:900 14px/1 Nunito,sans-serif!important;white-space:nowrap;transform:none!important}
.music-tabs button:hover{background:color-mix(in srgb,var(--music-accent) 9%,transparent)!important;color:var(--music-accent)!important}
.music-tabs button.is-active{background:var(--music-card)!important;color:var(--music-accent)!important;box-shadow:0 2px 8px rgba(31,35,40,.10)!important}
.music-surface-card{border:1px solid var(--music-border)!important;border-radius:16px!important;background:var(--music-card)!important;box-shadow:0 8px 24px rgba(31,35,40,.06)!important}
.music-surface-card .card-title{align-items:flex-start}
.music-surface-card .card-title h2{margin:0;font-size:20px}
.music-surface-card .card-title p{margin:4px 0 0;color:var(--music-muted);font-size:13px}
.music-kicker{display:block;margin-bottom:5px;color:var(--music-accent);font-size:11px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}
.tunetune-player-placeholder{display:grid!important;grid-template-columns:172px minmax(0,1fr)!important;gap:24px!important;align-items:center!important;padding:24px!important;margin:0 0 16px!important}
.player-cover{width:172px!important;height:172px!important;display:grid!important;place-content:center!important;gap:7px!important;text-align:center;border-radius:20px!important;border:1px solid color-mix(in srgb,var(--music-accent) 30%,var(--music-border))!important;background:linear-gradient(145deg,color-mix(in srgb,var(--music-accent) 18%,var(--music-card)),var(--music-soft))!important;color:var(--music-accent)!important;font-size:58px!important}
.player-cover small{font-size:11px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.player-info{min-width:0}
.player-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.player-info h2{margin:0 0 5px!important;font-size:25px!important;line-height:1.17}
.player-info p{margin:0;color:var(--music-muted)!important}
.player-favorite-action{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-height:42px;padding:8px 13px;border:1px solid var(--music-border);border-radius:11px;background:var(--music-soft);color:var(--theme-text);font:900 13px Nunito,sans-serif;cursor:pointer;transition:.16s ease}
.player-favorite-action span{font-size:22px;color:#db3b62;line-height:1}
.player-favorite-action:hover,.player-favorite-action.is-active{border-color:#db3b62;background:rgba(219,59,98,.1);color:#b42348}
.player-progress{height:8px!important;margin:20px 0 8px!important;background:var(--music-soft)!important;border:1px solid var(--music-border)!important}
.player-progress span{background:linear-gradient(90deg,var(--music-accent),#5bc8ff)!important}
.player-time{color:var(--music-muted)!important;font-size:12px;font-weight:800}
.player-bottom-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:13px}
.player-controls{display:flex!important;gap:8px!important;margin:0!important}
.player-controls button{width:40px!important;height:40px!important;display:grid;place-items:center;border:1px solid var(--music-border)!important;border-radius:11px!important;background:var(--music-soft)!important;color:var(--theme-text)!important;font-size:15px!important}
.player-controls button:hover{border-color:var(--music-accent)!important;background:var(--music-accent-soft)!important;color:var(--music-accent)!important}
.player-controls .player-main-control{background:var(--music-accent)!important;border-color:var(--music-accent)!important;color:#fff!important}
.player-connection-state{color:var(--music-muted);font-size:12px;font-weight:800}
.music-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);gap:16px;margin-bottom:16px}
.music-queue-card,.music-search-card{margin:0!important;padding:20px!important}
.queue-list{display:grid;gap:8px;margin:14px 0}
.queue-item{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 11px!important;border:1px solid var(--music-border)!important;border-radius:12px!important;background:var(--music-soft)!important}
.queue-item>span{display:flex;align-items:center;gap:10px;min-width:0}
.queue-item>span>b{width:26px;height:26px;display:grid;place-items:center;flex:0 0 26px;border-radius:8px;background:var(--music-card);color:var(--music-accent);font-size:12px}
.queue-item>span>span{display:grid;min-width:0;font-weight:900}
.queue-item small{color:var(--music-muted);font-size:11px;font-weight:700}
.queue-item>div{display:flex;gap:5px}
.queue-item button{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--music-border);border-radius:8px;background:var(--music-card);color:var(--theme-text);cursor:pointer}
.queue-item button:hover{border-color:var(--music-accent);color:var(--music-accent)}
.queue-item .queue-remove:hover{border-color:#cf222e;color:#cf222e;background:rgba(207,34,46,.08)}
.music-search-row{display:grid!important;grid-template-columns:minmax(0,1fr) 160px auto!important;gap:9px!important;margin-top:14px}
.music-search-row input,.music-search-row select{min-width:0;width:100%;height:44px;padding:0 12px;border:1px solid var(--music-border);border-radius:10px;background:var(--music-soft);color:var(--theme-text);font:800 14px Nunito,sans-serif}
.music-search-row button{min-height:44px}
.music-field-note{display:block;margin-top:9px;color:var(--music-muted)}
.radio-card-wrapper{padding:20px!important}
.radio-grid{gap:10px!important;margin-top:14px}
.radio-station{min-width:0;padding:13px!important;border:1px solid var(--music-border)!important;border-radius:13px!important;background:var(--music-soft)!important;box-shadow:none!important;transition:.16s ease!important}
.radio-station:hover{transform:translateY(-2px);border-color:var(--music-accent)!important;background:var(--music-card)!important}
.radio-station .station-logo-img{width:42px;height:42px;object-fit:contain}
.radio-station b{font-size:13px}
.radio-station small{color:var(--music-muted);font-size:11px}
.premium-radio::after{display:none!important;content:none!important}
.premium-radio::before{display:none!important;content:none!important}
.premium-corner{position:absolute;top:7px;right:7px;padding:3px 6px;border-radius:999px;background:#fff4ce;color:#7a4d00;font-size:9px;font-weight:1000}
.music-settings-grid{gap:16px!important}
.music-settings-grid .console-card,.music-settings-grid .command-card{padding:20px!important}

.favorites-shell{display:grid;grid-template-columns:290px minmax(0,1fr);gap:16px;align-items:start}
.favorites-playlists-card{position:sticky;top:86px;padding:18px!important}
.favorites-playlist-list{display:grid;gap:7px;margin:14px 0}
.favorites-playlist-button{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--theme-text);text-align:left;cursor:pointer}
.favorites-playlist-button:hover{background:var(--music-soft)}
.favorites-playlist-button.is-active{border-color:color-mix(in srgb,var(--music-accent) 38%,var(--music-border));background:var(--music-accent-soft);color:var(--music-accent)}
.favorites-playlist-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--music-border);border-radius:10px;background:var(--music-card);font-size:16px}
.favorites-playlist-button strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.favorites-playlist-button small{color:var(--music-muted);font-size:11px;font-weight:900}
.favorites-playlist-create{display:grid;gap:7px;padding-top:14px;border-top:1px solid var(--music-border)}
.favorites-playlist-create label{font-size:12px;font-weight:900}
.favorites-playlist-create>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.favorites-playlist-create input{min-width:0;height:40px;padding:0 10px;border:1px solid var(--music-border);border-radius:9px;background:var(--music-soft);color:var(--theme-text);font:800 13px Nunito,sans-serif}
.favorites-playlist-create button{padding:8px 10px}
.favorites-playlist-create small{color:var(--music-muted);line-height:1.45}
.favorites-playlist-create.is-locked{opacity:.72}
.favorites-playlist-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.favorites-main-column{display:grid;gap:16px;min-width:0}
.favorites-add-card,.favorites-library-card{padding:20px!important}
.favorites-add-fields{display:grid;grid-template-columns:1fr 1fr 150px;gap:11px}
.favorites-add-fields label{display:grid;gap:6px;min-width:0}
.favorites-add-fields label>span{font-size:12px;font-weight:900}
.favorites-url-field{grid-column:1/3}
.favorites-add-fields input,.favorites-add-fields select{width:100%;min-width:0;height:42px;padding:0 11px;border:1px solid var(--music-border);border-radius:10px;background:var(--music-soft);color:var(--theme-text);font:800 13px Nunito,sans-serif}
.favorites-add-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.favorites-add-actions span{color:var(--music-muted);font-size:12px;font-weight:800}
.favorites-library-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:15px;border-bottom:1px solid var(--music-border)}
.favorites-library-head h2{margin:0;font-size:22px}
.favorites-library-head p{margin:4px 0 0;color:var(--music-muted);font-size:12px}
.favorites-search{display:flex;align-items:center;gap:8px;width:min(260px,100%);height:40px;padding:0 10px;border:1px solid var(--music-border);border-radius:10px;background:var(--music-soft);color:var(--music-muted)}
.favorites-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--theme-text);font:800 13px Nunito,sans-serif}
.favorites-track-list{display:grid;gap:8px;margin-top:14px}
.favorite-track{display:grid;grid-template-columns:30px 42px minmax(0,1fr) minmax(120px,160px) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--music-border);border-radius:12px;background:var(--music-soft);transition:.16s ease}
.favorite-track:hover{border-color:color-mix(in srgb,var(--music-accent) 35%,var(--music-border));background:var(--music-card)}
.favorite-track.is-dragging{opacity:.42;transform:scale(.99)}
.favorite-track.is-drop-target{border-color:var(--music-accent);box-shadow:0 0 0 2px var(--music-accent-soft)}
.favorite-drag{width:28px;height:34px;display:grid;place-items:center;border:0;background:transparent;color:var(--music-muted);cursor:grab;font-size:18px}
.favorite-drag:active{cursor:grabbing}
.favorite-cover{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,var(--music-accent-soft),var(--music-card));color:var(--music-accent);font-weight:1000}
.favorite-track-main{display:grid;min-width:0}
.favorite-track-main strong,.favorite-track-main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.favorite-track-main strong{font-size:13px}
.favorite-track-main span{margin-top:3px;color:var(--music-muted);font-size:11px;font-weight:700}
.favorite-playlist-select{width:100%;min-width:0;height:36px;padding:0 8px;border:1px solid var(--music-border);border-radius:9px;background:var(--music-card);color:var(--theme-text);font:800 11px Nunito,sans-serif}
.favorite-track-actions{display:flex;gap:5px}
.favorite-track-actions button{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--music-border);border-radius:8px;background:var(--music-card);color:var(--theme-text);cursor:pointer}
.favorite-track-actions button:hover{border-color:var(--music-accent);color:var(--music-accent)}
.favorite-track-actions .favorite-delete:hover{border-color:#cf222e;color:#cf222e;background:rgba(207,34,46,.08)}
.favorites-empty{display:grid;place-items:center;text-align:center;padding:42px 20px;color:var(--music-muted)}
.favorites-empty>span{font-size:42px;color:#db3b62}
.favorites-empty strong{margin-top:6px;color:var(--theme-text)}
.favorites-empty p{max-width:430px;margin:6px 0 0}
.favorites-empty[hidden]{display:none!important}
.favorite-premium-lock{padding:8px 10px;border:1px solid #d4a72c;border-radius:9px;background:#fff8c5;color:#7a4d00;font-size:11px;font-weight:900}
.favorites-sync-state.is-saving{color:#9a6700}
.favorites-sync-state.is-saved{color:#1a7f37}
.favorites-sync-state.is-error{color:#cf222e}

.universal-panel-save{margin-top:16px}
.universal-panel-save .panel-save-message{min-width:0;color:var(--account-muted);font-size:12px;font-weight:800}
.universal-panel-save .panel-save-message.is-success{color:#1a7f37}
.universal-panel-save .panel-save-message.is-error{color:#cf222e}

html[data-theme="dark"] .music-tabs button.is-active{box-shadow:0 2px 8px rgba(0,0,0,.35)!important}
html[data-theme="dark"] .music-surface-card{box-shadow:0 10px 30px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .premium-corner{background:#3d2d00;color:#f2cc60}
html[data-theme="dark"] .favorite-premium-lock{background:#2d2400;color:#f2cc60;border-color:#6e5a10}

@media(max-width:1100px){
  .music-dashboard-grid{grid-template-columns:1fr}
  .favorites-shell{grid-template-columns:240px minmax(0,1fr)}
  .favorite-track{grid-template-columns:28px 40px minmax(0,1fr) auto}
  .favorite-playlist-select{grid-column:3/5;width:100%}
}
@media(max-width:820px){
  .tunetune-player-placeholder{grid-template-columns:120px minmax(0,1fr)!important}
  .player-cover{width:120px!important;height:120px!important;font-size:44px!important}
  .player-heading-row{display:block}
  .player-favorite-action{margin-top:12px}
  .favorites-shell{grid-template-columns:1fr}
  .favorites-playlists-card{position:static}
  .favorites-playlist-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .favorites-add-fields{grid-template-columns:1fr 1fr}
  .favorites-url-field{grid-column:1/-1}
}
@media(max-width:620px){
  .account-live-alert{width:calc(100% - 24px)}
  .music-tabs{width:100%}
  .tunetune-player-placeholder{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .player-cover{margin:0 auto}
  .player-bottom-row,.favorites-library-head,.favorites-add-actions{align-items:stretch;flex-direction:column}
  .player-connection-state{display:none}
  .music-search-row{grid-template-columns:1fr!important}
  .favorites-playlist-list{grid-template-columns:1fr}
  .favorites-add-fields{grid-template-columns:1fr}
  .favorites-url-field{grid-column:auto}
  .favorites-search{width:100%}
  .favorite-track{grid-template-columns:28px 40px minmax(0,1fr)}
  .favorite-playlist-select{grid-column:2/4}
  .favorite-track-actions{grid-column:2/4;justify-content:flex-end}
}

/* v126 — единая визуальная система личного кабинета. Только оформление. */
:root{
  --account-bg:#f4f8fb;
  --account-surface:#ffffff;
  --account-surface-soft:#f3f7fa;
  --account-surface-strong:#eaf3f8;
  --account-border:#d5e2ea;
  --account-border-strong:#bcd1dd;
  --account-text:#17243a;
  --account-muted:#68788f;
  --account-accent:#159bd7;
  --account-accent-strong:#0d79ad;
  --account-accent-soft:#e8f6fc;
  --account-success:#238636;
  --account-danger:#cf222e;
  --account-warning:#9a6700;
  --account-radius:18px;
  --account-radius-small:12px;
  --account-shadow:0 12px 30px rgba(25,72,96,.08);
  --account-shadow-hover:0 16px 36px rgba(25,72,96,.12);
}
html[data-theme="dark"]{
  --account-bg:#0b1320;
  --account-surface:#111c2e;
  --account-surface-soft:#162338;
  --account-surface-strong:#1c2c45;
  --account-border:#2c405b;
  --account-border-strong:#3a5475;
  --account-text:#eef6ff;
  --account-muted:#9eb0c4;
  --account-accent:#4cc9ff;
  --account-accent-strong:#72d7ff;
  --account-accent-soft:rgba(76,201,255,.12);
  --account-shadow:0 14px 34px rgba(0,0,0,.22);
  --account-shadow-hover:0 18px 42px rgba(0,0,0,.30);
}
body{background:var(--account-bg)!important;color:var(--account-text)!important}
.account-page{width:min(1360px,100%);padding:22px}
.account-topbar{border-radius:20px;margin-bottom:20px;box-shadow:0 12px 30px rgba(13,25,43,.14)}
.account-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;border-radius:14px;box-shadow:0 8px 22px rgba(25,72,96,.07)}
.account-alert button{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:10px;background:rgba(0,0,0,.08);color:inherit;font:900 22px/1 Nunito,sans-serif;cursor:pointer}

/* Карточки и поверхности всех разделов и всех ботов */
.account-page :where(
  .github-card,.stat-card,.bot-card,.console-card,.general-control-card,
  .routing-card,.routing-intro-card,.equalizer-visual-card,.equalizer-presets-card,
  .equalizer-bands-card,.equalizer-actions-card,.music-surface-card,
  .favorites-playlists-card,.favorites-add-card,.favorites-library-card,
  .automod-master-card,.automod-module,.automod-shared-card,
  .welcome-master-card,.welcome-event-card,.welcome-subsection,.welcome-premium-card,
  .custom-premium-lock-card,.custom-sequence-panel,.custom-element-card,
  .saved-builders-card,.reaction-role-preview-card,.log-summary-card,
  .log-filter-card,.log-stream-card,.log-retention-card,.log-style-card,
  .unified-log-card,.security-overview,.security-password-card,
  .security-services-card,.security-tips-card,.current-session-card,
  .password-card,.radio-station,.metric-card
){
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
  border:1px solid var(--account-border)!important;
  border-radius:var(--account-radius)!important;
  box-shadow:var(--account-shadow)!important;
}
.account-page :where(
  .github-card,.console-card,.routing-card,.music-surface-card,
  .automod-module,.welcome-event-card,.custom-element-card,.unified-log-card
):hover{border-color:var(--account-border-strong)!important}

/* Заголовки и служебный текст */
.page-heading,.console-heading{padding-bottom:17px;border-bottom:1px solid var(--account-border);margin-bottom:18px}
.page-heading h1{color:var(--account-text);font-size:30px;letter-spacing:-.4px}
.console-heading h2,.card-title h2,.card-title h3,.github-card h2,.github-card h3{color:var(--account-text)}
.eyebrow{color:var(--account-accent-strong)!important;letter-spacing:.09em}
.page-heading p:not(.eyebrow),.console-heading p,.card-title p,.card-description,.muted-status,
.field small,.music-field-note,.routing-card small,.settings-list span,.security-row span{color:var(--account-muted)!important}
.card-title{min-height:36px;margin-bottom:14px}
.card-title h2{font-size:19px}.card-title h3{font-size:17px}

/* Выбор бота, вкладки и боковая навигация */
.bot-switcher{gap:10px;padding:6px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface);box-shadow:var(--account-shadow)}
.bot-switch-button{min-height:50px;border:1px solid transparent!important;border-radius:12px!important;background:transparent!important;color:var(--account-muted)!important;box-shadow:none!important}
.bot-switch-button:hover{background:var(--account-surface-soft)!important;color:var(--account-text)!important;border-color:var(--account-border)!important}
.bot-switch-button.is-active{background:var(--account-accent-soft)!important;color:var(--account-accent-strong)!important;border-color:color-mix(in srgb,var(--account-accent) 38%,var(--account-border))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)!important}
.bot-switch-button img{border-radius:10px}
.bot-workspace{gap:18px}
.bot-module-sidebar{padding:12px!important;border-radius:18px!important}
.bot-sidebar-top{padding:4px 4px 10px;border-bottom:1px solid var(--account-border)}
.bot-sidebar-caption{color:var(--account-muted)}
.bot-sidebar-collapse{border:1px solid var(--account-border)!important;background:var(--account-surface-soft)!important;color:var(--account-text)!important;border-radius:10px!important}
.bot-module-menu{gap:5px;padding-top:10px}
.bot-module-menu button{min-height:44px;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:var(--account-muted)!important;box-shadow:none!important}
.bot-module-menu button:hover{background:var(--account-surface-soft)!important;color:var(--account-text)!important;border-color:var(--account-border)!important}
.bot-module-menu button.is-active{background:var(--account-accent-soft)!important;color:var(--account-accent-strong)!important;border-color:color-mix(in srgb,var(--account-accent) 36%,var(--account-border))!important}
.bot-module-menu .module-icon{color:inherit}
.music-tabs,.log-quick-tabs,.custom-banner-tabs{padding:5px;border:1px solid var(--account-border)!important;border-radius:14px!important;background:var(--account-surface-soft)!important;box-shadow:none!important}
.music-tabs button,.log-quick-tabs button,.custom-banner-tabs button{min-height:40px;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--account-muted)!important;box-shadow:none!important}
.music-tabs button:hover,.log-quick-tabs button:hover,.custom-banner-tabs button:hover{color:var(--account-text)!important;background:var(--account-surface)!important}
.music-tabs button.is-active,.log-quick-tabs button.is-active,.custom-banner-tabs button.is-active{background:var(--account-surface)!important;color:var(--account-accent-strong)!important;border-color:var(--account-border)!important;box-shadow:0 4px 12px rgba(25,72,96,.08)!important}

/* Поля, списки и редакторы */
.account-page :where(
  input:not([type]),input[type="text"],input[type="email"],input[type="password"],
  input[type="number"],input[type="url"],input[type="search"],select,textarea
){
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-text)!important;
  font-family:Nunito,sans-serif!important;
  box-shadow:none!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
.account-page :where(
  input:not([type]),input[type="text"],input[type="email"],input[type="password"],
  input[type="number"],input[type="url"],input[type="search"],select,textarea
):focus{
  outline:0!important;
  border-color:var(--account-accent)!important;
  background:var(--account-surface)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--account-accent) 16%,transparent)!important;
}
.account-page textarea{line-height:1.5}
.account-page :where(input,textarea)::placeholder{color:color-mix(in srgb,var(--account-muted) 76%,transparent)}
.favorites-search input,.password-input-wrap input,.color-field input[type="color"]{border:0!important;background:transparent!important;box-shadow:none!important}
.field label,.favorites-add-fields label>span,.favorites-playlist-create label{color:var(--account-text);font-weight:900}
.readonly-row,.details-list div,.security-row,.settings-list>div{border-color:var(--account-border)!important}

/* Кнопки: единая геометрия и один акцент */
.account-page button,.account-page a{font-family:Nunito,sans-serif}
.primary,.primary-link,.bot-action,.equalizer-save-button,.player-main-control,
.favorites-add-actions .primary,.inline-button.primary,.security-session-button.primary{
  min-height:42px!important;
  padding:10px 16px!important;
  border:1px solid var(--account-accent)!important;
  border-radius:12px!important;
  background:var(--account-accent)!important;
  color:#fff!important;
  box-shadow:none!important;
  font-weight:900!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease!important;
}
.primary:hover,.primary-link:hover,.bot-action:hover,.equalizer-save-button:hover,.player-main-control:hover,
.favorites-add-actions .primary:hover,.inline-button.primary:hover,.security-session-button.primary:hover{
  background:var(--account-accent-strong)!important;
  border-color:var(--account-accent-strong)!important;
  transform:translateY(-1px)!important;
}
.secondary-button,.secondary,.compact-button,.inline-button,.service-action,.text-button,
.equalizer-reset-button,.queue-clear-btn,.favorite-track-actions button,.favorites-playlist-actions button,
.custom-color-toggle,.custom-sequence-head-actions button,.preview-toggle-button,.bot-sidebar-collapse{
  border:1px solid var(--account-border)!important;
  border-radius:11px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-text)!important;
  box-shadow:none!important;
  font-weight:850!important;
}
.secondary-button:hover,.secondary:hover,.compact-button:hover,.inline-button:hover,.service-action:hover,
.equalizer-reset-button:hover,.queue-clear-btn:hover,.favorite-track-actions button:hover,
.favorites-playlist-actions button:hover,.custom-color-toggle:hover,.custom-sequence-head-actions button:hover,
.preview-toggle-button:hover{
  background:var(--account-accent-soft)!important;
  border-color:color-mix(in srgb,var(--account-accent) 48%,var(--account-border))!important;
  color:var(--account-accent-strong)!important;
}
.danger,.danger-outline,.service-action.danger,.favorite-track-actions .favorite-delete{color:var(--account-danger)!important;border-color:color-mix(in srgb,var(--account-danger) 42%,var(--account-border))!important}

/* Один вид переключателей во всех модулях */
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch){position:relative!important;display:inline-flex!important;flex:0 0 46px!important;width:46px!important;height:26px!important;vertical-align:middle}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>input{position:absolute!important;inset:0!important;z-index:2!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer!important}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>i{position:absolute!important;inset:0!important;display:block!important;border:1px solid var(--account-border-strong)!important;border-radius:999px!important;background:#d7e1e8!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;transition:.18s ease!important}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>i::after{content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.24)!important;transition:transform .18s ease!important}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>input:checked+i{background:var(--account-success)!important;border-color:var(--account-success)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--account-success) 12%,transparent)!important}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>input:checked+i::after{transform:translateX(20px)!important}
.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>input:focus-visible+i{outline:3px solid color-mix(in srgb,var(--account-accent) 25%,transparent)!important;outline-offset:2px!important}
.account-page input.ui-switch-control[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;flex:0 0 46px!important;width:46px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0!important;border:1px solid var(--account-border-strong)!important;border-radius:999px!important;background:#d7e1e8!important;cursor:pointer!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important}
.account-page input.ui-switch-control[type="checkbox"]::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(16,35,63,.24);transition:transform .18s ease}
.account-page input.ui-switch-control[type="checkbox"]:checked{background:var(--account-success)!important;border-color:var(--account-success)!important}
.account-page input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(20px)}
html[data-theme="dark"] .account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>i,
html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]{background:#33445a!important;border-color:#536a85!important}

/* Внутренние строки, события, пресеты и элементы списков */
.routing-event-item,.routing-display-item,.log-event-grid>label,.bot-log-picker>label,
.inline-toggles>label,.reaction-role-options>label,.welcome-inline-toggles>label,
.equalizer-presets button,.radio-station,.favorite-track,.queue-item,.history-item,
.automod-module-summary,.unified-log-head,.welcome-section-head{
  background:var(--account-surface-soft)!important;
  border-color:var(--account-border)!important;
  color:var(--account-text)!important;
  border-radius:12px!important;
}
.routing-event-item:hover,.routing-display-item:hover,.log-event-grid>label:hover,
.bot-log-picker>label:hover,.equalizer-presets button:hover,.favorite-track:hover,.queue-item:hover{
  background:var(--account-surface)!important;
  border-color:var(--account-border-strong)!important;
}
.routing-card-badge,.premium-feature-badge,.free-feature-badge,.plan-badge,.current-plan-badge,
.console-status,.status-pill,.premium-badge,.muted-status{
  border-radius:999px!important;
  border:1px solid var(--account-border)!important;
  box-shadow:none!important;
}
.routing-card-badge,.muted-status{background:var(--account-surface-soft)!important;color:var(--account-muted)!important}
.premium-feature-badge,.plan-badge,.current-plan-badge{background:#fff7d6!important;color:#7a4d00!important;border-color:#d4a72c!important}
.console-status{background:var(--account-accent-soft)!important;color:var(--account-accent-strong)!important;border-color:color-mix(in srgb,var(--account-accent) 34%,var(--account-border))!important}

/* Сохранение настроек */
.sticky-save-bar,.welcome-save-bar,.tunetune-routing-save,.universal-panel-save{
  border:1px solid var(--account-border)!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--account-surface) 94%,transparent)!important;
  box-shadow:0 12px 30px rgba(25,72,96,.12)!important;
  backdrop-filter:blur(12px);
}

/* Тёмная тема */
html[data-theme="dark"] .premium-feature-badge,
html[data-theme="dark"] .plan-badge,
html[data-theme="dark"] .current-plan-badge{background:#332900!important;color:#f2cc60!important;border-color:#7c650e!important}
html[data-theme="dark"] .account-alert.success{background:#102d1c!important;border-color:#2f7d46!important;color:#7ee2a8!important}
html[data-theme="dark"] .account-alert.danger{background:#3a151b!important;border-color:#8e303b!important;color:#ff9da7!important}

/* Адаптивность без изменения логики */
@media(max-width:980px){
  .account-page{padding:16px}
  .bot-workspace{gap:14px}
}
@media(max-width:760px){
  .account-page{padding:10px}
  .account-topbar{border-radius:16px}
  .bot-switcher{overflow-x:auto;justify-content:flex-start}
  .bot-switch-button{min-width:150px}
  .page-heading h1{font-size:26px}
  .account-page :where(.github-card,.console-card,.routing-card,.music-surface-card){border-radius:15px!important}
}
@media(max-width:520px){
  .card-title{align-items:flex-start;flex-direction:column}
  .primary,.primary-link,.bot-action{width:100%}
}


/* ===== v127 interface repair and professional Shieldy layout ===== */
.account-topbar{width:100%;min-width:0;overflow:visible}.account-brand{min-width:0;flex:1 1 auto}.account-brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-tools{margin-left:auto;flex:0 0 auto;min-width:max-content}.account-user-menu{flex:0 0 auto}.account-user-trigger{min-width:88px;max-width:112px;display:flex;align-items:center;justify-content:space-between;gap:8px}.account-user-trigger img,.account-user-trigger .account-user-fallback{flex:0 0 auto}.account-user-chevron{flex:0 0 16px}.topbar-icon,.account-user-trigger{transform:none!important}.account-user-dropdown{right:0;left:auto;max-width:min(360px,calc(100vw - 32px))}

/* Shieldy switches: same geometry everywhere, including label.toggle-row */
.account-page label.toggle-row{position:relative}.account-page label.toggle-row>input[type="checkbox"]{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;width:46px!important;height:26px!important;opacity:0!important;z-index:3!important;cursor:pointer!important;margin:0!important}.account-page label.toggle-row>i{position:relative!important;display:inline-flex!important;flex:0 0 46px!important;width:46px!important;height:26px!important;border:1px solid var(--account-border-strong)!important;border-radius:999px!important;background:#d7e1e8!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important}.account-page label.toggle-row>i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(16,35,63,.24);transition:transform .18s ease}.account-page label.toggle-row>input:checked+i{background:var(--account-success)!important;border-color:var(--account-success)!important}.account-page label.toggle-row>input:checked+i::after{transform:translateX(20px)}.account-page label.toggle-row>input:disabled+i,.account-page :is(.mini-switch,.switch,.equalizer-switch,.tt-route-switch)>input:disabled+i{opacity:.48!important;filter:saturate(.55)}
html[data-theme="dark"] .account-page label.toggle-row>i{background:#33445a!important;border-color:#536a85!important}

/* Disabled Shieldy sections are truly unavailable */
.is-function-disabled{position:relative}.is-function-disabled>.automod-module-body,.is-function-disabled>.welcome-event-options,.has-disabled-function .reaction-role-layout,.has-disabled-function .role-template-grid{opacity:.48;filter:saturate(.65)}.automod-module-list.is-disabled,.welcome-builder.is-function-disabled,.has-disabled-function{cursor:not-allowed}.automod-module.is-function-disabled .automod-module-summary,.welcome-event-card.is-function-disabled .automod-rule-head{opacity:.72}.automod-module.is-function-disabled .automod-module-body,.automod-shared-card.is-function-disabled,.welcome-builder.is-function-disabled .welcome-settings-column{pointer-events:none}.welcome-builder.is-function-disabled .welcome-master-card{pointer-events:auto;opacity:1}.has-disabled-function .module-master-switch{pointer-events:auto}.has-disabled-function .role-template-grid,.has-disabled-function .reaction-role-layout{pointer-events:none}

/* Preview columns collapse to the right rather than dropping below */
.welcome-builder,.reaction-role-layout{transition:grid-template-columns .22s ease}.welcome-builder.is-side-preview-collapsed,.reaction-role-layout.is-side-preview-collapsed{grid-template-columns:minmax(0,1fr) 54px!important;overflow:hidden}.welcome-preview-column,.reaction-role-preview-column{min-width:0;transition:transform .22s ease,opacity .18s ease}.welcome-preview-column.is-side-preview-collapsed,.reaction-role-preview-column.is-side-preview-collapsed{position:relative;overflow:visible}.welcome-preview-column.is-side-preview-collapsed>article,.reaction-role-preview-column.is-side-preview-collapsed>article{width:360px;max-width:360px;transform:translateX(306px);transition:transform .22s ease}.welcome-preview-column.is-side-preview-collapsed .preview-card-title>h3,.welcome-preview-column.is-side-preview-collapsed .preview-event-select,.reaction-role-preview-column.is-side-preview-collapsed .preview-card-title>h3,.reaction-role-preview-column.is-side-preview-collapsed .muted-status{visibility:hidden}.welcome-preview-column.is-side-preview-collapsed .preview-toggle-button,.reaction-role-preview-column.is-side-preview-collapsed .preview-toggle-button{position:absolute!important;left:10px;top:12px;z-index:3;width:34px;height:120px;padding:8px 4px!important;writing-mode:vertical-rl;text-orientation:mixed}.welcome-preview-column.is-side-preview-collapsed .preview-collapsible,.welcome-preview-column.is-side-preview-collapsed .welcome-preview-meta,.reaction-role-preview-column.is-side-preview-collapsed .preview-collapsible,.reaction-role-preview-column.is-side-preview-collapsed .saved-builders-card{visibility:hidden}
.welcome-avatar-preview{object-fit:cover;background:var(--account-surface);border:1px solid var(--account-border)}

/* Shieldy professional channel routing */
.shieldy-routing-pro-card{display:grid;gap:18px}.shieldy-routing-pro-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.shieldy-routing-pro-grid .field{margin:0}.shieldy-routing-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shieldy-routing-toggle-grid .routing-display-item{min-height:82px}.unified-log-builder{display:grid;gap:14px}.unified-log-card.is-disabled{opacity:.62}.unified-log-card.is-disabled .unified-log-body{pointer-events:none}.module-premium-mark{margin-left:auto;font-size:10px!important;color:#9a6700!important;background:#fff7d6;border:1px solid #d4a72c;border-radius:999px;padding:2px 6px;line-height:1}

/* Commands catalog for every bot */
.command-catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.command-category-card{min-width:0}.command-category-card .card-title{align-items:flex-start}.command-category-card .card-title p,.command-api-card .card-title p{margin:4px 0 0;color:var(--account-muted)}.command-list-pro{display:grid;gap:8px}.command-list-pro>div{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);gap:14px;align-items:start;padding:11px 12px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft)}.command-list-pro code{font-weight:900;color:var(--account-accent-strong);overflow-wrap:anywhere}.command-list-pro span{color:var(--account-muted);line-height:1.45}.is-premium-command-card{border-color:color-mix(in srgb,#d4a72c 55%,var(--account-border))!important}.free-feature-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--account-success) 12%,var(--account-surface));border:1px solid color-mix(in srgb,var(--account-success) 42%,var(--account-border));color:var(--account-success);font-size:11px;font-weight:900;white-space:nowrap}.command-api-card{margin-top:14px}.shieldy-command-grid{display:flex;gap:8px;flex-wrap:wrap}.shieldy-command-grid code{padding:7px 10px;border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface-soft)}

/* Premium journal */
.shieldy-journal-module.is-premium-locked>:not(.console-heading):not(.journal-lock-card){opacity:.42;pointer-events:none;user-select:none}.journal-lock-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;border-color:#d4a72c!important;background:color-mix(in srgb,#fff7d6 55%,var(--account-surface))!important}.journal-lock-card>div{display:grid;gap:4px}.journal-lock-card span{color:var(--account-muted)}

/* Unified authorization page */
.auth-page-v127{background:radial-gradient(circle at 12% 8%,rgba(24,185,255,.12),transparent 34%),radial-gradient(circle at 88% 18%,rgba(47,129,247,.10),transparent 34%),var(--theme-bg)}.auth-shell-v127{width:min(1180px,100%);min-height:100vh;margin:0 auto;padding:24px;display:flex;flex-direction:column}.auth-topbar-v127{min-height:72px;padding:12px 16px;border:1px solid #2c415d;border-radius:20px;background:#17243a;box-shadow:0 12px 30px rgba(13,25,43,.14)}.auth-topbar-v127 .brand{color:#f3f7fb}.auth-topbar-v127 .brand img{width:44px;height:44px;border-radius:13px}.auth-topbar-v127 .home-link,.auth-topbar-v127 .theme-toggle{width:44px;height:44px;border:1px solid #38516f;border-radius:12px;background:#223451;color:#f3f7fb}.auth-wrap-v127{flex:1;display:grid;place-items:center;padding:54px 0}.auth-card-v127{width:min(520px,100%);padding:32px;border:1px solid var(--account-border);border-radius:22px;background:color-mix(in srgb,var(--account-surface) 96%,transparent);box-shadow:0 24px 60px rgba(25,72,96,.14);backdrop-filter:blur(14px)}.auth-card-v127 h1{font-size:34px;margin:0 0 8px}.auth-card-v127 .lead{color:var(--account-muted);margin:0 0 22px}.auth-card-v127 .google-button,.auth-card-v127 .yandex-button,.auth-card-v127 .manual-auth-toggle{min-height:48px;border-radius:13px!important;border:1px solid var(--account-border)!important;box-shadow:none!important}.auth-card-v127 .manual-auth-panel{border-top:1px solid var(--account-border);margin-top:16px;padding-top:16px}.auth-card-v127 .manual-auth-panel .field{margin:12px 0}.auth-card-v127 .links{text-align:center;margin-top:18px}.auth-page-v127 .auth-footer{width:100%;margin-top:auto}

@media(max-width:980px){.shieldy-routing-pro-grid,.shieldy-routing-toggle-grid,.command-catalog-grid{grid-template-columns:1fr}.welcome-builder.is-side-preview-collapsed,.reaction-role-layout.is-side-preview-collapsed{grid-template-columns:1fr!important;overflow:visible}.welcome-preview-column.is-side-preview-collapsed>article,.reaction-role-preview-column.is-side-preview-collapsed>article{width:100%;max-width:none;transform:none}.welcome-preview-column.is-side-preview-collapsed,.reaction-role-preview-column.is-side-preview-collapsed{display:none}}
@media(max-width:640px){.account-topbar{padding:10px 12px}.account-brand{max-width:calc(100% - 160px)}.topbar-tools{gap:6px}.topbar-icon{width:40px;height:40px}.account-user-trigger{min-width:72px;max-width:82px}.command-list-pro>div{grid-template-columns:1fr;gap:5px}.auth-shell-v127{padding:12px}.auth-wrap-v127{padding:28px 0}.auth-card-v127{padding:22px;border-radius:18px}}


/* v128 — interface fixes and unified bot controls */
.account-page .mini-switch,.account-page .switch,.account-page label.toggle-row>i{box-sizing:border-box!important;position:relative!important;display:inline-block!important;flex:0 0 46px!important;width:46px!important;height:26px!important;min-width:46px!important;min-height:26px!important;margin:0!important;padding:0!important;border:1px solid #a9b7c8!important;border-radius:999px!important;background:#d9e2ea!important;vertical-align:middle!important;box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;overflow:visible!important;transition:.18s ease!important}
.account-page .mini-switch>input,.account-page .switch>input,.account-page label.toggle-row>input[type="checkbox"]{position:absolute!important;inset:0!important;z-index:3!important;width:46px!important;height:26px!important;margin:0!important;opacity:0!important;cursor:pointer!important;appearance:none!important}
.account-page .mini-switch>i,.account-page .switch>i{position:absolute!important;inset:0!important;border:0!important;border-radius:inherit!important;background:transparent!important;box-shadow:none!important}
.account-page .mini-switch>i::after,.account-page .switch>i::after,.account-page label.toggle-row>i::after{content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(15,35,60,.25)!important;transform:none!important;transition:transform .18s ease!important}
.account-page .mini-switch>input:checked+i,.account-page .switch>input:checked+i{background:#2da44e!important;border-color:#2da44e!important}
.account-page .mini-switch:has(>input:checked),.account-page .switch:has(>input:checked),.account-page label.toggle-row>input:checked+i{background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
.account-page .mini-switch>input:checked+i::after,.account-page .switch>input:checked+i::after,.account-page label.toggle-row>input:checked+i::after{transform:translateX(20px)!important}
.account-page input.ui-switch-control[type="checkbox"]{appearance:none!important;-webkit-appearance:none!important;position:relative!important;display:inline-block!important;flex:0 0 46px!important;width:46px!important;height:26px!important;margin:0 8px 0 0!important;border:1px solid #a9b7c8!important;border-radius:999px!important;background:#d9e2ea!important;vertical-align:middle!important;cursor:pointer!important;box-shadow:inset 0 1px 2px rgba(15,35,60,.1)!important;transition:.18s ease!important}
.account-page input.ui-switch-control[type="checkbox"]::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(15,35,60,.25);transition:transform .18s ease}
.account-page input.ui-switch-control[type="checkbox"]:checked{background:#2da44e!important;border-color:#2da44e!important}.account-page input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(20px)}
.account-page :is(.mini-switch,.switch)>input:disabled+i,.account-page label.toggle-row>input:disabled+i,.account-page input.ui-switch-control:disabled{opacity:.45!important;cursor:not-allowed!important}
html[data-theme="dark"] .account-page :is(.mini-switch,.switch),html[data-theme="dark"] .account-page label.toggle-row>i,html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]{background:#33445a!important;border-color:#5a6f88!important}
html[data-theme="dark"] .account-page :is(.mini-switch,.switch):has(>input:checked),html[data-theme="dark"] .account-page label.toggle-row>input:checked+i,html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]:checked{background:#2ea043!important;border-color:#3fb950!important}

/* Login and authentication pages */
.auth-page-v127{min-height:100vh;background:radial-gradient(circle at 8% 0,rgba(24,185,255,.12),transparent 34%),radial-gradient(circle at 92% 12%,rgba(48,129,247,.11),transparent 34%),var(--theme-bg)!important;color:var(--theme-text)}
.auth-shell-v127{width:min(1180px,100%)!important;min-height:100vh!important;margin:0 auto!important;padding:22px!important;display:flex!important;flex-direction:column!important}
.auth-topbar-v127{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:72px!important;padding:12px 16px!important;border:1px solid #2c415d!important;border-radius:18px!important;background:#17243a!important;box-shadow:0 12px 30px rgba(13,25,43,.16)!important}
.auth-topbar-v127 .brand{display:flex!important;align-items:center!important;gap:11px!important;color:#f3f7fb!important;text-decoration:none!important;font-size:22px!important;font-weight:900!important}.auth-topbar-v127 .brand img{width:44px!important;height:44px!important;border-radius:13px!important;object-fit:cover}.auth-topbar-v127 .nav-tools{display:flex!important;gap:9px!important}.auth-topbar-v127 :is(.home-link,.theme-toggle){display:inline-flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;padding:0!important;border:1px solid #38516f!important;border-radius:12px!important;background:#223451!important;color:#f3f7fb!important;cursor:pointer!important}.auth-topbar-v127 .home-icon{width:21px!important;height:21px!important}
.auth-wrap-v127{flex:1!important;display:grid!important;place-items:center!important;padding:48px 0!important}.auth-card-v127{width:min(520px,100%)!important;padding:30px!important;border:1px solid var(--account-border,var(--gh-border))!important;border-radius:20px!important;background:var(--account-surface,var(--gh-card))!important;color:var(--account-text,var(--theme-text))!important;box-shadow:0 22px 58px rgba(16,35,63,.15)!important;backdrop-filter:none!important}.auth-card-v127 h1{margin:0 0 7px!important;font-size:32px!important}.auth-card-v127 .lead{margin:0 0 22px!important;color:var(--account-muted,var(--gh-muted))!important}.auth-card-v127 :is(.google-button,.yandex-button,.manual-auth-toggle){display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;width:100%!important;min-height:48px!important;border:1px solid var(--account-border,var(--gh-border))!important;border-radius:12px!important;background:var(--account-surface-soft,var(--gh-subtle))!important;color:var(--account-text,var(--theme-text))!important;text-decoration:none!important;font-weight:900!important;box-shadow:none!important}.auth-card-v127 :is(.google-button,.yandex-button,.manual-auth-toggle):hover{border-color:var(--account-accent,#2f81f7)!important;background:color-mix(in srgb,var(--account-accent,#2f81f7) 8%,var(--account-surface,var(--gh-card)))!important}.auth-card-v127 .oauth-stack{display:grid!important;gap:10px!important}.auth-card-v127 .auth-divider{display:flex!important;align-items:center!important;gap:12px!important;margin:18px 0!important;color:var(--account-muted,var(--gh-muted))!important}.auth-card-v127 .auth-divider::before,.auth-card-v127 .auth-divider::after{content:"";height:1px;flex:1;background:var(--account-border,var(--gh-border))}.auth-card-v127 .manual-auth-panel{display:none;border-top:1px solid var(--account-border,var(--gh-border))!important;margin-top:16px!important;padding-top:14px!important}.auth-card-v127 .manual-auth-panel.is-open{display:block!important}.auth-card-v127 .field input{background:var(--account-surface-soft,var(--gh-subtle))!important;color:var(--account-text,var(--theme-text))!important;border-color:var(--account-border,var(--gh-border))!important;border-radius:10px!important;min-height:46px!important}.auth-card-v127 .primary{width:100%!important;min-height:46px!important;border-radius:10px!important}.auth-card-v127 .links,.auth-card-v127 .forgot-link{text-align:center!important}.auth-page-v127 .auth-footer{width:100%!important;color:var(--account-muted,var(--gh-muted))!important}
html[data-theme="dark"] .auth-card-v127{background:#101a2a!important;border-color:#30425b!important;box-shadow:0 22px 58px rgba(0,0,0,.36)!important}html[data-theme="dark"] .auth-card-v127 :is(.google-button,.yandex-button,.manual-auth-toggle),html[data-theme="dark"] .auth-card-v127 .field input{background:#152238!important;border-color:#354a66!important;color:#eef6ff!important}

/* Dark account dropdown */
.account-user-dropdown{background:var(--account-surface,var(--gh-card))!important;color:var(--account-text,var(--theme-text))!important;border:1px solid var(--account-border,var(--gh-border))!important;box-shadow:0 20px 50px rgba(11,29,50,.22)!important}.account-user-dropdown :is(strong,button,a){color:var(--account-text,var(--theme-text))!important}.account-user-dropdown small,.account-user-summary span{color:var(--account-muted,var(--gh-muted))!important}.account-user-group{border-color:var(--account-border,var(--gh-border))!important}.account-user-group button:hover,.account-user-dropdown a:hover{background:var(--account-surface-soft,var(--gh-hover))!important}.account-user-logout{color:#cf222e!important}
html[data-theme="dark"] .account-user-dropdown{background:#101a2a!important;border-color:#354a66!important;color:#eef6ff!important;box-shadow:0 22px 60px rgba(0,0,0,.52)!important}html[data-theme="dark"] .account-user-dropdown :is(strong,button,a){color:#eef6ff!important}html[data-theme="dark"] .account-user-dropdown small,html[data-theme="dark"] .account-user-summary span{color:#9eb1c9!important}html[data-theme="dark"] .account-user-group{border-color:#354a66!important}html[data-theme="dark"] .account-user-group button:hover,html[data-theme="dark"] .account-user-dropdown a:hover{background:#17263c!important}html[data-theme="dark"] .account-user-logout{color:#ff8f9b!important}

/* Prefix and unified statistics */
.bot-prefix-card{display:grid;gap:12px;margin:14px 0}.bot-prefix-card .card-title{margin:0}.bot-prefix-card .card-title p{margin:4px 0 0;color:var(--account-muted,var(--gh-muted))}.prefix-control-row{display:grid;grid-template-columns:auto minmax(90px,150px) 1fr;align-items:center;gap:12px}.prefix-control-row label{font-weight:900}.bot-prefix-input{width:100%;min-height:44px;padding:9px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-text,var(--theme-text));font:900 18px Nunito,sans-serif;text-align:center}.prefix-control-row code{justify-self:start;padding:9px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-accent-strong,var(--gh-blue));font-weight:900}.bot-prefix-card>small{color:var(--account-muted,var(--gh-muted))}.unified-bot-statistics{margin-bottom:14px}.general-statistics-card .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;margin:0!important}.general-statistics-card .stats-grid>div{display:grid;gap:3px;padding:13px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}.general-statistics-card .stats-grid b{font-size:22px}.general-statistics-card .stats-grid small{color:var(--account-muted,var(--gh-muted));font-weight:800}

/* Queue drag and drop */
.queue-item{grid-template-columns:auto minmax(0,1fr) auto!important;cursor:grab!important;transition:border-color .16s ease,background .16s ease,opacity .16s ease,transform .16s ease!important}.queue-item:active{cursor:grabbing!important}.queue-drag-handle{width:34px;height:34px;border:1px solid var(--account-border,var(--gh-border));border-radius:9px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-weight:900;cursor:grab}.queue-item.is-dragging{opacity:.45!important;transform:scale(.985)!important}.queue-item.is-drop-target{border-color:var(--account-accent,#2f81f7)!important;background:color-mix(in srgb,var(--account-accent,#2f81f7) 8%,var(--account-surface,var(--gh-card)))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent,#2f81f7) 13%,transparent)!important}.queue-item button:disabled{opacity:.38;cursor:not-allowed}.favorites-card-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.favorites-limit-badge{display:inline-flex;padding:5px 9px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));font-size:12px;font-weight:900;color:var(--account-muted,var(--gh-muted))}.favorites-limit-badge.is-limit-near{border-color:#d4a72c;color:#9a6700;background:#fff7d6}html[data-theme="dark"] .favorites-limit-badge.is-limit-near{background:#332900;color:#f2cc60;border-color:#7c650e}
.music-smart-settings{margin-top:12px;padding:14px;border:1px solid var(--account-border,var(--gh-border));border-radius:13px;background:var(--account-surface-soft,var(--gh-subtle))}.music-smart-settings .card-title p{margin:4px 0 0;color:var(--account-muted,var(--gh-muted))}.compact-smart-fields{margin-top:8px}

/* Shieldy clone */
.shieldy-clone-module{gap:14px}.shieldy-clone-module.is-active{display:grid}.clone-quota-card{display:flex;align-items:center;justify-content:space-between;gap:16px}.clone-quota-card>div{display:grid;gap:4px}.clone-quota-card span{color:var(--account-muted,var(--gh-muted))}.clone-quota-badge{display:inline-flex;padding:7px 11px;border:1px solid #2da44e;border-radius:999px;background:color-mix(in srgb,#2da44e 10%,var(--account-surface,var(--gh-card)));color:#1a7f37!important;font-size:12px;font-weight:900;white-space:nowrap}.clone-options-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.clone-options-grid .routing-display-item{min-height:84px}.clone-safe-mode{margin-top:12px!important}.clone-warning-card{border-color:#d4a72c!important;background:color-mix(in srgb,#fff7d6 55%,var(--account-surface,var(--gh-card)))!important}.clone-warning-card p{margin:5px 0 0;color:var(--account-muted,var(--gh-muted))}.clone-history-list{display:grid;gap:9px}.clone-history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}.clone-history-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:color-mix(in srgb,var(--account-accent,#2f81f7) 12%,var(--account-surface,var(--gh-card)));color:var(--account-accent,#2f81f7);font-weight:900}.clone-history-item>div{display:grid;gap:2px}.clone-history-item small,.clone-history-item time{color:var(--account-muted,var(--gh-muted));font-size:12px}.clone-history-status{padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900;background:#fff7d6;color:#9a6700}.clone-history-status.is-completed{background:#dafbe1;color:#116329}.clone-history-status.is-failed{background:#ffebe9;color:#cf222e}

/* Radio logos */
.station-logo-img{display:block!important;width:64px!important;height:64px!important;object-fit:contain!important;border-radius:14px!important;background:#fff!important;padding:5px!important;border:1px solid rgba(15,35,60,.10)!important;box-shadow:0 6px 18px rgba(15,35,60,.10)!important}.radio-station{min-height:132px!important;align-content:center!important;justify-items:center!important;text-align:center!important}.radio-station b{line-height:1.25!important}

@media(max-width:760px){.prefix-control-row{grid-template-columns:1fr}.prefix-control-row code{justify-self:stretch}.general-statistics-card .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.clone-options-grid{grid-template-columns:1fr}.clone-history-item{grid-template-columns:auto 1fr}.clone-history-status,.clone-history-item time{grid-column:2}.clone-quota-card{align-items:flex-start;flex-direction:column}.auth-shell-v127{padding:12px!important}.auth-wrap-v127{padding:26px 0!important}.auth-card-v127{padding:22px!important}}

/* ===== v129 final UI consistency, Shieldy controls, auth stability ===== */
html{scrollbar-gutter:stable}
.account-page{
  --ui-radius:14px;
  --ui-radius-sm:11px;
  --ui-control-h:44px;
}
.account-page .github-card,
.account-page .stat-card,
.account-page .bot-card,
.account-page .console-card,
.account-page .routing-card,
.account-page .unified-log-card{
  border-radius:var(--ui-radius)!important;
}
.account-page :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),select,textarea){
  min-height:var(--ui-control-h);
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:var(--ui-radius-sm)!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
  color:var(--account-text,var(--theme-text))!important;
  box-shadow:none!important;
}
.account-page textarea{padding:11px 12px!important;line-height:1.48!important}
.account-page :is(input,select,textarea):focus{
  outline:3px solid color-mix(in srgb,var(--account-accent,#2f81f7) 18%,transparent)!important;
  border-color:var(--account-accent,#2f81f7)!important;
}
.account-page :is(.primary,.secondary,.secondary-button,.danger-outline,.compact-button,.icon-mini,.text-button){
  border-radius:10px!important;
  min-height:38px;
}
.account-page .module-icon-general svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* A module owned by one bot can never leak into another bot tab. */
#panel-bot-control[data-active-bot="tunetune"] [data-bot-owner="shieldy"],
#panel-bot-control[data-active-bot="gamey"] [data-bot-owner="shieldy"]{display:none!important}

/* One canonical switch implementation. This overrides all old Shieldy variants. */
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch){
  position:relative!important;
  display:inline-block!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:28px!important;
  min-width:48px!important;
  max-width:48px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  vertical-align:middle!important;
  overflow:visible!important;
}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:block!important;
  width:48px!important;
  height:28px!important;
  margin:0!important;
  opacity:0!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>i{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:48px!important;
  height:28px!important;
  border:1px solid #a9b7c8!important;
  border-radius:999px!important;
  background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>i::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(15,35,60,.25)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input:checked+i{
  border-color:#2da44e!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input:checked+i::after{transform:translateX(20px)!important}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input:focus-visible+i{outline:3px solid rgba(47,129,247,.24)!important;outline-offset:2px!important}
.account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input:disabled+i{opacity:.46!important;filter:saturate(.55)!important;cursor:not-allowed!important}

/* Toggle rows use the same geometry and no longer jump between grid cells. */
.account-page label.toggle-row{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-width:0!important;
  padding-right:0!important;
}
.account-page label.toggle-row>span:first-child{display:grid!important;gap:4px!important;min-width:0!important;flex:1 1 auto!important}
.account-page label.toggle-row>input[type="checkbox"]{
  position:absolute!important;
  right:0!important;
  top:50%!important;
  z-index:3!important;
  width:48px!important;
  height:28px!important;
  margin:0!important;
  opacity:0!important;
  transform:translateY(-50%)!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
}
.account-page label.toggle-row>i{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:28px!important;
  min-width:48px!important;
  margin:0!important;
  border:1px solid #a9b7c8!important;
  border-radius:999px!important;
  background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;
}
.account-page label.toggle-row>i::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(15,35,60,.25)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
.account-page label.toggle-row>input:checked+i{border-color:#2da44e!important;background:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
.account-page label.toggle-row>input:checked+i::after{transform:translateX(20px)!important}

/* Old bare checkbox controls are rendered as the same switch. */
.account-page input.ui-switch-control[type="checkbox"]{
  position:relative!important;
  display:inline-block!important;
  flex:0 0 48px!important;
  width:48px!important;
  height:28px!important;
  min-width:48px!important;
  margin:0 8px 0 0!important;
  border:1px solid #a9b7c8!important;
  border-radius:999px!important;
  background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  pointer-events:auto!important;
  vertical-align:middle!important;
}
.account-page input.ui-switch-control[type="checkbox"]::after{
  content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(15,35,60,.25)!important;transition:transform .18s ease!important
}
.account-page input.ui-switch-control[type="checkbox"]:checked{border-color:#2da44e!important;background:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
.account-page input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(20px)!important}
html[data-theme="dark"] .account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>i,
html[data-theme="dark"] .account-page label.toggle-row>i,
html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]{background:#33445a!important;border-color:#5a6f88!important}
html[data-theme="dark"] .account-page :is(.mini-switch,.switch,.tt-route-switch,.equalizer-switch)>input:checked+i,
html[data-theme="dark"] .account-page label.toggle-row>input:checked+i,
html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]:checked{background:#2ea043!important;border-color:#3fb950!important}

/* Reaction roles redesigned in the same card language. */
.reaction-role-module .role-template-grid{gap:10px!important}
.reaction-role-module .role-template-grid>button{border-radius:13px!important;border:1px solid var(--account-border)!important;background:var(--account-surface-soft)!important;box-shadow:none!important}
.reaction-role-module .card-title>div>p{margin:4px 0 0;color:var(--account-muted);font-size:13px}
.reaction-input-policy{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 12px}
.reaction-role-item-row{
  display:grid!important;
  grid-template-columns:minmax(130px,.62fr) minmax(170px,1fr) minmax(180px,.85fr) 40px!important;
  gap:10px!important;
  align-items:end!important;
  padding:12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:var(--account-surface-soft)!important;
}
.rr-reaction-field{display:grid;gap:5px}.rr-reaction-field small{color:var(--account-muted);font-size:11px;font-weight:800}.reaction-role-item-row .rr-remove{width:40px!important;min-width:40px!important;padding:0!important}
.reaction-role-preview-card,.saved-builders-card{border-radius:14px!important}

/* Flexible custom message delivery controls. */
.custom-delivery-panel{
  display:grid;gap:14px;margin:18px 0;padding:16px;border:1px solid var(--account-border);border-radius:14px;background:var(--account-surface-soft)
}
.custom-delivery-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.custom-delivery-head>div{display:grid;gap:4px}.custom-delivery-head small{color:var(--account-muted)}
.custom-delivery-grid{margin:0!important}.custom-delivery-grid .field{margin:0!important}
.custom-delivery-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.custom-delivery-toggles .routing-display-item{min-height:78px}
.custom-message-module .custom-channel-config-item,
.custom-message-module .custom-sequence-item,
.custom-message-module .custom-block-row,
.custom-message-module .custom-element-card{border-radius:13px!important;background:var(--account-surface-soft)!important;border-color:var(--account-border)!important;box-shadow:none!important}
.custom-message-module .custom-element-card:hover{border-color:var(--account-accent)!important;transform:translateY(-1px)}

/* Dark dropdown and all surfaces retain readable contrast. */
html[data-theme="dark"] .account-user-dropdown{background:#101a2a!important;color:#eef6ff!important;border-color:#354a66!important}
html[data-theme="dark"] .account-user-dropdown :is(strong,a,button){color:#eef6ff!important}
html[data-theme="dark"] .account-user-dropdown :is(small,span){color:#a9bad0!important}
html[data-theme="dark"] .account-user-dropdown a:hover,
html[data-theme="dark"] .account-user-dropdown button:hover{background:#17263c!important}

/* Login page has identical geometry in light and dark themes. */
html:has(body.auth-page-v127){overflow-y:scroll;scrollbar-gutter:stable}
body.auth-page-v127{margin:0!important;min-width:320px!important;min-height:100dvh!important;background:var(--theme-bg)!important}
.auth-shell-v127{
  width:min(1180px,calc(100% - 48px))!important;
  min-height:100dvh!important;
  margin:0 auto!important;
  padding:24px 0!important;
  display:grid!important;
  grid-template-rows:72px minmax(520px,1fr) auto!important;
  gap:0!important;
}
.auth-topbar-v127{
  width:100%!important;height:72px!important;min-height:72px!important;margin:0!important;padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;border-radius:18px!important;background:#17243a!important;border:1px solid #2c415d!important;box-shadow:0 12px 30px rgba(13,25,43,.15)!important
}
.auth-topbar-v127 .brand{display:flex!important;align-items:center!important;gap:11px!important;height:46px!important;color:#f3f7fb!important;text-decoration:none!important}.auth-topbar-v127 .brand img{width:44px!important;height:44px!important;object-fit:cover!important;border-radius:13px!important}.auth-topbar-v127 .brand span{font-size:22px!important;line-height:1!important;font-weight:900!important}
.auth-topbar-v127 .nav-tools{display:flex!important;align-items:center!important;gap:9px!important;height:44px!important}.auth-topbar-v127 :is(.home-link,.theme-toggle){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border-radius:12px!important}
.auth-wrap-v127{min-height:520px!important;padding:32px 0!important;display:grid!important;place-items:center!important}
.auth-card-v127{width:min(520px,100%)!important;min-height:0!important;margin:0!important;padding:30px!important;border-radius:20px!important;background:var(--account-surface,#fff)!important;color:var(--account-text,#17243a)!important;border:1px solid var(--account-border,#d0d7de)!important;box-shadow:0 22px 58px rgba(16,35,63,.15)!important;backdrop-filter:none!important}
.auth-card-v127 :is(.google-button,.yandex-button,.manual-auth-toggle,.primary){min-height:48px!important;border-radius:12px!important}
.auth-card-v127 .field input{min-height:46px!important;border-radius:10px!important;background:var(--account-surface-soft,#f6f8fa)!important;color:var(--account-text,#17243a)!important}
.auth-page-v127 .auth-footer{width:100%!important;margin:0!important;padding:22px 4px 8px!important}
html[data-theme="dark"] .auth-card-v127{background:#101a2a!important;color:#eef6ff!important;border-color:#354a66!important;box-shadow:0 22px 58px rgba(0,0,0,.38)!important}
html[data-theme="dark"] .auth-card-v127 .lead{color:#9eb1c9!important}
html[data-theme="dark"] .auth-card-v127 :is(.google-button,.yandex-button,.manual-auth-toggle,.field input){background:#152238!important;border-color:#354a66!important;color:#eef6ff!important}
html[data-theme="dark"] .auth-card-v127 .auth-divider{color:#9eb1c9!important}

@media(max-width:900px){
  .custom-delivery-toggles{grid-template-columns:1fr}
  .reaction-role-item-row{grid-template-columns:1fr 1fr!important}.reaction-role-item-row .rr-remove{grid-column:2;justify-self:end}
}
@media(max-width:640px){
  .auth-shell-v127{width:calc(100% - 24px)!important;padding:12px 0!important;grid-template-rows:68px minmax(470px,1fr) auto!important}.auth-topbar-v127{height:68px!important;min-height:68px!important}.auth-wrap-v127{padding:22px 0!important;min-height:470px!important}.auth-card-v127{padding:22px!important}.reaction-role-item-row{grid-template-columns:1fr!important}.reaction-role-item-row .rr-remove{grid-column:1;justify-self:end}
}

/* TuneTune Premium cards in the account remain consistent in dark mode. */
html[data-theme="dark"] .bot-premium-module :is(.bot-premium-summary,.bot-premium-plan,.upgrade-placeholder){
  background:#101a2a!important;
  border-color:#354a66!important;
  color:#eef6ff!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .bot-premium-module :is(p,li,small,span:not(.plan-badge):not(.premium-feature-badge):not(.plan-kicker)){color:#a9bad0!important}
html[data-theme="dark"] .bot-premium-module .upgrade-placeholder strong{color:#eef6ff!important}
html[data-theme="dark"] .bot-premium-module .is-featured{border-color:#2f81f7!important;background:linear-gradient(180deg,#12233a,#101a2a)!important}
html[data-theme="dark"] .bot-premium-module .is-current-plan{border-color:#2da44e!important;background:linear-gradient(180deg,#12283a,#101a2a)!important}
html[data-theme="dark"] .bot-premium-module .primary{color:#fff!important}


/* v130 — unified cabinet polish, Shieldy controls, branding and radio assets */
.account-brand-copy,.auth-brand-copy{display:grid;gap:2px;min-width:0;line-height:1}
.account-brand-copy strong,.auth-brand-copy strong{font:900 22px/1 Nunito,sans-serif;color:inherit;white-space:nowrap}.account-brand-copy strong{display:inline-flex;align-items:baseline;gap:0}.account-brand-copy .brand-word-light{color:#fff}.account-brand-copy .brand-word-accent{color:#2ec8ff}
.account-brand-copy small,.auth-brand-copy small{font:800 11px/1.15 Nunito,sans-serif;color:#a9c8e8;letter-spacing:.01em;white-space:nowrap}
.account-brand{height:48px}
.auth-topbar-v127 .brand.auth-brand{height:48px!important;gap:11px!important}
.auth-topbar-v127 .brand.auth-brand>span{font-size:inherit!important;line-height:inherit!important}

/* Cloning is a standalone Shieldy module and can never leak into other tabs. */
.bot-module-panel.shieldy-clone-module:not(.is-active){display:none!important}
.bot-module-panel.shieldy-clone-module.is-active{display:grid!important;gap:14px!important}

/* One geometry for all bot modules without changing their behavior. */
.bot-workspace .bot-module-panel>.module-heading,
.bot-workspace .bot-module-panel>.page-heading,
.bot-module-panel .module-heading{margin-bottom:18px!important}
.bot-module-panel .github-card,
.bot-module-panel .console-card,
.bot-module-panel .music-surface-card{
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:16px!important;
  background:var(--account-surface,var(--gh-card))!important;
  box-shadow:0 8px 24px rgba(15,35,60,.055)!important;
}
.bot-module-panel .card-title{align-items:flex-start!important;margin-bottom:14px!important}
.bot-module-panel .card-title h2,.bot-module-panel .card-title h3{line-height:1.22!important}
.bot-module-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  border-radius:11px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
  color:var(--account-text,var(--theme-text))!important;
  min-height:44px;
}
.bot-module-panel textarea{min-height:88px;resize:vertical}
.bot-module-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea):focus{
  outline:3px solid rgba(47,129,247,.16)!important;
  border-color:#2f81f7!important;
}
.bot-module-panel :is(.primary,.secondary,.secondary-button,.inline-button,.compact-button,button.primary,button.secondary){
  min-height:42px!important;
  border-radius:11px!important;
  padding:9px 15px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  font-weight:900!important;
  line-height:1.15!important;
  white-space:normal;
}
.bot-module-panel button:disabled,.bot-module-panel [aria-disabled="true"]{cursor:not-allowed!important;opacity:.56!important;filter:saturate(.65)}

/* Shieldy: normalized switches — same track, centered knob, no inherited checkbox offsets. */
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch){
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 48px!important;width:48px!important;min-width:48px!important;height:28px!important;margin:0!important;padding:0!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  opacity:0!important;appearance:none!important;-webkit-appearance:none!important;cursor:pointer!important;z-index:2!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i,
.account-page [data-module-panel^="sh-"] label.toggle-row>i{
  position:relative!important;inset:auto!important;display:block!important;flex:0 0 48px!important;width:48px!important;min-width:48px!important;height:28px!important;
  margin:0!important;padding:0!important;border:1px solid #a9b7c8!important;border-radius:999px!important;background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.1)!important;transition:background .18s ease,border-color .18s ease!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>i::after{
  content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(15,35,60,.24)!important;transform:translateX(0)!important;transition:transform .18s ease!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{
  background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after{transform:translateX(20px)!important}
.account-page [data-module-panel^="sh-"] label.toggle-row{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;
  min-height:72px!important;padding:13px 14px!important;border-radius:13px!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>input[type="checkbox"]{
  position:absolute!important;right:14px!important;width:48px!important;height:28px!important;margin:0!important;opacity:0!important;z-index:3!important;cursor:pointer!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>i{margin-left:auto!important}
.account-page [data-module-panel^="sh-"] .automod-master-state{display:flex!important;align-items:center!important;gap:10px!important;min-height:32px!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>i{background:#33445a!important;border-color:#5a6f88!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{background:#2ea043!important;border-color:#3fb950!important}

/* Radio: official marks have the same clean tile and retain their proportions. */
.radio-grid{align-items:stretch!important}
.radio-station{border-radius:14px!important;min-height:184px!important;padding:16px 12px!important;overflow:hidden!important}
.radio-station .station-logo-img{
  display:block!important;width:80px!important;height:80px!important;object-fit:contain!important;padding:7px!important;
  border-radius:17px!important;background:#fff!important;border:1px solid rgba(16,35,63,.12)!important;
  box-shadow:0 7px 18px rgba(15,35,60,.10)!important;
}
.radio-station b{margin-top:12px!important;line-height:1.25!important;text-align:center!important}
.radio-station small{text-align:center!important}

/* Dark menu and module surfaces: readable, balanced and identical across bots. */
html[data-theme="dark"] .bot-module-panel .github-card,
html[data-theme="dark"] .bot-module-panel .console-card,
html[data-theme="dark"] .bot-module-panel .music-surface-card{background:#111d30!important;border-color:#334a66!important;color:#edf5ff!important;box-shadow:none!important}
html[data-theme="dark"] .bot-module-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){background:#17263c!important;border-color:#3b526e!important;color:#edf5ff!important}
html[data-theme="dark"] .bot-module-panel :is(p,small,.field small){color:#a9bad0!important}

@media(max-width:720px){
  .account-brand-copy small,.auth-brand-copy small{display:none}
  .account-brand-copy strong,.auth-brand-copy strong{font-size:20px}
  .radio-station{min-height:168px!important}
}



/* ===== v131 Shieldy visual overhaul and reaction-role builder ===== */
#panel-bot-control[data-active-bot="shieldy"]{
  --account-accent:#2da44e;
  --account-accent-strong:#1f7a38;
  --account-accent-soft:#e7f7ec;
}
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"]{
  --account-accent:#45c96b;
  --account-accent-strong:#7ee2a8;
  --account-accent-soft:rgba(63,185,80,.15);
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-sidebar{
  border-color:color-mix(in srgb,var(--account-accent) 24%,var(--account-border))!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"] button.is-active{
  box-shadow:inset 3px 0 0 var(--account-accent)!important;
}
.shieldy-module-heading{align-items:center}
.shieldy-feature-note,.rr-permission-card{display:flex;align-items:center;gap:14px;padding:15px 17px!important;border-color:color-mix(in srgb,var(--account-accent) 36%,var(--account-border))!important;background:linear-gradient(135deg,var(--account-accent-soft),var(--account-surface))!important}
.shieldy-feature-note{margin-bottom:14px}
.shieldy-feature-note-icon,.rr-permission-card>span{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:12px;background:var(--account-surface);border:1px solid color-mix(in srgb,var(--account-accent) 35%,var(--account-border));color:var(--account-accent-strong);font-size:22px;font-weight:1000}
.shieldy-feature-note>div,.rr-permission-card>div{display:grid;gap:3px;min-width:0}.shieldy-feature-note small,.rr-permission-card small{color:var(--account-muted);line-height:1.45}
.reaction-role-module .role-template-grid{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px}
.reaction-role-module .role-template-grid>button{min-height:92px;padding:14px;text-align:left;display:grid;align-content:center;gap:5px;transition:transform .16s ease,border-color .16s ease,background .16s ease}
.reaction-role-module .role-template-grid>button:hover{transform:translateY(-2px);border-color:var(--account-accent)!important;background:var(--account-accent-soft)!important}
.reaction-role-module .role-template-grid>button strong{font-size:14px}.reaction-role-module .role-template-grid>button span{font-size:12px;color:var(--account-muted)}
.reaction-role-layout{grid-template-columns:minmax(0,1.45fr) minmax(310px,.72fr)!important;gap:16px!important;align-items:start}
.reaction-role-editor-column{min-width:0;display:grid;gap:14px}.reaction-role-preview-column{position:sticky;top:92px;display:grid;gap:14px;min-width:0}
.reaction-role-message-card,.reaction-role-list-card,.reaction-role-preview-card{padding:18px!important}
.reaction-role-main-fields{grid-template-columns:minmax(0,1fr) minmax(220px,.68fr)!important;gap:12px!important}
.reaction-role-main-fields .field{margin:0!important}.reaction-role-color-field{align-content:start}
.rr-color-control{display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 10px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft)}
.rr-color-control input[type="color"]{width:46px!important;min-width:46px!important;height:36px!important;padding:2px!important;border-radius:9px!important}.rr-color-control span{font-size:13px;font-weight:900;color:var(--account-muted)}
.reaction-role-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important;margin-top:13px!important}
.reaction-role-options>label{min-height:62px;padding:10px 12px!important;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);font-size:12px!important;line-height:1.35}
.reaction-role-column-head{display:grid;grid-template-columns:62px minmax(120px,.58fr) minmax(160px,1fr) minmax(160px,.82fr) 116px;gap:10px;padding:0 12px 7px;color:var(--account-muted);font-size:10px;font-weight:1000;letter-spacing:.05em;text-transform:uppercase}
.reaction-role-items{display:grid;gap:9px}
.reaction-role-item-row{grid-template-columns:62px minmax(120px,.58fr) minmax(160px,1fr) minmax(160px,.82fr) 116px!important;align-items:center!important;padding:10px 12px!important;min-width:0;transition:border-color .16s ease,transform .16s ease,opacity .16s ease,box-shadow .16s ease}
.reaction-role-item-row:hover{border-color:color-mix(in srgb,var(--account-accent) 40%,var(--account-border))!important;box-shadow:0 7px 18px rgba(25,72,96,.06)}
.reaction-role-item-row.is-dragging{opacity:.48;transform:scale(.995);border-style:dashed!important}
.rr-order-control{display:flex;align-items:center;gap:7px}.rr-drag-handle{width:32px;height:40px;padding:0;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface);color:var(--account-muted);font:1000 17px/1 Nunito,sans-serif;cursor:grab;letter-spacing:-3px}.rr-drag-handle:active{cursor:grabbing}.rr-drag-handle:focus-visible{outline:3px solid color-mix(in srgb,var(--account-accent) 24%,transparent);border-color:var(--account-accent)}
.rr-order{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:var(--account-accent-soft);color:var(--account-accent-strong);font-size:11px;font-weight:1000}
.rr-field{display:grid;gap:5px;min-width:0}.rr-field>span{display:none;color:var(--account-muted);font-size:11px;font-weight:900}.rr-field input{min-width:0!important;width:100%!important;height:44px!important;padding:0 11px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rr-field small{font-size:10px!important}
.rr-row-actions{display:grid;grid-template-columns:32px 32px 40px;gap:6px;justify-content:end}.rr-order-button{width:32px;height:40px;padding:0;border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface);color:var(--account-text);font:1000 15px Nunito,sans-serif;cursor:pointer}.rr-order-button:hover:not(:disabled){border-color:var(--account-accent);color:var(--account-accent-strong);background:var(--account-accent-soft)}.rr-order-button:disabled{opacity:.35;cursor:not-allowed}.reaction-role-item-row .rr-remove{height:40px!important;border-radius:9px!important}
.shieldy-server-save-bar{display:grid!important;grid-template-columns:minmax(260px,auto) minmax(0,1fr)!important;align-items:center!important;gap:14px!important;padding:14px!important;border-radius:16px!important}.shieldy-server-save{min-height:50px!important;padding:12px 19px!important;border-radius:12px!important;white-space:normal!important;text-align:center!important}.shieldy-server-save-bar .api-form-message{margin:0!important;line-height:1.45}
.reaction-role-preview-card .card-title{align-items:flex-start!important}.reaction-role-preview-card .card-title p{margin:4px 0 0;color:var(--account-muted);font-size:12px}.rr-message-preview{padding:15px!important;border-radius:13px!important;background:var(--account-surface-soft)!important;border:1px solid var(--account-border)}
.rr-embed-preview{position:relative;margin-top:12px!important;padding:15px 16px!important;border:1px solid var(--account-border)!important;border-left:4px solid var(--rr-accent,#2f81f7)!important;border-radius:9px!important;background:var(--account-surface)!important;overflow:hidden}.rr-embed-preview h4{margin:0 0 7px!important;font-size:17px!important;overflow-wrap:anywhere}.rr-embed-preview p{margin:0!important;color:var(--account-muted)!important;line-height:1.5;overflow-wrap:anywhere}.rr-embed-preview.is-plain{border-left-width:1px!important;background:transparent!important}
.rr-reactions-preview{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:12px!important}.rr-reactions-preview>span{display:inline-flex!important;align-items:center!important;gap:7px!important;max-width:100%;padding:7px 11px!important;border:1px solid var(--account-border)!important;border-radius:999px!important;background:var(--account-surface)!important;color:var(--account-text)!important}.rr-reactions-preview b{flex:0 0 auto;font-size:15px}.rr-reactions-preview em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:12px;font-weight:800}.rr-reactions-preview small{color:var(--account-muted)}
.rr-permission-card{padding:14px!important}.rr-permission-card>span{width:38px;height:38px;flex-basis:38px;font-size:18px}
@media(max-width:1160px){.reaction-role-module .role-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.reaction-role-layout{grid-template-columns:1fr!important}.reaction-role-preview-column{position:static;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr)}.reaction-role-column-head{display:none}.reaction-role-item-row{grid-template-columns:54px minmax(120px,.55fr) minmax(160px,1fr) minmax(150px,.8fr) 116px!important}.rr-field>span{display:block}}
@media(max-width:840px){.reaction-role-module .role-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reaction-role-main-fields,.reaction-role-options{grid-template-columns:1fr!important}.reaction-role-preview-column{grid-template-columns:1fr}.reaction-role-item-row{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr)!important;align-items:end!important}.rr-order-control{grid-row:1/3;align-self:center;flex-direction:column}.rr-field.rr-reaction-field{grid-column:2}.rr-field:nth-of-type(2){grid-column:3}.rr-field:nth-of-type(3){grid-column:2/4}.rr-row-actions{grid-column:2/4;justify-content:end}.shieldy-server-save-bar{grid-template-columns:1fr!important}}
@media(max-width:560px){.reaction-role-module .role-template-grid{grid-template-columns:1fr}.reaction-role-item-row{grid-template-columns:42px minmax(0,1fr)!important;padding:11px!important}.rr-order-control{grid-row:1/5;grid-column:1}.rr-field.rr-reaction-field,.rr-field:nth-of-type(2),.rr-field:nth-of-type(3),.rr-row-actions{grid-column:2}.rr-row-actions{justify-content:start}.shieldy-feature-note{align-items:flex-start}.reaction-role-message-card,.reaction-role-list-card,.reaction-role-preview-card{padding:14px!important}}
/* Shieldy: the single server save action stays in document flow and never covers fields. */
.shieldy-server-save-bar{position:static!important;bottom:auto!important}

/* ===== v131 Shieldy-wide interface polish ===== */
#panel-bot-control[data-active-bot="shieldy"] .bot-module-content,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active{min-width:0}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active>.console-heading{
  margin-top:18px;
  padding:0 2px 17px;
  border-bottom:1px solid color-mix(in srgb,var(--account-accent) 24%,var(--account-border));
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active>.console-heading .eyebrow{color:var(--account-accent-strong)}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .github-card{
  border-radius:16px;
  border-color:color-mix(in srgb,var(--account-accent) 15%,var(--account-border));
  box-shadow:0 8px 24px rgba(25,72,96,.055);
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .card-title{flex-wrap:wrap;align-items:flex-start}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active input,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active textarea,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active select{min-width:0;max-width:100%}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active textarea{overflow-wrap:anywhere}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .primary,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .shieldy-server-save{
  border-color:var(--account-accent-strong)!important;
  background:var(--account-accent)!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .primary:hover,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .shieldy-server-save:hover{background:var(--account-accent-strong)!important}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .api-form-message{overflow-wrap:anywhere}
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .github-card{box-shadow:0 10px 28px rgba(0,0,0,.16)}
@media(max-width:680px){
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active>.console-heading{margin-top:14px}
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .card-title>button,
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active .card-title>.secondary{width:100%;justify-content:center}
}


/* ===== v133 Shieldy deep UI correction pass ===== */
/* A single, clean switch geometry. No double track, glow or displaced knob. */
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch){
  position:relative!important;display:inline-block!important;flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;height:30px!important;min-height:30px!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;vertical-align:middle!important
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;z-index:3!important;width:52px!important;height:30px!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i,
.account-page [data-module-panel^="sh-"] label.toggle-row>i{
  position:relative!important;inset:auto!important;display:block!important;flex:0 0 52px!important;width:52px!important;min-width:52px!important;max-width:52px!important;height:30px!important;min-height:30px!important;
  margin:0!important;padding:0!important;border:1px solid #b7c4d2!important;border-radius:999px!important;background:#dfe7ef!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;overflow:hidden!important;transition:background .18s ease,border-color .18s ease!important
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>i::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#fff!important;
  box-shadow:0 2px 5px rgba(16,35,63,.24)!important;transform:translateX(0)!important;transition:transform .18s ease!important
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{background:#2da44e!important;border-color:#2da44e!important;box-shadow:none!important}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after{transform:translateX(22px)!important}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:focus-visible+i,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:focus-visible+i{outline:3px solid rgba(47,129,247,.22)!important;outline-offset:2px!important}
.account-page [data-module-panel^="sh-"] label.toggle-row>input[type="checkbox"]{right:0!important;top:50%!important;width:52px!important;height:30px!important;transform:translateY(-50%)!important}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{
  position:relative!important;display:inline-block!important;flex:0 0 52px!important;width:52px!important;min-width:52px!important;height:30px!important;margin:0 9px 0 0!important;border:1px solid #b7c4d2!important;border-radius:999px!important;background:#dfe7ef!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;appearance:none!important;-webkit-appearance:none!important;cursor:pointer!important
}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]::after{content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.24)!important;transition:transform .18s ease!important}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{background:#2da44e!important;border-color:#2da44e!important;box-shadow:none!important}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(22px)!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{background:#35465b!important;border-color:#60748c!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i,
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{background:#2ea043!important;border-color:#3fb950!important}

/* Welcome switches and save actions remain aligned at every width. */
.welcome-global-head,.welcome-master-status,.welcome-section-actions,.welcome-event-card .automod-rule-head{align-items:center!important}
.welcome-master-status{display:flex!important;align-items:center!important;gap:14px!important;white-space:nowrap}
.welcome-event-card .automod-rule-head>.mini-switch{align-self:center!important;margin-left:auto!important}
.welcome-save-bar{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important}
.welcome-save-bar :is(.primary,.secondary,.inline-button){min-height:52px!important;height:52px!important;padding:0 20px!important;margin:0!important;border-radius:12px!important;line-height:1!important}
.welcome-save-bar .api-form-message{flex:1 1 220px!important}
@media(max-width:700px){.welcome-save-bar{display:grid!important;grid-template-columns:1fr!important}.welcome-save-bar :is(.primary,.secondary,.inline-button){width:100%!important}}

/* Preview can always be restored, including narrow layouts. */
.preview-restore-button{grid-column:1/-1;justify-self:end;min-height:44px;padding:10px 16px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-accent-soft);color:var(--account-accent-strong);font:900 14px Nunito,sans-serif;cursor:pointer;box-shadow:0 8px 20px rgba(25,72,96,.08)}
.preview-restore-button[hidden]{display:none!important}.preview-restore-button:hover{border-color:var(--account-accent);transform:translateY(-1px)}
@media(max-width:980px){.welcome-preview-column.is-side-preview-collapsed,.reaction-role-preview-column.is-side-preview-collapsed{display:none!important}.preview-restore-button:not([hidden]){display:inline-flex!important;align-items:center;justify-content:center;width:100%;justify-self:stretch}}

/* Reaction-role rows: no secondary symbol counter under the reaction input. */
.reaction-role-item-row .rr-reaction-field{align-self:center}.reaction-role-item-row .rr-reaction-field small{display:none!important}

/* Radio logos are centered independently of their source artwork. */
.radio-station{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;text-align:center!important}
.radio-station .station-logo-img{display:block!important;margin:0 auto!important;align-self:center!important;object-position:center center!important}
.radio-station b{width:100%!important;margin:13px 0 0!important;text-align:center!important}.radio-station small{width:100%!important;margin-top:5px!important;text-align:center!important}

/* Clone server custom select: same closed design, controlled popup instead of OS-grey list. */
.shieldy-custom-select{position:relative;width:100%;min-width:0}.shieldy-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.shieldy-select-trigger{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border:1px solid var(--account-border)!important;border-radius:12px!important;background:var(--account-surface-soft)!important;color:var(--account-text)!important;font:800 15px Nunito,sans-serif!important;text-align:left;cursor:pointer;box-shadow:none!important}
.shieldy-select-trigger:hover,.shieldy-custom-select.is-open .shieldy-select-trigger{border-color:var(--account-accent)!important;background:var(--account-surface)!important}.shieldy-select-trigger:focus-visible{outline:3px solid rgba(47,129,247,.20);outline-offset:2px}
.shieldy-select-arrow{font-size:18px;line-height:1;transition:transform .16s ease}.shieldy-custom-select.is-open .shieldy-select-arrow{transform:rotate(180deg)}
.shieldy-select-menu{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 7px);max-height:260px;overflow:auto;padding:6px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface);box-shadow:0 16px 34px rgba(16,35,63,.18)}
.shieldy-select-menu[hidden]{display:none!important}.shieldy-select-option{width:100%;min-height:42px;display:flex;align-items:center;padding:9px 11px;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--account-text)!important;font:800 14px Nunito,sans-serif!important;text-align:left;cursor:pointer;box-shadow:none!important}
.shieldy-select-option:hover,.shieldy-select-option[aria-selected="true"]{background:var(--account-accent-soft)!important;color:var(--account-accent-strong)!important}

/* Clone copy cards: plain Russian wording and cleaner alignment. */
.shieldy-clone-module .clone-options-grid{align-items:stretch}.shieldy-clone-module .routing-display-item{min-height:94px!important;align-items:center!important}.shieldy-clone-module .routing-display-item>.mini-switch{margin-left:auto!important}
.shieldy-clone-module .sticky-save-bar{align-items:center!important}.shieldy-clone-module #shieldy-clone-submit{min-width:250px!important;min-height:52px!important}

/* Timed messages terminology and spacing. */
.custom-delivery-panel{border-radius:15px!important}.custom-delivery-head strong{font-size:17px!important}.custom-delivery-head small{line-height:1.45!important}

/* Gamey uses its own pink interaction colour. */
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button:hover{background:#fff3f8!important;color:#bd3d72!important;border-color:#f2bfd2!important}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active{background:#ffeaf3!important;color:#b72f68!important;border-color:#ef9fbe!important;box-shadow:inset 4px 0 #ef5b98!important}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active .module-icon{color:#d93f7d!important}
.bot-switch-button[data-bot-select="gamey"].is-active{background:#ffeaf3!important;color:#b72f68!important;border-color:#ef9fbe!important}
html[data-theme="dark"] #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button:hover{background:#321c2a!important;color:#ff9bc2!important;border-color:#743652!important}
html[data-theme="dark"] #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active{background:#3d1f2f!important;color:#ffabd0!important;border-color:#914462!important;box-shadow:inset 4px 0 #ff5f9e!important}
html[data-theme="dark"] .bot-switch-button[data-bot-select="gamey"].is-active{background:#3d1f2f!important;color:#ffabd0!important;border-color:#914462!important}

/* Additional Shieldy overflow hardening. */
[data-module-panel^="sh-"]{min-width:0}[data-module-panel^="sh-"] :is(.github-card,.console-card,.field,.console-fields){min-width:0}
[data-module-panel^="sh-"] :is(input,select,textarea){max-width:100%}
@media(max-width:1280px){.reaction-role-layout{grid-template-columns:1fr!important}.reaction-role-preview-column{position:static!important;grid-template-columns:minmax(0,1fr) minmax(260px,.55fr)!important}.reaction-role-column-head{display:none!important}.reaction-role-item-row{grid-template-columns:52px minmax(130px,.55fr) minmax(160px,1fr) minmax(150px,.8fr) 116px!important}}
@media(max-width:900px){.reaction-role-preview-column{grid-template-columns:1fr!important}.reaction-role-item-row{grid-template-columns:48px minmax(0,1fr) minmax(0,1fr)!important}.rr-order-control{grid-row:1/3!important;align-self:center!important;flex-direction:column!important}.rr-field.rr-reaction-field{grid-column:2!important}.rr-field:nth-of-type(2){grid-column:3!important}.rr-field:nth-of-type(3){grid-column:2/4!important}.rr-row-actions{grid-column:2/4!important;justify-content:end!important}}
@media(max-width:600px){.reaction-role-item-row{grid-template-columns:42px minmax(0,1fr)!important}.rr-order-control{grid-row:1/5!important;grid-column:1!important}.rr-field.rr-reaction-field,.rr-field:nth-of-type(2),.rr-field:nth-of-type(3),.rr-row-actions{grid-column:2!important}.rr-row-actions{justify-content:start!important}.shieldy-clone-module #shieldy-clone-submit{width:100%!important;min-width:0!important}}

/* v133.1 Clone server selectors use two equal columns. */
.shieldy-clone-form .console-fields.two-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start!important}
.shieldy-clone-form .console-fields.two-fields>.field{width:100%!important;min-width:0!important;margin:0!important}
@media(max-width:760px){.shieldy-clone-form .console-fields.two-fields{grid-template-columns:1fr!important}}

/* v133.2 Welcome action buttons form one even row when Premium upsell is visible. */
.welcome-save-bar:has(.inline-button){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
.welcome-save-bar:has(.inline-button) :is(.primary,.secondary,.inline-button){width:100%!important;min-width:0!important}
.welcome-save-bar:has(.inline-button) .api-form-message{grid-column:1/-1!important}
@media(max-width:700px){.welcome-save-bar:has(.inline-button){grid-template-columns:1fr!important}.welcome-save-bar:has(.inline-button) .api-form-message{grid-column:1!important}}
.welcome-save-bar:has(.inline-button) :is(.primary,.secondary,.inline-button){text-align:center!important}


/* ===== v134 Shieldy deep fixes ===== */
/* One predictable switch component across every Shieldy section. */
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch){
  position:relative!important;display:inline-block!important;flex:0 0 50px!important;
  width:50px!important;height:28px!important;min-width:50px!important;min-height:28px!important;
  margin:0!important;padding:0!important;line-height:0!important;vertical-align:middle!important;
  border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;z-index:4!important;width:50px!important;height:28px!important;
  margin:0!important;padding:0!important;opacity:0!important;appearance:none!important;cursor:pointer!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i{
  position:absolute!important;inset:0!important;display:block!important;margin:0!important;padding:0!important;
  border:1px solid #a8b7c8!important;border-radius:999px!important;background:#dce5ed!important;
  box-shadow:inset 0 1px 2px rgba(16,35,63,.10)!important;transition:.18s ease!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:22px!important;height:22px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.25)!important;
  transform:translateX(0)!important;transition:transform .18s ease!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i{
  border-color:#2da44e!important;background:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.13)!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i::after{transform:translateX(22px)!important}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:focus-visible+i{outline:3px solid rgba(47,129,247,.22)!important;outline-offset:2px!important}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:disabled+i{opacity:.48!important;filter:saturate(.55)!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i{background:#34465c!important;border-color:#60738b!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i{background:#2ea043!important;border-color:#3fb950!important}

.account-page [data-module-panel^="sh-"] label.toggle-row{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:18px!important;min-width:0!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>span{min-width:0!important;flex:1 1 auto!important}
.account-page [data-module-panel^="sh-"] label.toggle-row>input[type="checkbox"]{
  position:absolute!important;right:0!important;top:50%!important;z-index:4!important;width:50px!important;height:28px!important;
  margin:0!important;opacity:0!important;transform:translateY(-50%)!important;appearance:none!important;cursor:pointer!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>i{
  position:relative!important;display:block!important;flex:0 0 50px!important;width:50px!important;height:28px!important;
  min-width:50px!important;min-height:28px!important;margin-left:auto!important;border:1px solid #a8b7c8!important;
  border-radius:999px!important;background:#dce5ed!important;box-shadow:inset 0 1px 2px rgba(16,35,63,.10)!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>i::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:22px!important;height:22px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.25)!important;transition:transform .18s ease!important;
}
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.13)!important}
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after{transform:translateX(22px)!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>i{background:#34465c!important;border-color:#60738b!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{background:#2ea043!important;border-color:#3fb950!important}

.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{
  position:relative!important;display:inline-block!important;flex:0 0 50px!important;width:50px!important;height:28px!important;
  min-width:50px!important;min-height:28px!important;margin:0!important;padding:0!important;appearance:none!important;
  border:1px solid #a8b7c8!important;border-radius:999px!important;background:#dce5ed!important;
  box-shadow:inset 0 1px 2px rgba(16,35,63,.10)!important;cursor:pointer!important;vertical-align:middle!important;
}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:22px!important;height:22px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.25)!important;
  transform:translateX(0)!important;transition:transform .18s ease!important;
}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.13)!important}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(22px)!important}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:focus-visible{outline:3px solid rgba(47,129,247,.22)!important;outline-offset:2px!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{background:#34465c!important;border-color:#60738b!important}
html[data-theme="dark"] .account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{background:#2ea043!important;border-color:#3fb950!important}
.account-page [data-module-panel^="sh-"] .inline-toggles>label{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}
.account-page [data-module-panel^="sh-"] :is(.automod-master-state,.welcome-master-status,.welcome-section-actions,.module-master-switch){display:flex!important;align-items:center!important;gap:12px!important}

/* The automod master controls availability; individual rules stay readable and editable. */
.automod-module-list:not(.is-disabled){opacity:1!important;cursor:default!important}
.automod-module-list:not(.is-disabled) .automod-module{opacity:1!important;filter:none!important;cursor:default!important}
.automod-module-list:not(.is-disabled) .automod-module .automod-module-summary,
.automod-module-list:not(.is-disabled) .automod-module .automod-module-body{opacity:1!important;filter:none!important;pointer-events:auto!important}
.automod-module.is-module-enabled{border-color:color-mix(in srgb,var(--account-accent) 42%,var(--account-border))!important}

/* Reaction-role rows remain inside the card and all controls are always visible. */
.reaction-role-target-fields{grid-template-columns:minmax(180px,1fr) minmax(170px,.75fr) minmax(190px,.85fr)!important}
.reaction-role-column-head,
.reaction-role-item-row{grid-template-columns:54px minmax(92px,.55fr) minmax(130px,1fr) minmax(125px,.78fr) 118px!important;gap:9px!important}
.reaction-role-item-row{overflow:visible!important;padding:10px!important}
.rr-row-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important}
.rr-row-actions :is(.rr-order-button,.rr-remove){flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:40px!important;padding:0!important;display:grid!important;place-items:center!important}
.rr-order-control{min-width:0!important}.rr-drag-handle{width:32px!important;min-width:32px!important}
.rr-reaction-field{align-content:center!important}.rr-reaction-counter{display:block!important;margin:0!important;color:var(--account-muted)!important;font-size:10px!important;line-height:1.1!important;text-align:right!important}
.rr-field input{height:44px!important}
@media(max-width:1180px){
  .reaction-role-target-fields{grid-template-columns:1fr 1fr!important}.reaction-role-target-fields>.field:first-child{grid-column:1/-1!important}
  .reaction-role-column-head{display:none!important}
  .reaction-role-item-row{grid-template-columns:48px minmax(110px,.58fr) minmax(150px,1fr) minmax(135px,.8fr) 116px!important}
}
@media(max-width:880px){
  .reaction-role-target-fields{grid-template-columns:1fr!important}.reaction-role-target-fields>.field:first-child{grid-column:auto!important}
  .reaction-role-item-row{grid-template-columns:46px minmax(0,1fr) minmax(0,1fr)!important;align-items:end!important}
  .rr-order-control{grid-column:1!important;grid-row:1/3!important;align-self:center!important;flex-direction:column!important}
  .rr-field.rr-reaction-field{grid-column:2!important}.rr-field:nth-of-type(2){grid-column:3!important}.rr-field:nth-of-type(3){grid-column:2/4!important}
  .rr-row-actions{grid-column:2/4!important;justify-content:flex-start!important}
}
@media(max-width:560px){
  .reaction-role-item-row{grid-template-columns:42px minmax(0,1fr)!important}
  .rr-order-control{grid-row:1/5!important}.rr-field.rr-reaction-field,.rr-field:nth-of-type(2),.rr-field:nth-of-type(3),.rr-row-actions{grid-column:2!important}
}

/* Side previews collapse cleanly and always leave a visible restore button. */
.welcome-builder.is-side-preview-collapsed,.reaction-role-layout.is-side-preview-collapsed{grid-template-columns:minmax(0,1fr)!important;overflow:visible!important}
.welcome-preview-column.is-side-preview-collapsed,.reaction-role-preview-column.is-side-preview-collapsed{display:none!important}
.preview-restore-button:not([hidden]){display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-column:1/-1!important;justify-self:end!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
@media(max-width:760px){.preview-restore-button:not([hidden]){width:100%!important;justify-self:stretch!important}}

/* Remote pfps.gg banner library. */
.custom-banner-library-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.custom-banner-live-preview{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;margin:0 0 12px;padding:10px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface)}
.custom-banner-live-preview[hidden]{display:none!important}.custom-banner-live-preview img{display:block;width:100%;aspect-ratio:3.27/1;object-fit:cover;border-radius:9px;background:#101827}
.custom-banner-live-preview>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.custom-banner-live-preview strong{font-size:13px}.custom-banner-live-preview small{color:var(--account-muted);font-size:11px}
.custom-banner-panel{display:grid;gap:12px}.custom-banner-panel[hidden]{display:none!important}
.custom-banner-presets{max-height:none!important;overflow:visible!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.custom-banner-presets button{min-height:0!important}.custom-banner-presets img{aspect-ratio:3.27/1!important;object-fit:cover!important}
.custom-banner-more{width:100%!important;min-height:44px!important;border-style:dashed!important}
@media(max-width:900px){.custom-banner-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.custom-banner-presets{grid-template-columns:1fr!important}.custom-banner-library-head{align-items:flex-start!important;flex-direction:column!important}.custom-banner-library-actions{width:100%;justify-content:stretch}.custom-banner-library-actions>*{flex:1 1 auto}}


/* v134.1: make the reaction length limit and preview restore impossible to miss. */
.rr-reaction-field{grid-template-rows:auto 44px auto!important}
.rr-reaction-counter{
  justify-self:end!important;min-height:18px!important;padding:2px 7px!important;border:1px solid var(--account-border)!important;
  border-radius:999px!important;background:var(--account-surface-soft)!important;color:var(--account-muted)!important;
  font-size:10px!important;font-weight:900!important;line-height:1.2!important;
}
.preview-restore-button:not([hidden]){
  margin:0 0 10px auto!important;align-self:start!important;position:relative!important;top:0!important;z-index:12!important;
  box-shadow:0 8px 20px rgba(31,35,40,.10)!important;
}
@media(max-width:760px){.preview-restore-button:not([hidden]){margin:0 0 10px!important;width:100%!important}}
.reaction-role-item-row .rr-reaction-field .rr-reaction-counter{display:block!important}


/* ===== v135 Shieldy final polish ===== */
/* Automod: the master switch is the only interactive control while the module is off. */
.automod-module-list.is-disabled .automod-module,
.automod-shared-card.is-function-disabled{
  opacity:.42!important;
  filter:saturate(.45)!important;
  pointer-events:none!important;
  user-select:none!important;
  cursor:not-allowed!important;
}
.automod-module-list.is-disabled .automod-module * ,
.automod-shared-card.is-function-disabled *{cursor:not-allowed!important}
.automod-module-list:not(.is-disabled) .automod-module,
.automod-shared-card:not(.is-function-disabled){pointer-events:auto!important}

/* All Shieldy switch knobs are mathematically centered in the track. */
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch),
.account-page [data-module-panel^="sh-"] label.toggle-row>i,
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{
  flex:0 0 50px!important;width:50px!important;height:28px!important;min-width:50px!important;min-height:28px!important;
  align-self:center!important;margin-top:0!important;margin-bottom:0!important;vertical-align:middle!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>i::after{
  top:50%!important;left:3px!important;width:22px!important;height:22px!important;
  transform:translateY(-50%)!important;
}
.account-page [data-module-panel^="sh-"] :is(.mini-switch,.switch)>input:checked+i::after,
.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after{
  transform:translate(20px,-50%)!important;
}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]::after{
  top:50%!important;left:3px!important;width:22px!important;height:22px!important;
  transform:translateY(-50%)!important;
}
.account-page [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked::after{
  transform:translate(20px,-50%)!important;
}

/* Log collection uses the same centered switch placement as cloning. */
[data-module-panel="sh-punishments"] .log-display-grid .toggle-row,
[data-module-panel="sh-punishments"] .log-event-grid>label,
[data-module-panel="sh-punishments"] .unified-log-head{
  align-items:center!important;
}
[data-module-panel="sh-punishments"] :is(.log-display-grid .switch,.log-event-grid .mini-switch,.unified-log-master){
  align-self:center!important;margin-top:0!important;margin-bottom:0!important;
}
[data-module-panel="sh-punishments"] .log-display-grid .switch,
[data-module-panel="sh-punishments"] .log-event-grid .mini-switch{margin-left:auto!important}
[data-module-panel="sh-punishments"] .log-display-grid .toggle-row{min-height:66px!important}
[data-module-panel="sh-punishments"] .log-event-grid>label{min-height:58px!important;justify-content:space-between!important}

/* Reaction-role labels never fall below inputs. Compact layouts receive per-field labels above controls. */
.reaction-role-item-row .rr-reaction-counter{display:none!important}
.rr-compact-label{display:none;color:var(--account-muted);font-size:11px;font-weight:900;line-height:1.2}
.rr-order-buttons,.rr-action-buttons{display:flex;align-items:center;gap:6px;min-width:0}
.rr-order-control{display:grid!important;gap:6px!important;align-content:end!important}
.rr-row-actions{display:grid!important;gap:6px!important;align-content:end!important;justify-items:end!important}
.rr-action-buttons{justify-content:flex-end}
@media(max-width:1280px){
  .reaction-role-column-head{display:none!important}
  .reaction-role-item-row{align-items:end!important}
  .reaction-role-item-row .rr-field>span,.reaction-role-item-row .rr-compact-label{display:block!important;order:-1!important}
  .rr-row-actions{justify-items:start!important}
}
@media(max-width:900px){
  .rr-order-control{align-self:stretch!important}
  .rr-row-actions{justify-items:start!important}
  .rr-action-buttons{justify-content:flex-start!important}
}

/* Banner gallery stays product-native: no source-site controls or attribution. */
.custom-banner-library-actions{margin-left:auto!important}
/* v135.1: action labels stay above their buttons and never consume a button column. */
.rr-row-actions{grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important;width:100%!important}
.rr-action-buttons{width:max-content!important;max-width:100%!important}


/* ===== v136 management page final pass ===== */
/* Staff role and developer mode, visible only after JoyJoy Manager resolves administrator/tester from DB. */
.staff-control-strip{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin:-10px 2px 20px auto;min-height:48px}.staff-role-label,.management-role-badge,.account-role-badge{display:inline-flex;align-items:center;justify-content:center;width:max-content;border-radius:999px;font-weight:950;letter-spacing:.02em}.staff-role-label,.management-role-badge{padding:7px 12px;font-size:13px}.account-role-badge{margin-top:5px;padding:3px 8px;font-size:10px}.is-administrator{color:#d1242f!important;background:#ffebe9!important;border:1px solid #ff8182!important}.is-tester{color:#116329!important;background:#dafbe1!important;border:1px solid #82e596!important}.staff-developer-mode{display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface);cursor:pointer}.staff-developer-mode>span:first-child{display:grid;gap:1px}.staff-developer-mode strong{font-size:13px}.staff-developer-mode small{font-size:10px;color:var(--account-muted)}.staff-mode-status{min-width:72px;color:var(--account-muted);font-size:12px;font-weight:900}.bot-control-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important}.management-role-badge{flex:0 0 auto}

/* Gamey selected navigation has a visible red/pink outline in both themes. */
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active{border:2px solid #ff4f91!important;box-shadow:inset 5px 0 #ff4f91,0 0 0 2px rgba(255,79,145,.12)!important;background:#4a2034!important;color:#ffb4d1!important}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active .module-icon{color:#ff5f9e!important}.bot-switch-button[data-bot-select="gamey"].is-active{border:2px solid #ff4f91!important;box-shadow:0 0 0 2px rgba(255,79,145,.12)!important}
html:not([data-theme="dark"]) #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] button.is-active{background:#ffe6f0!important;color:#a92960!important}

/* Danger card on every General tab. */
.remove-bot-server-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding:15px 16px;border:1px solid #ff8182;border-radius:14px;background:color-mix(in srgb,#ffebe9 72%,var(--account-surface));grid-column:1/-1}.remove-bot-server-card>div{display:grid;gap:3px}.remove-bot-server-card strong{color:#cf222e}.remove-bot-server-card small{color:var(--account-muted)}.danger-solid{min-height:44px;padding:10px 16px;border:1px solid #cf222e;border-radius:10px;background:#cf222e;color:#fff;font:900 14px Nunito,sans-serif;cursor:pointer;white-space:nowrap}.danger-solid:hover:not(:disabled){background:#a40e26}.danger-solid:disabled{opacity:.48;cursor:not-allowed}

/* Checkout modal. */
.premium-checkout-dialog{width:min(590px,calc(100vw - 28px))!important;max-height:calc(100vh - 34px);overflow:auto;padding:28px!important}.checkout-robokassa-logo{display:block;width:190px;height:auto;margin:0 0 14px;border-radius:12px}.checkout-intro{margin:0 0 16px;color:var(--account-muted);line-height:1.5}.checkout-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.checkout-summary>div{min-height:76px}.checkout-summary .checkout-total{border-color:#2f81f7!important;background:rgba(47,129,247,.08)!important}.checkout-summary .checkout-total strong{font-size:20px;color:#2f81f7}.checkout-payment-methods{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0}.checkout-payment-methods span{display:grid;place-items:center;gap:5px;min-height:70px;padding:8px 5px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);font-size:10px;font-weight:900;text-align:center}.checkout-payment-methods img{width:34px;height:25px;object-fit:contain}.checkout-terms{display:flex;align-items:flex-start;gap:10px;margin:14px 0;padding:12px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);font-size:12px;line-height:1.45}.checkout-terms input{width:18px;height:18px;margin:1px 0 0;accent-color:#2f81f7;flex:0 0 auto}.checkout-buy-button{width:100%;min-height:50px;font-size:16px!important}.checkout-buy-button:disabled{opacity:.48;cursor:not-allowed}.checkout-message{margin:10px 0 0;color:var(--account-muted);font-size:11px;text-align:center}.checkout-message.is-warning{color:#bf8700;font-weight:800}

/* One exact switch geometry for every Shieldy control and developer switch. */
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch),.normalized-switch{position:relative!important;display:inline-block!important;flex:0 0 52px!important;width:52px!important;height:30px!important;min-width:52px!important;min-height:30px!important;margin:0!important;align-self:center!important;vertical-align:middle!important;line-height:0!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>input[type="checkbox"],.normalized-switch>input[type="checkbox"]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer!important;z-index:2!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>i,.normalized-switch>i{position:absolute!important;inset:0!important;display:block!important;border:1px solid #8293a8!important;border-radius:999px!important;background:#43556d!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.15)!important;transition:.18s ease!important;pointer-events:none!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>i::after,.normalized-switch>i::after{content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(16,35,63,.28)!important;transform:none!important;transition:transform .18s ease!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>input:checked+i,.normalized-switch>input:checked+i{background:#2da44e!important;border-color:#3fb950!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>input:checked+i::after,.normalized-switch>input:checked+i::after{transform:translateX(22px)!important}
:where([data-module-panel^="sh-"],.staff-control-strip) :where(.switch,.mini-switch,.normalized-switch)>input:focus-visible+i,.normalized-switch>input:focus-visible+i{outline:3px solid rgba(47,129,247,.24)!important;outline-offset:2px!important}
:where([data-module-panel^="sh-"]) label.toggle-row{align-items:center!important}.account-page [data-module-panel^="sh-"] label.toggle-row>input[type="checkbox"]{position:absolute!important;opacity:0!important;pointer-events:none!important}.account-page [data-module-panel^="sh-"] label.toggle-row>i{position:relative!important;inset:auto!important;display:block!important;flex:0 0 52px!important;width:52px!important;height:30px!important;min-width:52px!important;min-height:30px!important;margin:0!important;align-self:center!important;border:1px solid #8293a8!important;border-radius:999px!important;background:#43556d!important}.account-page [data-module-panel^="sh-"] label.toggle-row>i::after{content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#fff!important;transform:none!important}.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i{background:#2da44e!important;border-color:#3fb950!important}.account-page [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after{transform:translateX(22px)!important}
[data-module-panel="sh-punishments"] .log-event-grid>label,[data-module-panel="sh-punishments"] .routing-display-item,[data-module-panel="sh-punishments"] .unified-log-head{align-items:center!important}.log-event-grid .normalized-switch,.log-event-grid .mini-switch,.unified-log-master{margin-left:auto!important;align-self:center!important}.unified-log-head>.unified-log-master{position:relative!important;top:auto!important;transform:none!important}

/* Reaction roles: use the available content width; no clipped delete/reorder controls. */
.reaction-role-layout{grid-template-columns:minmax(0,1fr)!important}.reaction-role-editor-column{min-width:0!important}.reaction-role-preview-column{position:static!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,.42fr)!important;gap:14px!important}.reaction-role-column-head,.reaction-role-item-row{grid-template-columns:58px minmax(120px,.62fr) minmax(185px,1fr) minmax(160px,.78fr) 130px!important;gap:10px!important;width:100%!important;align-items:center!important}.reaction-role-item-row{padding:12px!important;overflow:hidden!important}.rr-order-control,.rr-row-actions{align-self:center!important;align-content:center!important}.rr-field{min-width:0!important}.rr-field input{width:100%!important;min-width:0!important}.rr-action-buttons{display:grid!important;grid-template-columns:repeat(3,38px)!important;width:auto!important;gap:5px!important}.rr-row-actions :is(.rr-order-button,.rr-remove){width:38px!important;min-width:38px!important;height:44px!important}.rr-drag-handle{height:44px!important}.rr-reaction-counter{display:none!important}.reaction-role-list-card{overflow:hidden!important}
@media(max-width:980px){.reaction-role-preview-column{grid-template-columns:1fr!important}.reaction-role-column-head{display:none!important}.reaction-role-item-row{grid-template-columns:48px minmax(100px,.62fr) minmax(150px,1fr) minmax(130px,.8fr) 124px!important}.reaction-role-item-row .rr-field>span,.reaction-role-item-row .rr-compact-label{display:block!important}}
@media(max-width:760px){.reaction-role-item-row{grid-template-columns:46px minmax(0,1fr)!important;align-items:end!important}.rr-order-control{grid-column:1!important;grid-row:1/5!important}.reaction-role-item-row .rr-field,.rr-row-actions{grid-column:2!important}.rr-row-actions{justify-items:start!important}.remove-bot-server-card{align-items:flex-start;flex-direction:column}.danger-solid{width:100%}.staff-control-strip{align-items:flex-end;flex-direction:column}.checkout-payment-methods{grid-template-columns:repeat(3,minmax(0,1fr))}.checkout-summary{grid-template-columns:1fr!important}}

/* Custom dropdowns across the entire management page. */
#panel-bot-control .shieldy-custom-select{position:relative!important;width:100%!important;min-width:0!important;z-index:6}#panel-bot-control .shieldy-custom-select.is-open{z-index:120}#panel-bot-control .shieldy-native-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}#panel-bot-control .shieldy-select-trigger{width:100%!important;min-height:48px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 14px!important;border:1px solid var(--account-border)!important;border-radius:12px!important;background:var(--account-surface-soft)!important;color:var(--account-text)!important;font:800 14px Nunito,sans-serif!important;text-align:left!important;cursor:pointer!important}#panel-bot-control .shieldy-select-trigger:hover{border-color:var(--account-accent)!important}#panel-bot-control .shieldy-select-trigger:disabled{opacity:.5;cursor:not-allowed}#panel-bot-control .shieldy-select-menu{position:absolute!important;z-index:200!important;left:0!important;right:0!important;top:calc(100% + 7px)!important;max-height:280px!important;overflow:auto!important;padding:6px!important;border:1px solid var(--account-border)!important;border-radius:12px!important;background:var(--account-surface)!important;box-shadow:0 18px 40px rgba(6,20,40,.28)!important}#panel-bot-control .shieldy-select-option{min-height:42px!important}#panel-bot-control :is(.github-card,.console-card,.field,.log-scope-grid,.log-general-grid){overflow:visible}

/* Monte Carlo crown artwork must remain centered inside its station tile. */
.radio-station .station-logo-img[src*="monte-carlo"]{object-fit:cover!important;object-position:center 45%!important;padding:0!important;background:#06190f!important}

/* Forgot password page aligned with login/register and includes captcha. */
.auth-page-v136 .forgot-password-wrap{min-height:560px}.forgot-password-card{max-width:600px!important}.forgot-password-icon{width:58px;height:58px;margin:0 auto 14px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#e2f5ff,#dceaff);color:#1477d4;font-size:30px;font-weight:900}.forgot-password-card .primary{width:100%;min-height:52px}.forgot-password-card .turnstile-auth-wrap{margin:14px 0}.forgot-password-card .links{text-align:center;margin-top:18px}

/* v136.1: override legacy !important switch dimensions with one final geometry. */
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.switch,.mini-switch,.normalized-switch),
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>i,
body .account-page .staff-control-strip .normalized-switch{
  position:relative!important;display:inline-block!important;flex:0 0 52px!important;
  width:52px!important;height:30px!important;min-width:52px!important;min-height:30px!important;
  margin:0!important;align-self:center!important;vertical-align:middle!important;line-height:0!important;
}
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.switch,.mini-switch,.normalized-switch)>i::after,
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>i::after,
body .account-page .staff-control-strip .normalized-switch>i::after{
  top:2px!important;left:2px!important;width:24px!important;height:24px!important;transform:none!important;
}
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.switch,.mini-switch,.normalized-switch)>input:checked+i::after,
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after,
body .account-page .staff-control-strip .normalized-switch>input:checked+i::after{
  transform:translateX(22px)!important;
}


/* v137: account subscription management */
.account-subscription-menu button{display:flex!important;align-items:center!important;gap:10px!important}.account-menu-symbol{display:inline-grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border:1px solid var(--account-border,var(--gh-border));border-radius:8px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-accent,var(--gh-blue));font-size:13px;font-weight:1000}.account-subscription-menu button[data-panel="promocode"] .account-menu-symbol{color:#9a6700;background:#fff8c5;border-color:#d4a72c}html[data-theme="dark"] .account-subscription-menu button[data-panel="promocode"] .account-menu-symbol{color:#f2cc60;background:rgba(210,153,34,.13);border-color:#9e6a03}
.subscription-overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:16px;margin-bottom:16px}.subscription-status-card,.subscription-actions-card,.subscription-history-card,.promocode-card,.promocode-info-card{border-radius:16px!important;background:var(--account-surface,var(--gh-card))!important;border-color:var(--account-border,var(--gh-border))!important}.subscription-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.subscription-card-heading h2{margin:11px 0 0;font-size:24px}.subscription-logo{width:50px;height:50px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#fff8c5,#f2cc60);color:#7d4e00;font-size:24px;font-weight:1000;box-shadow:0 8px 20px rgba(210,153,34,.18)}.premium-badge.is-inactive{background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));border:1px solid var(--account-border,var(--gh-border))}.subscription-status-card>p{margin:14px 0;color:var(--account-muted,var(--gh-muted));line-height:1.55}.subscription-details{margin:0 0 18px;display:grid;gap:0;border-top:1px solid var(--account-border,var(--gh-border));border-bottom:1px solid var(--account-border,var(--gh-border))}.subscription-details div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--account-border,var(--gh-border))}.subscription-details div:last-child{border-bottom:0}.subscription-details dt{color:var(--account-muted,var(--gh-muted));font-weight:700}.subscription-details dd{margin:0;text-align:right;font-weight:900}.subscription-main-action{width:100%;min-height:46px}.subscription-actions-card .card-title p,.subscription-history-card .card-title p,.promocode-card .card-title p,.promocode-info-card .card-title p{margin:4px 0 0;color:var(--account-muted,var(--gh-muted));font-size:14px}.subscription-upgrade-control{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.subscription-upgrade-control>label{grid-column:1/-1;font-weight:900}.subscription-select-wrap{position:relative}.subscription-select-wrap:after{content:"";position:absolute;right:15px;top:50%;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-68%) rotate(45deg);pointer-events:none;color:var(--account-muted,var(--gh-muted))}.subscription-select-wrap select{appearance:none;-webkit-appearance:none;width:100%;min-height:46px;padding:10px 42px 10px 13px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-text,var(--theme-text));font:800 15px Nunito,sans-serif;outline:none}.subscription-select-wrap select:focus{border-color:var(--account-accent,var(--gh-blue));box-shadow:0 0 0 3px rgba(47,129,247,.14)}.subscription-upgrade-control>.primary-link{min-height:46px;white-space:nowrap}.subscription-divider{height:1px;background:var(--account-border,var(--gh-border));margin:20px 0}.subscription-cancel-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.subscription-cancel-row>div{display:grid;gap:4px}.subscription-cancel-row>div span{color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.4}.subscription-cancel-button{min-height:42px;padding:9px 14px;border:1px solid #cf222e;border-radius:9px;background:transparent;color:#cf222e;font:900 14px Nunito,sans-serif;cursor:pointer;white-space:nowrap}.subscription-cancel-button:hover:not(:disabled){background:#ffebe9}.subscription-cancel-button:disabled{cursor:not-allowed;opacity:.55}.history-counter{min-width:32px;height:32px;padding:0 9px;border-radius:999px;display:grid;place-items:center;background:var(--account-surface-soft,var(--gh-subtle));border:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));font-weight:900}.subscription-history-list{display:grid;margin-top:14px}.subscription-history-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--account-border,var(--gh-border))}.subscription-history-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--account-surface-soft,var(--gh-subtle));border:1px solid var(--account-border,var(--gh-border));font-weight:1000}.subscription-history-item.is-success .subscription-history-icon{background:#dafbe1;border-color:#82e596;color:#116329}.subscription-history-item.is-pending .subscription-history-icon{background:#fff8c5;border-color:#d4a72c;color:#7d4e00}.subscription-history-item.is-danger .subscription-history-icon{background:#ffebe9;border-color:#ff8182;color:#cf222e}.subscription-history-item>div{display:grid;gap:3px;min-width:0}.subscription-history-item>div span{color:var(--account-muted,var(--gh-muted));font-size:13px}.subscription-history-item time{color:var(--account-muted,var(--gh-muted));font-size:12px;white-space:nowrap}.subscription-history-empty{display:flex;align-items:center;gap:14px;margin-top:14px;padding:20px;border:1px dashed var(--account-border,var(--gh-border));border-radius:13px;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-history-empty>span{font-size:28px;color:var(--account-muted,var(--gh-muted))}.subscription-history-empty div{display:grid;gap:4px}.subscription-history-empty p{margin:0;color:var(--account-muted,var(--gh-muted))}
.promocode-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:16px}.promocode-card{position:relative;overflow:hidden}.promocode-icon{position:absolute;right:18px;top:18px;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#fff8c5;border:1px solid #d4a72c;color:#7d4e00;font-size:22px;font-weight:1000}.promocode-form{display:grid;gap:9px;margin-top:18px}.promocode-form>label{font-weight:900}.promocode-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.promocode-input-row input{min-height:46px;padding:10px 13px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-text,var(--theme-text));font:900 15px Nunito,sans-serif;text-transform:uppercase;letter-spacing:.04em;outline:none}.promocode-input-row input:focus{border-color:var(--account-accent,var(--gh-blue));box-shadow:0 0 0 3px rgba(47,129,247,.14)}.promocode-form small{color:var(--account-muted,var(--gh-muted));line-height:1.45}.active-promocode-badge{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:16px;border:1px solid #82e596;border-radius:13px;background:#dafbe1;color:#116329}.active-promocode-badge span{font-weight:900;letter-spacing:.04em}.active-promocode-badge strong{font-size:20px}.promocode-info-card>p{color:var(--account-muted,var(--gh-muted))}.promocode-empty{display:grid;place-items:center;text-align:center;gap:8px;margin-top:18px;padding:26px 18px;border:1px dashed var(--account-border,var(--gh-border));border-radius:13px;background:var(--account-surface-soft,var(--gh-subtle))}.promocode-empty>span{font-size:30px;color:var(--account-muted,var(--gh-muted))}.promocode-empty p{margin:0;color:var(--account-muted,var(--gh-muted));font-size:13px}html[data-theme="dark"] .subscription-logo{background:rgba(210,153,34,.16);color:#f2cc60;box-shadow:none}html[data-theme="dark"] .subscription-cancel-button{color:#ff8f9b;border-color:#f85149}html[data-theme="dark"] .subscription-cancel-button:hover:not(:disabled){background:rgba(248,81,73,.12)}html[data-theme="dark"] .promocode-icon{background:rgba(210,153,34,.13);border-color:#9e6a03;color:#f2cc60}html[data-theme="dark"] .active-promocode-badge{background:rgba(46,160,67,.13);border-color:#238636;color:#7ee787}
@media(max-width:900px){.subscription-overview-grid,.promocode-layout{grid-template-columns:1fr}}@media(max-width:620px){.subscription-upgrade-control,.promocode-input-row{grid-template-columns:1fr}.subscription-upgrade-control>.primary-link,.promocode-input-row .primary{width:100%}.subscription-cancel-row{align-items:flex-start;flex-direction:column}.subscription-cancel-row form,.subscription-cancel-button{width:100%}.subscription-history-item{grid-template-columns:auto minmax(0,1fr)}.subscription-history-item time{grid-column:2}.promocode-icon{position:static;margin-left:auto;margin-bottom:10px}}


/* ===== v138: final UI consistency pass ===== */
/* 1. Destructive server action: readable in both themes, including disabled state. */
.remove-bot-server-card{
  border-width:1px!important;
  background:#fff1f0!important;
  color:#60151c!important;
}
.remove-bot-server-card>div{min-width:0!important}
.remove-bot-server-card strong{color:#a40e26!important;font-size:16px!important}
.remove-bot-server-card small{color:#7a2630!important;font-weight:750!important;opacity:1!important}
.remove-bot-server-card .danger-solid:disabled{background:#d96b73!important;border-color:#c94f5a!important;color:#fff!important;opacity:.72!important}
html[data-theme="dark"] .remove-bot-server-card{
  background:rgba(248,81,73,.14)!important;
  border-color:#f85149!important;
  color:#ffd8dc!important;
}
html[data-theme="dark"] .remove-bot-server-card strong{color:#ff9ca7!important}
html[data-theme="dark"] .remove-bot-server-card small{color:#f4bdc3!important}

/* 2. Each bot has a clearly coloured navigation frame and active item outline. */
#panel-bot-control[data-active-bot="tunetune"]{
  --bot-nav-accent:#2f81f7;
  --bot-nav-soft:rgba(47,129,247,.15);
}
#panel-bot-control[data-active-bot="shieldy"]{
  --bot-nav-accent:#2da44e;
  --bot-nav-soft:rgba(45,164,78,.15);
}
#panel-bot-control[data-active-bot="gamey"]{
  --bot-nav-accent:#ff4f91;
  --bot-nav-soft:rgba(255,79,145,.15);
}
#panel-bot-control .bot-module-sidebar{
  border:2px solid color-mix(in srgb,var(--bot-nav-accent) 62%,var(--account-border))!important;
  box-shadow:0 0 0 3px var(--bot-nav-soft),var(--account-shadow)!important;
}
#panel-bot-control .bot-module-menu button.is-active{
  border:2px solid var(--bot-nav-accent)!important;
  box-shadow:inset 4px 0 0 var(--bot-nav-accent),0 0 0 2px var(--bot-nav-soft)!important;
}
#panel-bot-control[data-active-bot="tunetune"] .bot-module-menu[data-bot-menu="tunetune"] button.is-active{
  background:rgba(47,129,247,.13)!important;color:#2f81f7!important;
}
html[data-theme="dark"] #panel-bot-control[data-active-bot="tunetune"] .bot-module-menu[data-bot-menu="tunetune"] button.is-active{
  background:rgba(47,129,247,.18)!important;color:#79b8ff!important;
}

/* 3. Equalizer curve and points finish cleanly without being clipped at the SVG edge. */
.equalizer-chart svg{overflow:visible!important}
.equalizer-chart :is(#eq-curve,#eq-curve-shadow){stroke-linecap:round!important;stroke-linejoin:round!important}
.equalizer-chart #eq-points circle{vector-effect:non-scaling-stroke}

/* 4. One switch geometry everywhere in the bot management page. */
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch){
  position:relative!important;display:inline-flex!important;flex:0 0 52px!important;
  width:52px!important;height:30px!important;min-width:52px!important;min-height:30px!important;
  margin:0!important;align-self:center!important;vertical-align:middle!important;line-height:0!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;z-index:3!important;width:100%!important;height:100%!important;
  margin:0!important;opacity:0!important;cursor:pointer!important;pointer-events:auto!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>i{
  position:absolute!important;inset:0!important;display:block!important;border:1px solid #71839b!important;
  border-radius:999px!important;background:#43556d!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.18)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;pointer-events:none!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>i::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(16,35,63,.30)!important;
  transform:none!important;transition:transform .18s ease!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>input:checked+i{
  background:#2da44e!important;border-color:#3fb950!important;box-shadow:0 0 0 3px rgba(45,164,78,.13)!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>input:checked+i::after{
  transform:translateX(22px)!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.26)!important;outline-offset:2px!important;
}
#panel-bot-control :is(.switch,.mini-switch,.normalized-switch,.equalizer-switch,.tt-route-switch)>input:disabled+i{
  opacity:.42!important;filter:saturate(.55)!important;
}
/* Direct toggle-row markup receives exactly the same track. */
#panel-bot-control label.toggle-row{align-items:center!important}
#panel-bot-control label.toggle-row>input[type="checkbox"]{
  position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;
  width:52px!important;height:30px!important;margin:0!important;opacity:0!important;z-index:3!important;cursor:pointer!important;
}
#panel-bot-control label.toggle-row>i{
  position:relative!important;inset:auto!important;display:block!important;flex:0 0 52px!important;width:52px!important;height:30px!important;
  min-width:52px!important;min-height:30px!important;margin:0!important;align-self:center!important;border:1px solid #71839b!important;
  border-radius:999px!important;background:#43556d!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.18)!important;
}
#panel-bot-control label.toggle-row>i::after{
  content:""!important;position:absolute!important;top:2px!important;left:2px!important;width:24px!important;height:24px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(16,35,63,.30)!important;transform:none!important;transition:transform .18s ease!important;
}
#panel-bot-control label.toggle-row>input:checked+i{background:#2da44e!important;border-color:#3fb950!important}
#panel-bot-control label.toggle-row>input:checked+i::after{transform:translateX(22px)!important}
/* Align switch columns in cards and log grids to their exact vertical centre. */
#panel-bot-control :is(.inline-toggles>label,.toggle-row,.routing-switch-row,.routing-event-item,.routing-display-item,.log-event-grid>label,.unified-log-head,.automod-rule-head,.welcome-section-head){align-items:center!important}
#panel-bot-control :is(.inline-toggles>label,.log-event-grid>label,.routing-event-item,.routing-display-item){min-height:64px!important}

/* 5. Reaction-role rows: labels stay above controls and every row keeps one stable height. */
.reaction-role-column-head{display:none!important}
.reaction-role-items{display:grid!important;gap:12px!important}
.reaction-role-item-row,
.reaction-role-item-row.is-layout-stable{
  display:grid!important;
  grid-template-columns:82px minmax(132px,.68fr) minmax(190px,1fr) minmax(160px,.78fr) 150px!important;
  gap:12px!important;align-items:end!important;min-height:112px!important;padding:14px!important;
  overflow:visible!important;contain:layout style!important;
}
.reaction-role-item-row .rr-field{
  display:grid!important;grid-template-rows:18px 54px!important;gap:7px!important;align-content:end!important;min-width:0!important;margin:0!important;
}
.reaction-role-item-row .rr-field>span,
.reaction-role-item-row .rr-compact-label{
  display:block!important;height:18px!important;margin:0!important;color:var(--account-muted)!important;
  font-size:11px!important;font-weight:900!important;line-height:18px!important;white-space:nowrap!important;
}
.reaction-role-item-row .rr-field input{
  display:block!important;width:100%!important;min-width:0!important;height:54px!important;min-height:54px!important;margin:0!important;padding:0 14px!important;
}
.reaction-role-item-row .rr-order-control,
.reaction-role-item-row .rr-row-actions{
  display:grid!important;grid-template-rows:18px 54px!important;gap:7px!important;align-content:end!important;align-self:end!important;min-width:0!important;
}
.reaction-role-item-row .rr-order-buttons,
.reaction-role-item-row .rr-action-buttons{
  display:flex!important;align-items:center!important;height:54px!important;min-height:54px!important;gap:6px!important;margin:0!important;
}
.reaction-role-item-row .rr-order-buttons{justify-content:flex-start!important}
.reaction-role-item-row .rr-action-buttons{justify-content:flex-end!important;width:100%!important}
.reaction-role-item-row :is(.rr-drag-handle,.rr-order-button,.rr-remove){height:46px!important;min-height:46px!important;margin:0!important;align-self:center!important}
.reaction-role-item-row .rr-drag-handle{width:42px!important;min-width:42px!important}
.reaction-role-item-row :is(.rr-order-button,.rr-remove){width:42px!important;min-width:42px!important}
.reaction-role-item-row .rr-order{flex:0 0 28px!important;width:28px!important;height:28px!important;margin:0!important;display:grid!important;place-items:center!important}
.reaction-role-item-row.is-dragging{opacity:.72!important;transform:none!important}
@media(max-width:1120px){
  .reaction-role-item-row,.reaction-role-item-row.is-layout-stable{
    grid-template-columns:76px minmax(124px,.62fr) minmax(160px,1fr) minmax(140px,.8fr) 142px!important;
  }
}
@media(max-width:820px){
  .reaction-role-item-row,.reaction-role-item-row.is-layout-stable{
    grid-template-columns:72px minmax(0,1fr)!important;min-height:0!important;align-items:end!important;
  }
  .reaction-role-item-row .rr-order-control{grid-column:1!important;grid-row:1/4!important;align-self:stretch!important;grid-template-rows:18px 54px!important}
  .reaction-role-item-row .rr-field,.reaction-role-item-row .rr-row-actions{grid-column:2!important}
  .reaction-role-item-row .rr-action-buttons{justify-content:flex-start!important}
}

/* 6. Staff bar: one role label only; developer Premium state is explicit but not duplicated. */
.staff-premium-access{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #d4a72c;border-radius:999px;background:#fff8c5;color:#7d4e00;font-size:12px;font-weight:950;white-space:nowrap}
html[data-theme="dark"] .staff-premium-access{background:rgba(210,153,34,.13);border-color:#9e6a03;color:#f2cc60}
.bot-control-heading .management-role-badge{display:none!important}


/* v139: explicit per-bot subscription notices */
.separate-bot-subscription-notice,.bot-premium-separate-note{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:start;gap:12px;border-color:#d4a72c!important;background:#fffdf1!important}.separate-bot-subscription-icon,.bot-premium-separate-note>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#d4a72c;color:#fff;font-weight:1000}.separate-bot-subscription-notice>div,.bot-premium-separate-note>div{display:grid;gap:4px}.separate-bot-subscription-notice p,.bot-premium-separate-note p{margin:0;color:#6f5a15;line-height:1.5;font-size:13px}.bot-premium-separate-note{margin-bottom:14px}.bot-premium-separate-note strong{font-size:15px}html[data-theme="dark"] .separate-bot-subscription-notice,html[data-theme="dark"] .bot-premium-separate-note{background:#2b240d!important;border-color:#806000!important}html[data-theme="dark"] .separate-bot-subscription-notice p,html[data-theme="dark"] .bot-premium-separate-note p{color:#e8d68a}
@media(max-width:620px){.separate-bot-subscription-notice,.bot-premium-separate-note{grid-template-columns:32px minmax(0,1fr);padding:14px!important}.separate-bot-subscription-icon,.bot-premium-separate-note>span{width:30px;height:30px}}


/* ===== v140 Shieldy deep editor, staff access and layout pass ===== */
/* Every helper/advice line is visually above its control without changing HTML structure. */
#panel-bot-control .field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important}
#panel-bot-control .field>label{order:1!important;margin:0!important}
#panel-bot-control .field>small{order:2!important;margin:0 0 2px!important;line-height:1.45!important;color:var(--account-muted)!important}
#panel-bot-control .field>:not(label):not(small){order:3!important}
#panel-bot-control .field>.shieldy-custom-select{order:3!important}
.profile-details-heading{margin-top:28px!important}.profile-details-heading h2{margin:0 0 6px;font-size:24px}.account-profile-details{margin-top:24px;padding-top:4px;border-top:1px solid var(--account-border)}
.hidden-features-inline,.staff-hidden-access{display:inline-flex;align-items:center;width:max-content;border:1px solid #3fb950;border-radius:999px;background:#dafbe1;color:#116329;font-style:normal;font-size:12px;font-weight:950;padding:5px 9px}.hidden-features-inline{margin-top:4px}html[data-theme="dark"] .hidden-features-inline,html[data-theme="dark"] .staff-hidden-access{background:rgba(46,160,67,.15);border-color:#3fb950;color:#7ee787}
.bot-switch-button.is-closed,.bot-switch-button:disabled{opacity:.55;cursor:not-allowed!important;filter:saturate(.55)}.bot-switch-button small{display:block;font-size:10px;color:var(--account-muted);margin-top:2px}.bot-card.is-closed-bot{border-style:dashed!important;opacity:.82}.closed-bot-alert{margin:0 0 14px!important}
.reaction-role-management-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px}.reaction-role-management-card>div:first-child{display:grid;gap:4px}.reaction-role-management-card small{color:var(--account-muted);line-height:1.45}.reaction-role-management-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
/* Stable reaction rows and a perfectly centred reaction field. */
.reaction-role-item-row,.reaction-role-item-row.is-layout-stable{grid-template-columns:86px minmax(138px,.62fr) minmax(205px,1fr) minmax(170px,.78fr) 150px!important;align-items:end!important;min-height:116px!important}
.reaction-role-item-row .rr-reaction-field input{text-align:center!important;font-size:22px!important;line-height:1!important;padding:0 12px!important}
.reaction-role-item-row .rr-order-buttons{justify-content:center!important}.reaction-role-item-row .rr-action-buttons{justify-content:center!important}
.reaction-role-item-row .rr-order-control,.reaction-role-item-row .rr-row-actions,.reaction-role-item-row .rr-field{grid-template-rows:20px 54px!important;gap:8px!important}
.reaction-role-item-row .rr-compact-label,.reaction-role-item-row .rr-field>span{height:20px!important;line-height:20px!important}
/* Custom preview exists independently from the editor and can always be restored. */
.custom-preview-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}.custom-message-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(330px,.42fr)!important;gap:18px!important;align-items:start}.custom-message-layout.is-preview-collapsed{grid-template-columns:minmax(0,1fr)!important}.custom-message-layout.is-preview-collapsed .custom-message-preview-column{display:none!important}.custom-message-preview-column{position:sticky;top:18px;min-width:0;max-height:calc(100vh - 38px);overflow:auto}.custom-message-preview-column .card-title{align-items:flex-start}.custom-message-preview-column .card-title p{margin:3px 0 0;color:var(--account-muted);font-size:12px}.custom-message-preview-body{display:grid;gap:14px}.custom-preview-sequence{display:grid;gap:14px}.custom-preview-message{display:grid;gap:7px}.custom-preview-message-number{font-size:11px;font-weight:900;color:var(--account-muted);text-transform:uppercase;letter-spacing:.05em}.custom-message-embed-preview{border-left:4px solid var(--cm-accent,#2f81f7);border-radius:10px;background:var(--account-surface-soft);padding:14px;overflow:hidden}.custom-preview-blocks{display:grid;gap:12px;min-width:0}.custom-preview-composite-embed{display:grid;gap:7px}.custom-preview-composite-embed h4,.custom-preview-composite-embed p,.custom-preview-composite-embed small{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.custom-preview-composite-embed p,.custom-preview-button-message p,.custom-preview-banner-text{line-height:1.5}.custom-preview-footer{color:var(--account-muted)}
/* Banner library and repeated loading. */
.custom-banner-library.is-collapsed>:not(.custom-banner-library-head){display:none!important}.custom-banner-library-actions{gap:8px!important}.custom-banner-presets button img{object-fit:cover!important}.custom-banner-presets button>span{display:flex!important;justify-content:space-between!important;gap:8px!important;min-width:0}.custom-banner-presets button>span b{flex:0 0 auto}.custom-banner-more{width:100%!important}
/* Banner overlay editor: text is laid over the image, not baked into source banners. */
.cm-block-banner-preview,.custom-preview-banner-visual{position:relative!important;overflow:hidden!important;border-radius:12px!important}.cm-block-banner-preview{min-height:150px;background-size:cover;background-position:center}.cm-block-banner-preview::after,.custom-preview-banner-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.28));pointer-events:none}.cm-block-banner-preview-overlay,.custom-preview-banner-overlay{position:absolute;z-index:2;inset:12px;display:flex;align-items:center;justify-content:center;white-space:pre-wrap;overflow-wrap:anywhere;text-shadow:0 2px 8px rgba(0,0,0,.75);line-height:1.08}.cm-block-banner-preview-overlay{text-align:center}.custom-preview-banner-visual img{display:block;width:100%;aspect-ratio:10/3;object-fit:cover}.banner-overlay-editor{display:grid;gap:12px;padding:13px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft)}.banner-overlay-editor>label{display:grid;gap:6px;font-weight:900}.banner-overlay-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}.banner-overlay-controls>label{display:grid;gap:5px;min-width:0;color:var(--account-muted);font-size:11px;font-weight:900}.banner-overlay-controls :is(input,select){width:100%;min-height:42px;border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface);color:var(--account-text);padding:8px;font:inherit}.banner-overlay-controls input[type="color"]{padding:4px}.banner-overlay-controls .banner-overlay-check{display:flex;align-items:center;gap:7px;min-height:42px;padding:8px 10px;border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface)}.banner-overlay-check input{width:18px!important;min-height:18px!important;margin:0}.custom-block-fields{display:grid!important;gap:12px!important}.custom-block-fields :is(input,textarea,select){min-width:0}.custom-block-row .custom-block-head strong{min-width:0;overflow-wrap:anywhere}.custom-block-row textarea{line-height:1.5!important}
@media(max-width:1180px){.custom-message-layout{grid-template-columns:1fr!important}.custom-message-preview-column{position:static;max-height:none}.banner-overlay-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.reaction-role-item-row,.reaction-role-item-row.is-layout-stable{grid-template-columns:78px 140px minmax(180px,1fr) 160px 145px!important}}
@media(max-width:820px){.reaction-role-management-card{align-items:stretch;flex-direction:column}.reaction-role-management-actions>*{flex:1 1 auto}.reaction-role-item-row,.reaction-role-item-row.is-layout-stable{grid-template-columns:72px minmax(0,1fr)!important}.banner-overlay-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.custom-preview-toolbar button{width:100%}}
@media(max-width:520px){.banner-overlay-controls{grid-template-columns:1fr}.reaction-role-management-actions{display:grid}.custom-message-preview-column{padding:14px!important}}


/* ===== v140.1 final alignment and helper-order audit ===== */
/* Advice is always read before the related control. Direct-child ordering keeps markup and APIs intact. */
#panel-bot-control .control-context-field{display:flex!important;flex-direction:column!important;gap:7px!important}
#panel-bot-control .control-context-field>label{order:1!important}
#panel-bot-control .control-context-field>small{order:2!important;margin:0 0 2px!important;line-height:1.45!important}
#panel-bot-control .control-context-field>.shieldy-custom-select,
#panel-bot-control .control-context-field>select{order:3!important}
#panel-bot-control .bot-prefix-card{display:flex!important;flex-direction:column!important}
#panel-bot-control .bot-prefix-card>.card-title{order:1!important}
#panel-bot-control .bot-prefix-card>small{order:2!important;margin:0 0 10px!important;line-height:1.45!important}
#panel-bot-control .bot-prefix-card>.prefix-control-row{order:3!important}
#panel-bot-control .music-search-card{display:flex!important;flex-direction:column!important}
#panel-bot-control .music-search-card>.card-title{order:1!important}
#panel-bot-control .music-search-card>.music-field-note{order:2!important;margin:0 0 10px!important;line-height:1.45!important}
#panel-bot-control .music-search-card>.music-search-row{order:3!important}
#panel-bot-control .equalizer-preamp{display:flex!important;flex-direction:column!important}
#panel-bot-control .equalizer-preamp>div{order:1!important}
#panel-bot-control .equalizer-preamp>small{order:2!important;margin:0 0 8px!important;line-height:1.45!important}
#panel-bot-control .equalizer-preamp>input{order:3!important}
#panel-bot-control .favorites-playlist-create{display:flex!important;flex-direction:column!important}
#panel-bot-control .favorites-playlist-create>label{order:1!important}
#panel-bot-control .favorites-playlist-create>small{order:2!important;margin:0 0 7px!important;line-height:1.45!important}
#panel-bot-control .favorites-playlist-create>div{order:3!important}
.promocode-form{display:flex!important;flex-direction:column!important}
.promocode-form>label{order:1!important}.promocode-form>small{order:2!important;margin:0 0 8px!important;line-height:1.45!important}.promocode-form>.promocode-input-row{order:3!important}

/* Reaction-role rows: one baseline, one control height, no jumping emoji field. */
.reaction-role-item-row,.reaction-role-item-row.is-layout-stable{
  align-items:start!important;min-height:108px!important;padding:14px!important;gap:12px!important;
}
.reaction-role-item-row .rr-field,
.reaction-role-item-row .rr-order-control,
.reaction-role-item-row .rr-row-actions{
  display:grid!important;grid-template-rows:18px 54px!important;gap:8px!important;align-content:start!important;align-self:start!important;min-width:0!important;margin:0!important;
}
.reaction-role-item-row .rr-field>span,
.reaction-role-item-row .rr-compact-label{
  display:block!important;height:18px!important;min-height:18px!important;line-height:18px!important;margin:0!important;padding:0!important;white-space:nowrap!important;
}
.reaction-role-item-row .rr-field input{
  display:block!important;width:100%!important;height:54px!important;min-height:54px!important;margin:0!important;padding:0 16px!important;line-height:54px!important;transform:none!important;
}
.reaction-role-item-row .rr-reaction-field input{
  text-align:center!important;font-size:22px!important;line-height:54px!important;font-family:"Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
}
.reaction-role-item-row .rr-order-buttons,
.reaction-role-item-row .rr-action-buttons{height:54px!important;min-height:54px!important;align-items:center!important;margin:0!important}
.reaction-role-item-row :is(.rr-drag-handle,.rr-order-button,.rr-remove){height:46px!important;min-height:46px!important;align-self:center!important}
.reaction-role-item-row .rr-order{align-self:center!important}

/* Custom cards: stable heading columns and readable multiline text. */
.custom-block-row .custom-block-head{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;min-height:58px!important}
.custom-block-row .custom-block-head>strong{text-align:left!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important}
.custom-block-row .custom-block-head>div{display:flex!important;align-items:center!important;gap:8px!important;justify-self:end!important}
.custom-block-row .custom-block-fields{min-width:0!important}
.custom-block-row .custom-block-fields :is(input,textarea,select){font-size:15px!important;line-height:1.45!important}
.custom-block-row .custom-block-fields textarea{padding-top:13px!important;padding-bottom:13px!important;overflow:hidden!important;resize:none!important}
.custom-preview-button-message p,.custom-preview-plain-text,.custom-preview-field span,.custom-preview-banner-text{margin:0!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.5!important}

/* Keep the hidden preview command visible even when the preview column itself is collapsed. */
.custom-message-layout.is-preview-collapsed~* #custom-preview-side-toggle,
#custom-preview-side-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important}

@media(max-width:820px){
  .reaction-role-item-row,.reaction-role-item-row.is-layout-stable{grid-template-columns:68px minmax(0,1fr)!important;padding:12px!important}
  .reaction-role-item-row .rr-order-control{grid-column:1!important;grid-row:1/4!important}
  .reaction-role-item-row .rr-field,.reaction-role-item-row .rr-row-actions{grid-column:2!important}
  .reaction-role-item-row .rr-action-buttons{justify-content:flex-start!important}
}


/* v141: генерация ключей доступна только Premium-аккаунтам */
.quick-link-box.is-premium-locked{border-color:#d4a72c;background:color-mix(in srgb,#fff7d6 42%,var(--account-surface));}
.quick-link-box.is-premium-locked>div:first-child{opacity:.82}
.quick-link-box.is-premium-locked #generate-link-key:disabled{cursor:not-allowed;opacity:.72;filter:saturate(.45);box-shadow:none;transform:none}
html[data-theme="dark"] .quick-link-box.is-premium-locked{border-color:#9e6a03;background:rgba(210,153,34,.08)}


/* ===== v142: timer alignment, unified control typography, rotating banner gallery ===== */
#panel-bot-control .custom-delivery-panel{overflow:hidden!important}
#panel-bot-control .custom-delivery-grid{
  display:grid!important;
  gap:16px!important;
  align-items:stretch!important;
  margin:0!important;
}
#panel-bot-control .custom-delivery-grid.three-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#panel-bot-control .custom-delivery-grid.two-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#panel-bot-control .custom-delivery-field{
  display:grid!important;
  grid-template-rows:minmax(48px,auto) minmax(42px,auto) 58px!important;
  align-content:start!important;
  min-width:0!important;
  margin:0!important;
  gap:0!important;
}
#panel-bot-control .custom-delivery-field>label{
  display:flex!important;
  align-items:flex-end!important;
  min-height:48px!important;
  margin:0 0 8px!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
#panel-bot-control .custom-delivery-field>.field-hint{
  display:block!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 0 8px!important;
  color:var(--account-muted)!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
#panel-bot-control .custom-delivery-field>.field-hint.is-placeholder{visibility:hidden!important}
#panel-bot-control .custom-delivery-field>:is(input,select,textarea){
  align-self:end!important;
  width:100%!important;
  min-width:0!important;
  height:58px!important;
  min-height:58px!important;
  margin:0!important;
  padding:0 16px!important;
  line-height:1.35!important;
  box-sizing:border-box!important;
}
#panel-bot-control .custom-delivery-field>textarea{padding-top:16px!important;padding-bottom:16px!important;resize:none!important;overflow:hidden!important}

/* Keep labels, helper text and values on a consistent baseline across every bot panel. */
#panel-bot-control .bot-module-panel .field{min-width:0!important}
#panel-bot-control .bot-module-panel .field>label{
  display:block!important;
  margin-top:0!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
#panel-bot-control .bot-module-panel .field>small{
  line-height:1.4!important;
  overflow-wrap:anywhere!important;
}
#panel-bot-control .bot-module-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea){
  box-sizing:border-box!important;
  vertical-align:middle!important;
  text-align:left!important;
}
#panel-bot-control .bot-module-panel :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select){
  min-height:54px!important;
  line-height:1.3!important;
}
#panel-bot-control .bot-module-panel textarea{line-height:1.45!important}
#panel-bot-control .custom-block-fields :is(input,select,textarea){width:100%!important;min-width:0!important}
#panel-bot-control .custom-block-fields input:not([type="color"]){line-height:1.3!important}

/* Banner text editor. */
.banner-overlay-editor-head{display:grid;gap:3px}
.banner-overlay-editor-head strong{font-size:14px;line-height:1.3}
.banner-overlay-editor-head small{color:var(--account-muted);font-size:12px;line-height:1.4}
.banner-overlay-controls{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.cm-block-banner-preview-overlay[data-effect="none"],.custom-preview-banner-overlay[data-effect="none"]{text-shadow:none!important;background:transparent!important;-webkit-text-stroke:0 transparent!important}
.cm-block-banner-preview-overlay[data-effect="shadow"],.custom-preview-banner-overlay[data-effect="shadow"]{text-shadow:0 3px 12px rgba(0,0,0,.9)!important;background:transparent!important;-webkit-text-stroke:0 transparent!important}
.cm-block-banner-preview-overlay[data-effect="outline"],.custom-preview-banner-overlay[data-effect="outline"]{text-shadow:0 2px 7px rgba(0,0,0,.7)!important;-webkit-text-stroke:1px rgba(0,0,0,.85)!important;background:transparent!important}
.cm-block-banner-preview-overlay[data-effect="plate"],.custom-preview-banner-overlay[data-effect="plate"]{text-shadow:0 2px 5px rgba(0,0,0,.55)!important;background:rgba(0,0,0,.46)!important;border-radius:10px!important;padding:8px 14px!important;inset:auto 16px 16px!important;min-height:44px!important}
.custom-banner-presets{align-items:stretch!important}
.custom-banner-presets button{display:grid!important;grid-template-rows:auto 42px!important;min-width:0!important;overflow:hidden!important}
.custom-banner-presets button img{width:100%!important;height:auto!important;display:block!important}
.custom-banner-presets button>span{align-items:center!important;min-height:42px!important;padding:8px 11px!important;line-height:1.25!important}
.custom-banner-more{display:flex!important;align-items:center!important;justify-content:center!important}

@media(max-width:980px){
  #panel-bot-control .custom-delivery-grid.three-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .banner-overlay-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:680px){
  #panel-bot-control .custom-delivery-grid.three-fields,
  #panel-bot-control .custom-delivery-grid.two-fields{grid-template-columns:1fr!important}
  #panel-bot-control .custom-delivery-field{grid-template-rows:auto auto 56px!important}
  #panel-bot-control .custom-delivery-field>label{min-height:0!important;align-items:flex-start!important}
  #panel-bot-control .custom-delivery-field>.field-hint{min-height:0!important}
  #panel-bot-control .custom-delivery-field>.field-hint.is-placeholder{display:none!important}
  .banner-overlay-controls{grid-template-columns:1fr!important}
}

/* v143 — constructor block picker: two wide cards per row. */
.custom-message-module .custom-element-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
.custom-message-module .custom-element-card{
  width:100%!important;
  min-width:0!important;
  min-height:210px!important;
  grid-template-rows:auto 92px 1fr!important;
  align-content:start!important;
  overflow:hidden!important;
}
.custom-message-module .custom-element-card-title{
  min-width:0!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.custom-message-module .custom-element-card-preview{
  width:100%!important;
  min-width:0!important;
}
.custom-message-module .custom-element-card>small{
  min-width:0!important;
  align-self:start!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:720px){
  .custom-message-module .custom-element-grid{
    grid-template-columns:1fr!important;
  }
  .custom-message-module .custom-element-card{
    min-height:190px!important;
  }
}

/* v149: session, security and dialog reliability */
[hidden]{display:none!important}
body.has-modal-open{overflow:hidden}
.account-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;position:relative;z-index:20}
.account-alert>span{min-width:0;overflow-wrap:anywhere}
.account-alert [data-alert-close]{border:0;background:transparent;color:inherit;font:900 22px/1 Nunito,sans-serif;cursor:pointer;flex:0 0 auto}
.service-action.is-disabled,.service-action:disabled{opacity:.65;cursor:not-allowed;transform:none!important}
.linked-service-row.is-unlinked{background:color-mix(in srgb,var(--gh-subtle) 60%,transparent)}
.security-checks .is-missing:before{content:"×";color:#cf222e}
.security-checks .is-missing{color:var(--gh-muted)}
.security-session-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.security-session-actions .security-session-button{min-height:40px}
.account-confirm-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px}
.account-confirm-backdrop{position:absolute;inset:0;background:rgba(7,15,28,.68);backdrop-filter:blur(4px)}
.account-confirm-dialog{position:relative;width:min(440px,100%);padding:26px;border:1px solid var(--gh-border);border-radius:18px;background:var(--gh-card);box-shadow:0 24px 80px rgba(0,0,0,.3);text-align:center}
.account-confirm-dialog h2{margin:12px 0 8px;font-size:22px}
.account-confirm-dialog p{margin:0;color:var(--gh-muted);line-height:1.55}
.account-confirm-icon{width:48px;height:48px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#fff1f0;color:#cf222e;font-size:25px;font-weight:1000}
.account-confirm-close{position:absolute;right:13px;top:11px;width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--gh-muted);font-size:25px;cursor:pointer}
.account-confirm-close:hover{background:var(--gh-hover);color:var(--theme-text)}
.account-confirm-actions{display:flex;justify-content:center;gap:10px;margin-top:22px}
.danger-button{border:1px solid #cf222e;border-radius:7px;background:#cf222e;color:#fff;font:900 14px Nunito,sans-serif;padding:9px 16px;cursor:pointer}
.danger-button:hover{background:#a40e26}
.account-fatal-error{min-height:100vh;display:grid;place-items:center;padding:24px;font-family:Nunito,sans-serif;background:var(--theme-bg);color:var(--theme-text)}
.account-fatal-error section{width:min(640px,100%);padding:28px;border:1px solid var(--gh-border);border-radius:16px;background:var(--gh-card);box-shadow:0 18px 50px rgba(0,0,0,.12)}
.account-fatal-error h1{margin:0 0 10px}
.account-fatal-error p{color:var(--gh-muted);line-height:1.55}
.account-fatal-error section>div{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.account-fatal-error .secondary-button{display:inline-flex;align-items:center;text-decoration:none}
.captcha-config-error{margin:0;padding:10px 12px;border:1px solid #d4a72c;border-radius:10px;background:#fff8c5;color:#5f4300;font-size:13px;font-weight:800;line-height:1.45}
[data-account-loading="1"] .account-user-trigger{pointer-events:none;opacity:.65}
@media(max-width:560px){.account-confirm-actions,.security-session-actions{display:grid}.account-confirm-actions>* ,.security-session-actions>*{width:100%}}


/* v150: быстрое подключение бесплатно и официальный сервер TuneTune */
.quick-link-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.quick-link-box:not(.is-premium-locked){border-left-color:color-mix(in srgb,var(--account-accent,#2f81f7) 42%,var(--border,#30363d))}
.quick-link-box:not(.is-premium-locked) #generate-link-key{white-space:nowrap}
.tunetune-community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tunetune-community-grid .bot-install-card{margin:0;min-width:0}
.official-server-card{border-color:color-mix(in srgb,#2f81f7 42%,var(--account-border,var(--gh-border)));background:linear-gradient(135deg,color-mix(in srgb,#2f81f7 8%,var(--account-surface,var(--gh-card))) 0%,var(--account-surface,var(--gh-card)) 72%)}
.official-server-button{background:#0969da;border-color:#0969da}
.official-server-button:hover{background:#075bbd;border-color:#075bbd}
html[data-theme="dark"] .official-server-card{background:linear-gradient(135deg,rgba(47,129,247,.12),var(--account-surface,#0d1117) 72%);border-color:#315f9c}
@media(max-width:900px){.tunetune-community-grid{grid-template-columns:1fr}}
@media(max-width:720px){.quick-link-title-row{align-items:flex-start}.quick-link-box:not(.is-premium-locked) #generate-link-key{width:100%}}


/* v151: subscription management redesign and neutral quick connection */
.subscription-separate-notice-v151{margin-bottom:20px!important}
.subscription-bot-switcher-v151{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.subscription-bot-option-v151{min-width:0;display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--account-border,var(--gh-border));border-radius:15px;background:var(--account-surface,var(--gh-card));color:var(--account-text,var(--theme-text));text-align:left;cursor:pointer;transition:.18s ease}
.subscription-bot-option-v151:hover{border-color:color-mix(in srgb,var(--account-accent,#2f81f7) 55%,var(--account-border));transform:translateY(-1px)}
.subscription-bot-option-v151.is-active{border-color:var(--account-accent,#2f81f7);box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent,#2f81f7) 13%,transparent)}
.subscription-bot-option-v151 img{width:48px;height:48px;border-radius:14px;object-fit:cover}
.subscription-bot-option-v151>span{display:grid;gap:2px;min-width:0}.subscription-bot-option-v151>span strong{font-size:16px}.subscription-bot-option-v151>span small{color:var(--account-muted,var(--gh-muted));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subscription-bot-option-v151>b{font-size:12px;padding:6px 9px;border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));border:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));white-space:nowrap}
.subscription-bot-option-v151>b.is-active{background:#dafbe1;border-color:#82e596;color:#116329}
.subscription-overview-v151{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px;margin-bottom:16px}
.subscription-current-v151,.subscription-renewal-v151{min-height:100%}
.subscription-current-head-v151{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.subscription-current-head-v151 h2{margin:10px 0 5px;font-size:25px}.subscription-current-head-v151 p{margin:0;color:var(--account-muted,var(--gh-muted));line-height:1.5}
.subscription-status-pill-v151{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:#dafbe1;border:1px solid #82e596;color:#116329;font-size:12px;font-weight:1000}.subscription-status-pill-v151.is-inactive{background:var(--account-surface-soft,var(--gh-subtle));border-color:var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted))}
.subscription-current-symbol-v151{width:60px;height:60px;flex:0 0 60px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(145deg,#fff4bb,#f4ca50);color:#7d4e00;font-size:28px;font-weight:1000;box-shadow:0 10px 24px rgba(210,153,34,.2)}
.subscription-progress-v151{margin:20px 0 16px}.subscription-progress-copy-v151{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:var(--account-muted,var(--gh-muted));font-size:13px}.subscription-progress-copy-v151 strong{color:var(--account-text,var(--theme-text));font-size:16px}.subscription-progress-track-v151{height:9px;border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));overflow:hidden;border:1px solid var(--account-border,var(--gh-border))}.subscription-progress-track-v151 i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--account-accent,#2f81f7),#56d4ff);transition:width .25s ease}
.subscription-facts-v151{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.subscription-facts-v151 div{padding:11px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-facts-v151 dt{font-size:12px;color:var(--account-muted,var(--gh-muted));font-weight:800}.subscription-facts-v151 dd{margin:4px 0 0;font-weight:1000;overflow-wrap:anywhere}
.subscription-current-actions-v151{display:flex;gap:10px;margin-top:16px;flex-wrap:wrap}.subscription-current-actions-v151 button{min-height:43px}.subscription-action-message-v151{min-height:20px;margin:10px 0 0;color:var(--account-muted,var(--gh-muted));font-size:13px}.subscription-action-message-v151.is-error{color:#cf222e}.subscription-action-message-v151.is-success{color:#116329}
.subscription-secure-mark-v151{font-size:24px}.subscription-next-payment-v151{display:grid;gap:5px;padding:17px;margin:16px 0;border-radius:14px;border:1px solid color-mix(in srgb,var(--account-accent,#2f81f7) 32%,var(--account-border));background:color-mix(in srgb,var(--account-accent,#2f81f7) 6%,var(--account-surface))}.subscription-next-payment-v151 span,.subscription-next-payment-v151 small{color:var(--account-muted,var(--gh-muted))}.subscription-next-payment-v151 strong{font-size:21px}.subscription-renewal-points-v151{display:grid;gap:13px}.subscription-renewal-points-v151>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px}.subscription-renewal-points-v151>div>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#dafbe1;color:#116329;font-weight:1000}.subscription-renewal-points-v151 p{display:grid;gap:2px;margin:0}.subscription-renewal-points-v151 small{color:var(--account-muted,var(--gh-muted));line-height:1.4}
.subscription-builder-v151{margin-bottom:16px}.subscription-builder-header-v151{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.subscription-builder-header-v151 h2{margin:4px 0 5px;font-size:25px}.subscription-builder-header-v151 p{margin:0;color:var(--account-muted,var(--gh-muted))}.subscription-builder-step-v151{padding:7px 11px;border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));border:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));font-size:12px;font-weight:900;white-space:nowrap}
.subscription-server-row-v151{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.65fr);gap:18px;align-items:center;padding:17px 0;margin-top:14px;border-top:1px solid var(--account-border,var(--gh-border));border-bottom:1px solid var(--account-border,var(--gh-border))}.subscription-server-row-v151 label{display:grid;gap:3px}.subscription-server-row-v151 label span{font-weight:1000}.subscription-server-row-v151 label small{color:var(--account-muted,var(--gh-muted))}.subscription-select-v151{position:relative}.subscription-select-v151:after{content:"";position:absolute;right:15px;top:50%;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-68%) rotate(45deg);pointer-events:none;color:var(--account-muted,var(--gh-muted))}.subscription-select-v151 select{appearance:none;width:100%;min-height:46px;padding:10px 42px 10px 13px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-text,var(--theme-text));font:800 14px Nunito,sans-serif;outline:none}.subscription-select-v151 select:focus{border-color:var(--account-accent,#2f81f7);box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent,#2f81f7) 14%,transparent)}
.subscription-plan-grid-v151{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.subscription-plan-v151{min-width:0;padding:16px;border:1px solid var(--account-border,var(--gh-border));border-radius:15px;background:var(--account-surface,var(--gh-card));color:var(--account-text,var(--theme-text));text-align:left;cursor:pointer;transition:.18s ease}.subscription-plan-v151:hover:not(:disabled){transform:translateY(-2px);border-color:color-mix(in srgb,var(--account-accent,#2f81f7) 55%,var(--account-border))}.subscription-plan-v151.is-selected{border-color:var(--account-accent,#2f81f7);box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent,#2f81f7) 13%,transparent);background:color-mix(in srgb,var(--account-accent,#2f81f7) 4%,var(--account-surface))}.subscription-plan-v151.is-unavailable{opacity:.52;cursor:not-allowed}.subscription-plan-top-v151{display:flex;align-items:center;justify-content:space-between;gap:8px}.subscription-plan-top-v151 b{font-size:17px}.subscription-plan-top-v151 em{font-style:normal;font-size:11px;font-weight:900;padding:4px 7px;border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted))}.subscription-plan-v151>strong{display:block;margin-top:16px;font-size:25px}.subscription-plan-v151>small{display:block;color:var(--account-muted,var(--gh-muted));margin-top:1px}.subscription-plan-v151 ul{margin:15px 0 0;padding:13px 0 0 19px;border-top:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.65}
.subscription-period-block-v151{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(0,1fr);gap:18px;align-items:center;padding:17px;border:1px solid var(--account-border,var(--gh-border));border-radius:15px;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-period-block-v151>div:first-child{display:grid;gap:3px}.subscription-period-block-v151>div:first-child span{color:var(--account-muted,var(--gh-muted));font-size:13px}.subscription-periods-v151{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.subscription-periods-v151 button{min-height:58px;padding:8px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface,var(--gh-card));color:var(--account-text,var(--theme-text));cursor:pointer;display:grid;gap:2px;place-items:center}.subscription-periods-v151 button small{color:var(--account-muted,var(--gh-muted))}.subscription-periods-v151 button.is-selected{border-color:var(--account-accent,#2f81f7);box-shadow:0 0 0 2px color-mix(in srgb,var(--account-accent,#2f81f7) 12%,transparent)}
.subscription-checkout-grid-v151{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.8fr);gap:16px;margin-top:18px}.subscription-order-summary-v151,.subscription-payment-v151{padding:17px;border:1px solid var(--account-border,var(--gh-border));border-radius:15px;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-order-summary-v151 h3{margin:0 0 12px}.subscription-order-summary-v151 dl{display:grid;gap:0;margin:0}.subscription-order-summary-v151 dl div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid var(--account-border,var(--gh-border))}.subscription-order-summary-v151 dl div:last-child{border-bottom:0}.subscription-order-summary-v151 dt{color:var(--account-muted,var(--gh-muted));font-weight:700}.subscription-order-summary-v151 dd{margin:0;text-align:right;font-weight:1000}.subscription-summary-total-v151{font-size:20px;color:var(--account-accent,#2f81f7)}.subscription-upgrade-explanation-v151{margin:13px 0 0;padding:12px;border-radius:11px;background:var(--account-surface,var(--gh-card));border:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.45}
.subscription-payment-v151{display:grid;gap:14px}.subscription-payment-brand-v151{display:flex;align-items:center;gap:12px}.subscription-payment-brand-v151>img{width:46px;height:46px;padding:7px;border-radius:12px;background:#fff;border:1px solid #d0d7de;object-fit:contain}.subscription-payment-brand-v151>div{display:grid;gap:2px}.subscription-payment-brand-v151 span{color:var(--account-muted,var(--gh-muted));font-size:12px}.subscription-payment-methods-v151{display:flex;flex-wrap:wrap;gap:7px}.subscription-payment-methods-v151 span{display:flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid var(--account-border,var(--gh-border));border-radius:9px;background:var(--account-surface,var(--gh-card));font-size:11px;font-weight:900}.subscription-payment-methods-v151 img{width:32px;height:18px;object-fit:contain}.subscription-autorenew-v151{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;padding:12px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface,var(--gh-card));cursor:pointer}.subscription-autorenew-v151 input,.subscription-terms-v151 input{width:18px;height:18px;margin-top:2px;accent-color:var(--account-accent,#2f81f7)}.subscription-autorenew-v151>span{display:grid;gap:2px}.subscription-autorenew-v151 small{color:var(--account-muted,var(--gh-muted));line-height:1.35}.subscription-terms-v151{margin:0!important}.subscription-buy-v151{width:100%;min-height:48px;font-size:16px}.subscription-buy-v151:disabled{opacity:.55;cursor:not-allowed}.subscription-checkout-message-v151{margin:0;min-height:20px}.subscription-checkout-message-v151.is-error{color:#cf222e}.subscription-checkout-message-v151.is-success{color:#116329}.subscription-checkout-message-v151.is-warning{color:#9a6700}
.subscription-history-v151{margin-bottom:0}
.quick-link-box>div:first-child{display:grid;gap:5px}.quick-link-box>div:first-child>strong{font-size:16px}
html[data-theme="dark"] .subscription-status-pill-v151:not(.is-inactive),html[data-theme="dark"] .subscription-renewal-points-v151>div>span{background:rgba(46,160,67,.16);border-color:#238636;color:#7ee787}html[data-theme="dark"] .subscription-current-symbol-v151{box-shadow:none;background:rgba(210,153,34,.18);color:#f2cc60}
@media(max-width:1000px){.subscription-overview-v151,.subscription-checkout-grid-v151{grid-template-columns:1fr}.subscription-server-row-v151{grid-template-columns:1fr}.subscription-plan-grid-v151{grid-template-columns:1fr}.subscription-plan-v151 ul{columns:2}.subscription-period-block-v151{grid-template-columns:1fr}}
@media(max-width:760px){.subscription-bot-switcher-v151{grid-template-columns:1fr}.subscription-periods-v151{grid-template-columns:repeat(2,minmax(0,1fr))}.subscription-facts-v151{grid-template-columns:1fr}.subscription-builder-header-v151{display:grid}.subscription-builder-step-v151{justify-self:start}.subscription-plan-v151 ul{columns:1}}
@media(max-width:520px){.subscription-current-head-v151{display:grid}.subscription-current-symbol-v151{grid-row:1;justify-self:end}.subscription-current-head-v151>div{grid-row:1/3}.subscription-current-actions-v151{display:grid}.subscription-current-actions-v151 button{width:100%}.subscription-periods-v151{grid-template-columns:1fr}.subscription-order-summary-v151 dl div{align-items:flex-start;flex-direction:column;gap:4px}.subscription-order-summary-v151 dd{text-align:left}.subscription-bot-option-v151{grid-template-columns:44px minmax(0,1fr)}.subscription-bot-option-v151>b{grid-column:2;justify-self:start}.subscription-bot-option-v151 img{width:44px;height:44px}}


/* v152: transparent discounts, exact renewal date, compact period notes */
.subscription-plan-regular-v152{display:block;margin-top:7px;padding-top:7px;border-top:1px dashed var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted));font-size:11px;font-weight:800;line-height:1.35}
.subscription-plan-regular-v152[hidden]{display:none!important}
.subscription-periods-v151 button{min-height:76px;align-content:center}
.subscription-periods-v151 button>[data-sub-period-regular]{display:block;font-size:10px;line-height:1.25;color:var(--account-muted,var(--gh-muted));font-weight:800;text-align:center}
.subscription-periods-v151 button>[data-sub-period-regular][hidden]{display:none!important}
.subscription-summary-saving-v152{color:#1a7f37!important}
html[data-theme="dark"] .subscription-summary-saving-v152{color:#7ee787!important}


/* v225: purchase is only in account; Gamey remains unavailable */
.subscription-bot-option-v151.is-coming-soon-v157{opacity:.62;cursor:not-allowed;filter:saturate(.55)}
.subscription-bot-option-v151.is-coming-soon-v157 b{background:rgba(148,163,184,.16);color:var(--muted,#94a3b8)}
.primary-action.is-disabled{pointer-events:none;opacity:.58;filter:grayscale(.25)}
.coming-soon-badge-v157{margin-left:auto;font-style:normal;font-size:11px;font-weight:900;padding:4px 8px;border-radius:999px;background:rgba(148,163,184,.16);color:#94a3b8}

/* v159: real user server names and required prefix validation */
.prefix-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:2px}.prefix-save-button{min-width:170px}.prefix-save-status{font-size:13px;font-weight:800;color:var(--account-muted,var(--gh-muted))}.prefix-save-status.is-success{color:#1a7f37}.prefix-save-status.is-danger{color:#cf222e}.prefix-validation-message{padding:9px 11px;border:1px solid #ff8182;border-radius:9px;background:#ffebe9;color:#cf222e;font-size:13px;font-weight:800}.bot-prefix-input.is-invalid{border-color:#cf222e!important;box-shadow:0 0 0 3px rgba(207,34,46,.12)!important}.bot-prefix-input:disabled{opacity:.7;cursor:not-allowed}.prefix-save-button:disabled{opacity:.55;cursor:not-allowed}.metric-card #selected-server-name{overflow-wrap:anywhere}html[data-theme="dark"] .prefix-validation-message{background:rgba(248,81,73,.12);border-color:#f85149;color:#ff7b72}@media(max-width:760px){.prefix-card-actions{align-items:stretch;flex-direction:column}.prefix-save-button{width:100%}}


/* v160 navigation, hover and profile notification fixes */
.bot-install-card .inline-button,
.bot-install-card .inline-button:link,
.bot-install-card .inline-button:visited,
.bot-install-card .inline-button:hover,
.bot-install-card .inline-button:focus-visible,
.official-server-card .official-server-button,
.official-server-card .official-server-button:hover{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
  text-decoration:none!important;
  text-shadow:none!important;
}
.bot-install-card .inline-button{position:relative;z-index:1;white-space:normal;text-align:center;line-height:1.2}
.quick-actions [data-go-panel]{display:block;width:100%;text-align:left;color:var(--account-accent);background:transparent;border:0;cursor:pointer}
.profile-notifications-card{margin-top:16px;margin-bottom:34px}
.profile-notifications-card .card-title p{margin:4px 0 0;color:var(--account-muted);font-size:14px}
.profile-notifications-form{display:grid;gap:0}.profile-notifications-card + .site-footer.site-footer--compact{margin-top:10px}
.profile-notification-option{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-top:1px solid var(--account-border);cursor:pointer}
.profile-notification-option>span:first-child{display:grid;gap:4px;min-width:0}
.profile-notification-option strong{color:var(--account-text)}
.profile-notification-option small{color:var(--account-muted);line-height:1.4}
@media(max-width:620px){.profile-notification-option{align-items:flex-start}.profile-notification-option .normalized-switch{margin-top:2px}}

/* TuneTune live control v164 */
.music-voice-channel-row{display:grid;grid-template-columns:auto minmax(180px,1fr);align-items:center;gap:8px 12px;margin:12px 0}.music-voice-channel-row label{font-weight:900}.music-voice-channel-row input{min-width:0;padding:10px 12px;border:1px solid var(--music-border,var(--account-border));border-radius:9px;background:var(--music-card,var(--account-surface));color:var(--theme-text);font:700 14px Nunito,sans-serif}.music-voice-channel-row small{grid-column:1/-1;color:var(--music-muted,var(--account-muted));font-size:12px}.player-connection-state.is-offline{color:#cf222e}.player-connection-state.is-online{color:#1a7f37}.player-controls button.is-active{border-color:var(--music-accent,#2f81f7);color:var(--music-accent,#2f81f7);box-shadow:0 0 0 3px color-mix(in srgb,var(--music-accent,#2f81f7) 12%,transparent)}@media(max-width:650px){.music-voice-channel-row{grid-template-columns:1fr}}

/* v166: administrator panel. Visibility is resolved only after Manager confirms Administrator + DeveloperMode. */
.account-admin-menu[hidden],.account-admin-menu-button[hidden],#panel-admin[hidden]{display:none!important}
.account-admin-menu-button{color:#b4232d!important}.account-admin-menu-button .account-menu-symbol{border-color:#ffb3b8!important;background:#ffebe9!important;color:#d1242f!important}
html[data-theme="dark"] .account-admin-menu-button{color:#ff9ca6!important}html[data-theme="dark"] .account-admin-menu-button .account-menu-symbol{border-color:#7d3038!important;background:#3a1d24!important;color:#ff9ca6!important}
.admin-panel-heading{align-items:flex-start}.admin-panel-heading .management-role-badge{flex:0 0 auto}
.admin-security-notice{display:flex;align-items:flex-start;gap:14px;border-color:#ffb3b8!important;background:linear-gradient(135deg,rgba(255,235,233,.9),rgba(255,255,255,.78))!important}.admin-security-notice>span{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:#d1242f;color:#fff;font-size:20px;font-weight:950}.admin-security-notice strong{display:block;margin-bottom:3px}.admin-security-notice p{margin:0;color:var(--account-muted);font-size:13px;line-height:1.5}
html[data-theme="dark"] .admin-security-notice{background:linear-gradient(135deg,rgba(95,31,39,.34),rgba(16,26,42,.92))!important;border-color:#7d3038!important}
.admin-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.admin-stat-card{min-width:0}.admin-stat-card strong{font-size:28px}.admin-stat-card:first-child{border-color:color-mix(in srgb,var(--account-accent) 45%,var(--account-border))}.admin-stat-card:nth-child(2){border-color:#82e596}.admin-stat-card:nth-child(3),.admin-stat-card:nth-child(6){border-color:#ffb3b8}
.admin-console-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:16px;margin-bottom:16px}.admin-console-grid>.github-card{margin:0}.admin-tester-card .card-title,.admin-health-card .card-title,.admin-users-title{align-items:flex-start}.admin-tester-card .card-title p,.admin-health-card .card-title p,.admin-users-title p,.admin-audit-card .card-title p{margin:4px 0 0;color:var(--account-muted);font-size:12px}.admin-health-list{display:grid;gap:10px}.admin-health-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft)}.admin-health-list span{color:var(--account-muted);font-size:12px;font-weight:800}.admin-health-list strong{font-size:13px}.admin-access-ok{color:#1a7f37!important}
.admin-users-card,.admin-audit-card{margin-top:16px}.admin-user-search{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:end;gap:10px;margin:14px 0}.admin-user-search .field{margin:0}.admin-user-search .secondary-button,.admin-user-search .text-button{min-height:42px}
.admin-table-wrap{overflow:auto;border:1px solid var(--account-border);border-radius:13px}.admin-users-table{width:100%;min-width:880px;border-collapse:collapse;background:var(--account-surface)}.admin-users-table th,.admin-users-table td{padding:12px 13px;border-bottom:1px solid var(--account-border);text-align:left;vertical-align:middle}.admin-users-table th{position:sticky;top:0;z-index:1;background:var(--account-surface-soft);color:var(--account-muted);font-size:11px;font-weight:950;text-transform:uppercase;letter-spacing:.04em}.admin-users-table tbody tr:last-child td{border-bottom:0}.admin-users-table tbody tr:hover{background:color-mix(in srgb,var(--account-accent) 5%,var(--account-surface))}.admin-users-table select{min-width:150px}.admin-user-identity{display:grid;gap:3px}.admin-user-identity>strong{display:grid;gap:1px}.admin-user-identity strong small{color:var(--account-muted);font-weight:700}.admin-user-identity em{width:max-content;margin-top:3px;padding:2px 7px;border:1px solid #ffb3b8;border-radius:999px;background:#ffebe9;color:#b4232d;font-size:9px;font-style:normal;font-weight:950}.admin-user-identity>small{color:var(--account-muted);font-size:10px}.admin-table-empty{padding:24px!important;text-align:center!important;color:var(--account-muted)!important;font-weight:800}.admin-developer-switch{margin-inline:auto!important}.admin-user-save{white-space:nowrap}
.admin-audit-list{display:grid;gap:8px}.admin-audit-item{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft)}.admin-audit-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#ffebe9;color:#d1242f;font-size:12px}.admin-audit-item>div{display:grid;gap:2px}.admin-audit-item span,.admin-audit-item small{color:var(--account-muted);font-size:10px}.admin-audit-item code{font-size:10px}
html[data-theme="dark"] .admin-user-identity em{background:#3a1d24;border-color:#7d3038;color:#ff9ca6}html[data-theme="dark"] .admin-audit-icon{background:#3a1d24;color:#ff9ca6}
@media(max-width:980px){.admin-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-console-grid{grid-template-columns:1fr}}
@media(max-width:680px){.admin-dashboard-grid{grid-template-columns:1fr}.admin-user-search{grid-template-columns:1fr}.admin-user-search .secondary-button,.admin-user-search .text-button{width:100%}.admin-panel-heading{display:grid!important}.admin-panel-heading .management-role-badge{margin-top:4px}.admin-audit-item{grid-template-columns:32px minmax(0,1fr)}.admin-audit-item code{grid-column:2}}


/* v174: server-scoped bot settings status and protected administrator state */
.bot-settings-load-status{margin-left:auto;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--account-muted);font-size:11px;font-weight:800}
.staff-developer-mode input:disabled+i{cursor:not-allowed;opacity:.9}.staff-mode-status{white-space:nowrap}
@media(max-width:680px){.bot-settings-load-status{max-width:100%;margin-left:0;white-space:normal}.tunetune-routing-save,.console-form .form-actions{flex-wrap:wrap}}

/* v175: стабильная HTML-структура страницы управления ботами */
#panel-bot-control .bot-module-content,
#panel-bot-control .bot-module-panels {
  min-width: 0;
}
#panel-bot-control .bot-module-panels > .bot-module-panel {
  min-width: 0;
}


/* v177: DeveloperMode indicator and functional developer console. */
.account-developer-menu[hidden],.account-developer-menu-button[hidden],#panel-developer[hidden]{display:none!important}
.account-developer-menu-button{color:#7a3df0!important}.account-developer-menu-button .account-menu-symbol{border-color:#cbb7ff!important;background:#f2edff!important;color:#6f42c1!important}
html[data-theme="dark"] .account-developer-menu-button{color:#c6a8ff!important}html[data-theme="dark"] .account-developer-menu-button .account-menu-symbol{border-color:#5e478e!important;background:#281f3c!important;color:#c6a8ff!important}
.staff-control-strip:not([hidden]){display:flex!important}.staff-developer-mode .normalized-switch{flex:0 0 auto}.staff-developer-mode input:checked+i{background:var(--account-accent,#7a3df0)!important;border-color:var(--account-accent,#7a3df0)!important}.staff-developer-mode input:checked+i:after{transform:translateX(20px)!important}.staff-mode-status{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:var(--account-surface-soft);border:1px solid var(--account-border)}
.developer-panel-heading{align-items:flex-start}.developer-access-badges{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.developer-mode-live{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #82e596;border-radius:999px;background:#dafbe1;color:#116329;font-size:11px;font-weight:950;white-space:nowrap}.developer-mode-live i{width:8px;height:8px;border-radius:50%;background:#1a7f37;box-shadow:0 0 0 4px rgba(26,127,55,.12)}
html[data-theme="dark"] .developer-mode-live{border-color:#276a3b;background:#153b24;color:#7ee787}
.developer-security-notice{display:flex;align-items:flex-start;gap:14px;border-color:#cbb7ff!important;background:linear-gradient(135deg,rgba(242,237,255,.94),rgba(255,255,255,.8))!important}.developer-security-notice>span{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#6f42c1;color:#fff;font-size:19px;font-weight:950}.developer-security-notice strong{display:block;margin-bottom:3px}.developer-security-notice p{margin:0;color:var(--account-muted);font-size:13px;line-height:1.5}html[data-theme="dark"] .developer-security-notice{background:linear-gradient(135deg,rgba(71,43,117,.38),rgba(16,26,42,.92))!important;border-color:#5e478e!important}
.developer-status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.developer-stat-card{min-width:0}.developer-stat-card strong{font-size:20px;overflow:hidden;text-overflow:ellipsis}.developer-stat-card:nth-child(1){border-color:#cbb7ff}.developer-stat-card:nth-child(2){border-color:#82e596}.developer-stat-card:nth-child(3){border-color:#a5d6ff}.developer-stat-card:nth-child(4){border-color:#ffcf8b}.developer-stat-card strong.is-ok{color:#1a7f37}.developer-stat-card strong.is-failed{color:#cf222e}
.developer-presets-card{margin-bottom:16px}.developer-presets-card .card-title{align-items:flex-start}.developer-presets-card .card-title p{margin:4px 0 0;color:var(--account-muted);font-size:12px}.developer-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.developer-preset-grid button{display:grid;gap:4px;min-height:76px;padding:13px;text-align:left;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);color:var(--theme-text);cursor:pointer;transition:.15s ease}.developer-preset-grid button:hover{transform:translateY(-1px);border-color:#a98df0;background:color-mix(in srgb,#7a3df0 7%,var(--account-surface))}.developer-preset-grid strong{font:900 13px Nunito,sans-serif}.developer-preset-grid span{overflow:hidden;text-overflow:ellipsis;color:var(--account-muted);font:700 10px ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}
.developer-console-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.92fr);gap:16px}.developer-console-layout>.github-card{margin:0}.developer-request-card .card-title,.developer-output-card .card-title{align-items:flex-start}.developer-request-card .card-title p,.developer-output-card .card-title p{margin:4px 0 0;color:var(--account-muted);font-size:12px}.developer-request-line{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px}.developer-request-line .field,.developer-body-field{margin:0 0 12px}.developer-request-card select,.developer-request-card input,.developer-request-card textarea{width:100%;box-sizing:border-box}.developer-request-card textarea{resize:vertical;min-height:180px;font:700 12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace}.developer-body-field small{display:block;margin-top:6px;color:var(--account-muted);font-size:10px}.developer-write-confirm{display:flex;align-items:flex-start;gap:9px;margin:2px 0 12px;padding:10px 12px;border:1px solid #ffcf8b;border-radius:10px;background:#fff8c5;color:#633c01;font-size:12px;font-weight:850}.developer-write-confirm input{flex:0 0 auto;width:16px;height:16px;margin-top:1px}.developer-write-confirm[hidden]{display:none!important}html[data-theme="dark"] .developer-write-confirm{border-color:#6e5523;background:#3b2f14;color:#f2cc60}.developer-form-actions{display:flex;gap:8px;flex-wrap:wrap}
.developer-command-help{display:grid;gap:4px;margin-top:14px;padding-top:13px;border-top:1px solid var(--account-border)}.developer-command-help strong{font-size:12px}.developer-command-help span{color:var(--account-muted);font-size:10px;line-height:1.65}.developer-command-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:9px;padding:7px 8px;border:1px solid var(--account-border);border-radius:10px;background:#0d1117;color:#7ee787}.developer-command-form>span{font:800 11px ui-monospace,SFMono-Regular,Consolas,monospace}.developer-command-form input{min-width:0;border:0!important;outline:0;background:transparent!important;color:#e6edf3!important;box-shadow:none!important;font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace}.developer-command-form button{padding:7px 10px;border:1px solid #30363d;border-radius:8px;background:#21262d;color:#e6edf3;font-size:10px;font-weight:900;cursor:pointer}
.developer-output-actions{display:flex;align-items:center;gap:6px}.developer-terminal{min-height:430px;max-height:620px;overflow:auto;margin:14px 0 12px;padding:15px;border:1px solid #30363d;border-radius:12px;background:#0d1117;color:#e6edf3;white-space:pre-wrap;word-break:break-word;font:700 11px/1.58 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}.developer-terminal:focus{outline:2px solid #7a3df0;outline-offset:2px}.developer-history-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 8px}.developer-history-title strong{font-size:12px}.developer-history{display:grid;gap:7px;max-height:260px;overflow:auto}.developer-history-item{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:9px;width:100%;padding:9px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft);color:var(--theme-text);text-align:left;cursor:pointer}.developer-history-item:hover{border-color:#a98df0}.developer-history-item>span:nth-child(2){display:grid;gap:2px;min-width:0}.developer-history-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 10px ui-monospace,SFMono-Regular,Consolas,monospace}.developer-history-item small{color:var(--account-muted);font-size:9px}.developer-history-method{display:inline-flex;justify-content:center;padding:4px 5px;border-radius:6px;background:#ddf4ff;color:#0969da;font:950 9px ui-monospace,SFMono-Regular,Consolas,monospace}.developer-history-method.is-post,.developer-history-method.is-put,.developer-history-method.is-patch{background:#fff8c5;color:#633c01}.developer-history-method.is-delete{background:#ffebe9;color:#cf222e}.developer-history-item>b{font-size:10px}.developer-history-item>b.is-success{color:#1a7f37}.developer-history-item>b.is-error{color:#cf222e}
@media(max-width:1100px){.developer-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.developer-console-layout{grid-template-columns:1fr}.developer-terminal{min-height:300px}.developer-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.developer-panel-heading{display:grid!important}.developer-access-badges{justify-content:flex-start}.developer-status-grid,.developer-preset-grid{grid-template-columns:1fr}.developer-request-line{grid-template-columns:1fr}.developer-command-form{grid-template-columns:auto minmax(0,1fr)}.developer-command-form button{grid-column:1/-1}.developer-output-card .card-title{display:grid}.developer-output-actions{margin-top:8px}.developer-history-item{grid-template-columns:48px minmax(0,1fr)}.developer-history-item>b{grid-column:2}.staff-control-strip{align-items:flex-start;flex-wrap:wrap}.staff-developer-mode{max-width:100%}}


/* v181 — unified switches, Premium volume and TuneTune tariff selection */
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch){
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  width:50px!important;min-width:50px!important;max-width:50px!important;height:28px!important;min-height:28px!important;
  flex:0 0 50px!important;margin:0!important;padding:0!important;vertical-align:middle!important;background:transparent!important;border:0!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;z-index:3!important;width:50px!important;height:28px!important;margin:0!important;
  opacity:0!important;cursor:pointer!important;appearance:none!important;-webkit-appearance:none!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i,
.account-page label.toggle-row>i{
  position:relative!important;inset:auto!important;display:block!important;width:50px!important;min-width:50px!important;height:28px!important;
  margin:0!important;padding:0!important;border:1px solid #9aa9bb!important;border-radius:999px!important;background:#506783!important;
  box-shadow:inset 0 1px 2px rgba(17,34,56,.16)!important;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i::after,
.account-page label.toggle-row>i::after{
  content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;
  border-radius:50%!important;background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.28)!important;transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i,
.account-page label.toggle-row>input:checked+i{
  background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i::after,
.account-page label.toggle-row>input:checked+i::after{transform:translateX(22px)!important}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:focus-visible+i,
.account-page label.toggle-row>input:focus-visible+i{outline:3px solid rgba(47,129,247,.24)!important;outline-offset:2px!important}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:disabled+i,
.account-page label.toggle-row>input:disabled+i{opacity:.48!important;filter:saturate(.55)!important;cursor:not-allowed!important}
.account-page label.toggle-row{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important}
.account-page label.toggle-row>span:first-child{min-width:0!important;flex:1 1 auto!important}
.account-page label.toggle-row>input[type="checkbox"]{position:absolute!important;right:0!important;width:50px!important;height:28px!important;opacity:0!important;z-index:3!important;margin:0!important;cursor:pointer!important}
.account-page label.toggle-row>i{flex:0 0 50px!important;margin-left:auto!important}
.account-page input.ui-switch-control[type="checkbox"]{
  position:relative!important;display:inline-block!important;width:50px!important;min-width:50px!important;height:28px!important;margin:0 10px 0 0!important;
  border:1px solid #9aa9bb!important;border-radius:999px!important;background:#506783!important;appearance:none!important;-webkit-appearance:none!important;
  vertical-align:middle!important;box-shadow:inset 0 1px 2px rgba(17,34,56,.16)!important;cursor:pointer!important;transition:.18s ease!important;
}
.account-page input.ui-switch-control[type="checkbox"]::after{
  content:""!important;position:absolute!important;top:3px!important;left:3px!important;width:20px!important;height:20px!important;border-radius:50%!important;
  background:#fff!important;box-shadow:0 2px 5px rgba(16,35,63,.28)!important;transform:translateX(0)!important;transition:transform .18s ease!important;
}
.account-page input.ui-switch-control[type="checkbox"]:checked{background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
.account-page input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(22px)!important}
.account-page input.ui-switch-control[type="checkbox"]:focus-visible{outline:3px solid rgba(47,129,247,.24)!important;outline-offset:2px!important}
html[data-theme="dark"] .account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i,
html[data-theme="dark"] .account-page label.toggle-row>i,
html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]{background:#42546d!important;border-color:#60738d!important}
html[data-theme="dark"] .account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i,
html[data-theme="dark"] .account-page label.toggle-row>input:checked+i,
html[data-theme="dark"] .account-page input.ui-switch-control[type="checkbox"]:checked{background:#2ea043!important;border-color:#3fb950!important}

.volume-setting-v181{margin:14px 0 22px!important;padding:18px;border:1px solid var(--account-border,var(--gh-border));border-radius:14px;background:var(--account-surface-soft,var(--gh-subtle))}
.volume-setting-head-v181{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}
.volume-setting-head-v181 label{font-size:16px!important}
.premium-volume-badge-v181{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #d4a72c;border-radius:999px;background:#fff7d6;color:#7d4e00;font-size:12px;font-weight:900;white-space:nowrap}
.volume-control-v181{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:14px;align-items:center}
.volume-control-v181 input[type="range"]{--volume-progress:50%;width:100%;height:34px;margin:0;appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
.volume-control-v181 input[type="range"]::-webkit-slider-runnable-track{height:10px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;background:linear-gradient(90deg,#2da44e 0 var(--volume-progress),#d8e0e9 var(--volume-progress) 50%,#fff1b8 50% 100%)}
.volume-control-v181 input[type="range"]::-moz-range-track{height:10px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;background:linear-gradient(90deg,#2da44e 0 var(--volume-progress),#d8e0e9 var(--volume-progress) 50%,#fff1b8 50% 100%)}
.volume-control-v181 input[type="range"]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;margin-top:-8px;border:4px solid #fff;border-radius:50%;background:#238636;box-shadow:0 2px 8px rgba(22,39,62,.3)}
.volume-control-v181 input[type="range"]::-moz-range-thumb{width:18px;height:18px;border:4px solid #fff;border-radius:50%;background:#238636;box-shadow:0 2px 8px rgba(22,39,62,.3)}
.volume-control-v181 output{display:grid;place-items:center;min-height:48px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface,var(--gh-card));font-size:20px;font-weight:900;color:var(--account-text,var(--theme-text))}
.volume-control-v181 output.is-premium-volume{border-color:#d4a72c;background:#fff7d6;color:#7d4e00}
.volume-scale-v181{display:grid;grid-template-columns:1fr 1fr 1fr;margin:3px 91px 8px 0;color:var(--account-muted,var(--gh-muted));font-size:11px;font-weight:800}
.volume-scale-v181 span:nth-child(2){text-align:center}.volume-scale-v181 span:last-child{text-align:right;color:#9a6700}
.volume-setting-v181>small{display:block;color:var(--account-muted,var(--gh-muted));line-height:1.45}
.volume-setting-v181.is-premium-locked .premium-volume-badge-v181::before{content:"◆";margin-right:5px}
html[data-theme="dark"] .premium-volume-badge-v181,html[data-theme="dark"] .volume-control-v181 output.is-premium-volume{background:#332900;color:#f2cc60;border-color:#7c650e}
html[data-theme="dark"] .volume-control-v181 input[type="range"]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#2ea043 0 var(--volume-progress),#42546d var(--volume-progress) 50%,#5c4b18 50% 100%)}
html[data-theme="dark"] .volume-control-v181 input[type="range"]::-moz-range-track{background:linear-gradient(90deg,#2ea043 0 var(--volume-progress),#42546d var(--volume-progress) 50%,#5c4b18 50% 100%)}

.bot-premium-plans-v181{align-items:stretch}
.bot-premium-plan-v181{display:flex!important;flex-direction:column!important;gap:12px!important}
.bot-premium-plan-v181 h3{margin:0!important;font-size:27px!important}
.bot-premium-plan-v181 p{min-height:48px;margin:0!important;color:var(--account-muted,var(--gh-muted));line-height:1.5}
.bot-premium-plan-v181 ul{margin:4px 0 18px!important;padding-left:21px!important;display:grid;gap:9px;line-height:1.45}
.bot-plan-price-v181{display:flex;align-items:baseline;gap:8px;padding:12px 0;border-top:1px solid var(--account-border,var(--gh-border));border-bottom:1px solid var(--account-border,var(--gh-border))}
.bot-plan-price-v181 strong{font-size:29px;color:var(--account-text,var(--theme-text))}.bot-plan-price-v181 span{color:var(--account-muted,var(--gh-muted));font-weight:800}
.bot-plan-select-v181{width:100%;margin-top:auto;min-height:48px;border-radius:11px!important}
@media(max-width:680px){.volume-setting-head-v181{align-items:flex-start;flex-direction:column}.volume-control-v181{grid-template-columns:1fr 74px}.volume-scale-v181{margin-right:79px}}

/* v182: Robokassa recurring-payment disclosure and explicit consent */
.subscription-recurring-disclosure-v182{display:grid;gap:10px;padding:14px;border:1px solid var(--account-accent,#2f81f7);border-radius:12px;background:color-mix(in srgb,var(--account-accent,#2f81f7) 8%,var(--account-surface,var(--gh-card)))}
.subscription-recurring-disclosure-v182[hidden]{display:none!important}.subscription-recurring-disclosure-v182>strong{font-size:14px}.subscription-recurring-disclosure-v182 dl{display:grid;gap:7px;margin:0}.subscription-recurring-disclosure-v182 dl div{display:flex;justify-content:space-between;gap:14px}.subscription-recurring-disclosure-v182 dt{color:var(--account-muted,var(--gh-muted))}.subscription-recurring-disclosure-v182 dd{margin:0;text-align:right;font-weight:900}.subscription-recurring-disclosure-v182 p{margin:0;color:var(--account-muted,var(--gh-muted));font-size:12px;line-height:1.45}.subscription-recurring-consent-v182 small{display:block;margin-top:4px;color:var(--account-muted,var(--gh-muted))}.subscription-recurring-consent-v182.is-disabled{opacity:.62}.subscription-consent-modal-v182{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;background:rgba(0,0,0,.68);backdrop-filter:blur(8px)}.subscription-consent-dialog-v182{width:min(560px,100%);padding:24px;border:1px solid var(--account-border,var(--gh-border));border-radius:18px;background:var(--account-surface,var(--gh-card));box-shadow:0 24px 80px rgba(0,0,0,.35)}.subscription-consent-dialog-v182 h3{margin:0 0 10px}.subscription-consent-dialog-v182 p{line-height:1.5}.subscription-consent-actions-v182{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.subscription-consent-actions-v182 button{min-height:42px;padding:0 18px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px}.subscription-consent-actions-v182 button:disabled{opacity:.5;cursor:not-allowed}@media(max-width:620px){.subscription-recurring-disclosure-v182 dl div{display:grid;gap:2px}.subscription-recurring-disclosure-v182 dd{text-align:left}.subscription-consent-actions-v182{display:grid;grid-template-columns:1fr 1fr}}


/* v183 — equalizer chart must never leave its rounded card. */
#tunetune-equalizer-panel .equalizer-visual-card{min-width:0!important;overflow:hidden!important;contain:paint}
#tunetune-equalizer-panel .equalizer-chart{min-width:0!important;max-width:100%!important;overflow:hidden!important;clip-path:inset(0 round 13px)}
#tunetune-equalizer-panel .equalizer-chart svg{display:block!important;width:100%!important;max-width:100%!important;height:100%!important;overflow:hidden!important}
#tunetune-equalizer-panel .equalizer-chart :is(#eq-curve,#eq-curve-shadow){stroke-linecap:round!important;stroke-linejoin:round!important}


/* v184 — test alignment for ONE switch only: TuneTune / Music / Autoplay.
   After visual approval, this geometry can be applied to the remaining switches. */
.account-page label.toggle-row.toggle-prototype-v184{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 50px!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:20px!important;
  min-height:70px!important;
  padding:14px 0!important;
}
.account-page label.toggle-row.toggle-prototype-v184>span:first-child{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  align-self:center!important;
}
.account-page label.toggle-row.toggle-prototype-v184>input[type="checkbox"]{
  position:relative!important;
  inset:auto!important;
  right:auto!important;
  top:auto!important;
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  width:50px!important;
  height:28px!important;
  margin:0!important;
  transform:none!important;
}
.account-page label.toggle-row.toggle-prototype-v184>i{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
}
@media(max-width:620px){
  .account-page label.toggle-row.toggle-prototype-v184{column-gap:14px!important;min-height:66px!important;padding:12px 0!important}
}


/* v185 — one approved 50×28 switch geometry across the complete bot-control panel. */
#panel-bot-control{
  --control-switch-width:50px;
  --control-switch-height:28px;
  --control-switch-knob:24px;
  --control-switch-shift:22px;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch){
  position:relative!important;
  display:inline-block!important;
  flex:0 0 var(--control-switch-width)!important;
  width:var(--control-switch-width)!important;
  min-width:var(--control-switch-width)!important;
  height:var(--control-switch-height)!important;
  min-height:var(--control-switch-height)!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:block!important;
  width:var(--control-switch-width)!important;
  min-width:var(--control-switch-width)!important;
  height:var(--control-switch-height)!important;
  min-height:var(--control-switch-height)!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  transform:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i,
#panel-bot-control label.toggle-row>i{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  box-sizing:border-box!important;
  flex:0 0 var(--control-switch-width)!important;
  width:var(--control-switch-width)!important;
  min-width:var(--control-switch-width)!important;
  height:var(--control-switch-height)!important;
  min-height:var(--control-switch-height)!important;
  margin:0!important;
  border:1px solid #a9b7c8!important;
  border-radius:999px!important;
  background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i::after,
#panel-bot-control label.toggle-row>i::after{
  content:""!important;
  position:absolute!important;
  top:1px!important;
  left:1px!important;
  width:var(--control-switch-knob)!important;
  height:var(--control-switch-knob)!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i,
#panel-bot-control label.toggle-row>input:checked+i{
  border-color:#2da44e!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i::after,
#panel-bot-control label.toggle-row>input:checked+i::after{
  transform:translateX(var(--control-switch-shift))!important;
}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:focus-visible+i,
#panel-bot-control label.toggle-row>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.24)!important;
  outline-offset:2px!important;
}
#panel-bot-control label.toggle-row{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--control-switch-width)!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  column-gap:18px!important;
  min-width:0!important;
}
#panel-bot-control label.toggle-row>span:first-child{
  grid-column:1!important;
  grid-row:1!important;
  min-width:0!important;
  align-self:center!important;
}
#panel-bot-control label.toggle-row>input[type="checkbox"]{
  position:relative!important;
  inset:auto!important;
  right:auto!important;
  top:auto!important;
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
  z-index:3!important;
  display:block!important;
  width:var(--control-switch-width)!important;
  min-width:var(--control-switch-width)!important;
  height:var(--control-switch-height)!important;
  min-height:var(--control-switch-height)!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  transform:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
#panel-bot-control label.toggle-row>i{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
}
#panel-bot-control input.ui-switch-control[type="checkbox"]{
  position:relative!important;
  inset:auto!important;
  display:inline-block!important;
  flex:0 0 var(--control-switch-width)!important;
  width:var(--control-switch-width)!important;
  min-width:var(--control-switch-width)!important;
  height:var(--control-switch-height)!important;
  min-height:var(--control-switch-height)!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #a9b7c8!important;
  border-radius:999px!important;
  background:#d9e2ea!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.10)!important;
  opacity:1!important;
  transform:none!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  cursor:pointer!important;
  vertical-align:middle!important;
}
#panel-bot-control input.ui-switch-control[type="checkbox"]::after{
  content:""!important;
  position:absolute!important;
  top:1px!important;
  left:1px!important;
  width:var(--control-switch-knob)!important;
  height:var(--control-switch-knob)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
#panel-bot-control input.ui-switch-control[type="checkbox"]:checked{
  border-color:#2da44e!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
#panel-bot-control input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(var(--control-switch-shift))!important}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:disabled,
#panel-bot-control label.toggle-row>input:disabled,
#panel-bot-control input.ui-switch-control[type="checkbox"]:disabled{pointer-events:none!important;cursor:not-allowed!important}
#panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:disabled+i,
#panel-bot-control label.toggle-row>input:disabled+i,
#panel-bot-control input.ui-switch-control[type="checkbox"]:disabled{opacity:.5!important;filter:saturate(.55)!important}
#panel-bot-control .inline-toggles>label{display:flex!important;align-items:center!important;gap:11px!important}
html[data-theme="dark"] #panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i,
html[data-theme="dark"] #panel-bot-control label.toggle-row>i,
html[data-theme="dark"] #panel-bot-control input.ui-switch-control[type="checkbox"]{
  border-color:#60738d!important;
  background:#42546d!important;
}
html[data-theme="dark"] #panel-bot-control :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i,
html[data-theme="dark"] #panel-bot-control label.toggle-row>input:checked+i,
html[data-theme="dark"] #panel-bot-control input.ui-switch-control[type="checkbox"]:checked{
  border-color:#3fb950!important;
  background:#2ea043!important;
}

/* v185 — volume occupies the complete settings-card width and never squeezes its title or Premium badge. */
#tunetune-music-panel .music-settings-grid>.console-card{min-width:0!important}
#tunetune-music-panel .console-fields:has(.volume-setting-v181){grid-template-columns:minmax(0,1fr)!important}
#tunetune-music-panel .volume-setting-v181{
  grid-column:1/-1!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:14px 0 22px!important;
  padding:20px!important;
}
#tunetune-music-panel .volume-setting-head-v181{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px 18px!important;
  min-width:0!important;
}
#tunetune-music-panel .volume-setting-head-v181 label{
  min-width:0!important;
  font-size:17px!important;
  line-height:1.35!important;
}
#tunetune-music-panel .premium-volume-badge-v181{justify-self:end!important;max-width:100%!important}
#tunetune-music-panel .volume-control-v181{grid-template-columns:minmax(220px,1fr) 106px!important;gap:16px!important}
#tunetune-music-panel .volume-control-v181 output{min-height:58px!important;font-size:24px!important}
#tunetune-music-panel .volume-scale-v181{margin-right:122px!important;font-size:12px!important}
#tunetune-music-panel .volume-setting-v181>small{max-width:760px!important;margin-top:8px!important}

/* v185 — save action and selected server are presented as one clear action row. */
#tunetune-music-panel .console-form>.form-actions.bot-settings-actions-v185,
#panel-bot-control .console-form>.form-actions.bot-settings-actions-v185{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  margin-top:18px!important;
  padding:14px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:14px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
}
#panel-bot-control .bot-settings-actions-v185>.primary{flex:0 0 auto!important;min-height:48px!important;padding-inline:20px!important;border-radius:11px!important}
#panel-bot-control .bot-settings-server-card{
  display:grid!important;
  grid-template-columns:38px minmax(130px,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  min-width:min(100%,360px)!important;
  max-width:100%!important;
  min-height:54px!important;
  padding:8px 10px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:11px!important;
  background:var(--account-surface,var(--gh-card))!important;
  color:var(--account-text,var(--theme-text))!important;
  overflow:hidden!important;
}
#panel-bot-control .bot-settings-server-mark{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  border-radius:10px!important;
  background:var(--account-accent-soft,#e8f2ff)!important;
  color:var(--account-accent-strong,#0969da)!important;
  font-size:19px!important;
  font-weight:950!important;
}
#panel-bot-control .bot-settings-server-copy{display:grid!important;gap:1px!important;min-width:0!important}
#panel-bot-control .bot-settings-server-copy small{color:var(--account-muted,var(--gh-muted))!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.04em!important}
#panel-bot-control .bot-settings-server-copy strong{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14px!important}
#panel-bot-control .bot-settings-server-copy code{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--account-muted,var(--gh-muted))!important;font-size:11px!important}
#panel-bot-control .bot-settings-server-card>em{
  justify-self:end!important;
  padding:5px 8px!important;
  border-radius:999px!important;
  background:#dafbe1!important;
  color:#116329!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
#panel-bot-control .bot-settings-server-card.is-loading>em{background:#ddf4ff!important;color:#0969da!important}
#panel-bot-control .bot-settings-server-card.is-idle>em,
#panel-bot-control .bot-settings-server-card.is-unavailable>em{background:var(--account-surface-soft,var(--gh-subtle))!important;color:var(--account-muted,var(--gh-muted))!important}
#panel-bot-control .bot-settings-server-card.is-error>em{background:#ffebe9!important;color:#cf222e!important;max-width:150px!important;overflow:hidden!important;text-overflow:ellipsis!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card>em{background:#153b24!important;color:#7ee787!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-loading>em{background:#163b57!important;color:#79c0ff!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-idle>em,
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-unavailable>em{background:#26364b!important;color:#a9bbcf!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-error>em{background:#4b2025!important;color:#ffb3b8!important}

@media(max-width:680px){
  #panel-bot-control label.toggle-row{column-gap:14px!important}
  #tunetune-music-panel .volume-setting-head-v181{grid-template-columns:1fr!important;align-items:start!important}
  #tunetune-music-panel .premium-volume-badge-v181{justify-self:start!important}
  #tunetune-music-panel .volume-control-v181{grid-template-columns:minmax(0,1fr) 82px!important;gap:12px!important}
  #tunetune-music-panel .volume-scale-v181{margin-right:94px!important}
  #panel-bot-control .bot-settings-actions-v185{align-items:stretch!important}
  #panel-bot-control .bot-settings-actions-v185>.primary{width:100%!important}
  #panel-bot-control .bot-settings-server-card{grid-template-columns:38px minmax(0,1fr)!important;width:100%!important}
  #panel-bot-control .bot-settings-server-card>em{grid-column:2!important;justify-self:start!important;margin-top:3px!important}
}


/* v186 — unified Premium differences, player pause icon and universal sticky saving. */
.player-controls .player-main-control{line-height:1!important;padding:0!important}
.player-pause-icon{display:inline-flex;align-items:center;justify-content:center;gap:4px;width:20px;height:20px}
.player-pause-icon i{display:block;width:4px;height:15px;border-radius:2px;background:currentColor}

.premium-difference-list-v186{display:grid!important;gap:12px!important}
.premium-difference-list-v186 li{min-height:26px}
.premium-difference-list-v186 .plan-server-limit-v186{margin:2px 0!important;padding:10px 12px!important;border:1px solid color-mix(in srgb,var(--account-accent,#2f81f7) 48%,var(--account-border))!important;border-radius:10px!important;background:color-mix(in srgb,var(--account-accent,#2f81f7) 12%,var(--account-surface))!important;color:var(--account-text)!important;list-style-position:inside!important}
.premium-difference-list-v186 .plan-server-limit-v186::marker{color:var(--account-accent,#2f81f7)}
.premium-difference-list-v186 .plan-server-limit-v186 strong{color:var(--account-accent-strong,#0969da)!important;font-weight:950!important}

.system-notification-channel-card-v186{margin-top:16px!important}
.system-notification-channel-field-v186{margin:0!important}
.system-notification-channel-field-v186 input{font-variant-numeric:tabular-nums}

#panel-bot-control .universal-save-bar-v186,
#panel-bot-control .sticky-save-bar,
#panel-bot-control .console-form>.form-actions.bot-settings-actions-v185{
  position:sticky!important;
  bottom:12px!important;
  z-index:40!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  margin-top:18px!important;
  padding:12px!important;
  border:1px solid color-mix(in srgb,var(--account-accent,#2f81f7) 34%,var(--account-border))!important;
  border-radius:15px!important;
  background:color-mix(in srgb,var(--account-surface,#fff) 94%,transparent)!important;
  box-shadow:0 14px 34px rgba(15,31,52,.18)!important;
  backdrop-filter:blur(14px)!important;
}
#panel-bot-control .universal-save-bar-v186>.primary,
#panel-bot-control .sticky-save-bar>.primary,
#panel-bot-control .console-form>.form-actions.bot-settings-actions-v185>.primary{
  flex:0 0 auto!important;
  min-width:190px!important;
  min-height:48px!important;
  margin:0!important;
}
#panel-bot-control .universal-save-bar-v186>.api-form-message,
#panel-bot-control .universal-save-bar-v186>.prefix-save-status,
#panel-bot-control .sticky-save-bar>.api-form-message,
#panel-bot-control .sticky-save-bar>.prefix-save-status{
  flex:1 1 180px!important;
  min-width:0!important;
  margin:0!important;
}
#panel-bot-control .universal-save-bar-v186 .bot-settings-server-card,
#panel-bot-control .sticky-save-bar .bot-settings-server-card,
#panel-bot-control .form-actions.bot-settings-actions-v185 .bot-settings-server-card{
  margin-left:auto!important;
  flex:0 1 450px!important;
}
#panel-bot-control .equalizer-save-bar-v186{margin-top:16px!important}

@media(max-width:820px){
  #panel-bot-control .universal-save-bar-v186,
  #panel-bot-control .sticky-save-bar,
  #panel-bot-control .console-form>.form-actions.bot-settings-actions-v185{flex-wrap:wrap!important;bottom:8px!important}
  #panel-bot-control .universal-save-bar-v186>.primary,
  #panel-bot-control .sticky-save-bar>.primary,
  #panel-bot-control .console-form>.form-actions.bot-settings-actions-v185>.primary{width:100%!important;min-width:0!important}
  #panel-bot-control .universal-save-bar-v186 .bot-settings-server-card,
  #panel-bot-control .sticky-save-bar .bot-settings-server-card,
  #panel-bot-control .form-actions.bot-settings-actions-v185 .bot-settings-server-card{order:3!important;flex-basis:100%!important;width:100%!important;margin-left:0!important}
}


/* v187 — full-width equalizer save bar and compact server-count highlight. */
#tunetune-equalizer-panel .equalizer-save-bar-v186{
  grid-column:1 / -1!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:74px!important;
  margin-inline:0!important;
}
#tunetune-equalizer-panel .equalizer-save-bar-v186>.primary{
  min-width:250px!important;
}
.premium-difference-list-v186 .plan-server-limit-v186,
.premium-difference-list-v186 .plan-server-limit-v187{
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  list-style-position:outside!important;
}
.premium-difference-list-v186 .plan-server-limit-v186::marker,
.premium-difference-list-v186 .plan-server-limit-v187::marker{
  color:var(--account-muted)!important;
}
.premium-difference-list-v186 .plan-server-limit-v186 strong,
.premium-difference-list-v186 .plan-server-limit-v187 strong{
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  padding:5px 11px!important;
  border:1px solid color-mix(in srgb,var(--account-accent,#2f81f7) 44%,var(--account-border))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--account-accent,#2f81f7) 10%,var(--account-surface))!important;
  color:var(--account-accent-strong,#0969da)!important;
  font-weight:950!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
html[data-theme="dark"] .premium-difference-list-v186 .plan-server-limit-v187 strong,
html[data-theme="dark"] .premium-difference-list-v186 .plan-server-limit-v186 strong{
  background:rgba(76,201,255,.10)!important;
}
@media(max-width:680px){
  #tunetune-equalizer-panel .equalizer-save-bar-v186>.primary{width:100%!important;min-width:0!important}
}

/* v188 — every functional toggle matches the Profile → Notifications switch. */
.account-page{
  --profile-switch-width:52px;
  --profile-switch-height:30px;
  --profile-switch-knob:24px;
  --profile-switch-offset:2px;
  --profile-switch-shift:22px;
}

/* Switches that already use an input + track wrapper. */
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch){
  position:relative!important;
  display:inline-block!important;
  align-self:center!important;
  flex:0 0 var(--profile-switch-width)!important;
  width:var(--profile-switch-width)!important;
  min-width:var(--profile-switch-width)!important;
  max-width:var(--profile-switch-width)!important;
  height:var(--profile-switch-height)!important;
  min-height:var(--profile-switch-height)!important;
  max-height:var(--profile-switch-height)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  line-height:0!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #8293a8!important;
  border-radius:999px!important;
  background:#43556d!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.15)!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i::after{
  content:""!important;
  position:absolute!important;
  top:var(--profile-switch-offset)!important;
  left:var(--profile-switch-offset)!important;
  display:block!important;
  width:var(--profile-switch-knob)!important;
  height:var(--profile-switch-knob)!important;
  margin:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
  box-sizing:border-box!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i{
  border-color:#3fb950!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i::after{
  transform:translateX(var(--profile-switch-shift))!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.24)!important;
  outline-offset:2px!important;
}
.account-page :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:disabled+i{
  opacity:.48!important;
  filter:saturate(.55)!important;
}

/* Rows where the input and visual track are direct children of the label. */
.account-page label.toggle-row{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-width:0!important;
  padding-right:70px!important;
  box-sizing:border-box!important;
}
.account-page label.toggle-row>span:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
.account-page label.toggle-row>input[type="checkbox"]{
  position:absolute!important;
  top:50%!important;
  right:0!important;
  z-index:3!important;
  display:block!important;
  width:var(--profile-switch-width)!important;
  height:var(--profile-switch-height)!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  cursor:pointer!important;
  transform:translateY(-50%)!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
.account-page label.toggle-row>i{
  position:absolute!important;
  top:50%!important;
  right:0!important;
  display:block!important;
  width:var(--profile-switch-width)!important;
  height:var(--profile-switch-height)!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #8293a8!important;
  border-radius:999px!important;
  background:#43556d!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.15)!important;
  transform:translateY(-50%)!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
.account-page label.toggle-row>i::after{
  content:""!important;
  position:absolute!important;
  top:var(--profile-switch-offset)!important;
  left:var(--profile-switch-offset)!important;
  display:block!important;
  width:var(--profile-switch-knob)!important;
  height:var(--profile-switch-knob)!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
  box-sizing:border-box!important;
}
.account-page label.toggle-row>input:checked+i{
  border-color:#3fb950!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page label.toggle-row>input:checked+i::after{
  transform:translateX(var(--profile-switch-shift))!important;
}
.account-page label.toggle-row>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.24)!important;
  outline-offset:2px!important;
}
.account-page label.toggle-row>input:disabled+i{
  opacity:.48!important;
  filter:saturate(.55)!important;
}

/* Bare switch inputs used in compact option lists and for optional auto-renewal. */
.account-page input.ui-switch-control[type="checkbox"],
.account-page .subscription-autorenew-v151>input[type="checkbox"]{
  position:relative!important;
  display:inline-block!important;
  flex:0 0 var(--profile-switch-width)!important;
  width:var(--profile-switch-width)!important;
  min-width:var(--profile-switch-width)!important;
  max-width:var(--profile-switch-width)!important;
  height:var(--profile-switch-height)!important;
  min-height:var(--profile-switch-height)!important;
  max-height:var(--profile-switch-height)!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #8293a8!important;
  border-radius:999px!important;
  background:#43556d!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.15)!important;
  cursor:pointer!important;
  vertical-align:middle!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  box-sizing:border-box!important;
}
.account-page input.ui-switch-control[type="checkbox"]::after,
.account-page .subscription-autorenew-v151>input[type="checkbox"]::after{
  content:""!important;
  position:absolute!important;
  top:var(--profile-switch-offset)!important;
  left:var(--profile-switch-offset)!important;
  display:block!important;
  width:var(--profile-switch-knob)!important;
  height:var(--profile-switch-knob)!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
  box-sizing:border-box!important;
}
.account-page input.ui-switch-control[type="checkbox"]:checked,
.account-page .subscription-autorenew-v151>input[type="checkbox"]:checked{
  border-color:#3fb950!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
.account-page input.ui-switch-control[type="checkbox"]:checked::after,
.account-page .subscription-autorenew-v151>input[type="checkbox"]:checked::after{
  transform:translateX(var(--profile-switch-shift))!important;
}
.account-page input.ui-switch-control[type="checkbox"]:focus-visible,
.account-page .subscription-autorenew-v151>input[type="checkbox"]:focus-visible{
  outline:3px solid rgba(47,129,247,.24)!important;
  outline-offset:2px!important;
}
.account-page input.ui-switch-control[type="checkbox"]:disabled,
.account-page .subscription-autorenew-v151>input[type="checkbox"]:disabled{
  opacity:.48!important;
  filter:saturate(.55)!important;
  cursor:not-allowed!important;
}
.account-page .subscription-autorenew-v151{align-items:center!important}

/* Keep ordinary legal, confirmation and sign-in checkboxes square. */
.account-page :is(.checkout-terms,.developer-write-confirm,.auth-remember,.consent-row)>input[type="checkbox"]{
  border-radius:4px!important;
}

@media(max-width:620px){
  .account-page label.toggle-row{padding-right:66px!important}
}


/* ===== v193: bot-colored outline for the left module menu ===== */
#panel-bot-control{
  --bot-sidebar-outline:#43bdf1;
  --bot-sidebar-glow:rgba(67,189,241,.18);
}
#panel-bot-control[data-active-bot="tunetune"]{
  --bot-sidebar-outline:#43bdf1;
  --bot-sidebar-glow:rgba(67,189,241,.18);
}
#panel-bot-control[data-active-bot="shieldy"]{
  --bot-sidebar-outline:#3fb950;
  --bot-sidebar-glow:rgba(63,185,80,.18);
}
#panel-bot-control[data-active-bot="gamey"]{
  --bot-sidebar-outline:#ff6fae;
  --bot-sidebar-glow:rgba(255,111,174,.18);
}
#panel-bot-control .bot-module-sidebar{
  border:2px solid var(--bot-sidebar-outline)!important;
  box-shadow:0 0 0 3px var(--bot-sidebar-glow),0 12px 28px rgba(13,25,43,.10)!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
html[data-theme="dark"] #panel-bot-control .bot-module-sidebar{
  box-shadow:0 0 0 3px var(--bot-sidebar-glow),0 12px 28px rgba(0,0,0,.28)!important;
}
#panel-bot-control .bot-sidebar-top{
  border-bottom-color:color-mix(in srgb,var(--bot-sidebar-outline) 35%,var(--account-border))!important;
}
#panel-bot-control .bot-module-menu button.is-active{
  border-color:var(--bot-sidebar-outline)!important;
  box-shadow:inset 4px 0 0 var(--bot-sidebar-outline),0 0 0 2px var(--bot-sidebar-glow)!important;
}

/* v195 — unsaved settings attention and discard action. */
#panel-bot-control .discard-unsaved-button{
  flex:0 0 auto!important;
  min-width:190px!important;
  min-height:48px!important;
  margin:0!important;
  padding:10px 18px!important;
  border:1px solid #cf222e!important;
  border-radius:12px!important;
  background:color-mix(in srgb,#cf222e 7%,var(--account-surface,#fff))!important;
  color:#cf222e!important;
  box-shadow:none!important;
  font:900 15px Nunito,sans-serif!important;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,opacity .16s ease,transform .16s ease!important;
}
#panel-bot-control .discard-unsaved-button:hover:not(:disabled){
  background:#ffebe9!important;
  border-color:#a40e26!important;
  transform:translateY(-1px)!important;
}
#panel-bot-control .discard-unsaved-button:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
  filter:saturate(.55);
  transform:none!important;
}
html[data-theme="dark"] #panel-bot-control .discard-unsaved-button{
  background:rgba(248,81,73,.08)!important;
  color:#ff7b72!important;
  border-color:#8e303b!important;
}
html[data-theme="dark"] #panel-bot-control .discard-unsaved-button:hover:not(:disabled){background:rgba(248,81,73,.16)!important}

#panel-bot-control .universal-save-bar-v186.has-unsaved-changes,
#panel-bot-control .sticky-save-bar.has-unsaved-changes,
#panel-bot-control .form-actions.has-unsaved-changes{
  border-color:#cf222e!important;
  box-shadow:0 14px 36px rgba(207,34,46,.20)!important;
}
#panel-bot-control .bot-settings-server-card.is-unsaved{
  border-color:#ff8182!important;
  background:color-mix(in srgb,#ffebe9 72%,var(--account-surface,#fff))!important;
}
#panel-bot-control .bot-settings-server-card.is-unsaved>em{color:#cf222e!important;background:#ffebe9!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-unsaved{background:rgba(248,81,73,.10)!important;border-color:#8e303b!important}
html[data-theme="dark"] #panel-bot-control .bot-settings-server-card.is-unsaved>em{background:rgba(248,81,73,.16)!important;color:#ff9da7!important}

#panel-bot-control .unsaved-attention{
  animation:tunetune-unsaved-bar-shake .82s cubic-bezier(.36,.07,.19,.97) both;
}
#panel-bot-control .unsaved-attention::before{
  content:"";
  position:absolute;
  inset:-2px;
  z-index:-1;
  pointer-events:none;
  border:3px solid #f85149;
  border-radius:17px;
  background:rgba(248,81,73,.08);
  animation:tunetune-unsaved-red-flash .82s ease both;
}
#panel-bot-control .unsaved-attention>.primary,
#panel-bot-control .unsaved-attention>button.primary,
#panel-bot-control .unsaved-attention>input.primary[type="submit"]{
  background:#cf222e!important;
  border-color:#ff8182!important;
  box-shadow:0 0 0 5px rgba(248,81,73,.20)!important;
  animation:tunetune-unsaved-save-blink .82s ease both!important;
}
@keyframes tunetune-unsaved-bar-shake{
  0%,100%{transform:translateX(0)}
  12%{transform:translateX(-7px)}
  24%{transform:translateX(6px)}
  36%{transform:translateX(-5px)}
  48%{transform:translateX(4px)}
  60%{transform:translateX(-3px)}
  72%{transform:translateX(2px)}
}
@keyframes tunetune-unsaved-red-flash{
  0%,100%{opacity:0}
  12%,38%,64%{opacity:1}
  25%,51%,77%{opacity:.18}
}
@keyframes tunetune-unsaved-save-blink{
  0%,100%{opacity:1;transform:scale(1)}
  18%,48%,78%{opacity:.52;transform:scale(.985)}
  32%,62%{opacity:1;transform:scale(1.025)}
}
@media (prefers-reduced-motion:reduce){
  #panel-bot-control .unsaved-attention,
  #panel-bot-control .unsaved-attention::before,
  #panel-bot-control .unsaved-attention>.primary{animation:none!important}
}
@media(max-width:820px){
  #panel-bot-control .discard-unsaved-button{width:100%!important;min-width:0!important}
}
#panel-bot-control .unsaved-attention{overflow:visible!important;isolation:isolate}
#panel-bot-control .unsaved-attention::before{z-index:0}
#panel-bot-control .unsaved-attention>*{position:relative;z-index:1}


/* v196 — custom animated server selector (trial component). */
#panel-bot-control .managed-server-select-v196{
  position:relative;
  order:3!important;
  width:100%;
  min-width:0;
  z-index:24;
}
#panel-bot-control .managed-server-native-v196{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  margin:-1px!important;
  padding:0!important;
  overflow:hidden!important;
  clip:rect(0 0 0 0)!important;
  clip-path:inset(50%)!important;
  white-space:nowrap!important;
  border:0!important;
  opacity:0!important;
  pointer-events:none!important;
}
#panel-bot-control .managed-server-trigger-v196{
  width:100%;
  min-height:58px;
  padding:12px 52px 12px 16px;
  display:flex;
  align-items:center;
  text-align:left;
  border:2px solid color-mix(in srgb,var(--account-accent,#1597ff) 28%,var(--account-border));
  border-radius:15px;
  background:var(--account-surface-soft,#f6f8fa);
  color:var(--account-text,#1f2328);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--account-accent,#1597ff) 7%,transparent);
  font:850 15px/1.3 Nunito,sans-serif;
  cursor:pointer;
  position:relative;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
#panel-bot-control .managed-server-trigger-v196:hover:not(:disabled){
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--account-accent,#1597ff) 62%,var(--account-border));
  box-shadow:0 8px 20px color-mix(in srgb,var(--account-accent,#1597ff) 12%,transparent);
  background:var(--account-surface,#fff);
}
#panel-bot-control .managed-server-trigger-v196:focus-visible{
  outline:0;
  border-color:var(--account-accent,#1597ff);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--account-accent,#1597ff) 17%,transparent);
}
#panel-bot-control .managed-server-trigger-v196:disabled{
  cursor:not-allowed;
  opacity:.68;
}
#panel-bot-control .managed-server-trigger-v196 i{
  position:absolute;
  right:18px;
  top:50%;
  width:10px;
  height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-70%) rotate(45deg);
  color:var(--account-muted,#57606a);
  transition:transform .2s ease,color .2s ease;
}
#panel-bot-control .managed-server-select-v196.is-open .managed-server-trigger-v196{
  border-color:var(--account-accent,#1597ff);
  background:var(--account-surface,#fff);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--account-accent,#1597ff) 13%,transparent);
}
#panel-bot-control .managed-server-select-v196.is-open .managed-server-trigger-v196 i{
  transform:translateY(-25%) rotate(225deg);
  color:var(--account-accent,#1597ff);
}
#panel-bot-control .managed-server-trigger-v196.is-confirmed{
  animation:managed-server-confirm-v196 .36s ease;
}
#panel-bot-control .managed-server-menu-v196{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 8px);
  max-height:260px;
  overflow:auto;
  padding:7px;
  border:1px solid color-mix(in srgb,var(--account-accent,#1597ff) 38%,var(--account-border));
  border-radius:14px;
  background:var(--account-surface,#fff);
  box-shadow:0 18px 42px rgba(13,25,43,.18);
  opacity:0;
  transform:translateY(-7px) scale(.985);
  transform-origin:top;
  pointer-events:none;
  visibility:hidden;
  transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s;
}
#panel-bot-control .managed-server-select-v196.is-open .managed-server-menu-v196{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
  visibility:visible;
  transition:opacity .16s ease,transform .16s ease,visibility 0s;
}
#panel-bot-control .managed-server-option-v196{
  width:100%;
  min-height:46px;
  padding:9px 12px;
  display:grid;
  gap:2px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--account-text,#1f2328);
  text-align:left;
  cursor:pointer;
  font:850 14px/1.25 Nunito,sans-serif;
  transition:background .14s ease,color .14s ease,transform .14s ease;
}
#panel-bot-control .managed-server-option-v196 small{
  color:var(--account-muted,#57606a);
  font-size:11px;
  font-weight:750;
}
#panel-bot-control .managed-server-option-v196:hover,
#panel-bot-control .managed-server-option-v196:focus-visible{
  outline:0;
  background:color-mix(in srgb,var(--account-accent,#1597ff) 10%,var(--account-surface-soft));
  color:var(--account-accent,#0969da);
  transform:translateX(2px);
}
#panel-bot-control .managed-server-option-v196.is-selected{
  background:color-mix(in srgb,var(--account-accent,#1597ff) 14%,var(--account-surface-soft));
  color:var(--account-accent,#0969da);
}
#panel-bot-control .managed-server-empty-v196{
  padding:13px 12px;
  color:var(--account-muted,#57606a);
  font-size:13px;
  font-weight:800;
  text-align:center;
}
@keyframes managed-server-confirm-v196{
  0%,100%{transform:scale(1)}
  45%{transform:scale(.992)}
  70%{transform:scale(1.006)}
}
html[data-theme="dark"] #panel-bot-control .managed-server-trigger-v196,
html[data-theme="dark"] #panel-bot-control .managed-server-menu-v196{
  background:#121d30;
  border-color:#35506f;
  color:#e6edf3;
}
html[data-theme="dark"] #panel-bot-control .managed-server-trigger-v196:hover:not(:disabled),
html[data-theme="dark"] #panel-bot-control .managed-server-select-v196.is-open .managed-server-trigger-v196{
  background:#17243a;
}
@media(prefers-reduced-motion:reduce){
  #panel-bot-control .managed-server-trigger-v196,
  #panel-bot-control .managed-server-menu-v196,
  #panel-bot-control .managed-server-option-v196{transition:none!important;animation:none!important}
}


/* v199 — reliable unsaved-navigation reminder and sidebar tooltip layering. */
#panel-bot-control.unsaved-navigation-blocked .bot-workspace{
  animation:tunetune-workspace-unsaved-shake .58s cubic-bezier(.36,.07,.19,.97) both;
  transform-origin:center;
}
@keyframes tunetune-workspace-unsaved-shake{
  0%,100%{transform:translateX(0)}
  12%,36%,60%,84%{transform:translateX(-5px)}
  24%,48%,72%{transform:translateX(5px)}
}
#panel-bot-control .bot-workspace,
#panel-bot-control .bot-module-sidebar,
#panel-bot-control .bot-module-menu,
#panel-bot-control .bot-module-menu button{
  overflow:visible!important;
}
#panel-bot-control .bot-workspace{position:relative!important;isolation:isolate!important}
#panel-bot-control .bot-module-sidebar{
  z-index:300!important;
  isolation:isolate!important;
}
#panel-bot-control .bot-module-content{
  position:relative!important;
  z-index:1!important;
  min-width:0!important;
}
#panel-bot-control .bot-module-sidebar.is-collapsed .bot-module-menu button:hover::after{
  left:calc(100% + 12px)!important;
  z-index:9999!important;
  max-width:220px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  pointer-events:none!important;
}
@media(prefers-reduced-motion:reduce){
  #panel-bot-control.unsaved-navigation-blocked .bot-workspace{animation:none!important}
}


/* v201 — lighter brand typography and safe expanded bot workspace. */
.account-brand,
.account-brand-copy strong,
.auth-brand-copy strong{
  font-weight:600!important;
}
.account-brand-copy small,
.auth-brand-copy small{
  font-weight:500!important;
}

/* When the function sidebar is expanded, wide two-column settings move into one column.
   This prevents cards, badges, ranges and command panels from entering each other's area. */
@media (min-width:1051px){
  #bot-management-workspace:not(.is-sidebar-collapsed) .bot-console-grid,
  #bot-management-workspace:not(.is-sidebar-collapsed) .music-settings-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #bot-management-workspace:not(.is-sidebar-collapsed) .command-card{
    width:100%!important;
    max-width:none!important;
  }
  #bot-management-workspace:not(.is-sidebar-collapsed) #tunetune-music-panel .volume-setting-head-v181{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
}


/* TuneTune v202: general-page journals, community links and refresh controls */
.bot-community-grid-v202{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.bot-refresh-card-v202{display:flex;align-items:center;justify-content:space-between;gap:18px}
.bot-refresh-card-v202 h3,.bot-refresh-card-v202 p{margin:0}.bot-refresh-card-v202 p{margin-top:5px;color:var(--gh-muted)}
.embedded-journal-section-v202{display:grid;gap:14px;margin-top:14px}
.journal-master-card-v202{overflow:hidden}
.journal-master-head-v202{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--gh-border)}
.journal-master-head-v202 h3,.journal-master-head-v202 p{margin:0}.journal-master-head-v202 p{margin-top:6px;color:var(--gh-muted)}
.journal-title-row-v202{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.journal-master-toggle-v202{display:flex;align-items:center;gap:11px;font-weight:900;white-space:nowrap}
.journal-options-grid-v202{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px}
.journal-event-option-v202{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid var(--gh-border);border-radius:12px;background:var(--gh-subtle);cursor:pointer}
.journal-event-option-v202>span:first-child{display:grid;gap:3px}.journal-event-option-v202 small{color:var(--gh-muted);line-height:1.35}
.journal-meta-grid-v202{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.journal-meta-grid-v202 .field{margin:16px 0 0}
.journal-save-bar-v202{margin-top:12px}
.journal-preview-card-v202,.embedded-shieldy-journal-viewer-v202{transition:opacity .18s ease,filter .18s ease}
[data-journal-content].is-journal-disabled-v202{opacity:.46;filter:grayscale(.25);pointer-events:none;user-select:none}
[data-journal-options].is-journal-disabled-v202{opacity:.55}
.embedded-shieldy-journal-viewer-v202 .console-heading{margin-top:0}
.embedded-shieldy-journal-viewer-v202 .shieldy-journal-module{display:block!important}
.prefix-card-actions>.bot-settings-server-card,.sticky-save-bar>.bot-settings-server-card{display:none!important}
@media(max-width:780px){.bot-community-grid-v202,.journal-options-grid-v202,.journal-meta-grid-v202{grid-template-columns:1fr}.journal-master-head-v202,.bot-refresh-card-v202{align-items:flex-start;flex-direction:column}.journal-master-toggle-v202{width:100%;justify-content:space-between}}


/* ===== v203 — Shieldy/Gamey spacing, one save action, collapsible journals and game cards ===== */
#panel-bot-control .general-control-card{margin-bottom:20px!important}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active,
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel.is-active{
  display:grid!important;
  gap:20px!important;
  align-content:start!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active>*:not([hidden]),
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel.is-active>*:not([hidden]){margin-top:0!important;margin-bottom:0!important}
#panel-bot-control .bot-module-panel .status-grid{margin:0!important}
#panel-bot-control .bot-module-panel .sticky-save-bar{margin-top:0!important}
#panel-bot-control .universal-panel-save.is-duplicate-save{display:none!important}

.collapsible-module-heading{align-items:center!important;gap:18px!important}
.module-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.module-master-switch{display:flex;align-items:center;gap:10px;min-height:40px;font-size:12px;font-weight:900;color:var(--account-muted)}
.collapsible-module-body{display:grid;gap:18px;min-width:0}
.collapsible-module-body[hidden]{display:none!important}
.log-master-source-switch{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.log-collection-master .card-title{padding-right:0!important}
.shieldy-journal-module.is-journal-disabled .collapsible-module-body{opacity:.55}

.shieldy-other-grid{display:grid;grid-template-columns:1fr;gap:18px}
.flexible-feature-card{min-width:0}
.flexible-feature-card .card-title{align-items:center!important}
.feature-settings-body{display:grid;gap:4px;margin-top:12px}
.feature-settings-body.is-disabled{opacity:.5;filter:saturate(.7);pointer-events:none}
.feature-toggle-grid{display:grid;gap:10px;margin-top:12px}
.feature-toggle-grid>label{display:grid;grid-template-columns:minmax(0,1fr) 52px;align-items:center;gap:16px;min-height:64px;padding:12px 14px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}
.feature-toggle-grid>label>span:first-child{display:grid;gap:3px;min-width:0}
.feature-toggle-grid strong{font-size:13px}
.feature-toggle-grid small{color:var(--account-muted);font-size:11px;line-height:1.4}
.single-module-save{display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;align-items:center!important;gap:10px!important}
.single-module-save .api-form-message{margin:0!important;min-width:0}

.gamey-games-module{min-width:0}
.game-selection-counter{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 11px;border:1px solid var(--account-border);border-radius:999px;background:var(--account-surface-soft);font-size:12px;font-weight:950;color:var(--account-accent-strong)}
.game-selection-counter.is-full{border-color:#82e596;background:#dafbe1;color:#116329}
.gamey-selection-note{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,color-mix(in srgb,var(--account-accent) 8%,var(--account-surface)),var(--account-surface))!important}
.gamey-selection-note>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:13px;background:var(--account-accent);color:#fff;font-size:20px;font-weight:950}
.gamey-selection-note p{margin:3px 0 0;color:var(--account-muted);font-size:12px}
.game-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.game-choice-card{position:relative;display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;column-gap:12px;row-gap:3px;min-height:126px;padding:15px;border:1px solid var(--account-border);border-radius:15px;background:var(--account-surface-soft);cursor:pointer;transition:.16s ease;overflow:hidden}
.game-choice-card:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--account-accent) 55%,var(--account-border))}
.game-choice-card input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:2!important}
.game-choice-card.is-selected{border-color:var(--account-accent)!important;background:color-mix(in srgb,var(--account-accent) 8%,var(--account-surface))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent) 14%,transparent)!important}
.game-choice-card.is-selected::after{content:"✓";position:absolute;top:9px;right:10px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--account-accent);color:#fff;font-weight:950}
.game-choice-card.is-pending{opacity:.58;cursor:not-allowed}
.game-choice-card.is-pending input{cursor:not-allowed!important}
.game-choice-icon{grid-row:1/4;display:grid;place-items:center;width:46px;height:46px;border:1px solid color-mix(in srgb,var(--account-accent) 30%,var(--account-border));border-radius:13px;background:var(--account-surface);color:var(--account-accent-strong);font-size:12px;font-weight:950}
.game-choice-card strong{padding-right:24px;font-size:13px}
.game-choice-card small{color:var(--account-muted);font-size:10px;line-height:1.35}
.game-choice-card em{width:max-content;padding:3px 7px;border-radius:999px;background:#dafbe1;color:#116329;font-size:9px;font-style:normal;font-weight:950}
.game-choice-card.is-pending em{background:#fff8c5;color:#633c01}
.premium-setting-card{position:relative;overflow:hidden}
.premium-lock-note{display:flex;align-items:flex-start;gap:12px;margin:12px 0;padding:13px 14px;border:1px solid #ffcf8b;border-radius:13px;background:#fff8c5;color:#633c01}
.premium-lock-note strong{white-space:nowrap}.premium-lock-note span{font-size:11px;line-height:1.45}
.game-card-settings.is-locked{opacity:.48;filter:saturate(.55);pointer-events:none}
.game-card-settings{display:grid;gap:8px}
.game-card-settings input[type="color"]{min-height:48px;padding:5px!important}

/* Force every Shieldy/Gamey functional switch to the approved TuneTune geometry. */
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch){
  flex:0 0 var(--profile-switch-width)!important;width:var(--profile-switch-width)!important;height:var(--profile-switch-height)!important;align-self:center!important;margin:0!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) .normalized-switch>input:checked+i::after,
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) .mini-switch>input:checked+i::after,
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) .switch>input:checked+i::after{transform:translateX(var(--profile-switch-shift))!important}

html[data-theme="dark"] .premium-lock-note{border-color:#6e5523;background:#3b2f14;color:#f2cc60}
html[data-theme="dark"] .game-selection-counter.is-full{border-color:#276a3b;background:#153b24;color:#7ee787}
html[data-theme="dark"] .game-choice-card em{background:#153b24;color:#7ee787}
html[data-theme="dark"] .game-choice-card.is-pending em{background:#3b2f14;color:#f2cc60}

@media(max-width:1080px){.shieldy-other-grid{grid-template-columns:1fr}.game-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.module-heading-actions{justify-content:flex-start}.collapsible-module-heading{align-items:flex-start!important}.game-choice-grid{grid-template-columns:1fr}.single-module-save{grid-template-columns:1fr!important}.single-module-save>*{width:100%!important}.premium-lock-note{display:grid}.premium-lock-note strong{white-space:normal}.feature-toggle-grid>label{grid-template-columns:minmax(0,1fr) 52px}}


/* v203: embedded journals collapse without removing the v202 premium design. */
.journal-master-head-v202{flex-wrap:wrap}
.journal-master-head-v202>.journal-collapse-button-v203{margin-left:auto}
.embedded-journal-section-v202.is-journal-collapsed-v203 .journal-options-grid-v202,
.embedded-journal-section-v202.is-journal-collapsed-v203 .journal-meta-grid-v202,
.embedded-journal-section-v202.is-journal-collapsed-v203 [data-journal-content]{display:none!important}
.embedded-journal-section-v202.is-journal-off-v203 .journal-options-grid-v202,
.embedded-journal-section-v202.is-journal-off-v203 .journal-meta-grid-v202,
.embedded-journal-section-v202.is-journal-off-v203 [data-journal-content]{display:none!important}
@media(max-width:780px){.journal-master-head-v202>.journal-collapse-button-v203{margin-left:0;width:100%}}

/* v204 — Gamey RSS, news and release calendar. */
.gamey-rss-module{display:grid;gap:18px}
.gamey-rss-summary-card{display:flex;align-items:flex-start;gap:14px}
.gamey-rss-summary-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:color-mix(in srgb,#ff4f8b 14%,var(--account-surface-soft));color:#d92f70;font-size:22px;font-weight:900;flex:0 0 auto}
.gamey-rss-summary-card p{margin:6px 0 0;color:var(--account-muted)}
.collapsible-feature-card-v204{padding:0!important;overflow:hidden}
.collapsible-feature-head-v204{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px}
.collapsible-feature-head-v204 h3{margin:0}
.collapsible-feature-head-v204 p{margin:6px 0 0;color:var(--account-muted)}
.card-title-inline-v204{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.collapsible-feature-actions-v204{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.feature-master-toggle-v204{display:flex;align-items:center;gap:9px;font-weight:800;white-space:nowrap}
.collapsible-feature-body-v204{display:grid;gap:18px;padding:0 22px 22px;border-top:1px solid var(--account-border);padding-top:20px}
.collapsible-feature-body-v204[hidden]{display:none!important}
.collapsible-feature-body-v204.is-feature-disabled-v204{opacity:.62}
.collapsible-feature-body-v204.is-feature-disabled-v204 input:not([type="checkbox"]),
.collapsible-feature-body-v204.is-feature-disabled-v204 select,
.collapsible-feature-body-v204.is-feature-disabled-v204 textarea{filter:saturate(.72)}
.rss-feed-toolbar-v204{display:flex;align-items:center;justify-content:space-between;gap:14px}
.rss-feed-toolbar-v204>div{display:grid;gap:3px}
.rss-feed-toolbar-v204 small{color:var(--account-muted);font-weight:800}
.rss-feed-list-v204{display:grid;gap:12px}
.rss-feed-list-v204:empty::before{content:'Каналы ещё не добавлены.';display:block;padding:20px;border:1px dashed var(--account-border);border-radius:14px;text-align:center;color:var(--account-muted);font-weight:700;background:var(--account-surface-soft)}
.rss-feed-row-v204{padding:16px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface-soft)}
.rss-feed-row-head-v204{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.rss-feed-remove-v204{border:0;background:transparent;color:#cf222e;font:inherit;font-size:13px;font-weight:850;cursor:pointer;padding:7px 9px;border-radius:9px}
.rss-feed-remove-v204:hover{background:color-mix(in srgb,#cf222e 10%,transparent)}
.rss-feed-fields-v204{grid-template-columns:170px minmax(220px,1.35fr) minmax(200px,1fr) minmax(160px,.8fr)!important}
.subsection-divider-v204{height:1px;background:var(--account-border);margin:2px 0}
.choice-fieldset-v204{border:0;padding:0;margin:0;display:grid;gap:10px}
.choice-fieldset-v204 legend{font-size:14px;font-weight:900;margin-bottom:10px}
.choice-chip-grid-v204{display:flex;gap:9px;flex-wrap:wrap}
.choice-chip-grid-v204 label{position:relative;cursor:pointer}
.choice-chip-grid-v204 input{position:absolute;opacity:0;pointer-events:none}
.choice-chip-grid-v204 span{display:inline-flex;align-items:center;min-height:39px;padding:8px 13px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft);font-weight:800;transition:.16s ease}
.choice-chip-grid-v204 input:checked+span{border-color:color-mix(in srgb,#ff4f8b 62%,var(--account-border));background:color-mix(in srgb,#ff4f8b 12%,var(--account-surface));color:#bd2561;box-shadow:0 0 0 2px color-mix(in srgb,#ff4f8b 10%,transparent)}
.choice-chip-grid-v204 input:focus-visible+span{outline:3px solid color-mix(in srgb,#ff4f8b 28%,transparent);outline-offset:2px}
.source-grid-v204 span{min-width:112px;justify-content:center}
.rss-toggle-grid-v204{grid-template-columns:repeat(2,minmax(0,1fr))}
.gamey-rss-save-bar-v204{margin-top:0}
html[data-theme="dark"] .gamey-rss-summary-card>span{color:#ff78a8}
html[data-theme="dark"] .choice-chip-grid-v204 input:checked+span{color:#ff91b7}
@media(max-width:1120px){.rss-feed-fields-v204{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){
  .collapsible-feature-head-v204{align-items:flex-start;flex-direction:column;padding:17px}
  .collapsible-feature-actions-v204{width:100%;justify-content:space-between}
  .collapsible-feature-body-v204{padding:17px;padding-top:16px}
  .rss-feed-toolbar-v204{align-items:flex-start;flex-direction:column}
  .rss-feed-toolbar-v204 .inline-button{width:100%}
  .rss-feed-fields-v204,.rss-toggle-grid-v204{grid-template-columns:1fr!important}
  .choice-chip-grid-v204{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .choice-chip-grid-v204 span{justify-content:center;width:100%}
}
@media(max-width:460px){.choice-chip-grid-v204{grid-template-columns:1fr}.collapsible-feature-actions-v204{align-items:flex-start;flex-direction:column}.feature-master-toggle-v204{width:100%;justify-content:space-between}}

/* v205 — tester permissions, Gamey feature blocks, consistent switches and layout. */
body[data-account-role="tester"] #panel-admin,
body[data-account-role="tester"] [data-admin-only],
html[data-admin-panel-access="0"] #panel-admin{
  display:none!important;
}

/* Detailed bot cards in the service console. */
.developer-bots-card-v205{margin-top:20px}
.developer-bot-grid-v205{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.developer-bot-card-v205{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;padding:16px;border:1px solid var(--account-border,var(--gh-border));border-radius:16px;background:var(--account-surface-soft,var(--gh-subtle));min-width:0}
.developer-bot-card-v205>img{width:52px;height:52px;border-radius:14px;object-fit:cover;border:1px solid var(--account-border,var(--gh-border));background:#fff}
.developer-bot-card-v205>div{min-width:0;display:grid;align-content:center;gap:3px}
.developer-bot-card-v205>div strong{font-size:17px}.developer-bot-card-v205>div span{font-size:13px;color:var(--account-muted,var(--gh-muted));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.developer-bot-card-v205 dl{grid-column:1/-1;margin:2px 0 0;display:grid;gap:7px}
.developer-bot-card-v205 dl div{display:flex;justify-content:space-between;gap:14px;padding-top:7px;border-top:1px solid var(--account-border,var(--gh-border))}
.developer-bot-card-v205 dt{color:var(--account-muted,var(--gh-muted));font-size:12px}.developer-bot-card-v205 dd{margin:0;text-align:right;font-size:12px;font-weight:900;overflow-wrap:anywhere}

/* One exact switch geometry for Shieldy and Gamey, matching TuneTune. */
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch){
  position:relative!important;display:inline-flex!important;flex:0 0 52px!important;width:52px!important;height:30px!important;min-width:52px!important;min-height:30px!important;margin:0!important;align-self:center!important;vertical-align:middle!important;line-height:0!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input[type="checkbox"]{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;z-index:3!important;cursor:pointer!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i{
  position:absolute!important;inset:0!important;display:block!important;border:1px solid #8293a8!important;border-radius:999px!important;background:#43556d!important;box-shadow:inset 0 1px 2px rgba(0,0,0,.16)!important;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;pointer-events:none!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>i::after{
  content:""!important;position:absolute!important;left:2px!important;top:2px!important;width:24px!important;height:24px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 2px 6px rgba(16,35,63,.28)!important;transform:translateX(0)!important;transition:transform .18s ease!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i{background:#2da44e!important;border-color:#2da44e!important;box-shadow:0 0 0 3px rgba(45,164,78,.12)!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:checked+i::after{transform:translateX(22px)!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:focus-visible+i{outline:3px solid rgba(47,129,247,.24)!important;outline-offset:2px!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.normalized-switch,.tt-route-switch,.mini-switch,.switch,.equalizer-switch)>input:disabled+i{opacity:.55!important;cursor:not-allowed!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.feature-toggle-grid>label,.journal-event-option-v202,.toggle-row,.settings-toggle-row){align-items:center!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) :is(.feature-toggle-grid>label,.journal-event-option-v202,.toggle-row,.settings-toggle-row)>.normalized-switch{margin-left:auto!important}

/* Shieldy/Gamey module spacing and sticky save bars. */
#panel-bot-control .bot-module-content,
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]){overflow:visible!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]).is-active{display:grid!important;gap:22px!important;align-content:start!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"])>:is(article,.github-card,form,section,.status-grid,.bot-community-grid-v202,.command-catalog-grid,.shieldy-other-grid){margin:0!important}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) .sticky-save-bar{
  position:sticky!important;position:-webkit-sticky!important;bottom:12px!important;z-index:35!important;margin-top:20px!important;align-self:end!important;border:1px solid var(--account-border,var(--gh-border))!important;border-radius:14px!important;box-shadow:0 14px 34px rgba(16,35,63,.14)!important;backdrop-filter:blur(12px)!important
}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]) .sticky-save-bar:empty{display:none!important}

/* Straight and evenly spaced Shieldy sidebar icons. */
.bot-module-menu[data-bot-menu="shieldy"]{gap:8px!important}
.bot-module-menu[data-bot-menu="shieldy"]>button{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:52px!important;padding:5px 10px!important;text-align:left!important}
.bot-module-menu[data-bot-menu="shieldy"] .module-icon{width:42px!important;height:42px!important;min-width:42px!important;display:grid!important;place-items:center!important;border:1px solid var(--account-border,var(--gh-border))!important;border-radius:12px!important;background:var(--account-surface,var(--gh-card))!important;color:var(--account-muted,var(--gh-muted))!important;font-size:19px!important;line-height:1!important}
.bot-module-menu[data-bot-menu="shieldy"] .module-icon svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.bot-module-menu[data-bot-menu="shieldy"]>button.is-active .module-icon{color:#1f9d49!important;border-color:#5ccf7a!important;background:#effcf2!important;box-shadow:0 0 0 2px rgba(45,164,78,.10)!important}
.bot-module-sidebar.is-collapsed .bot-module-menu[data-bot-menu="shieldy"]>button{grid-template-columns:42px!important;padding:5px!important;justify-content:center!important}
.bot-module-sidebar.is-collapsed .bot-module-menu[data-bot-menu="shieldy"] .module-label{display:none!important}

/* Gamey v205 feature blocks. */
.gamey-feature-block-v205{padding:0!important;overflow:visible!important}
.gamey-feature-head-v205{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:20px}
.gamey-feature-head-v205>div:first-child{min-width:0}.gamey-feature-head-v205 h3{margin:0}.gamey-feature-head-v205 p{margin:6px 0 0;color:var(--account-muted,var(--gh-muted))}
.gamey-feature-actions-v205{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.gamey-feature-master-v205{display:flex;align-items:center;gap:9px;white-space:nowrap;font-weight:900}
.gamey-feature-body-v205{display:grid;gap:18px;padding:0 20px 20px;border-top:1px solid var(--account-border,var(--gh-border));padding-top:20px}
.gamey-feature-body-v205[hidden]{display:none!important}
.gamey-feature-block-v205.is-feature-off-v205 .gamey-feature-body-v205{background:color-mix(in srgb,var(--account-surface-soft,var(--gh-subtle)) 75%,transparent)}
.gamey-feature-body-v205.is-feature-disabled-v205>:not(.sticky-save-bar){opacity:.55;filter:saturate(.65)}
.gamey-feature-body-v205.is-feature-disabled-v205 .game-choice-card{pointer-events:none}
.gamey-feature-block-v205.is-collapsed-v205 .gamey-feature-head-v205{border-radius:inherit}
.gamey-feature-block-v205 .sticky-save-bar{margin-left:-2px!important;margin-right:-2px!important;margin-bottom:-2px!important}
.gamey-feature-block-v205 .bot-prefix-card{padding:0!important;border:0!important;background:transparent!important}
.gamey-feature-block-v205 .game-choice-grid{margin:0!important}
.game-choice-icon{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important;border:1px solid var(--account-border,var(--gh-border))!important;padding:7px!important}
.game-choice-icon img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
.game-choice-card.is-pending .game-choice-icon img{filter:grayscale(.75);opacity:.65}

/* Existing RSS and journal blocks use the same visual rhythm as new Gamey blocks. */
[data-module-panel="gm-rss"] .collapsible-feature-card-v204,
[data-module-panel="gm-general"] .journal-master-card-v202{overflow:visible!important}
[data-module-panel="gm-rss"] .collapsible-feature-card-v204+ .collapsible-feature-card-v204{margin-top:0!important}
[data-module-panel="gm-rss"] .collapsible-feature-head-v204,
[data-module-panel="gm-general"] .journal-master-head-v202{gap:18px!important}

@media(max-width:1000px){.developer-bot-grid-v205{grid-template-columns:1fr}.gamey-feature-head-v205{flex-direction:column}.gamey-feature-actions-v205{width:100%;justify-content:space-between}}
@media(max-width:680px){.gamey-feature-head-v205,.gamey-feature-body-v205{padding-left:14px;padding-right:14px}.gamey-feature-actions-v205{align-items:stretch}.gamey-feature-master-v205{justify-content:space-between;flex:1}.bot-module-menu[data-bot-menu="shieldy"]>button{grid-template-columns:38px minmax(0,1fr)!important}.bot-module-menu[data-bot-menu="shieldy"] .module-icon{width:38px!important;height:38px!important;min-width:38px!important}}
#panel-bot-control :is([data-module-panel^="sh-"],[data-module-panel^="gm-"]).is-active>:is(article,form,.github-card){content-visibility:visible!important;contain:none!important}
#panel-bot-control [data-module-panel^="sh-"] :is(.inline-toggles,.bot-log-picker)>label{display:flex!important;align-items:center!important;gap:10px!important;min-height:42px!important}
#panel-bot-control [data-module-panel^="sh-"] :is(.inline-toggles,.bot-log-picker)>label>.normalized-switch{order:2!important;margin-left:auto!important}
#panel-bot-control [data-module-panel^="sh-"] .bot-log-picker>label>img{order:1!important;width:30px!important;height:30px!important;border-radius:8px!important}
.developer-bot-card-v205>ul{grid-column:1/-1;margin:0;padding:10px 0 4px 18px;display:grid;gap:4px;color:var(--account-muted,var(--gh-muted));font-size:12px}

/* ===== v206 — one save bar, one menu outline, exact bot menu and whole-card collapse ===== */
/* Hidden legacy handlers remain available to JS but never render as duplicate save bars. */
#panel-bot-control .internal-save-source-v206{display:none!important;position:static!important}

/* The left navigation always follows data-active-bot, even if an old is-active class remains cached. */
#panel-bot-control .bot-module-menu{display:none!important}
#panel-bot-control[data-active-bot="tunetune"] .bot-module-menu[data-bot-menu="tunetune"],
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"],
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]{display:grid!important}

/* Exactly one outline: no nested green/pink/blue frames around the icon. */
#panel-bot-control .bot-module-sidebar{
  border:1px solid color-mix(in srgb,var(--bot-sidebar-outline) 72%,var(--account-border))!important;
  box-shadow:0 12px 28px rgba(13,25,43,.10)!important
}
#panel-bot-control .bot-module-menu button.is-active{
  border:1px solid var(--bot-sidebar-outline)!important;
  box-shadow:none!important;
  padding-left:10px!important
}
#panel-bot-control .bot-module-menu button.is-active .module-icon{
  border-color:transparent!important;
  box-shadow:none!important;
  background:transparent!important
}
#panel-bot-control .bot-module-sidebar.is-collapsed .bot-module-menu button.is-active{
  box-shadow:none!important
}
html[data-theme="dark"] #panel-bot-control .bot-module-sidebar{box-shadow:0 12px 28px rgba(0,0,0,.28)!important}

/* One button colour per selected bot, applied to every saving bar. */
#panel-bot-control[data-active-bot="tunetune"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary{background:#1d9ed1!important;border-color:#1688b6!important}
#panel-bot-control[data-active-bot="tunetune"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary:hover{background:#1688b6!important}
#panel-bot-control[data-active-bot="shieldy"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary{background:#2da44e!important;border-color:#238636!important}
#panel-bot-control[data-active-bot="shieldy"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary:hover{background:#238636!important}
#panel-bot-control[data-active-bot="gamey"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary{background:#e83e82!important;border-color:#c92f6c!important}
#panel-bot-control[data-active-bot="gamey"] :is(.sticky-save-bar,.form-actions,.prefix-card-actions)>.primary:hover{background:#c92f6c!important}

/* Gamey feature cards: collapsing leaves only the header; every setting and local save action is hidden. */
.gamey-feature-block-v206{padding:0!important;overflow:hidden!important}
.gamey-feature-head-v206{margin:0!important;padding:20px!important;border-bottom:1px solid var(--account-border)!important}
.gamey-feature-body-v206{display:grid;gap:18px;padding:20px!important}
.gamey-feature-block-v206.is-collapsed-v205>.gamey-feature-body-v206,
.gamey-feature-block-v206.is-collapsed-v206>.gamey-feature-body-v206{display:none!important}
.gamey-feature-block-v206.is-collapsed-v205>.gamey-feature-head-v206,
.gamey-feature-block-v206.is-collapsed-v206>.gamey-feature-head-v206{border-bottom:0!important}

/* RSS/news/release cards use the same whole-card collapse contract. */
.gamey-whole-collapse-v206.is-collapsed-v206>:not(.collapsible-feature-head-v204){display:none!important}
.gamey-whole-collapse-v206.is-collapsed-v206 .collapsible-feature-head-v204{border-bottom:0!important}
.module-icon-rss-v206 svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important}

@media(max-width:1050px){
  #panel-bot-control[data-active-bot="tunetune"] .bot-module-menu[data-bot-menu="tunetune"],
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"],
  #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]{display:flex!important;overflow-x:auto!important}
}

/* ===== v207 — final Gamey games, tabs, per-game cards and stable collapse ===== */
.gamey-games-tabs-v207{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px
}
.gamey-games-tabs-v207>button{
  display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:12px;
  min-height:76px;padding:14px 16px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface);
  color:var(--account-text);font:inherit;text-align:left;cursor:pointer;transition:.16s ease
}
.gamey-games-tabs-v207>button>span{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,#e83e82 10%,var(--account-surface-soft));font-size:20px}
.gamey-games-tabs-v207>button strong{font-size:15px}.gamey-games-tabs-v207>button small{color:var(--account-muted);font-weight:800}
.gamey-games-tabs-v207>button:hover{border-color:color-mix(in srgb,#e83e82 50%,var(--account-border));transform:translateY(-1px)}
.gamey-games-tabs-v207>button.is-active{border-color:#e83e82;background:color-mix(in srgb,#e83e82 8%,var(--account-surface));box-shadow:0 0 0 3px color-mix(in srgb,#e83e82 11%,transparent)}
.gamey-games-tabs-v207>button.is-active strong{color:#c92f6c}
[data-gamey-games-view][hidden]{display:none!important}

.game-choice-grid{align-items:stretch}
.game-list-divider-v207{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin:8px 0 0;padding:13px 15px;border-top:1px solid var(--account-border);border-bottom:1px solid var(--account-border);color:var(--account-muted)}
.game-list-divider-v207 strong{color:#c92f6c;font-size:14px}.game-list-divider-v207 span{font-size:12px}
.game-choice-icon{position:relative!important;padding:6px!important}
.game-choice-icon img{position:relative;z-index:2;border-radius:8px}
.game-icon-fallback-v207{position:absolute;inset:0;z-index:1;display:grid;place-items:center;padding:4px;color:var(--account-accent-strong);font-size:10px;font-weight:950;text-align:center;line-height:1.05}
.game-choice-card.is-pending{opacity:.72;background:color-mix(in srgb,var(--account-surface-soft) 88%,#fff8c5)}
.game-choice-card.is-pending em{background:#fff1ca!important;color:#8a4b08!important}
.game-choice-card.is-pending small{color:var(--account-muted)}

.gamey-per-game-card-settings-v207{display:grid;gap:14px}
.gamey-per-game-card-settings-v207.is-locked{opacity:.52;filter:saturate(.55);pointer-events:none}
.gamey-game-card-editor-v207{padding:17px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface-soft)}
.gamey-game-card-editor-head-v207{display:flex;align-items:center;gap:12px;margin-bottom:15px}
.gamey-game-card-editor-icon-v207{flex:0 0 48px}.gamey-game-card-editor-icon-v207 .game-choice-icon{width:48px!important;height:48px!important}
.gamey-game-card-editor-head-v207>div{display:grid;gap:3px}.gamey-game-card-editor-head-v207 strong{font-size:15px}.gamey-game-card-editor-head-v207 small{color:var(--account-muted)}
.field-wide-v207{grid-column:1/-1}.gamey-game-card-editor-v207 textarea{resize:vertical;min-height:86px}

/* One stable collapse implementation. The complete body, including local save bars, disappears. */
.gamey-feature-block-v207.is-collapsed-v207>.gamey-feature-body-v206,
.gamey-feature-block-v207.is-collapsed-v207>.gamey-feature-body-v205{display:none!important}
.gamey-feature-block-v207.is-collapsed-v207>.gamey-feature-head-v206{border-bottom:0!important}
[data-gamey-feed-card].is-collapsed-v207>.collapsible-feature-body-v204{display:none!important}
[data-gamey-feed-card].is-collapsed-v207>.collapsible-feature-head-v204{border-bottom:0!important}

/* Gamey menu icons use one semantic SVG system. */
.bot-module-menu[data-bot-menu="gamey"] .module-icon-svg svg{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* Gamey Premium uses Gamey's pink palette, not TuneTune blue. */
[data-module-panel="gm-premium"]{--gamey-premium:#e83e82;--gamey-premium-strong:#c92f6c;--gamey-premium-soft:#fff0f6}
[data-module-panel="gm-premium"] .premium-feature-badge,
[data-module-panel="gm-premium"] .plan-kicker,
[data-module-panel="gm-premium"] .plan-server-limit-v187 strong{color:var(--gamey-premium-strong)!important}
[data-module-panel="gm-premium"] .bot-premium-plan{border-color:color-mix(in srgb,var(--gamey-premium) 24%,var(--account-border))!important}
[data-module-panel="gm-premium"] .bot-premium-plan.is-featured{background:linear-gradient(180deg,color-mix(in srgb,var(--gamey-premium) 8%,var(--account-surface)),var(--account-surface))!important;border-color:color-mix(in srgb,var(--gamey-premium) 48%,var(--account-border))!important}
[data-module-panel="gm-premium"] .bot-premium-plan .plan-badge{border-color:#e5a718!important;background:#fff5c2!important;color:#7a4b00!important}
[data-module-panel="gm-premium"] .bot-plan-select-v181,
[data-module-panel="gm-premium"] .primary{background:var(--gamey-premium)!important;border-color:var(--gamey-premium-strong)!important;color:#fff!important}
[data-module-panel="gm-premium"] .bot-plan-select-v181:hover,
[data-module-panel="gm-premium"] .primary:hover{background:var(--gamey-premium-strong)!important}
[data-module-panel="gm-premium"] .plan-server-limit-v187{border-color:color-mix(in srgb,var(--gamey-premium) 45%,var(--account-border))!important;background:color-mix(in srgb,var(--gamey-premium) 8%,var(--account-surface))!important}
html[data-theme="dark"] [data-module-panel="gm-premium"] .bot-premium-plan.is-featured{background:linear-gradient(180deg,rgba(232,62,130,.12),var(--account-surface))!important}

@media(max-width:760px){
  .gamey-games-tabs-v207{grid-template-columns:1fr}
  .game-list-divider-v207{align-items:flex-start;flex-direction:column;gap:3px}
  .field-wide-v207{grid-column:auto}
}


/* v208 — MEE6-like Gamey feature expansion controlled by the master toggle. */
[data-gamey-toggle-expand] > .gamey-feature-body-v205[hidden],
[data-gamey-toggle-expand] > .gamey-feature-body-v206[hidden],
[data-gamey-toggle-expand] > .collapsible-feature-body-v204[hidden],
[data-embedded-journal="gamey"] [hidden] {
  display: none !important;
}
[data-gamey-toggle-expand] {
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
[data-gamey-toggle-expand].is-feature-off-v205 {
  background: color-mix(in srgb, var(--panel, #fff) 94%, #ff4f8b 6%);
}
[data-gamey-toggle-expand].is-feature-off-v205::after {
  content: "Включите функцию, чтобы открыть настройки";
  display: block;
  margin: 0 24px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border, #d7e0ea);
  color: var(--muted, #6b7a90);
  font-size: 14px;
}
[data-gamey-toggle-expand].is-feature-expanded-v208::after {
  display: none;
}
[data-gamey-toggle-expand].is-feature-expanded-v208 .gamey-feature-head-v205,
[data-gamey-toggle-expand].is-feature-expanded-v208 .collapsible-feature-head-v204 {
  border-bottom-color: var(--border, #d7e0ea);
}
[data-gamey-toggle-expand]:not(.is-feature-expanded-v208) .gamey-feature-head-v205,
[data-gamey-toggle-expand]:not(.is-feature-expanded-v208) .collapsible-feature-head-v204 {
  border-bottom-color: transparent;
}
[data-embedded-journal="gamey"].is-journal-off-v203::after {
  content: "Включите журнал, чтобы открыть его настройки";
  display: block;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px dashed var(--border, #d7e0ea);
  border-radius: 14px;
  color: var(--muted, #6b7a90);
  background: color-mix(in srgb, var(--panel, #fff) 94%, #ff4f8b 6%);
}

/* v209 — live feature switch state. */
.normalized-switch.is-saving-v209{opacity:.64;pointer-events:none}
.normalized-switch.is-saving-v209 i::after{animation:featureTogglePulseV209 .7s ease-in-out infinite alternate}
@keyframes featureTogglePulseV209{to{filter:brightness(1.22);opacity:.72}}
.api-form-message.is-warning{color:#9a6700!important}


/* v210 — Gamey draft mode. Toggles change only the local draft until Save. */
[data-bot-owner="gamey"] .has-gamey-draft-v210 {
  box-shadow: inset 3px 0 0 rgba(232, 62, 130, .55);
}
[data-bot-owner="gamey"] .api-form-message.is-warning {
  color: #9a4f00;
}
[data-bot-owner="gamey"] .sticky-save-bar.has-unsaved-changes {
  border-color: rgba(232, 62, 130, .38);
  box-shadow: 0 18px 38px rgba(232, 62, 130, .10);
}
[data-bot-owner="gamey"] .sticky-save-bar.has-unsaved-changes .primary {
  background: #e83e82;
  border-color: #e83e82;
}
[data-bot-owner="gamey"] .sticky-save-bar:not(.has-unsaved-changes) .discard-unsaved-button:disabled {
  opacity: .48;
}


/* ===== v211 — strict Gamey panels, straight sidebar and draft visibility ===== */
#panel-bot-control .bot-module-panel:not(.is-active),
#panel-bot-control .bot-module-panel[hidden]{display:none!important}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]{
  display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important
}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button{
  width:100%!important;min-height:48px!important;padding:8px 10px!important;margin:0!important;
  display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;
  border:1px solid transparent!important;border-radius:13px!important;box-shadow:none!important;transform:none!important
}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button .module-icon{
  width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;display:grid!important;place-items:center!important;
  border:1px solid var(--account-border)!important;border-radius:11px!important;background:var(--account-surface)!important;box-shadow:none!important
}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button .module-icon svg{width:21px!important;height:21px!important}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button.is-active{
  border-color:#ff4f8b!important;background:rgba(255,79,139,.08)!important;box-shadow:inset 3px 0 0 #ff4f8b!important
}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button.is-active .module-icon{
  border-color:#ff4f8b!important;background:rgba(255,79,139,.10)!important;color:#d72e70!important
}
#bot-management-workspace.is-sidebar-collapsed #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"],
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]{gap:8px!important}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button{
  width:50px!important;height:50px!important;min-height:50px!important;padding:4px!important;grid-template-columns:1fr!important;justify-items:center!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button .module-icon{width:40px!important;height:40px!important}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button .module-label{display:none!important}
[data-gamey-draft-body="1"][hidden]{display:none!important}
.game-choice-icon img{width:100%!important;height:100%!important;object-fit:contain!important;padding:3px!important}
.game-choice-card[data-game-code="division2"] .game-choice-icon img{padding:1px!important}


/* ===== v211.1 — final Gamey isolation, compact menu and local game marks ===== */
#panel-bot-control .bot-module-panel[hidden],
#panel-bot-control .bot-module-panel[aria-hidden="true"],
#panel-bot-control .bot-module-panel:not(.is-active){display:none!important}
[data-gamey-draft-body="1"][hidden],
[data-gamey-draft-body="1"][aria-hidden="true"]{display:none!important}

/* Collapsed Gamey menu: every item has one 50x50 frame; active state is not double outlined. */
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]{
  width:72px!important;padding:8px!important;display:grid!important;grid-template-columns:1fr!important;
  justify-items:center!important;align-content:start!important;gap:8px!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button{
  width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  padding:5px!important;margin:0!important;display:grid!important;grid-template-columns:1fr!important;
  place-items:center!important;border:0!important;border-radius:13px!important;background:transparent!important;
  box-shadow:none!important;transform:none!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button .module-icon{
  width:42px!important;height:42px!important;min-width:42px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;border:1px solid var(--account-border)!important;
  border-radius:12px!important;background:var(--account-surface)!important;color:var(--account-muted)!important;
  box-shadow:none!important;transform:none!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button.is-active{
  border:0!important;background:transparent!important;box-shadow:none!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button.is-active .module-icon{
  border-color:#ff4f8b!important;background:rgba(255,79,139,.12)!important;color:#d72e70!important;
  box-shadow:0 0 0 2px rgba(255,79,139,.10)!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button .module-label{display:none!important}

/* Local game assets already contain the recognizable square mark; avoid a second inset frame/padding. */
#gamey-game-choice-grid .game-choice-icon{overflow:hidden!important;padding:0!important;background:transparent!important}
#gamey-game-choice-grid .game-choice-icon img{width:100%!important;height:100%!important;padding:0!important;object-fit:cover!important;border-radius:10px!important}
#gamey-game-choice-grid .game-choice-card.is-pending .game-choice-icon{display:grid!important;place-items:center!important;background:var(--account-surface)!important;border:1px solid var(--account-border)!important}
#gamey-game-choice-grid .game-choice-card.is-pending .game-icon-fallback-v207{position:static!important;font-size:11px!important}


/* ===== v212 — reliable Gamey ownership and draft toggle expansion ===== */
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel[data-bot-owner="gamey"]{display:none!important}
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-general"] [data-module-panel="gm-general"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-games"] [data-module-panel="gm-games"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-rss"] [data-module-panel="gm-rss"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-economy"] [data-module-panel="gm-economy"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-statistics"] [data-module-panel="gm-statistics"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-commands"] [data-module-panel="gm-commands"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-premium"] [data-module-panel="gm-premium"]{display:block!important}
#panel-bot-control [data-gamey-draft-body="1"][hidden],
#panel-bot-control [data-gamey-draft-body="1"][aria-hidden="true"]{display:none!important}
#panel-bot-control [data-gamey-draft-body="1"]{transition:opacity .16s ease}
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button{
  box-sizing:border-box!important;min-width:0!important
}
#bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button.is-active .module-icon{
  box-shadow:none!important;outline:2px solid rgba(255,79,139,.22)!important;outline-offset:1px!important
}
#gamey-game-choice-grid .game-choice-card.is-pending{opacity:.68}
#gamey-game-choice-grid .game-choice-card.is-pending .game-choice-icon img{filter:none!important;opacity:.78}

/* ===== v213 — aligned Gamey switches, contextual save bars and block spacing ===== */

/* Active Gamey modules are grids so direct child cards never touch each other. */
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-general"] [data-module-panel="gm-general"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-games"] [data-module-panel="gm-games"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-rss"] [data-module-panel="gm-rss"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-economy"] [data-module-panel="gm-economy"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-statistics"] [data-module-panel="gm-statistics"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-commands"] [data-module-panel="gm-commands"],
#panel-bot-control[data-active-bot="gamey"][data-active-module="gm-premium"] [data-module-panel="gm-premium"]{
  display:grid!important;
  gap:20px!important;
  align-content:start!important;
}

/* Keep spacing stable inside RSS and games even when a body opens or closes. */
#panel-bot-control [data-module-panel="gm-rss"] > *,
#panel-bot-control [data-module-panel="gm-games"] > *{
  margin-top:0!important;
  margin-bottom:0!important;
}
#panel-bot-control [data-module-panel="gm-rss"] :is(.collapsible-feature-card-v204,.gamey-rss-summary-card),
#panel-bot-control [data-module-panel="gm-games"] :is(.gamey-feature-block-v205,.gamey-selection-note,.gamey-games-tabs-v207){
  min-width:0!important;
}

/* Gamey master switches use one balanced 50x28 geometry and one alignment rule. */
#panel-bot-control [data-bot-owner="gamey"] :is(
  .gamey-feature-master-v205,
  .gamey-feature-master-v206,
  .feature-master-toggle-v204,
  .journal-master-toggle-v202
){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:12px!important;
  min-height:32px!important;
  margin:0!important;
  white-space:nowrap!important;
  line-height:1!important;
}
#panel-bot-control [data-bot-owner="gamey"] :is(
  .gamey-feature-actions-v205,
  .gamey-feature-actions-v206,
  .collapsible-feature-actions-v204,
  .journal-master-head-v202
){
  align-items:center!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch{
  position:relative!important;
  display:inline-block!important;
  flex:0 0 50px!important;
  width:50px!important;
  min-width:50px!important;
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  vertical-align:middle!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  width:50px!important;
  height:28px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > i{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  box-sizing:border-box!important;
  width:50px!important;
  min-width:50px!important;
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #9fb0c4!important;
  border-radius:999px!important;
  background:#425a78!important;
  box-shadow:inset 0 1px 2px rgba(15,35,60,.16)!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > i::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:22px!important;
  height:22px!important;
  border:0!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(16,35,63,.28)!important;
  transform:translateX(0)!important;
  transition:transform .18s ease!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > input:checked + i{
  border-color:#e83e82!important;
  background:#e83e82!important;
  box-shadow:0 0 0 3px rgba(232,62,130,.12)!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > input:checked + i::after{
  transform:translateX(22px)!important;
}
#panel-bot-control [data-bot-owner="gamey"] .normalized-switch > input:focus-visible + i{
  outline:3px solid rgba(232,62,130,.22)!important;
  outline-offset:2px!important;
}
#panel-bot-control [data-bot-owner="gamey"] :is(.gamey-feature-head-v205,.gamey-feature-head-v206,.collapsible-feature-head-v204){
  align-items:center!important;
}

/* In Gamey the save panel exists only while the current draft differs from saved data. */
#panel-bot-control[data-active-bot="gamey"] [data-bot-owner="gamey"] :is(
  .sticky-save-bar,
  .universal-save-bar-v186,
  .form-actions,
  .prefix-card-actions
):not(.has-unsaved-changes){
  display:none!important;
}
#panel-bot-control[data-active-bot="gamey"] [data-bot-owner="gamey"] :is(
  .sticky-save-bar,
  .universal-save-bar-v186,
  .form-actions,
  .prefix-card-actions
).has-unsaved-changes{
  display:flex!important;
  animation:gameySaveBarInV213 .16s ease-out both;
}
@keyframes gameySaveBarInV213{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:760px){
  #panel-bot-control [data-bot-owner="gamey"] :is(.gamey-feature-head-v205,.gamey-feature-head-v206,.collapsible-feature-head-v204){
    align-items:flex-start!important;
  }
  #panel-bot-control [data-bot-owner="gamey"] :is(.gamey-feature-actions-v205,.gamey-feature-actions-v206,.collapsible-feature-actions-v204){
    width:100%!important;
  }
}


/* ===== v214 — final Gamey spacing, tabs and contextual draft save panels ===== */
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel[data-bot-owner="gamey"].is-active,
#panel-bot-control[data-active-bot="gamey"] [data-module-panel][data-bot-owner="gamey"][aria-hidden="false"]{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:22px!important;
  align-content:initial!important;
}
#panel-bot-control [data-module-panel][data-bot-owner="gamey"] > *{
  margin-top:0!important;
  margin-bottom:0!important;
}
#panel-bot-control [data-module-panel="gm-general"] :is(.status-grid,.bot-community-grid-v202){
  margin-top:0!important;
  margin-bottom:0!important;
}
#panel-bot-control [data-gamey-games-view][hidden],
#panel-bot-control [data-gamey-games-view][aria-hidden="true"]{
  display:none!important;
}
#panel-bot-control [data-gamey-games-view]:not([hidden])[aria-hidden="false"]{
  display:block!important;
}
#panel-bot-control .gamey-games-tabs-v207{margin:0!important;gap:14px!important}
#panel-bot-control [data-module-panel="gm-games"] .gamey-games-tabs-v207 + [data-gamey-games-view]{margin-top:0!important}
#panel-bot-control[data-active-bot="gamey"] [data-bot-owner="gamey"] :is(.sticky-save-bar,.prefix-card-actions,.form-actions):not(.has-unsaved-changes){display:none!important}
#panel-bot-control[data-active-bot="gamey"] [data-bot-owner="gamey"] :is(.sticky-save-bar,.prefix-card-actions,.form-actions).has-unsaved-changes{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
}
#gamey-game-choice-grid .game-choice-card[data-game-code="apex"] .game-choice-icon img,
#gamey-game-choice-grid .game-choice-card[data-game-code="tetris"] .game-choice-icon img,
#gamey-game-choice-grid .game-choice-card[data-game-code="warface"] .game-choice-icon img{
  object-fit:contain!important;
  padding:0!important;
  background:#fff!important;
}


/* v214.1 — Gamey final hardening: visible draft bar and consistent section rhythm. */
#panel-bot-control [data-bot-owner="gamey"] :is(.sticky-save-bar,.prefix-card-actions,.form-actions):not(.has-unsaved-changes){
  display:none!important;
}
#panel-bot-control [data-bot-owner="gamey"] :is(.sticky-save-bar,.prefix-card-actions,.form-actions).has-unsaved-changes{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#panel-bot-control [data-module-panel][data-bot-owner="gamey"].is-active,
#panel-bot-control [data-module-panel][data-bot-owner="gamey"][aria-hidden="false"]{
  row-gap:22px!important;
}
#panel-bot-control [data-module-panel][data-bot-owner="gamey"] > [hidden]{display:none!important}
#panel-bot-control .gamey-games-tabs-v207 [data-gamey-games-tab]{cursor:pointer!important;pointer-events:auto!important}


/* v215 — Gamey spacing, per-game profile customization and admin bot monitoring. */
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel[data-bot-owner="gamey"].is-active{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:20px!important;
  align-content:start!important;
}
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel[data-bot-owner="gamey"].is-active > *{margin-block:0!important}
#panel-bot-control[data-active-bot="gamey"] :is(.gamey-feature-body-v205,.gamey-feature-body-v206,.collapsible-feature-body-v204){gap:18px!important}
.gamey-per-game-card-settings-v207{display:grid!important;gap:14px!important}
.gamey-game-profile-editor-v215{border:1px solid var(--account-border);border-radius:18px;background:var(--account-surface);overflow:hidden}
.gamey-game-profile-editor-v215>summary{list-style:none;display:grid;grid-template-columns:54px minmax(0,1fr) 28px;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;user-select:none}
.gamey-game-profile-editor-v215>summary::-webkit-details-marker{display:none}
.gamey-game-profile-editor-v215[open]>summary{border-bottom:1px solid var(--account-border);background:color-mix(in srgb,var(--gamey-accent,#e83e82) 5%,var(--account-surface))}
.gamey-game-profile-summary-v215{display:grid;gap:3px}.gamey-game-profile-summary-v215 strong{font-size:16px}.gamey-game-profile-summary-v215 small{color:var(--account-muted)}
.gamey-game-profile-chevron-v215{font-size:22px;text-align:center;transition:transform .18s ease}.gamey-game-profile-editor-v215[open] .gamey-game-profile-chevron-v215{transform:rotate(180deg)}
.gamey-game-profile-body-v215{display:grid;gap:18px;padding:18px}
.gamey-game-banner-preview-v215{position:relative;min-height:180px;border-radius:16px;overflow:hidden;background:#111827;border:1px solid var(--account-border)}
.gamey-game-banner-preview-v215 img{display:block;width:100%;height:180px;object-fit:cover}
.gamey-game-banner-preview-v215>div{position:absolute;left:18px;bottom:16px;display:grid;gap:2px;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.7)}
.gamey-game-banner-preview-v215>div strong{font-size:20px}.gamey-game-banner-preview-v215>div span{font-size:12px;opacity:.9}
.gamey-profile-fields-v215 .field.is-hidden-v215{display:none!important}
.gamey-statistics-options-v215{border:1px solid var(--account-border);border-radius:16px;padding:16px;margin:0}.gamey-statistics-options-v215 legend{font-weight:900;padding:0 8px}.gamey-statistics-options-v215>p{margin:0 0 12px;color:var(--account-muted)}
.gamey-statistics-grid-v215{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.gamey-statistics-grid-v215 label{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft)}
.admin-bot-monitor-v215{display:grid;gap:16px;margin-top:20px}.admin-bot-tabs-v215{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.admin-bot-tabs-v215 button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:52px;border:1px solid var(--account-border);border-radius:14px;background:var(--account-surface-soft);font:inherit;font-weight:900;color:var(--account-text);cursor:pointer}.admin-bot-tabs-v215 button img{width:30px;height:30px;border-radius:9px}.admin-bot-tabs-v215 button.is-active{border-color:#e83e82;background:rgba(232,62,130,.09);color:#c92f6c;box-shadow:inset 0 0 0 1px rgba(232,62,130,.18)}
.admin-bot-metric-grid-v215{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-bot-metric-grid-v215 article{display:grid;gap:5px;padding:15px;border:1px solid var(--account-border);border-radius:14px;background:var(--account-surface-soft)}.admin-bot-metric-grid-v215 article span{font-size:12px;color:var(--account-muted)}.admin-bot-metric-grid-v215 article strong{font-size:22px}.admin-bot-metric-grid-v215 article small{color:var(--account-muted)}
@media(max-width:900px){.gamey-statistics-grid-v215,.admin-bot-metric-grid-v215{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.gamey-statistics-grid-v215,.admin-bot-metric-grid-v215,.admin-bot-tabs-v215{grid-template-columns:1fr}.gamey-game-profile-editor-v215>summary{grid-template-columns:46px minmax(0,1fr) 24px}}

/* ===== v216 — definitive Gamey section spacing =====
   Use sibling margins instead of relying on grid/flex gap. Several legacy
   rules change module display modes at runtime, so gap was not reliable. */
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"]{
  gap:0!important;
  row-gap:0!important;
}
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"] > :not([hidden]) + :not([hidden]){
  margin-top:24px!important;
}
/* Hidden views must not leave an empty gap. */
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"] > [hidden] + :not([hidden]),
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"] > [aria-hidden="true"] + :not([hidden]){
  margin-top:24px!important;
}
/* Keep attached header/body/save pieces inside one functional card together. */
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"] :is(
  .gamey-feature-block-v205,
  .gamey-feature-block-v206,
  .collapsible-feature-card-v204,
  .gamey-game-profile-editor-v215
) > *{
  margin-top:0!important;
  margin-bottom:0!important;
}
/* Rhythm for independent cards nested inside opened Gamey bodies. */
#panel-bot-control .bot-module-panel[data-bot-owner="gamey"] :is(
  .gamey-feature-body-v205,
  .gamey-feature-body-v206,
  .collapsible-feature-body-v204,
  .gamey-per-game-card-settings-v207,
  .gamey-game-profile-body-v215
) > :not([hidden]) + :not([hidden]){
  margin-top:18px!important;
}

/* v217 — JoyJoy administrative hub */
.admin-hub-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:20px 0;padding:10px;border:1px solid var(--account-border);border-radius:18px;background:var(--account-surface)}
.admin-hub-nav button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;padding:10px 12px;border:1px solid transparent;border-radius:13px;background:transparent;color:var(--account-muted);font:inherit;cursor:pointer;transition:.16s ease}
.admin-hub-nav button span{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--account-surface-soft);font-weight:900}.admin-hub-nav button b{font-size:13px}.admin-hub-nav button:hover{background:var(--account-surface-soft);color:var(--account-text)}
.admin-hub-nav button.is-active{border-color:#ef5c94;background:rgba(239,92,148,.1);color:#cf2f6c;box-shadow:inset 0 0 0 1px rgba(239,92,148,.12)}
.admin-hub-view{display:grid;gap:18px}.admin-hub-view[hidden]{display:none!important}.admin-view-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.admin-view-heading h2{margin:0;font-size:25px}.admin-view-heading p{margin:4px 0 0;color:var(--account-muted)}
.admin-overview-kpis,.admin-issue-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-overview-kpis article,.admin-issue-kpis article{display:grid;gap:6px;padding:18px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface);box-shadow:var(--account-shadow)}.admin-overview-kpis span,.admin-issue-kpis span{font-size:12px;font-weight:800;color:var(--account-muted)}.admin-overview-kpis strong,.admin-issue-kpis strong{font-size:28px}.admin-overview-kpis small,.admin-issue-kpis small{color:var(--account-muted)}
.admin-overview-grid,.admin-issues-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:18px}.admin-overview-grid>.github-card,.admin-issues-grid>.github-card{margin:0}.admin-live-dot{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#e9f9ef;color:#18783a;font-size:12px;font-weight:900}.admin-live-dot:before{content:"";width:8px;height:8px;border-radius:50%;background:#27a653}.admin-live-dot.is-error{background:#fff0f0;color:#c52828}.admin-live-dot.is-error:before{background:#d92c2c}
.admin-service-list,.admin-attention-list,.admin-issues-list{display:grid;gap:10px}.admin-service-row{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}.admin-service-row i{width:10px;height:10px;border-radius:50%;background:#9aa6b2}.admin-service-row.is-ok i{background:#22a652}.admin-service-row.is-warning i{background:#e5a900}.admin-service-row.is-error i{background:#d92c2c}.admin-service-row span{display:grid;gap:2px}.admin-service-row small{color:var(--account-muted)}.admin-service-row strong{font-size:12px}
.admin-attention-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft);color:var(--account-text);text-align:left;font:inherit;cursor:pointer}.admin-attention-row span{display:grid;gap:3px}.admin-attention-row small{color:var(--account-muted)}.admin-attention-row strong{display:grid;place-items:center;min-width:32px;height:32px;border-radius:10px;background:#fff0d8;color:#9a6200}.admin-attention-row.is-error strong{background:#ffe7e7;color:#bb2323}.admin-empty-success{padding:18px;border:1px solid #a7dfb8;border-radius:13px;background:#eefbf2;color:#18783a;font-weight:800}
.admin-bot-overview-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-bot-overview-card{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--account-border);border-radius:15px;background:var(--account-surface-soft);color:var(--account-text);font:inherit;text-align:left;cursor:pointer}.admin-bot-overview-card img{width:46px;height:46px;border-radius:13px}.admin-bot-overview-card span{display:grid;gap:3px}.admin-bot-overview-card small{color:var(--account-muted)}.admin-bot-overview-card em{font-style:normal;font-size:12px;font-weight:900}.admin-bot-overview-card:hover{transform:translateY(-1px);box-shadow:var(--account-shadow)}
.admin-bot-tabs-v217{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-bot-tabs-v217 button{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--account-border);border-radius:15px;background:var(--account-surface);color:var(--account-text);font:inherit;text-align:left;cursor:pointer}.admin-bot-tabs-v217 img{width:42px;height:42px;border-radius:12px}.admin-bot-tabs-v217 span{display:grid;gap:2px}.admin-bot-tabs-v217 small{color:var(--account-muted)}.admin-bot-tabs-v217 button.is-active{border-color:#ef5c94;background:rgba(239,92,148,.08);box-shadow:inset 0 0 0 1px rgba(239,92,148,.14)}
.admin-bot-detail-card{display:grid;gap:18px;margin:0}.admin-bot-detail-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.admin-bot-detail-head>div{display:grid;gap:4px}.admin-bot-detail-head h3{margin:0;font-size:25px}.admin-bot-detail-head p{margin:0;color:var(--account-muted)}.admin-bot-live-status{width:max-content;padding:5px 9px;border-radius:999px;background:#e9f9ef;color:#18783a;font-size:11px;font-weight:900}.admin-bot-availability{display:flex;align-items:center;gap:12px;font-weight:900}.admin-bot-metric-grid-v217{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-bot-metric-grid-v217 article{display:grid;gap:5px;padding:15px;border:1px solid var(--account-border);border-radius:14px;background:var(--account-surface-soft)}.admin-bot-metric-grid-v217 span{font-size:12px;color:var(--account-muted)}.admin-bot-metric-grid-v217 strong{font-size:22px}.admin-bot-metric-grid-v217 small{color:var(--account-muted)}.admin-bot-actions{display:flex;flex-wrap:wrap;gap:10px}.admin-bot-actions button,.admin-detail-actions button,.admin-issue-item button{padding:10px 13px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface-soft);color:var(--account-text);font:inherit;font-weight:800;cursor:pointer}
.admin-filter-card,.admin-list-card,.admin-detail-panel,.admin-add-tester-card{margin:0}.admin-filter-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.admin-filter-row .field{min-width:170px;margin:0}.admin-filter-grow{flex:1}.admin-filter-row button{min-height:44px}.admin-master-detail{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);gap:18px;align-items:start}.admin-list-card{padding:0;overflow:hidden}.admin-list-card .api-form-message{padding:0 18px 14px}.admin-list-card tbody tr{cursor:pointer}.admin-list-card tbody tr:hover,.admin-list-card tbody tr.is-selected{background:rgba(239,92,148,.06)}.admin-list-card td strong,.admin-list-card td small{display:block}.admin-list-card td small{margin-top:3px;color:var(--account-muted)}
.admin-detail-panel{position:sticky;top:90px;display:grid;gap:16px;min-height:260px}.admin-detail-empty{display:grid;place-items:center;align-content:center;gap:8px;min-height:210px;text-align:center;color:var(--account-muted)}.admin-detail-heading{display:grid;gap:5px}.admin-detail-heading h3{margin:0;font-size:22px}.admin-detail-heading code{color:var(--account-muted)}.admin-detail-list{display:grid;gap:0;margin:0}.admin-detail-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--account-border)}.admin-detail-list dt{color:var(--account-muted)}.admin-detail-list dd{margin:0;font-weight:900;text-align:right}.admin-detail-subscriptions,.admin-detail-collections{display:grid;gap:9px}.admin-detail-subscriptions h4,.admin-detail-collections h4{margin:7px 0 0}.admin-detail-subscriptions>div,.admin-detail-collections>div{display:flex;justify-content:space-between;gap:12px;padding:10px;border-radius:11px;background:var(--account-surface-soft)}.admin-detail-subscriptions p,.admin-detail-collections p{margin:0;color:var(--account-muted)}.admin-detail-actions{display:flex;flex-wrap:wrap;gap:9px}
.admin-bot-chip,.admin-role-chip,.admin-state-pill{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:900}.admin-bot-chip.is-tunetune{background:#e7f6ff;color:#0879b6}.admin-bot-chip.is-shieldy{background:#e8faee;color:#197c39}.admin-bot-chip.is-gamey{background:#ffe9f2;color:#c72b69}.admin-role-chip{background:var(--account-surface-soft)}.admin-role-chip.is-administrator{background:#ffe9e9;color:#c22222}.admin-role-chip.is-tester{background:#e9faee;color:#18783a}.admin-state-pill.is-ok{background:#e9faee;color:#18783a}.admin-state-pill.is-muted{background:#eef1f5;color:#657184}
.admin-user-detail-form{display:grid;gap:12px}.admin-detail-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--account-border);border-radius:13px}.admin-detail-toggle>span:first-child{display:grid;gap:3px}.admin-detail-toggle small{color:var(--account-muted)}.admin-add-tester-card details>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer}.admin-add-tester-card summary span{display:grid;gap:3px}.admin-add-tester-card summary small{color:var(--account-muted)}.admin-inline-form{display:flex;align-items:end;gap:12px;margin-top:16px}.admin-inline-form .field{margin:0}
.admin-issue-item{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}.admin-issue-item>i{width:9px;height:9px;border-radius:50%;background:#e5a900}.admin-issue-item.is-error>i{background:#d92c2c}.admin-issue-item>span{display:grid;gap:3px}.admin-issue-item small,.admin-issue-item em{color:var(--account-muted)}.admin-issue-item em{font-size:11px;font-style:normal}.admin-maintenance-list{display:grid;gap:10px}.admin-maintenance-list>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}.admin-maintenance-list span{display:grid;gap:3px}.admin-maintenance-list small{color:var(--account-muted)}.admin-maintenance-list em{font-style:normal;color:var(--account-muted);font-size:12px}
@media(max-width:1100px){.admin-hub-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-overview-grid,.admin-issues-grid,.admin-master-detail{grid-template-columns:1fr}.admin-detail-panel{position:static}.admin-bot-metric-grid-v217{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-hub-nav{grid-template-columns:1fr 1fr}.admin-hub-nav button{justify-content:flex-start}.admin-overview-kpis,.admin-issue-kpis,.admin-bot-overview-cards,.admin-bot-tabs-v217{grid-template-columns:1fr}.admin-bot-metric-grid-v217{grid-template-columns:1fr 1fr}.admin-view-heading,.admin-bot-detail-head{align-items:flex-start;flex-direction:column}.admin-filter-row,.admin-inline-form{display:grid;grid-template-columns:1fr;width:100%}.admin-filter-row .field{width:100%}.admin-master-detail{display:block}.admin-detail-panel{margin-top:16px}.admin-hub-view{gap:14px}}
@media(max-width:480px){.admin-hub-nav{grid-template-columns:1fr}.admin-bot-metric-grid-v217{grid-template-columns:1fr}}

/* v218 — remaining JoyJoy administrative center sections */
.admin-billing-kpis,.admin-queue-kpis,.admin-security-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.admin-billing-kpis article,.admin-queue-kpis article,.admin-security-kpis article{display:grid;gap:6px;padding:18px;border:1px solid var(--account-border);border-radius:16px;background:var(--account-surface);box-shadow:var(--account-shadow)}
.admin-billing-kpis span,.admin-queue-kpis span,.admin-security-kpis span{font-size:12px;font-weight:800;color:var(--account-muted)}
.admin-billing-kpis strong,.admin-queue-kpis strong,.admin-security-kpis strong{font-size:27px}.admin-billing-kpis small,.admin-queue-kpis small,.admin-security-kpis small{color:var(--account-muted)}
.admin-billing-grid,.admin-system-layout,.admin-queue-grid,.admin-announcement-layout,.admin-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.admin-billing-grid>.github-card,.admin-system-layout>.github-card,.admin-queue-grid>.github-card,.admin-announcement-layout>.github-card,.admin-security-grid>.github-card{margin:0}
.admin-compact-filter{min-width:145px;margin:0}.admin-compact-filter select{min-height:40px}
.admin-row-error{display:block;max-width:270px;margin-top:5px;color:#bd2828!important;white-space:normal}
.admin-state-pill.is-warning{background:#fff3d7;color:#966000}.admin-state-pill.is-error{background:#ffe9e9;color:#bd2828}
.admin-live-dot.is-warning{background:#fff3d7;color:#966000}.admin-live-dot.is-warning:before{background:#e5a900}.admin-live-dot.is-ready{background:#e9f9ef;color:#18783a}
.admin-runtime-list{display:grid;gap:0;margin:0}.admin-runtime-list>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--account-border)}.admin-runtime-list dt{color:var(--account-muted)}.admin-runtime-list dd{margin:0;font-weight:900;text-align:right}
.admin-queue-grid .github-card,.admin-billing-grid .github-card{overflow:hidden}.admin-queue-grid .card-title,.admin-billing-grid .card-title{padding:18px 18px 0}.admin-queue-grid .admin-table-wrap,.admin-billing-grid .admin-table-wrap{margin-top:12px}
.admin-announcement-form{display:grid;gap:14px}.admin-announcement-form fieldset{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:13px;border:1px solid var(--account-border);border-radius:13px}.admin-announcement-form legend{padding:0 6px;font-weight:900}.admin-announcement-form fieldset label{display:flex;align-items:center;gap:7px;font-weight:800}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-form-grid .field,.admin-announcement-form>.field{margin:0}.admin-announcement-form textarea{min-height:130px;resize:vertical}
.admin-announcement-item{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}.admin-announcement-item+ .admin-announcement-item{margin-top:10px}.admin-announcement-item>div{display:grid;gap:4px}.admin-announcement-item small{color:var(--account-muted)}.admin-announcement-item p{margin:2px 0 0;white-space:pre-wrap}
.admin-provider-list{display:grid;gap:9px}.admin-provider-list>div{display:flex;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface-soft)}
.admin-security-grid .danger-button{min-height:44px;padding:10px 15px;border:1px solid #e34b4b;border-radius:11px;background:#fff0f0;color:#bd2828;font:inherit;font-weight:900;cursor:pointer}
.admin-audit-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--account-border)}.admin-audit-item:last-child{border-bottom:0}.admin-audit-item>div{display:grid;gap:3px}.admin-audit-item span,.admin-audit-item small{color:var(--account-muted)}.admin-audit-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--account-surface-soft);color:#cf2f6c!important}
.admin-maintenance-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%;padding:12px!important}.admin-maintenance-preview[hidden]{display:none!important}.admin-maintenance-preview span{display:block;padding:8px;border-radius:9px;background:var(--account-surface)}
.admin-maintenance-cleanups{display:grid!important;grid-template-columns:1fr;gap:8px;width:100%;padding:0!important;border:0!important;background:transparent!important}.admin-maintenance-cleanups button{padding:10px 12px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface);color:var(--account-text);font:inherit;font-weight:800;cursor:pointer;text-align:left}.admin-maintenance-cleanups button:hover{border-color:#ef5c94;color:#cf2f6c}
.admin-table-wrap table td button+button{margin-left:6px}.text-button.is-danger{color:#c52828}
@media(max-width:1100px){.admin-billing-grid,.admin-system-layout,.admin-queue-grid,.admin-announcement-layout,.admin-security-grid{grid-template-columns:1fr}.admin-billing-kpis,.admin-queue-kpis,.admin-security-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.admin-billing-kpis,.admin-queue-kpis,.admin-security-kpis,.admin-form-grid{grid-template-columns:1fr}.admin-announcement-form fieldset{display:grid}.admin-maintenance-preview{grid-template-columns:1fr!important}}


/* ===== v219 — aligned administrative center, unknown servers and precise Gamey menu ===== */
.admin-console-panel{min-width:0}
.admin-console-panel .page-heading{align-items:flex-end}
.admin-console-panel .page-heading>div{min-width:0}
.admin-console-panel .page-heading h1{line-height:1.12}
.admin-console-panel .page-heading p{max-width:920px;line-height:1.5}
.admin-hub-nav{grid-template-columns:repeat(auto-fit,minmax(168px,1fr))!important;gap:12px!important;padding:12px!important}
.admin-hub-nav button{justify-content:flex-start!important;min-height:62px!important;padding:11px 14px!important;text-align:left!important}
.admin-hub-nav button span{flex:0 0 32px;width:32px!important;height:32px!important}
.admin-hub-nav button b{font-size:14px!important;line-height:1.25!important}
.admin-hub-view{align-content:start;gap:20px!important}
.admin-view-heading{min-height:54px;align-items:center!important}
.admin-view-heading>div{min-width:0}
.admin-view-heading h2{line-height:1.15}
.admin-view-heading p{max-width:880px;line-height:1.45}
.admin-console-panel .github-card{min-width:0}
.admin-console-panel .card-title{align-items:flex-start;min-height:46px}
.admin-console-panel .card-title>div{min-width:0}
.admin-console-panel .card-title h3{margin:0;line-height:1.25}
.admin-console-panel .card-title p{line-height:1.45}
.admin-filter-row{align-items:end!important}
.admin-filter-row .field{display:grid;align-content:end}
.admin-filter-row .field>span{min-height:20px;display:flex;align-items:center}
.admin-master-detail{grid-template-columns:minmax(0,1.65fr) minmax(320px,.7fr)!important}
.admin-list-card{min-width:0}
.admin-table-wrap{width:100%;border-radius:15px!important}
.admin-table-wrap table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;background:var(--account-surface)}
.admin-table-wrap th,.admin-table-wrap td{padding:13px 14px;border-bottom:1px solid var(--account-border);text-align:left;vertical-align:middle;line-height:1.3}
.admin-table-wrap th{background:var(--account-surface-soft);color:var(--account-muted);font-size:12px;font-weight:900;white-space:nowrap}
.admin-table-wrap tbody tr:last-child td{border-bottom:0}
.admin-table-wrap tbody tr:hover{background:color-mix(in srgb,#ef5c94 5%,var(--account-surface))}
.admin-table-wrap td strong{line-height:1.25;overflow-wrap:anywhere}
.admin-table-wrap td small{line-height:1.35;overflow-wrap:anywhere}
.admin-table-wrap td code{white-space:nowrap;font-size:11px}
.admin-servers-table{min-width:900px}
.admin-servers-table th:nth-child(1),.admin-servers-table td:nth-child(1){width:25%}
.admin-servers-table th:nth-child(2),.admin-servers-table td:nth-child(2){width:13%}
.admin-servers-table th:nth-child(3),.admin-servers-table td:nth-child(3){width:27%}
.admin-servers-table th:nth-child(4),.admin-servers-table td:nth-child(4){width:16%}
.admin-servers-table th:nth-child(5),.admin-servers-table td:nth-child(5){width:19%}
.admin-state-pill.is-unknown{background:#fff3d7;color:#8a5a00}
.admin-unknown-note{padding:12px 14px;border:1px solid #e8c56a;border-radius:12px;background:#fff8df;color:#745000;font-size:13px;font-weight:800;line-height:1.45}
html[data-theme="dark"] .admin-unknown-note{border-color:#8f6b18;background:rgba(180,130,20,.12);color:#e8c56a}
.admin-detail-heading{grid-template-columns:max-content max-content;align-items:center}
.admin-detail-heading h3,.admin-detail-heading code{grid-column:1/-1}
.admin-detail-panel{align-content:start}

/* Gamey compact navigation: same square, same center, no visual jumps. */
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-sidebar{width:84px!important;padding:12px 10px!important}
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]{display:grid!important;justify-items:center!important;gap:10px!important;width:100%!important}
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin:0 auto!important;padding:0!important;border:1px solid transparent!important;border-radius:14px!important;box-shadow:none!important}
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button .module-icon{display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;border:0!important;border-radius:11px!important;background:transparent!important;box-shadow:none!important}
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button.is-active{border:2px solid #ff4f8b!important;background:rgba(255,79,139,.10)!important;box-shadow:none!important}
#panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button.is-active .module-icon{color:#d72e70!important;background:transparent!important}

@media(max-width:1180px){.admin-master-detail{grid-template-columns:1fr!important}.admin-detail-panel{position:static!important}}
@media(max-width:760px){.admin-hub-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-view-heading{align-items:flex-start!important}.admin-table-wrap th,.admin-table-wrap td{padding:11px 12px}}
@media(max-width:480px){.admin-hub-nav{grid-template-columns:1fr!important}}


/* v221 — full Gamey profile customization for every available game. */
#panel-bot-control .gamey-per-game-card-settings-v207{display:grid!important;gap:16px!important}
.gamey-game-profile-editor-v221{border:1px solid var(--account-border);border-radius:18px;background:var(--account-surface);overflow:hidden;box-shadow:0 10px 28px rgba(24,42,74,.04)}
.gamey-game-profile-editor-v221>summary{list-style:none;display:grid;grid-template-columns:54px minmax(0,1fr) auto 28px;align-items:center;gap:14px;padding:17px 18px;cursor:pointer;user-select:none}
.gamey-game-profile-editor-v221>summary::-webkit-details-marker{display:none}
.gamey-game-profile-editor-v221[open]>summary{border-bottom:1px solid var(--account-border);background:color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 6%,var(--account-surface))}
.gamey-game-profile-summary-v221{display:grid;gap:4px}.gamey-game-profile-summary-v221 strong{font-size:16px}.gamey-game-profile-summary-v221 small{color:var(--account-muted);line-height:1.35}
.gamey-game-profile-state-v221{padding:7px 10px;border-radius:999px;background:color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 10%,var(--account-surface-soft));color:color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 85%,#111);font-size:12px;font-weight:850;white-space:nowrap}
.gamey-game-profile-body-v221{display:grid;gap:20px;padding:20px}
.gamey-profile-preview-v221{position:relative;min-height:160px;border:1px solid var(--account-border);border-radius:18px;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 16%,#0f172a),#0f172a);color:#fff;display:grid;grid-template-columns:minmax(0,1fr) 72px;align-items:end;padding:22px}
.gamey-profile-preview-v221>[data-game-card-banner-image]{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.38}
.gamey-profile-preview-v221::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,13,27,.9),rgba(7,13,27,.48) 62%,rgba(7,13,27,.2))}
.gamey-profile-preview-copy-v221,.gamey-profile-preview-side-icon-v221{position:relative;z-index:1}
.gamey-profile-preview-copy-v221{display:grid;gap:10px}.gamey-profile-preview-copy-v221>div{display:grid;gap:5px}.gamey-profile-preview-copy-v221 strong{font-size:22px}.gamey-profile-preview-copy-v221 span{font-weight:850;color:#ffd5e7}.gamey-profile-preview-copy-v221 p{margin:0;max-width:720px;line-height:1.5}
.gamey-profile-preview-side-icon-v221{width:64px;height:64px;object-fit:contain;justify-self:end;align-self:center;border-radius:14px;background:rgba(255,255,255,.12);padding:8px}
.gamey-profile-fields-v221{gap:16px!important}
.gamey-profile-buttons-v221{border:1px solid var(--account-border);border-radius:18px;padding:18px;display:grid;gap:14px}.gamey-profile-buttons-v221 legend{font-weight:900;padding:0 8px}.gamey-profile-buttons-v221>p{margin:0;color:var(--account-muted)}
.gamey-profile-button-list-v221{display:grid;gap:12px}.gamey-profile-button-row-v221{display:grid;grid-template-columns:130px minmax(120px,1fr) 90px 130px 160px minmax(140px,1fr);gap:10px;align-items:center;padding:12px;border:1px solid var(--account-border);border-radius:15px;background:var(--account-surface-soft)}
.gamey-profile-button-row-v221 :is(input,select){min-width:0}.gamey-profile-button-toggle-v221{display:flex;align-items:center;gap:8px;font-weight:850}
@media(max-width:1180px){.gamey-profile-button-row-v221{grid-template-columns:1fr 1fr 100px}.gamey-profile-button-toggle-v221{grid-column:1/-1}}
@media(max-width:720px){.gamey-game-profile-editor-v221>summary{grid-template-columns:46px minmax(0,1fr) 24px}.gamey-game-profile-state-v221{display:none}.gamey-profile-preview-v221{grid-template-columns:1fr}.gamey-profile-preview-side-icon-v221{justify-self:start}.gamey-profile-button-row-v221{grid-template-columns:1fr}.gamey-profile-button-toggle-v221{grid-column:auto}}


/* ===== v222 — strict TuneTune / Shieldy / Gamey menu isolation ===== */
#panel-bot-control .bot-module-menu[hidden],
#panel-bot-control .bot-module-menu[aria-hidden="true"],
#panel-bot-control .bot-module-menu:not(.is-active){display:none!important}

#panel-bot-control[data-active-bot="tunetune"] :is(
  .bot-module-menu[data-bot-menu="shieldy"],
  .bot-module-menu[data-bot-menu="gamey"]
),
#panel-bot-control[data-active-bot="shieldy"] :is(
  .bot-module-menu[data-bot-menu="tunetune"],
  .bot-module-menu[data-bot-menu="gamey"]
),
#panel-bot-control[data-active-bot="gamey"] :is(
  .bot-module-menu[data-bot-menu="tunetune"],
  .bot-module-menu[data-bot-menu="shieldy"]
){display:none!important}

/* TuneTune compact menu uses one aligned column and cannot inherit Gamey rules. */
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"]{
  display:grid!important;grid-template-columns:1fr!important;justify-items:center!important;align-content:start!important;
  width:100%!important;gap:10px!important;margin:0!important;padding:0!important
}
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"]>button{
  display:grid!important;place-items:center!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
  margin:0 auto!important;padding:0!important;border:1px solid transparent!important;border-radius:14px!important;box-shadow:none!important;transform:none!important
}
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"]>button .module-icon{
  display:grid!important;place-items:center!important;width:40px!important;height:40px!important;min-width:40px!important;margin:0!important;
  border:1px solid var(--account-border)!important;border-radius:11px!important;background:var(--account-surface)!important;box-shadow:none!important
}
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"]>button.is-active{
  border:2px solid #2f81f7!important;background:rgba(47,129,247,.10)!important;box-shadow:none!important
}
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"]>button.is-active .module-icon{
  color:#2f81f7!important;background:transparent!important;border-color:transparent!important
}
#panel-bot-control[data-active-bot="tunetune"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="tunetune"] .module-label{display:none!important}

/* ===== v223 — reliable vertical spacing between top-level bot sections =====
   Older rules zeroed margins on status and module cards. The spacing now lives
   on the sibling relationship itself, so grid/flex/block switches cannot erase it. */
#panel-bot-control .bot-module-panel.is-active > :is(section,article,form,div) + :is(section,article,form,div){
  margin-top:20px!important;
}

/* Keep multi-card rows tidy while preserving a real vertical gap between rows. */
#panel-bot-control .bot-module-panel.is-active > .status-grid,
#panel-bot-control .bot-module-panel.is-active > .tunetune-community-grid,
#panel-bot-control .bot-module-panel.is-active > .bot-community-grid-v202{
  margin-block:0!important;
  row-gap:18px!important;
  column-gap:16px!important;
}

/* Direct cards inside those rows must not inject conflicting outer margins. */
#panel-bot-control .bot-module-panel.is-active > :is(.status-grid,.tunetune-community-grid,.bot-community-grid-v202) > *{
  margin:0!important;
}

/* Mobile keeps the same visual rhythm after grids collapse to one column. */
@media(max-width:900px){
  #panel-bot-control .bot-module-panel.is-active > :is(section,article,form,div) + :is(section,article,form,div){
    margin-top:16px!important;
  }
}

/* v229: recurring payments, next-period plan changes, detailed history and guarded developer cancellation */
.subscription-one-time-notice-v228{margin:14px 0;padding:14px 16px;border:1px solid var(--border-color,#d8dee4);border-radius:14px;background:color-mix(in srgb,var(--accent,#7357ff) 7%,transparent)}
.subscription-one-time-notice-v228 strong{display:block;margin-bottom:4px}.subscription-one-time-notice-v228 p{margin:0;color:var(--muted,#667085);line-height:1.5}
.subscription-developer-tools-v228{margin-top:18px;border-style:dashed}.subscription-developer-row-v228{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-top:1px solid var(--border-color,#e5e7eb)}
.subscription-developer-row-v228:first-child{border-top:0}.subscription-developer-row-v228 div{display:grid;gap:3px}.subscription-developer-row-v228 span{color:var(--muted,#667085);font-size:.9rem}.subscription-developer-row-v228 button{white-space:nowrap}
.subscription-history-payment-v228{align-items:flex-start}.subscription-history-content-v228{min-width:0;display:grid;gap:5px;flex:1}.subscription-history-heading-v228{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.subscription-history-test-v228{font-size:.72rem;font-weight:800;padding:2px 7px;border-radius:999px;background:#fff2c7;color:#805800}
.subscription-history-content-v228 details{margin-top:4px}.subscription-history-content-v228 summary{cursor:pointer;font-weight:700;color:var(--accent,#6547d8)}.subscription-history-details-v228{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;margin-top:10px;padding:12px;border-radius:12px;background:color-mix(in srgb,currentColor 4%,transparent)}
.subscription-history-details-v228 span{overflow-wrap:anywhere}.subscription-history-details-v228 code{font-size:.78rem}.subscription-history-actions-v228{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.subscription-history-action-v228{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border:1px solid var(--border-color,#d0d5dd);border-radius:10px;background:transparent;color:inherit;font:inherit;font-weight:800;text-decoration:none;cursor:pointer}.subscription-history-action-v228:hover:not(:disabled){border-color:var(--accent,#6547d8);color:var(--accent,#6547d8)}.subscription-history-action-v228.is-danger{border-color:rgba(207,34,46,.5);color:#cf222e}.subscription-history-action-v228.is-danger:hover:not(:disabled){border-color:#cf222e;background:rgba(207,34,46,.07);color:#cf222e}.subscription-history-action-v228:disabled{cursor:not-allowed;opacity:.58}
@media(max-width:720px){.subscription-developer-row-v228{align-items:stretch;flex-direction:column}.subscription-developer-row-v228 button{width:100%}.subscription-history-details-v228{grid-template-columns:1fr}.subscription-history-item time{white-space:normal}}

/* v232: subscription cancellation clarity */
.subscription-user-cancel-note-v232{margin:12px 0 0;padding:12px 14px;border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.5}.subscription-current-actions-v151 .subscription-cancel-button:not([hidden]){display:inline-flex;align-items:center;justify-content:center}.subscription-current-actions-v151 button[aria-disabled="true"]{cursor:not-allowed;opacity:.55}

/* v232: dedicated subscription management console */
.admin-subscription-kpis-v232{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.admin-subscription-kpis-v232 article{display:grid;gap:6px;padding:18px;border:1px solid var(--account-border,var(--gh-border));border-radius:16px;background:var(--account-surface,var(--gh-card));box-shadow:var(--account-shadow)}.admin-subscription-kpis-v232 span{font-size:12px;font-weight:900;color:var(--account-muted,var(--gh-muted))}.admin-subscription-kpis-v232 strong{font-size:27px}.admin-subscription-kpis-v232 small{color:var(--account-muted,var(--gh-muted))}.admin-subscription-master-detail-v232{grid-template-columns:minmax(0,1.45fr) minmax(340px,.85fr)}.admin-subscriptions-management-table-v232 td strong,.admin-subscriptions-management-table-v232 td small{display:block}.admin-subscriptions-management-table-v232 tr.is-selected{background:var(--account-surface-soft,var(--gh-subtle))}.admin-subscription-detail-v232{position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}.admin-subscription-warning-v232,.admin-subscription-pending-note-v232{display:grid;gap:5px;padding:12px 14px;border:1px solid #d29922;border-radius:12px;background:#fff8c5;color:#633c01}.admin-subscription-safe-actions-v232{display:flex;flex-wrap:wrap;gap:10px;padding:16px 0;border-top:1px solid var(--account-border,var(--gh-border));border-bottom:1px solid var(--account-border,var(--gh-border))}.admin-subscription-safe-actions-v232 h4{width:100%;margin:0}.admin-subscription-cancel-form-v232{display:grid;gap:12px;margin-top:18px;padding:16px;border:1px solid #ff8182;border-radius:14px;background:#fff1f0}.admin-subscription-cancel-form-v232 h4,.admin-subscription-cancel-form-v232 p{margin:0}.admin-subscription-cancel-form-v232 textarea{min-height:92px;resize:vertical;padding:11px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:8px;background:var(--account-surface,var(--gh-card));color:var(--theme-text);font:700 14px Nunito,sans-serif}.admin-subscription-order-v232{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:11px 0;border-top:1px solid var(--account-border,var(--gh-border))}.admin-subscription-order-v232 div{min-width:0}.admin-subscription-order-v232 div span,.admin-subscription-order-v232 small{display:block;color:var(--account-muted,var(--gh-muted));font-size:12px}.admin-subscription-order-v232>small{grid-column:1/-1}.admin-payment-help-v232{align-self:start}html[data-theme="dark"] .admin-subscription-cancel-form-v232{background:rgba(248,81,73,.09);border-color:#f85149}html[data-theme="dark"] .admin-subscription-warning-v232,html[data-theme="dark"] .admin-subscription-pending-note-v232{background:rgba(210,153,34,.12);color:#f2cc60;border-color:#9e6a03}@media(max-width:1200px){.admin-subscription-master-detail-v232{grid-template-columns:1fr}.admin-subscription-detail-v232{position:static;max-height:none}}@media(max-width:900px){.admin-subscription-kpis-v232{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.admin-subscription-kpis-v232{grid-template-columns:1fr}.admin-subscription-safe-actions-v232>*{width:100%}}

/* v232 subscription renewal controls */
.subscription-autorenew-v151.is-next-period-only{cursor:default;border-style:dashed;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-autorenew-v151.is-next-period-only input{cursor:not-allowed}.subscription-autorenew-context-v232{margin:9px 0 0;padding:10px 12px;border-left:3px solid var(--account-accent,#2f81f7);border-radius:8px;background:color-mix(in srgb,var(--account-accent,#2f81f7) 8%,transparent);color:var(--account-muted,var(--gh-muted));font-size:12px;line-height:1.5}.subscription-autorenew-context-v232[hidden]{display:none!important}.subscription-current-actions-v151 [data-sub-cancel-renew]:not([hidden]):not([disabled]){opacity:1!important;pointer-events:auto!important;cursor:pointer!important}
.admin-disable-renew-form-v232{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;width:100%;padding-top:12px;border-top:1px solid var(--account-border,var(--gh-border))}.admin-disable-renew-form-v232 .field{min-width:0}.admin-disable-renew-form-v232>small,.admin-disable-renew-form-v232>.api-form-message{grid-column:1/-1;margin:0}.admin-disable-renew-form-v232 .subscription-cancel-button{min-height:44px}@media(max-width:700px){.admin-disable-renew-form-v232{grid-template-columns:1fr}.admin-disable-renew-form-v232 .subscription-cancel-button{width:100%}}

/* v233: complete and user-friendly subscription cancellation flow */
.subscription-cancellation-request-status-v233{margin:12px 0 0;padding:11px 13px;border:1px solid #54aeff;border-radius:11px;background:#ddf4ff;color:#0550ae;font-size:13px;font-weight:800;line-height:1.45}.subscription-request-cancel-v233{border-color:var(--account-border,var(--gh-border))!important}.subscription-dialog-v233{width:min(620px,calc(100vw - 28px));max-height:calc(100vh - 36px);padding:0;border:1px solid var(--account-border,var(--gh-border));border-radius:18px;background:var(--account-surface,var(--gh-card));color:var(--account-text,var(--theme-text));box-shadow:0 24px 80px rgba(0,0,0,.28);overflow:auto}.subscription-dialog-v233::backdrop{background:rgba(13,17,23,.58);backdrop-filter:blur(3px)}.subscription-dialog-v233[open]{animation:subscription-dialog-in-v233 .16s ease-out}.subscription-dialog-v233>*{box-sizing:border-box}.subscription-dialog-head-v233{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 22px 15px;border-bottom:1px solid var(--account-border,var(--gh-border))}.subscription-dialog-head-v233 h2{margin:5px 0 4px;font-size:24px}.subscription-dialog-head-v233 p{margin:0;color:var(--account-muted,var(--gh-muted));line-height:1.5}.subscription-dialog-close-v233{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));color:inherit;font-size:24px;line-height:1;cursor:pointer}.subscription-dialog-summary-v233{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:17px 22px}.subscription-dialog-summary-v233>div{display:grid;gap:4px;padding:12px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}.subscription-dialog-summary-v233 span{font-size:11px;font-weight:900;color:var(--account-muted,var(--gh-muted));text-transform:uppercase;letter-spacing:.03em}.subscription-dialog-summary-v233 strong{font-size:14px;overflow-wrap:anywhere}.subscription-dialog-field-v233,.subscription-dialog-consent-v233,.subscription-refund-toggle-v233{margin:0 22px 14px}.subscription-dialog-field-v233{display:grid;gap:7px}.subscription-dialog-field-v233>span{font-weight:900}.subscription-dialog-field-v233 select,.subscription-dialog-field-v233 input,.subscription-dialog-field-v233 textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));color:inherit;font:700 14px Nunito,sans-serif}.subscription-dialog-field-v233 textarea{min-height:112px;resize:vertical}.subscription-dialog-warning-v233{margin:0 22px 14px;padding:12px 14px;border:1px solid #d29922;border-radius:11px;background:#fff8c5;color:#633c01;font-size:13px;line-height:1.5}.subscription-dialog-actions-v233{display:flex;justify-content:flex-end;gap:10px;padding:16px 22px 22px;border-top:1px solid var(--account-border,var(--gh-border))}.subscription-dialog-v233 .subscription-action-message-v151{margin:0 22px 10px}.subscription-refund-toggle-v233{padding:13px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}html[data-theme="dark"] .subscription-cancellation-request-status-v233{background:rgba(56,139,253,.12);border-color:#1f6feb;color:#79c0ff}html[data-theme="dark"] .subscription-dialog-warning-v233{background:rgba(210,153,34,.12);border-color:#9e6a03;color:#f2cc60}@keyframes subscription-dialog-in-v233{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:620px){.subscription-dialog-summary-v233{grid-template-columns:1fr}.subscription-dialog-actions-v233{display:grid}.subscription-dialog-actions-v233 button{width:100%}.subscription-dialog-head-v233{padding:18px 17px 13px}.subscription-dialog-summary-v233{padding:15px 17px}.subscription-dialog-field-v233,.subscription-dialog-consent-v233,.subscription-refund-toggle-v233,.subscription-dialog-v233 .subscription-action-message-v151,.subscription-dialog-warning-v233{margin-left:17px;margin-right:17px}.subscription-dialog-actions-v233{padding:14px 17px 18px}}


/* v233: cancellation request controls and admin request cards */
.subscription-withdraw-request-v233{font-weight:900}.subscription-current-actions-v151 .subscription-withdraw-request-v233:not([hidden]){display:inline-flex;align-items:center;justify-content:center}.subscription-dialog-field-v233[hidden]{display:none!important}.admin-cancellation-requests-v233{display:grid;gap:10px;margin:18px 0}.admin-cancellation-requests-v233 h4{margin:0}.admin-cancellation-request-v233{display:grid;gap:8px;padding:13px;border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle))}.admin-cancellation-request-v233>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.admin-cancellation-request-v233>div:first-child span,.admin-cancellation-request-v233 small{color:var(--account-muted,var(--gh-muted));font-size:12px}.admin-cancellation-request-v233 p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.admin-cancellation-request-actions-v233{display:flex;flex-wrap:wrap;gap:8px}.admin-user-refund-request-v233{display:grid;gap:4px;padding:11px 13px;border:1px solid #d29922;border-radius:11px;background:#fff8c5;color:#633c01}.admin-user-refund-request-v233 span{font-size:12px}html[data-theme="dark"] .admin-user-refund-request-v233{background:rgba(210,153,34,.12);border-color:#9e6a03;color:#f2cc60}@media(max-width:620px){.admin-cancellation-request-v233>div:first-child{align-items:flex-start;flex-direction:column}.admin-cancellation-request-actions-v233 button{width:100%}}


/* v234: strict TuneTune Premium gates per selected server */
.tt-premium-lock-notice{display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid #d4a72c;border-radius:12px;background:color-mix(in srgb,#fff7d6 62%,var(--account-surface,#fff));color:#6e4a00;position:relative;z-index:3}
.tt-premium-lock-notice>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:10px;background:#d4a72c;color:#fff;font-weight:900}
.tt-premium-lock-notice>div{display:grid;gap:2px;min-width:0;flex:1}.tt-premium-lock-notice strong{font-size:14px}.tt-premium-lock-notice small{font-size:12px;line-height:1.4;color:inherit;opacity:.86}
.tt-premium-lock-notice a{white-space:nowrap;padding:8px 11px;border-radius:8px;background:#bf8700;color:#fff!important;text-decoration:none;font-size:12px;font-weight:900}
.tt-premium-surface.is-tt-premium-locked{position:relative}.tt-premium-surface.is-tt-premium-locked>:not(.tt-premium-lock-notice){opacity:.56}
.tt-premium-surface.is-tt-premium-locked input:disabled,.tt-premium-surface.is-tt-premium-locked select:disabled,.tt-premium-surface.is-tt-premium-locked textarea:disabled,.tt-premium-surface.is-tt-premium-locked button:disabled,[data-tt-premium-control]:disabled,.premium-radio.is-tt-premium-locked{cursor:not-allowed!important;filter:saturate(.35);box-shadow:none!important;transform:none!important}
.premium-radio.is-tt-premium-locked{opacity:.58!important;border-color:#d4a72c!important}
[data-module="tt-equalizer"].has-premium-lock::after{content:"★";margin-left:auto;color:#bf8700;font-size:11px}
.premium-channel-field.is-locked,.premium-routing-option.is-locked{border-color:#d4a72c!important;background:color-mix(in srgb,#fff7d6 46%,var(--account-surface,#fff))!important}
html[data-theme="dark"] .tt-premium-lock-notice{background:rgba(210,153,34,.10);border-color:#9e6a03;color:#e3b341}html[data-theme="dark"] .tt-premium-lock-notice a{background:#9e6a03}
@media(max-width:720px){.tt-premium-lock-notice{align-items:flex-start;flex-wrap:wrap}.tt-premium-lock-notice a{width:100%;text-align:center}}

/* v235: account Premium assignments */
.premium-assignment-card-v235{margin-top:20px}
.premium-assignment-summary-v235{margin:14px 0;padding:12px 14px;border:1px solid var(--border-color,#d0d7de);border-radius:12px;background:var(--soft-bg,rgba(127,127,127,.06));font-weight:700}
.premium-assignment-list-v235{display:grid;gap:14px}
.premium-assignment-subscription-v235{border:1px solid var(--border-color,#d0d7de);border-radius:14px;padding:16px;background:var(--card-bg,#fff)}
.premium-assignment-head-v235{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}
.premium-assignment-head-v235 h3{margin:0 0 4px}.premium-assignment-head-v235 p{margin:0;color:var(--muted,#656d76)}
.premium-assignment-counter-v235{white-space:nowrap;font-weight:800;padding:6px 10px;border-radius:999px;background:rgba(92,81,255,.1)}
.premium-server-list-v235{display:grid;gap:8px}
.premium-server-row-v235{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border-color,#d0d7de);border-radius:10px}
.premium-server-row-v235 small{display:block;color:var(--muted,#656d76)}
.premium-server-row-v235 button{min-width:116px}
.premium-server-row-v235.is-unavailable{opacity:.68}
@media(max-width:680px){.premium-assignment-head-v235,.premium-server-row-v235{align-items:stretch;flex-direction:column}.premium-server-row-v235 button{width:100%}}


/* v236.4 — native server select is data storage only; the custom trigger is the visible control. */
select#managed-server.managed-server-native-v196,
#managed-server[hidden]{
  display:none!important;
  visibility:hidden!important;
}


/* v236.5 — the native server select lives in an always-hidden data store.
   Only the custom selector button is visible. */
#managed-server-native-store,
#managed-server-native-store[hidden],
#managed-server-native-store #managed-server{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  overflow:hidden!important;
}
#panel-bot-control .control-context-label{
  display:block;
  font-weight:900;
}


/* v236.6 — TuneTune: one contextual save panel per changed settings scope. */
#panel-bot-control[data-active-bot="tunetune"] [data-module-panel^="tt-"] :is(
  .sticky-save-bar,
  .universal-save-bar-v186,
  .form-actions,
  .prefix-card-actions
):not(.has-unsaved-changes){
  display:none!important;
}
#panel-bot-control[data-active-bot="tunetune"] [data-module-panel^="tt-"] :is(
  .sticky-save-bar,
  .universal-save-bar-v186,
  .form-actions,
  .prefix-card-actions
).has-unsaved-changes{
  display:flex!important;
  animation:tunetuneSaveBarInV2366 .16s ease-out both;
}
#panel-bot-control[data-active-bot="tunetune"] .tt-general-settings-scope-v2366{
  display:grid;
  gap:16px;
  margin:0!important;
}
#panel-bot-control[data-active-bot="tunetune"] .tt-general-settings-scope-v2366 > *{
  margin-top:0!important;
  margin-bottom:0!important;
}
#panel-bot-control[data-active-bot="tunetune"] .tt-general-settings-scope-v2366 > :is(.status-grid,.tunetune-community-grid){
  row-gap:16px!important;
  column-gap:16px!important;
}
@keyframes tunetuneSaveBarInV2366{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
#tt-ping-card.is-ping-good #tt-ping-value{color:#1a7f37}
#tt-ping-card.is-ping-warn #tt-ping-value{color:#9a6700}
#tt-ping-card.is-ping-bad #tt-ping-value{color:#cf222e}

/* TuneTune v236.8 live journal */
.tt-journal-live-list{display:grid;gap:10px;margin-top:14px}.tt-journal-live-event{display:grid;gap:8px;padding:13px 14px;border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle))}.tt-journal-live-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.tt-journal-live-head strong{font-size:14px;line-height:1.35}.tt-journal-live-head time{flex:0 0 auto;color:var(--account-muted,var(--gh-muted));font-size:12px}.tt-journal-live-meta,.tt-journal-live-details{display:flex;gap:8px;flex-wrap:wrap}.tt-journal-live-meta span{padding:3px 7px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;color:var(--account-muted,var(--gh-muted));font-size:11px;font-weight:800}.tt-journal-live-details span{color:var(--account-muted,var(--gh-muted));font-size:12px}.tt-journal-live-details b{color:var(--account-text,var(--theme-text))}@media(max-width:620px){.tt-journal-live-head{display:grid;gap:4px}.tt-journal-live-head time{flex:auto}}


/* v236.9: real track/radio artwork and ordered quick-connect actions */
#general-control-card>.tunetune-community-grid{margin:0 0 18px}
.player-cover{position:relative!important;overflow:hidden!important;background-position:center!important;background-repeat:no-repeat!important;background-size:cover!important}
.player-cover.has-cover{background-image:var(--tt-player-cover-image)!important;color:transparent!important}
.player-cover:not(.has-cover){background-image:linear-gradient(145deg,color-mix(in srgb,var(--music-accent) 18%,var(--music-card)),var(--music-soft))!important}
.player-cover.has-cover>span{opacity:0!important;visibility:hidden!important}
.player-cover.has-cover>small{position:absolute;left:10px;right:10px;bottom:10px;width:max-content;max-width:calc(100% - 20px);margin:auto;padding:4px 8px;overflow:hidden;border-radius:999px;background:rgba(8,15,25,.68);color:#fff!important;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 2px rgba(0,0,0,.6);backdrop-filter:blur(5px)}
@media(max-width:760px){#general-control-card>.tunetune-community-grid{grid-template-columns:1fr}}


/* v236.10 — non-blocking TuneTune connection waiting state */
[data-music-panel="player"],
[data-music-panel="history"] { position: relative; }
.tt-bot-connection-gate {
  position: absolute;
  inset: 0;
  z-index: 35;
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--music-accent, #1b9bd7) 24%, var(--border));
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface, #fff) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 44px rgba(13, 35, 55, .10);
  text-align: left;
}
.tt-bot-connection-gate[hidden] { display: none !important; }
.tt-bot-connection-copy { max-width: 620px; }
.tt-bot-connection-copy strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.tt-bot-connection-copy p { margin: 0; color: var(--muted, #667085); line-height: 1.45; }
.tt-bot-connection-spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 3px solid color-mix(in srgb, var(--music-accent, #1b9bd7) 20%, transparent);
  border-top-color: var(--music-accent, #1b9bd7);
  border-radius: 50%;
  animation: tt-connection-spin .85s linear infinite;
}
.tt-bot-connection-spinner.is-paused { animation-duration: 2.2s; opacity: .72; }
.tt-bot-required-content-disabled { opacity: .34; filter: saturate(.55); pointer-events: none; user-select: none; }
.music-tabs [data-music-tab].is-tt-connection-waiting::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-radius: 50%;
  background: #f0a020;
  vertical-align: middle;
}
@keyframes tt-connection-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .tt-bot-connection-gate { position: relative; inset: auto; min-height: 0; flex-wrap: wrap; justify-content: flex-start; margin-bottom: 14px; }
  .is-tt-bot-connection-blocked > .tt-bot-required-content-disabled { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-bot-connection-spinner { animation-duration: 2.4s; }
}

.console-status.is-waiting{background:color-mix(in srgb,#f0a020 13%,var(--account-surface-soft,var(--gh-subtle)));color:#8a5500;border-color:color-mix(in srgb,#f0a020 42%,var(--account-border,var(--gh-border)))}
.console-status.is-waiting i{background:#f0a020;box-shadow:0 0 0 4px color-mix(in srgb,#f0a020 18%,transparent)}
.command-catalog-note{margin:14px 0 0;padding:11px 13px;border:1px solid var(--account-border,var(--gh-border));border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.45}


/* v237 — moved TuneTune card content settings into music → settings */
.music-settings-routing-form{display:grid;gap:12px;grid-column:1/-1}
.music-settings-routing-form .form-actions{padding-top:0}
.music-settings-routing-form .routing-card{margin:0}

/* v237 — compact and clear subscription cancellation dialogs */
.subscription-dialog-compact-v237{width:min(540px,calc(100vw - 28px))}
.subscription-dialog-compact-v237 .subscription-dialog-head-v233{padding-bottom:18px}
.subscription-dialog-compact-v237 .subscription-dialog-head-v233 h2{font-size:23px}
.subscription-dialog-summary-compact-v237{grid-template-columns:repeat(2,minmax(0,1fr));padding-bottom:14px}
.subscription-dialog-summary-compact-v237>div{padding:13px 14px}
.subscription-dialog-single-consent-v237{margin-top:2px;padding:13px 14px;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}
.subscription-dialog-field-v233>span small{margin-left:4px;color:var(--account-muted,var(--gh-muted));font-size:12px;font-weight:700}
.subscription-dialog-compact-v237 .subscription-dialog-field-v233 textarea{min-height:78px;max-height:150px}
.subscription-dialog-note-v237{margin:0 22px 14px;padding:11px 13px;border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.45}
.subscription-cancel-confirm-v237{display:flex;align-items:flex-start;gap:13px;margin:18px 22px 14px;padding:15px;border:1px solid #ff8182;border-radius:13px;background:#ffebe9;color:#6e1b23}
.subscription-cancel-confirm-v237>span{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:50%;background:#cf222e;color:#fff;font-weight:1000}
.subscription-cancel-confirm-v237>div{display:grid;gap:4px}
.subscription-cancel-confirm-v237 strong{font-size:16px}
.subscription-cancel-confirm-v237 p{margin:0;font-size:13px;line-height:1.5}
.subscription-cancel-confirm-button-v237{background:#cf222e;color:#fff;border-color:#cf222e}
.subscription-cancel-confirm-button-v237:hover:not(:disabled){background:#a40e26;border-color:#a40e26}
.subscription-dialog-compact-v237 [data-cancellation-request-step][hidden]{display:none!important}
html[data-theme="dark"] .subscription-cancel-confirm-v237{background:rgba(248,81,73,.12);border-color:#f85149;color:#ffb3ba}
html[data-theme="dark"] .subscription-cancel-confirm-button-v237{background:#da3633;border-color:#da3633;color:#fff}
@media(max-width:620px){
  .subscription-dialog-summary-compact-v237{grid-template-columns:1fr}
  .subscription-dialog-note-v237,.subscription-cancel-confirm-v237{margin-left:17px;margin-right:17px}
}


/* v238: clearer subscription workspace and safer staff controls */
.subscription-jump-nav-v238{display:flex;flex-wrap:wrap;gap:8px;margin:-2px 0 16px}
.subscription-jump-nav-v238 a{display:inline-flex;align-items:center;min-height:36px;padding:7px 12px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;background:var(--account-surface,var(--gh-card));color:var(--account-muted,var(--gh-muted));font-size:13px;font-weight:900;text-decoration:none}
.subscription-jump-nav-v238 a:hover{border-color:var(--account-accent,#2f81f7);color:var(--account-accent,#2f81f7)}
.subscription-account-note-v238{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:16px;padding:14px 16px;border:1px solid color-mix(in srgb,var(--account-accent,#2f81f7) 30%,var(--account-border));border-radius:14px;background:color-mix(in srgb,var(--account-accent,#2f81f7) 5%,var(--account-surface,var(--gh-card)))}
.subscription-account-note-v238>span{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--account-accent,#2f81f7);color:#fff;font-weight:1000}
.subscription-account-note-v238 strong{display:block;margin-bottom:3px}.subscription-account-note-v238 p{margin:0;color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.45}
.subscription-current-v151 .eyebrow{margin:0 0 8px}
.subscription-current-actions-v238{display:grid;gap:10px}
.subscription-primary-actions-v238{display:flex;flex-wrap:wrap;gap:10px}
.subscription-extra-actions-v238{border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle));overflow:hidden}
.subscription-extra-actions-v238[hidden]{display:none!important}
.subscription-extra-actions-v238 summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;cursor:pointer;font-weight:900;list-style:none}
.subscription-extra-actions-v238 summary::-webkit-details-marker{display:none}
.subscription-extra-actions-v238 summary:after{content:"⌄";color:var(--account-muted,var(--gh-muted));transition:transform .18s ease}
.subscription-extra-actions-v238[open] summary:after{transform:rotate(180deg)}
.subscription-extra-actions-v238>div{display:flex;flex-wrap:wrap;gap:9px;padding:0 13px 13px}
.subscription-user-cancel-note-v232 strong{color:var(--account-text,var(--theme-text))}
.subscription-section-label-v238{display:flex;align-items:center;gap:10px;margin:21px 0 9px}
.subscription-section-label-v238>span{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--account-surface-soft,var(--gh-subtle));border:1px solid var(--account-border,var(--gh-border));font-weight:1000;color:var(--account-accent,#2f81f7)}
.subscription-section-label-v238>div{display:grid;gap:1px}.subscription-section-label-v238 strong{font-size:15px}.subscription-section-label-v238 small{color:var(--account-muted,var(--gh-muted))}
.subscription-account-scope-v238{margin:14px 0 0;padding:12px 14px;border:1px solid var(--account-border,var(--gh-border));border-radius:12px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:13px;line-height:1.45}
.subscription-overview-v151{grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)}
.subscription-current-v151,.subscription-renewal-v151{scroll-margin-top:88px}
#premium-assignment-v235,#subscription-builder-v151,#subscription-history-v238{scroll-margin-top:88px}

.admin-user-summary-v238{display:grid;grid-template-columns:50px minmax(0,1fr) auto;gap:12px;align-items:center;padding-bottom:15px;border-bottom:1px solid var(--account-border,var(--gh-border))}
.admin-user-avatar-v238{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,var(--account-accent,#2f81f7),#56d4ff);color:#fff;font-size:20px;font-weight:1000}
.admin-user-summary-v238>div:nth-child(2){display:grid;gap:2px;min-width:0}
.admin-user-summary-v238 h3{margin:3px 0 0;font-size:20px;overflow-wrap:anywhere}
.admin-user-summary-v238 a,.admin-user-summary-v238 small{color:var(--account-muted,var(--gh-muted));font-size:12px;overflow-wrap:anywhere}
.admin-user-subscription-v238{display:grid;gap:2px;text-align:right}.admin-user-subscription-v238 strong{font-size:14px}.admin-user-subscription-v238 small{color:var(--account-muted,var(--gh-muted))}
.admin-detail-list-v238{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.admin-detail-list-v238>div{display:grid!important;gap:4px!important;align-content:start;padding:11px 12px!important;border:1px solid var(--account-border,var(--gh-border))!important;border-radius:11px;background:var(--account-surface-soft,var(--gh-subtle))}
.admin-detail-list-v238 dd{text-align:left!important;overflow-wrap:anywhere}
.admin-test-mark-v238{display:inline-flex;margin-left:5px;padding:2px 6px;border-radius:999px;background:#fff8c5;color:#633c01;font-size:10px;font-weight:1000}
.admin-subscription-actions-v238{display:grid;gap:12px;padding:15px;border:1px solid var(--account-border,var(--gh-border));border-radius:14px;background:var(--account-surface-soft,var(--gh-subtle))}
.admin-section-heading-v238{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.admin-section-heading-v238 h4,.admin-section-heading-v238 p{margin:0}.admin-section-heading-v238 p{margin-top:3px;color:var(--account-muted,var(--gh-muted));font-size:12px}
.admin-disable-renew-form-v238{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.75fr) auto;gap:10px;align-items:end;padding-top:12px;border-top:1px solid var(--account-border,var(--gh-border))}
.admin-disable-renew-form-v238>div{display:grid;gap:3px}.admin-disable-renew-form-v238>div small{color:var(--account-muted,var(--gh-muted))}
.admin-disable-renew-form-v238 .field{margin:0}.admin-disable-renew-form-v238 .api-form-message{grid-column:1/-1;margin:0}
.admin-renewal-state-v238{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted))}
.admin-danger-zone-v238{border:1px solid #ff8182;border-radius:14px;background:#fff8f7;overflow:hidden}
.admin-danger-zone-v238>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;cursor:pointer;list-style:none}
.admin-danger-zone-v238>summary::-webkit-details-marker{display:none}
.admin-danger-zone-v238>summary>span{display:grid;gap:3px}.admin-danger-zone-v238>summary small{color:#6e1b23;font-size:12px}.admin-danger-zone-v238>summary i{font-style:normal;font-size:12px;font-weight:900;color:#cf222e}
.admin-danger-zone-v238[open]>summary{border-bottom:1px solid #ff8182}
.admin-subscription-cancel-form-v238{margin:0;border:0;border-radius:0;background:transparent}
.admin-danger-explanation-v238{display:grid;gap:4px;padding:12px 13px;border-radius:11px;background:#ffebe9;color:#6e1b23}
.admin-danger-explanation-v238 span{font-size:12px;line-height:1.45}
.admin-danger-confirm-v238{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;padding:12px 13px;border:1px solid #ff8182;border-radius:11px;background:#fff}
.admin-danger-confirm-v238 input{width:18px;height:18px;margin-top:2px;accent-color:#cf222e}
.admin-danger-confirm-v238>span{display:grid;gap:3px}.admin-danger-confirm-v238 small{color:#6e1b23;line-height:1.4}
html[data-theme="dark"] .admin-danger-zone-v238{background:rgba(248,81,73,.06);border-color:#f85149}
html[data-theme="dark"] .admin-danger-zone-v238>summary small,html[data-theme="dark"] .admin-danger-confirm-v238 small{color:#ffb3ba}
html[data-theme="dark"] .admin-danger-explanation-v238{background:rgba(248,81,73,.12);color:#ffb3ba}
html[data-theme="dark"] .admin-danger-confirm-v238{background:rgba(13,17,23,.45);border-color:#f85149}

@media(max-width:760px){
  .subscription-primary-actions-v238,.subscription-extra-actions-v238>div{display:grid}
  .subscription-primary-actions-v238 button,.subscription-extra-actions-v238 button{width:100%}
  .admin-user-summary-v238{grid-template-columns:46px minmax(0,1fr)}
  .admin-user-subscription-v238{grid-column:1/-1;text-align:left}
  .admin-detail-list-v238{grid-template-columns:1fr}
  .admin-section-heading-v238{display:grid}
  .admin-disable-renew-form-v238{grid-template-columns:1fr}
  .admin-disable-renew-form-v238 button{width:100%}
}


/* v239 — refreshed Premium workspace in the administrator console */
.admin-premium-view-v239{--premium-accent:#7c5cff;--premium-accent-2:#4aa8ff;--premium-success:#1f9d67;--premium-warning:#d29922;display:grid;gap:18px}
.admin-premium-heading-v239{position:relative;align-items:center;padding:22px 24px;border:1px solid color-mix(in srgb,var(--premium-accent) 28%,var(--account-border,var(--gh-border)));border-radius:20px;background:linear-gradient(135deg,color-mix(in srgb,var(--premium-accent) 10%,var(--account-surface,var(--gh-card))),color-mix(in srgb,var(--premium-accent-2) 7%,var(--account-surface,var(--gh-card))));overflow:hidden}
.admin-premium-heading-v239:after{content:"";position:absolute;right:-70px;top:-105px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--premium-accent) 20%,transparent),transparent 68%);pointer-events:none}
.admin-premium-heading-copy-v239{display:flex;align-items:center;gap:16px;min-width:0}.admin-premium-heading-copy-v239>div{min-width:0}.admin-premium-heading-copy-v239 h2{margin:2px 0 4px;font-size:27px}.admin-premium-heading-copy-v239 p:last-child{max-width:720px;margin:0;color:var(--account-muted,var(--gh-muted));line-height:1.45}
.admin-premium-heading-icon-v239{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,var(--premium-accent),var(--premium-accent-2));box-shadow:0 12px 30px color-mix(in srgb,var(--premium-accent) 28%,transparent);color:#fff;font-size:25px}
.admin-premium-refresh-v239{position:relative;z-index:1;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.admin-premium-refresh-v239>span{font-size:17px}
.admin-premium-kpis-v239{margin:0;gap:12px}.admin-premium-kpis-v239 article{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:13px;padding:16px;border-radius:17px;box-shadow:none;overflow:hidden;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.admin-premium-kpis-v239 article:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--kpi-color,var(--premium-accent))}.admin-premium-kpis-v239 article:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(31,35,40,.08);border-color:color-mix(in srgb,var(--kpi-color,var(--premium-accent)) 40%,var(--account-border,var(--gh-border)))}
.admin-premium-kpis-v239 article>div{display:grid;gap:3px}.admin-premium-kpis-v239 article.is-active{--kpi-color:#1f9d67}.admin-premium-kpis-v239 article.is-renewal{--kpi-color:#2f81f7}.admin-premium-kpis-v239 article.is-ending{--kpi-color:#d29922}.admin-premium-kpis-v239 article.is-pending{--kpi-color:#8250df}.admin-premium-kpi-icon-v239{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--kpi-color) 12%,var(--account-surface-soft,var(--gh-subtle)));color:var(--kpi-color);font-size:18px;font-weight:1000}.admin-premium-kpis-v239 strong{font-size:25px;line-height:1.05}.admin-premium-kpis-v239 small{font-size:11px;line-height:1.3}
.admin-premium-filter-card-v239{padding:18px}.admin-premium-filter-head-v239{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.admin-premium-filter-head-v239 h3,.admin-premium-filter-head-v239 p{margin:0}.admin-premium-filter-head-v239 p{margin-top:3px;color:var(--account-muted,var(--gh-muted));font-size:12px}.admin-premium-filter-head-v239>span{padding:5px 9px;border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:11px;font-weight:900}
.admin-premium-filter-v239{display:grid;grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(145px,.7fr)) auto;gap:12px;align-items:end}.admin-premium-filter-v239 .field{margin:0}.admin-premium-search-v239>div{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;border:1px solid var(--account-border,var(--gh-border));border-radius:11px;background:var(--account-surface,var(--gh-card));overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease}.admin-premium-search-v239>div:focus-within{border-color:var(--premium-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--premium-accent) 14%,transparent)}.admin-premium-search-v239>div>span{display:grid;place-items:center;color:var(--account-muted,var(--gh-muted));font-size:18px}.admin-premium-search-v239 input{min-width:0;border:0!important;background:transparent!important;box-shadow:none!important;padding-left:0!important}.admin-premium-filter-actions-v239{display:flex;align-items:center;gap:7px}.admin-premium-filter-actions-v239 button{min-height:42px}
.admin-premium-workspace-v239{align-items:start;gap:16px}.admin-premium-list-card-v239{padding:0;overflow:hidden}.admin-premium-list-head-v239{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 18px 14px;border-bottom:1px solid var(--account-border,var(--gh-border));background:linear-gradient(180deg,color-mix(in srgb,var(--premium-accent) 4%,var(--account-surface,var(--gh-card))),var(--account-surface,var(--gh-card)))}.admin-premium-list-head-v239 h3,.admin-premium-list-head-v239 p{margin:0}.admin-premium-list-head-v239 p{margin-top:3px;color:var(--account-muted,var(--gh-muted));font-size:12px}.admin-premium-list-head-v239>span{padding:5px 9px;border:1px solid var(--account-border,var(--gh-border));border-radius:999px;background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted));font-size:11px;font-weight:900;white-space:nowrap}
.admin-premium-table-wrap-v239{max-height:calc(100vh - 290px);min-height:360px;overflow:auto}.admin-premium-table-v239{border-collapse:separate;border-spacing:0}.admin-premium-table-v239 thead th{position:sticky;top:0;z-index:2;padding:11px 12px;background:var(--account-surface,var(--gh-card));box-shadow:0 1px 0 var(--account-border,var(--gh-border));font-size:11px;text-transform:uppercase;letter-spacing:.025em}.admin-premium-table-v239 tbody tr{transition:background .15s ease,box-shadow .15s ease}.admin-premium-table-v239 tbody tr:hover{background:color-mix(in srgb,var(--premium-accent) 5%,var(--account-surface,var(--gh-card)))}.admin-premium-table-v239 tbody tr.is-selected{background:color-mix(in srgb,var(--premium-accent) 10%,var(--account-surface,var(--gh-card)));box-shadow:inset 4px 0 var(--premium-accent)}.admin-premium-table-v239 td{padding:13px 12px;vertical-align:middle}.admin-premium-table-v239 td>small,.admin-premium-table-v239 td>span+small{margin-top:3px;color:var(--account-muted,var(--gh-muted));font-size:11px}
.admin-premium-user-cell-v239{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;min-width:190px}.admin-premium-user-cell-v239>i{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--premium-accent) 85%,#fff),var(--premium-accent-2));color:#fff;font-style:normal;font-weight:1000}.admin-premium-user-cell-v239>span{display:grid;gap:1px;min-width:0}.admin-premium-user-cell-v239 strong,.admin-premium-user-cell-v239 small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-premium-bot-cell-v239 img{width:34px;height:34px;border-radius:10px}.admin-premium-open-v239{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid color-mix(in srgb,var(--premium-accent) 34%,var(--account-border,var(--gh-border)));border-radius:9px;background:color-mix(in srgb,var(--premium-accent) 7%,var(--account-surface,var(--gh-card)));color:var(--premium-accent);font:900 12px Nunito,sans-serif;cursor:pointer;transition:background .15s ease,transform .15s ease}.admin-premium-open-v239:hover{background:color-mix(in srgb,var(--premium-accent) 14%,var(--account-surface,var(--gh-card)));transform:translateX(1px)}.admin-premium-open-v239 i{font-style:normal;font-size:17px;line-height:1}.admin-premium-message-v239{margin:0;padding:10px 18px;border-top:1px solid var(--account-border,var(--gh-border));font-size:12px}.admin-premium-empty-row-v239{height:260px!important;text-align:center!important}.admin-premium-empty-row-v239 strong,.admin-premium-empty-row-v239 small{display:block}.admin-premium-empty-row-v239 small{margin-top:4px;color:var(--account-muted,var(--gh-muted))}
.admin-premium-detail-v239{padding:18px;border-color:color-mix(in srgb,var(--premium-accent) 18%,var(--account-border,var(--gh-border)));box-shadow:0 16px 34px rgba(31,35,40,.08)}.admin-premium-empty-v239{min-height:340px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px}.admin-premium-empty-v239>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:7px;border-radius:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--premium-accent) 14%,var(--account-surface-soft,var(--gh-subtle))),color-mix(in srgb,var(--premium-accent-2) 10%,var(--account-surface-soft,var(--gh-subtle))));color:var(--premium-accent);font-size:25px}.admin-premium-empty-v239 small{max-width:290px;color:var(--account-muted,var(--gh-muted));line-height:1.45}.admin-premium-empty-v239.is-loading>span{animation:premium-spin-v239 1s linear infinite}.admin-premium-empty-v239.is-error>span{background:#ffebe9;color:#cf222e}
.admin-premium-user-hero-v239{margin:-18px -18px 16px;padding:18px;border:0;border-radius:17px 17px 14px 14px;background:linear-gradient(135deg,color-mix(in srgb,var(--premium-accent) 12%,var(--account-surface,var(--gh-card))),color-mix(in srgb,var(--premium-accent-2) 8%,var(--account-surface,var(--gh-card))));border-bottom:1px solid color-mix(in srgb,var(--premium-accent) 18%,var(--account-border,var(--gh-border)))}.admin-premium-user-hero-v239 .admin-user-avatar-v238{box-shadow:0 10px 24px color-mix(in srgb,var(--premium-accent) 24%,transparent)}.admin-premium-detail-label-v239{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:2px 0 9px}.admin-premium-detail-label-v239>span{font-weight:1000}.admin-premium-detail-label-v239 small{color:var(--account-muted,var(--gh-muted));font-size:11px}.admin-premium-detail-list-v239{margin-top:0}.admin-premium-actions-v239{margin-top:14px;background:linear-gradient(180deg,color-mix(in srgb,var(--premium-accent) 4%,var(--account-surface-soft,var(--gh-subtle))),var(--account-surface-soft,var(--gh-subtle)))}.admin-premium-collection-v239{margin-top:15px;padding:14px;border:1px solid var(--account-border,var(--gh-border));border-radius:14px;background:var(--account-surface-soft,var(--gh-subtle))}.admin-premium-collection-v239>h4{margin:0 0 8px}.admin-premium-collection-v239 .admin-subscription-order-v232:first-of-type{border-top:0}
@keyframes premium-spin-v239{to{transform:rotate(360deg)}}
html[data-theme="dark"] .admin-premium-kpis-v239 article:hover,html[data-theme="dark"] .admin-premium-detail-v239{box-shadow:0 16px 34px rgba(0,0,0,.22)}
@media(max-width:1320px){.admin-premium-filter-v239{grid-template-columns:minmax(260px,1.4fr) repeat(2,minmax(145px,.7fr));}.admin-premium-filter-v239 label:nth-of-type(4){grid-column:2}.admin-premium-filter-actions-v239{grid-column:3}}
@media(max-width:1000px){.admin-premium-filter-v239{grid-template-columns:1fr 1fr}.admin-premium-search-v239{grid-column:1/-1}.admin-premium-filter-actions-v239{grid-column:auto}.admin-premium-table-wrap-v239{max-height:none}.admin-premium-detail-v239{position:static}}
@media(max-width:720px){.admin-premium-heading-v239{display:grid;gap:16px;padding:18px}.admin-premium-heading-copy-v239{align-items:flex-start}.admin-premium-heading-icon-v239{width:46px;height:46px;flex-basis:46px;border-radius:14px}.admin-premium-heading-copy-v239 h2{font-size:23px}.admin-premium-refresh-v239{width:100%;justify-content:center}.admin-premium-kpis-v239{grid-template-columns:1fr 1fr}.admin-premium-filter-head-v239,.admin-premium-list-head-v239{align-items:flex-start;flex-direction:column}.admin-premium-filter-v239{grid-template-columns:1fr}.admin-premium-search-v239,.admin-premium-filter-v239 label:nth-of-type(4),.admin-premium-filter-actions-v239{grid-column:auto}.admin-premium-filter-actions-v239{display:grid;grid-template-columns:1fr 1fr}.admin-premium-table-wrap-v239{overflow-x:auto}.admin-premium-table-v239{min-width:960px}.admin-premium-detail-label-v239{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.admin-premium-kpis-v239{grid-template-columns:1fr}.admin-premium-heading-copy-v239{display:grid}.admin-premium-user-hero-v239{grid-template-columns:46px minmax(0,1fr)}.admin-premium-user-hero-v239 .admin-user-subscription-v238{grid-column:1/-1}}

/* Premium console v240: safer cancellation without typed confirmation phrases */
.admin-subscription-cancel-form-v240{gap:13px}
.admin-cancel-edit-step-v240{display:grid;gap:12px}
.admin-cancel-edit-step-v240[hidden],.admin-cancel-review-v240[hidden]{display:none!important}
.danger-outline-v240{min-height:43px;border:1px solid #cf222e;border-radius:10px;background:transparent;color:#cf222e;font:900 13px Nunito,sans-serif;cursor:pointer;transition:background .15s ease,color .15s ease,transform .15s ease}
.danger-outline-v240:hover:not(:disabled){background:#ffebe9;transform:translateY(-1px)}
.danger-outline-v240:disabled{opacity:.55;cursor:not-allowed}
.admin-cancel-review-v240{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:14px;border:1px solid #ff8182;border-radius:13px;background:linear-gradient(145deg,#fff8f7,#fff);box-shadow:0 10px 24px rgba(207,34,46,.08)}
.admin-cancel-review-icon-v240{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#cf222e;color:#fff;font-size:20px;font-weight:1000}
.admin-cancel-review-copy-v240{display:grid;gap:3px;align-content:center}.admin-cancel-review-copy-v240 strong{color:#8c1822}.admin-cancel-review-copy-v240 span{color:#6e1b23;font-size:12px;line-height:1.4}
.admin-cancel-review-v240 dl{grid-column:1/-1;display:grid;gap:0;margin:2px 0 0;border:1px solid #ffd0d2;border-radius:11px;background:#fff;overflow:hidden}
.admin-cancel-review-v240 dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:9px 11px;border-bottom:1px solid #ffe1e2}.admin-cancel-review-v240 dl>div:last-child{border-bottom:0}
.admin-cancel-review-v240 dt{color:#6e1b23;font-size:11px;font-weight:900}.admin-cancel-review-v240 dd{margin:0;overflow-wrap:anywhere;font-size:12px;font-weight:800}
.admin-cancel-review-actions-v240{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.35fr;gap:9px}.admin-cancel-review-actions-v240 button{min-height:43px}
.admin-subscription-cancel-form-v240.is-reviewing>.admin-danger-explanation-v238{opacity:.72}
html[data-theme="dark"] .danger-outline-v240{border-color:#ff7b72;color:#ff9b94}html[data-theme="dark"] .danger-outline-v240:hover:not(:disabled){background:rgba(248,81,73,.12)}
html[data-theme="dark"] .admin-cancel-review-v240{background:linear-gradient(145deg,rgba(248,81,73,.11),rgba(13,17,23,.7));border-color:#f85149;box-shadow:none}
html[data-theme="dark"] .admin-cancel-review-copy-v240 strong,html[data-theme="dark"] .admin-cancel-review-copy-v240 span,html[data-theme="dark"] .admin-cancel-review-v240 dt{color:#ffb3ba}
html[data-theme="dark"] .admin-cancel-review-v240 dl{background:rgba(13,17,23,.55);border-color:rgba(248,81,73,.35)}html[data-theme="dark"] .admin-cancel-review-v240 dl>div{border-color:rgba(248,81,73,.22)}
@media(max-width:560px){.admin-cancel-review-actions-v240{grid-template-columns:1fr}.admin-cancel-review-v240 dl>div{grid-template-columns:1fr;gap:3px}}


/* Premium console v241: unique assets and legacy typed-confirmation purge */


/* v243 — promo code administration */
.admin-promocode-layout-v243{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.6fr);gap:18px;align-items:start}
.admin-promocode-editor-v243,.admin-promocode-list-v243{margin:0;overflow:hidden}.admin-promocode-editor-v243{position:sticky;top:18px}
.admin-promocode-form-v243{display:grid;gap:14px}.admin-promocode-form-v243 textarea{min-height:92px;resize:vertical}.admin-promocode-wide-v243{grid-column:1/-1}
.admin-checkbox-line-v243{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft);cursor:pointer}.admin-checkbox-line-v243 input{width:18px;height:18px}.admin-checkbox-line-v243 span{display:grid;gap:2px}.admin-checkbox-line-v243 small{color:var(--account-muted)}
.admin-promocode-periods-v243{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:13px;border:1px solid var(--account-border);border-radius:13px}.admin-promocode-periods-v243 legend{padding:0 6px;font-weight:900}.admin-promocode-periods-v243 label{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:10px;background:var(--account-surface-soft);font-weight:800}
.admin-promocode-actions-v243{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-promocode-actions-v243 span{color:var(--account-muted);font-size:12px;text-align:right}.admin-row-actions-v243{display:flex;gap:7px;flex-wrap:wrap}.admin-promocode-list-v243 td small{display:block;max-width:360px;color:var(--account-muted);white-space:normal}.admin-promocode-list-v243 code{font-size:13px}
@media(max-width:1150px){.admin-promocode-layout-v243{grid-template-columns:1fr}.admin-promocode-editor-v243{position:static}}@media(max-width:760px){.admin-promocode-actions-v243{align-items:stretch;flex-direction:column}.admin-promocode-actions-v243 span{text-align:left}.admin-promocode-wide-v243{grid-column:auto}}


/* v246 — TuneTune settings layout: quick commands beside main settings; Premium smart queue below card settings. */
@media (min-width:981px){
  #tunetune-music-panel .music-settings-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important;align-items:start!important}
  #tunetune-music-panel .music-settings-grid>.console-card{grid-column:1!important;grid-row:1!important}
  #tunetune-music-panel .music-settings-grid>.command-card{grid-column:2!important;grid-row:1!important;width:100%!important;max-width:none!important;margin:0!important}
  #tunetune-music-panel .music-settings-grid>.music-settings-routing-form,
  #tunetune-music-panel .music-settings-grid>.music-smart-queue-form{grid-column:1/-1!important}
  #bot-management-workspace:not(.is-sidebar-collapsed) #tunetune-music-panel .music-settings-grid{grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr)!important}
}
#tunetune-music-panel .music-smart-queue-form{display:grid;gap:12px;margin:0}
#tunetune-music-panel .music-smart-queue-card{margin:0!important;padding:20px!important}
#tunetune-music-panel .music-smart-queue-card>.toggle-row:first-of-type{margin-top:4px}
#tunetune-music-panel .music-smart-queue-card .compact-smart-fields{margin-top:10px}
#tunetune-music-panel .music-smart-queue-card .form-actions{padding-top:8px}
@media (max-width:980px){
  #tunetune-music-panel .music-settings-grid{grid-template-columns:minmax(0,1fr)!important}
  #tunetune-music-panel .music-settings-grid>*{grid-column:1!important;grid-row:auto!important}
}

/* v247 — Premium connection/disconnection melody in TuneTune > General. */
.connection-jingle-card-v247{display:grid;gap:12px}
.connection-jingle-card-v247 .card-title{margin-bottom:0}
.connection-jingle-master-v247{border-top:0!important;margin-top:0!important}
.connection-jingle-settings-v247{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.4fr);gap:16px;padding:15px;border:1px solid var(--account-border,var(--gh-border));border-radius:13px;background:var(--account-surface-soft,var(--gh-subtle));transition:opacity .18s ease,filter .18s ease}
.connection-jingle-settings-v247.is-disabled{opacity:.55;filter:saturate(.7)}
.connection-jingle-variant-v247{align-content:start}
.connection-jingle-variant-v247 select{width:100%;min-height:44px}
.connection-jingle-events-v247{display:grid;gap:0}
.connection-jingle-events-v247 .toggle-row:first-child{border-top:0!important}
@media(max-width:820px){.connection-jingle-settings-v247{grid-template-columns:1fr}}

/* TuneTune v248 — connection melody placement and strict Premium journal UI. */
#tunetune-music-panel .music-settings-grid > .connection-jingle-card-v247{
  grid-column:1/-1!important;
  margin:0!important;
}
.connection-jingle-actions-v248{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:8px;
}
.connection-jingle-actions-v248 .api-form-message{
  margin:0;
  min-height:0;
  flex:1 1 260px;
}
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .journal-master-toggle-v202,
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .journal-options-grid-v202,
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .journal-meta-grid-v202,
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .journal-save-bar-v202,
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 [data-journal-content="tunetune"]{
  opacity:.56;
}
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .normalized-switch input:disabled + i{
  background:#d8e0e9!important;
  border-color:#a8b3c2!important;
  box-shadow:none!important;
}
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .normalized-switch input:disabled + i::after{
  transform:none!important;
}
html[data-theme="dark"] [data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .normalized-switch input:disabled + i{
  background:#344057!important;
  border-color:#53627a!important;
}
@media(max-width:720px){
  .connection-jingle-actions-v248 .primary,
  .connection-jingle-actions-v248 .discard-unsaved-button{width:100%}
}

/* v253 — единый аккуратный стиль нейтральных служебных плашек.
   Ранее .muted-status имел только white-space и частичную рамку,
   поэтому подписи TuneTune, Шпаргалка и аналогичные выглядели сжатыми. */
.muted-status,
.routing-card-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  width:max-content!important;
  min-width:0!important;
  min-height:26px!important;
  margin:0!important;
  padding:5px 10px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:999px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
  color:var(--account-muted,var(--gh-muted))!important;
  box-shadow:none!important;
  font-family:Nunito,sans-serif!important;
  font-size:11px!important;
  font-style:normal!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.055em!important;
  text-align:center!important;
  text-decoration:none!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  vertical-align:middle!important;
}
.card-title>.muted-status,
.card-title>.routing-card-badge{
  align-self:flex-start!important;
  margin-top:0!important;
}
.card-title>div{
  min-width:0;
}
@media(max-width:560px){
  .card-title>.muted-status,
  .card-title>.routing-card-badge{
    max-width:42vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
}


/* V255 — two focused personal-account UI fixes. */
.profile-edit-icon{
  width:38px;
  height:38px;
  flex:0 0 38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--gh-border);
  border-radius:11px;
  background:var(--gh-subtle);
  color:var(--gh-blue);
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease;
}
.profile-edit-icon:hover{
  transform:translateY(-1px);
  border-color:var(--gh-blue);
  background:var(--gh-hover);
}
.profile-edit-icon:focus-visible{
  outline:3px solid color-mix(in srgb,var(--gh-blue) 28%,transparent);
  outline-offset:2px;
}
.profile-edit-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
[data-embedded-journal="tunetune"] .journal-master-toggle-v202{
  margin-left:auto;
}
@media(max-width:780px){
  [data-embedded-journal="tunetune"] .journal-master-head-v202{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start!important;
  }
  [data-embedded-journal="tunetune"] .journal-master-toggle-v202{
    width:auto!important;
    align-self:start;
    justify-content:flex-end!important;
  }
}


/* V286: colourful Premium status card in account profile */
.premium-profile-card{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:136px;
  padding:20px 21px!important;
  border-color:#d4a72c!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#fffefb 0%,#ffffff 48%,#f8fbff 100%)!important;
  box-shadow:0 10px 28px rgba(60,88,140,.10),inset 0 1px 0 rgba(255,255,255,.9);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.premium-profile-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 16% 20%, rgba(47,129,247,.17) 0%, rgba(47,129,247,0) 30%),
    radial-gradient(circle at 34% 82%, rgba(45,164,78,.14) 0%, rgba(45,164,78,0) 28%),
    radial-gradient(circle at 84% 24%, rgba(212,167,44,.20) 0%, rgba(212,167,44,0) 26%),
    radial-gradient(circle at 92% 74%, rgba(229,83,131,.15) 0%, rgba(229,83,131,0) 24%);
  pointer-events:none;
}
.premium-profile-card::after{
  content:"★";
  position:absolute;
  right:18px;
  bottom:10px;
  color:rgba(212,167,44,.16);
  font-size:58px;
  font-weight:1000;
  line-height:1;
  transform:rotate(-9deg);
  pointer-events:none;
}
.premium-profile-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(60,88,140,.14),inset 0 1px 0 rgba(255,255,255,.92);
}
.premium-profile-card .premium-profile-label{
  display:inline-flex;
  align-items:center;
  width:max-content;
  gap:7px;
  padding:5px 10px;
  border:1px solid rgba(212,167,44,.28);
  border-radius:999px;
  background:rgba(255,255,255,.76);
  color:#7d4e00!important;
  font-size:12px!important;
  font-weight:950!important;
  letter-spacing:.015em;
}
.premium-profile-card .premium-profile-label i{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:linear-gradient(135deg,#f2cc60,#d4a72c);
  color:#fff;
  font-style:normal;
  font-size:11px;
  box-shadow:0 3px 8px rgba(154,103,0,.18);
}
.premium-profile-card strong{
  position:relative;
  z-index:1;
  margin-top:2px;
  color:#5d3b00;
  font-size:24px!important;
  line-height:1.15;
}
.premium-profile-card small{
  position:relative;
  z-index:1;
  color:#5e7192!important;
  font-weight:800;
}
.premium-profile-card em.hidden-features-inline{
  position:relative;
  z-index:1;
  color:#2f81f7!important;
}
.premium-profile-card.is-premium-active{
  border-color:#d4a72c!important;
}
.premium-profile-card.is-premium-active strong::before{
  content:"";
  display:inline-block;
  width:9px;
  height:9px;
  margin-right:8px;
  border-radius:50%;
  background:#2da44e;
  box-shadow:0 0 0 4px rgba(45,164,78,.13);
  vertical-align:2px;
}
.premium-profile-card.is-premium-inactive{
  border-color:var(--account-border,var(--gh-border))!important;
  background:linear-gradient(135deg,var(--account-surface,var(--gh-card)),var(--account-surface-soft,var(--gh-subtle)))!important;
  box-shadow:none;
}
.premium-profile-card.is-premium-inactive::before,
.premium-profile-card.is-premium-inactive::after{display:none}
.premium-profile-card.is-premium-inactive .premium-profile-label{
  border-color:var(--account-border,var(--gh-border));
  background:var(--account-surface-soft,var(--gh-subtle));
  color:var(--account-muted,var(--gh-muted))!important;
}
.premium-profile-card.is-premium-inactive .premium-profile-label i{
  background:var(--account-border,var(--gh-border));
  color:var(--account-muted,var(--gh-muted));
  box-shadow:none;
}
.premium-profile-card.is-premium-inactive strong{color:var(--account-text,var(--theme-text))}
.premium-profile-card.is-premium-inactive small{color:var(--account-muted,var(--gh-muted))!important}
html[data-theme="dark"] .premium-profile-card{
  border-color:#9e6a03!important;
  background:linear-gradient(135deg,#141d2b 0%,#1a2230 56%,#201c16 100%)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="dark"] .premium-profile-card::before{
  background:
    radial-gradient(circle at 16% 20%, rgba(47,129,247,.20) 0%, rgba(47,129,247,0) 30%),
    radial-gradient(circle at 34% 82%, rgba(45,164,78,.16) 0%, rgba(45,164,78,0) 28%),
    radial-gradient(circle at 84% 24%, rgba(242,204,96,.16) 0%, rgba(242,204,96,0) 26%),
    radial-gradient(circle at 92% 74%, rgba(229,83,131,.15) 0%, rgba(229,83,131,0) 24%);
}
html[data-theme="dark"] .premium-profile-card .premium-profile-label{
  border-color:rgba(242,204,96,.22);
  background:rgba(242,204,96,.08);
  color:#f2cc60!important;
}
html[data-theme="dark"] .premium-profile-card .premium-profile-label i{background:#9e6a03;color:#fff8c5}
html[data-theme="dark"] .premium-profile-card strong{color:#fff1a8}
html[data-theme="dark"] .premium-profile-card small{color:#a9bad0!important}
html[data-theme="dark"] .premium-profile-card em.hidden-features-inline{color:#79c0ff!important}
html[data-theme="dark"] .premium-profile-card.is-premium-inactive{
  border-color:var(--account-border,var(--gh-border))!important;
  background:linear-gradient(135deg,var(--account-surface,var(--gh-card)),var(--account-surface-soft,var(--gh-subtle)))!important;
  box-shadow:none;
}
html[data-theme="dark"] .premium-profile-card.is-premium-inactive strong{color:var(--account-text,var(--theme-text))}
html[data-theme="dark"] .premium-profile-card.is-premium-inactive small{color:var(--account-muted,var(--gh-muted))!important}
@media(max-width:520px){
  .premium-profile-card{min-height:124px;padding:17px 18px!important}
  .premium-profile-card strong{font-size:22px!important}
  .premium-profile-card::after{font-size:48px;right:12px}
}


/* V257: journal toggle may collapse settings, but save/reset controls must remain usable. */
[data-embedded-journal="tunetune"] .journal-save-bar-v202{
  display:flex!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
[data-embedded-journal="tunetune"].is-tt-journal-premium-locked-v248 .journal-save-bar-v202{
  pointer-events:none!important;
}


/* V261: отдельный контейнер действий очереди, чтобы кнопки не слипались */
.queue-footer-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:14px;
}
.queue-footer-actions .inline-button{
  margin:0!important;
}
@media(max-width:560px){
  .queue-footer-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
  .queue-footer-actions .inline-button{
    width:100%!important;
  }
}

/* V264: persistent promocode states */
.active-promocode-badge.is-reserved{background:#fff8c5;border-color:#d4a72c;color:#7d4e00}
.active-promocode-badge.is-unavailable{background:var(--account-surface-soft,var(--gh-subtle));border-color:var(--account-border,var(--gh-border));color:var(--account-muted,var(--gh-muted))}
html[data-theme="dark"] .active-promocode-badge.is-reserved{background:rgba(210,153,34,.13);border-color:#9e6a03;color:#f2cc60}
html[data-theme="dark"] .active-promocode-badge.is-unavailable{background:rgba(110,118,129,.12);border-color:#30363d;color:#8b949e}


/* ===== v280: лёгкое открытие страниц, единый выбор сервера и ровные тумблеры Shieldy ===== */
#panel-bot-control[data-active-bot="tunetune"]{
  --account-accent:#1597ff;
  --account-accent-strong:#0969da;
  --account-accent-soft:rgba(21,151,255,.12);
}
#panel-bot-control[data-active-bot="shieldy"]{
  --account-accent:#2da44e;
  --account-accent-strong:#1f7a38;
  --account-accent-soft:rgba(45,164,78,.12);
}
#panel-bot-control[data-active-bot="gamey"]{
  --account-accent:#ef5b98;
  --account-accent-strong:#bd3d72;
  --account-accent-soft:rgba(239,91,152,.12);
}

/* Одноразовая анимация запускается только после загрузки аккаунта. */
html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-control-heading,
html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-switcher,
html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-workspace{
  animation:bot-page-enter-v280 .36s cubic-bezier(.22,.75,.28,1) both;
}
html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-switcher{animation-delay:.045s}
html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-workspace{animation-delay:.09s}
@keyframes bot-page-enter-v280{
  from{opacity:0;transform:translateY(9px)}
  to{opacity:1;transform:translateY(0)}
}

/* Один и тот же аккуратный выпадающий список выбора сервера на всех страницах ботов. */
#panel-bot-control .managed-server-trigger-v196{
  min-height:58px!important;
  border:2px solid color-mix(in srgb,var(--account-accent) 30%,var(--account-border))!important;
  border-radius:15px!important;
  background:var(--account-surface-soft)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--account-accent) 7%,transparent)!important;
}
#panel-bot-control .managed-server-trigger-v196:hover:not(:disabled),
#panel-bot-control .managed-server-select-v196.is-open .managed-server-trigger-v196{
  border-color:color-mix(in srgb,var(--account-accent) 68%,var(--account-border))!important;
  background:var(--account-surface)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--account-accent) 14%,transparent),0 10px 24px color-mix(in srgb,var(--account-accent) 10%,transparent)!important;
}
#panel-bot-control .managed-server-trigger-v196:focus-visible{
  border-color:var(--account-accent)!important;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--account-accent) 18%,transparent)!important;
}
#panel-bot-control .managed-server-menu-v196{
  border-color:color-mix(in srgb,var(--account-accent) 42%,var(--account-border))!important;
  border-radius:14px!important;
  box-shadow:0 18px 42px rgba(13,25,43,.18)!important;
}
#panel-bot-control .managed-server-option-v196:hover,
#panel-bot-control .managed-server-option-v196:focus-visible,
#panel-bot-control .managed-server-option-v196.is-selected{
  background:color-mix(in srgb,var(--account-accent) 12%,var(--account-surface-soft))!important;
  color:var(--account-accent-strong)!important;
}

/* Shieldy: все варианты переключателей повторяют ровную геометрию TuneTune 46×26. */
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch){
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
  align-self:center!important;
  vertical-align:middle!important;
  line-height:0!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:2!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  opacity:0!important;
  cursor:pointer!important;
  pointer-events:auto!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>i{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:46px!important;
  height:26px!important;
  border:1px solid #a8b3c2!important;
  border-radius:999px!important;
  background:#d8e0e9!important;
  box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
  pointer-events:none!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>i::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(16,35,63,.25)!important;
  transform:none!important;
  transition:transform .18s ease!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>input:checked+i{
  background:#2da44e!important;
  border-color:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.10)!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>input:checked+i::after{
  transform:translateX(20px)!important;
}
#panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.22)!important;
  outline-offset:2px!important;
}

#panel-bot-control[data-active-bot="shieldy"] label.toggle-row{align-items:center!important}
#panel-bot-control[data-active-bot="shieldy"] label.toggle-row>input[type="checkbox"]{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
#panel-bot-control[data-active-bot="shieldy"] label.toggle-row>i{
  position:relative!important;
  inset:auto!important;
  display:block!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
  border:1px solid #a8b3c2!important;
  border-radius:999px!important;
  background:#d8e0e9!important;
  box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;
}
#panel-bot-control[data-active-bot="shieldy"] label.toggle-row>i::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(16,35,63,.25)!important;
  transform:none!important;
  transition:transform .18s ease!important;
}
#panel-bot-control[data-active-bot="shieldy"] label.toggle-row>input:checked+i{
  background:#2da44e!important;
  border-color:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.10)!important;
}
#panel-bot-control[data-active-bot="shieldy"] label.toggle-row>input:checked+i::after{transform:translateX(20px)!important}

/* Старые одиночные чекбоксы Shieldy превращены в такие же компактные тумблеры. */
#panel-bot-control[data-active-bot="shieldy"] .inline-toggles label,
#panel-bot-control[data-active-bot="shieldy"] .reaction-role-options label{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  min-height:34px!important;
  color:var(--account-text)!important;
  cursor:pointer!important;
}
#panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative!important;
  display:inline-block!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
  border:1px solid #a8b3c2!important;
  border-radius:999px!important;
  background:#d8e0e9!important;
  box-shadow:inset 0 1px 2px rgba(16,35,63,.08)!important;
  cursor:pointer!important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
#panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 5px rgba(16,35,63,.25);
  transition:transform .18s ease;
}
#panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]:checked{
  border-color:#2da44e!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.10)!important;
}
#panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(20px)}
#panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]:focus-visible{
  outline:3px solid rgba(47,129,247,.22)!important;
  outline-offset:2px!important;
}

html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>i,
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] label.toggle-row>i,
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]{
  background:#344057!important;
  border-color:#53627a!important;
}
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] :is(.switch,.mini-switch,.normalized-switch,.tt-route-switch)>input:checked+i,
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] label.toggle-row>input:checked+i,
html[data-theme="dark"] #panel-bot-control[data-active-bot="shieldy"] input.ui-switch-control[type="checkbox"]:checked{
  background:#2ea043!important;
  border-color:#3fb950!important;
}

@media(prefers-reduced-motion:reduce){
  html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-control-heading,
  html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-switcher,
  html.account-api-ready body[data-account-page="bots"] #panel-bot-control .bot-workspace{
    animation:none!important;
  }
}

/* v281 — Shieldy: единый раздел «Сообщения и роли». */
.shieldy-interactions-module{
  --sh-interaction-accent:#2da44e;
  --sh-interaction-accent-soft:rgba(45,164,78,.10);
  display:grid;
  gap:16px;
}
.shieldy-interactions-heading{
  margin-bottom:0;
  align-items:center;
}
.shieldy-interactions-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 11px;
  border:1px solid color-mix(in srgb,var(--sh-interaction-accent) 36%,var(--account-border));
  border-radius:999px;
  background:var(--sh-interaction-accent-soft);
  color:var(--sh-interaction-accent);
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.shieldy-interactions-intro{
  display:flex;
  align-items:center;
  gap:13px;
  margin:0;
  padding:15px 17px!important;
  border-color:color-mix(in srgb,var(--sh-interaction-accent) 25%,var(--account-border));
  background:linear-gradient(135deg,color-mix(in srgb,var(--account-surface) 94%,var(--sh-interaction-accent) 6%),var(--account-surface));
}
.shieldy-interactions-intro-icon{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--sh-interaction-accent);
  color:#fff;
  box-shadow:0 7px 18px rgba(45,164,78,.18);
  font-size:18px;
  font-weight:900;
}

.shieldy-hand-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.welcome-event-icon.shieldy-hand-icon{
  display:grid;
  place-items:center;
}
.welcome-event-icon.shieldy-hand-icon svg{
  width:18px;
  height:18px;
}
.shieldy-interactions-intro>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.shieldy-interactions-intro strong{
  color:var(--account-text);
  font-size:14px;
}
.shieldy-interactions-intro small{
  color:var(--account-muted);
  line-height:1.45;
}
.shieldy-interaction-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:6px;
  border:1px solid var(--account-border);
  border-radius:16px;
  background:var(--account-surface-soft);
}
.shieldy-interaction-tab{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  min-height:68px;
  padding:11px 13px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:var(--account-text);
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.shieldy-interaction-tab:hover{
  border-color:color-mix(in srgb,var(--sh-interaction-accent) 28%,var(--account-border));
  background:color-mix(in srgb,var(--account-surface) 82%,var(--sh-interaction-accent) 5%);
  transform:translateY(-1px);
}
.shieldy-interaction-tab.is-active{
  border-color:color-mix(in srgb,var(--sh-interaction-accent) 46%,var(--account-border));
  background:var(--account-surface);
  box-shadow:0 7px 20px rgba(24,42,70,.08),inset 0 -2px 0 var(--sh-interaction-accent);
}
.shieldy-interaction-tab:focus-visible{
  outline:3px solid rgba(47,129,247,.20);
  outline-offset:2px;
}
.shieldy-interaction-tab-icon{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border:1px solid color-mix(in srgb,var(--sh-interaction-accent) 25%,var(--account-border));
  border-radius:11px;
  background:var(--sh-interaction-accent-soft);
  color:var(--sh-interaction-accent);
  font-size:17px;
  font-weight:900;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}
.shieldy-interaction-tab.is-active .shieldy-interaction-tab-icon{
  border-color:var(--sh-interaction-accent);
  background:var(--sh-interaction-accent);
  color:#fff;
}
.shieldy-interaction-tab-copy{
  display:grid;
  gap:3px;
  min-width:0;
}
.shieldy-interaction-tab-copy strong{
  overflow:hidden;
  color:var(--account-text);
  font-size:13px;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shieldy-interaction-tab-copy small{
  overflow:hidden;
  color:var(--account-muted);
  font-size:11px;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shieldy-interaction-views{
  min-width:0;
}
.shieldy-interaction-view{
  display:grid;
  gap:14px;
  min-width:0;
  animation:shieldyInteractionIn .18s ease both;
}
.shieldy-interaction-view[hidden]{
  display:none!important;
}
@keyframes shieldyInteractionIn{
  from{opacity:0;transform:translateY(5px)}
  to{opacity:1;transform:none}
}
.sh-interaction-section-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:76px;
  padding:15px 17px;
  border:1px solid var(--account-border);
  border-radius:14px;
  background:var(--account-surface);
}
.sh-interaction-section-heading>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.sh-interaction-section-heading h3{
  margin:0;
  color:var(--account-text);
  font-size:17px;
  line-height:1.2;
}
.sh-interaction-section-heading p{
  margin:0;
  color:var(--account-muted);
  font-size:12px;
  line-height:1.45;
}
.shieldy-interaction-view>.welcome-builder,
.shieldy-interaction-view>.reaction-role-layout,
.shieldy-interaction-view>.custom-message-layout{
  margin-top:0;
}
.shieldy-interaction-view>.shieldy-feature-note,
.shieldy-interaction-view>.reaction-role-management-card,
.shieldy-interaction-view>.role-template-grid,
.shieldy-interaction-view>.custom-preview-toolbar{
  margin-top:0;
}
html[data-theme="dark"] .shieldy-interactions-intro{
  background:linear-gradient(135deg,rgba(45,164,78,.09),var(--account-surface));
}
html[data-theme="dark"] .shieldy-interaction-tab.is-active{
  box-shadow:0 8px 22px rgba(0,0,0,.20),inset 0 -2px 0 var(--sh-interaction-accent);
}
@media(max-width:900px){
  .shieldy-interaction-tab{
    padding:10px;
  }
  .shieldy-interaction-tab-icon{
    flex-basis:34px;
    width:34px;
    height:34px;
  }
}
@media(max-width:720px){
  .shieldy-interactions-heading{
    align-items:flex-start;
  }
  .shieldy-interaction-tabs{
    display:flex;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
  }
  .shieldy-interaction-tab{
    flex:0 0 210px;
    scroll-snap-align:start;
  }
  .sh-interaction-section-heading{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:520px){
  .shieldy-interactions-intro{
    align-items:flex-start;
  }
  .shieldy-interactions-badge{
    display:none;
  }
  .shieldy-interaction-tab{
    flex-basis:184px;
    min-height:62px;
  }
  .shieldy-interaction-tab-copy small{
    display:none;
  }
}


/* V282: separate Premium status for TuneTune, Shieldy and Gamey in the profile. */
.profile-subscriptions-card{
  margin:0 0 18px;
  padding:20px!important;
  border-radius:14px!important;
}
.profile-subscriptions-heading{
  align-items:flex-start;
  margin-bottom:15px!important;
}
.profile-subscriptions-heading>div{display:grid;gap:3px;min-width:0}
.profile-subscriptions-heading .eyebrow{margin:0;color:var(--account-muted,var(--gh-muted))}
.profile-subscriptions-heading h2{font-size:20px!important}
.profile-subscriptions-heading p:not(.eyebrow){
  max-width:720px;
  margin:2px 0 0;
  color:var(--account-muted,var(--gh-muted));
  font-size:13px;
  line-height:1.48;
  font-weight:700;
}
.profile-subscriptions-main-action,
.profile-subscription-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 13px;
  border:1px solid var(--account-border,var(--gh-border));
  border-radius:9px;
  background:var(--account-surface-soft,var(--gh-subtle));
  color:var(--account-text,var(--theme-text))!important;
  text-decoration:none;
  white-space:nowrap;
  font:900 13px Nunito,sans-serif;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,color .16s ease;
}
.profile-subscriptions-main-action:hover,
.profile-subscription-action:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--profile-sub-accent,var(--account-accent,#2f81f7)) 55%,var(--account-border,var(--gh-border)));
  color:var(--profile-sub-accent,var(--account-accent,#2f81f7))!important;
}
.profile-subscriptions-list{display:grid;gap:10px}
.profile-subscription-row{
  --profile-sub-accent:#2f81f7;
  position:relative;
  display:grid;
  grid-template-columns:220px minmax(0,1fr) 140px;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:14px 14px 14px 17px;
  overflow:hidden;
  border:1px solid var(--account-border,var(--gh-border));
  border-radius:12px;
  background:var(--account-surface-soft,var(--gh-subtle));
  transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.profile-subscription-row::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--profile-sub-accent);
  opacity:.38;
}
.profile-subscription-row.is-tunetune{--profile-sub-accent:#2f81f7}
.profile-subscription-row.is-shieldy{--profile-sub-accent:#2da44e}
.profile-subscription-row.is-gamey{--profile-sub-accent:#e55383}
.profile-subscription-row.is-active{
  border-color:color-mix(in srgb,var(--profile-sub-accent) 34%,var(--account-border,var(--gh-border)));
  background:color-mix(in srgb,var(--profile-sub-accent) 5%,var(--account-surface,var(--gh-card)));
}
.profile-subscription-row.is-active::before{opacity:1}
.profile-subscription-row.is-loading{opacity:.72}
.profile-subscription-row:hover{transform:translateY(-1px)}
.profile-subscription-identity{display:flex;align-items:center;gap:12px;min-width:0}
.profile-subscription-icon{
  flex:0 0 48px;
  width:48px;
  height:48px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--profile-sub-accent) 28%,var(--account-border,var(--gh-border)));
  border-radius:13px;
  background:color-mix(in srgb,var(--profile-sub-accent) 9%,var(--account-surface,var(--gh-card)));
}
.profile-subscription-icon img{display:block;width:100%;height:100%;object-fit:cover}
.profile-subscription-identity>div{display:grid;gap:2px;min-width:0}
.profile-subscription-identity h3{margin:0;font-size:16px;line-height:1.2}
.profile-subscription-identity small{color:var(--account-muted,var(--gh-muted));font-size:12px;font-weight:750}
.profile-subscription-facts{
  display:grid;
  grid-template-columns:1.05fr 1fr 1.35fr .85fr;
  gap:8px;
  min-width:0;
}
.profile-subscription-facts>div{
  display:grid;
  align-content:center;
  gap:3px;
  min-width:0;
  min-height:52px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--account-border,var(--gh-border)) 78%,transparent);
  border-radius:9px;
  background:color-mix(in srgb,var(--account-surface,var(--gh-card)) 78%,transparent);
}
.profile-subscription-facts span{
  color:var(--account-muted,var(--gh-muted));
  font-size:10px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.profile-subscription-facts strong{
  min-width:0;
  overflow:hidden;
  color:var(--account-text,var(--theme-text));
  font-size:12px;
  font-weight:900;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.profile-subscription-status{
  display:inline-flex!important;
  align-items:center;
  width:max-content;
  max-width:100%;
  padding:3px 7px;
  border-radius:999px;
  font-size:11px!important;
  line-height:1.25!important;
}
.profile-subscription-status::before{
  content:"";
  flex:0 0 6px;
  width:6px;
  height:6px;
  margin-right:5px;
  border-radius:50%;
  background:currentColor;
}
.profile-subscription-status.is-active{background:#dafbe1;color:#116329!important}
.profile-subscription-status.is-warning{background:#fff8c5;color:#7a4d00!important}
.profile-subscription-status.is-inactive,
.profile-subscription-status.is-loading{background:var(--account-surface-soft,var(--gh-subtle));color:var(--account-muted,var(--gh-muted))!important}
.profile-subscription-status.is-developer{background:#ddf4ff;color:#0969da!important}
.profile-subscription-action{
  width:100%;
  min-width:0;
  justify-self:end;
  border-color:color-mix(in srgb,var(--profile-sub-accent) 32%,var(--account-border,var(--gh-border)));
  background:color-mix(in srgb,var(--profile-sub-accent) 8%,var(--account-surface,var(--gh-card)));
  color:var(--profile-sub-accent)!important;
}
.profile-subscription-action.is-disabled{
  pointer-events:none;
  border-color:var(--account-border,var(--gh-border));
  background:var(--account-surface-soft,var(--gh-subtle));
  color:var(--account-muted,var(--gh-muted))!important;
  opacity:.72;
}
html[data-theme="dark"] .profile-subscription-status.is-active{background:rgba(46,160,67,.17);color:#56d364!important}
html[data-theme="dark"] .profile-subscription-status.is-warning{background:rgba(210,153,34,.17);color:#e3b341!important}
html[data-theme="dark"] .profile-subscription-status.is-developer{background:rgba(47,129,247,.18);color:#79c0ff!important}
@media(max-width:1080px){
  .profile-subscription-row{grid-template-columns:200px minmax(0,1fr) 140px;gap:10px}
  .profile-subscription-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .profile-subscriptions-heading{display:grid!important;gap:12px}
  .profile-subscriptions-main-action{justify-self:start}
  .profile-subscription-row{grid-template-columns:minmax(0,1fr) auto;gap:13px}
  .profile-subscription-facts{grid-column:1/-1;grid-row:2}
  .profile-subscription-action{grid-column:2;grid-row:1;min-width:88px}
}
@media(max-width:520px){
  .profile-subscriptions-card{padding:15px!important}
  .profile-subscription-row{grid-template-columns:1fr;padding:13px 13px 13px 16px}
  .profile-subscription-action{grid-column:1;grid-row:auto;width:100%}
  .profile-subscription-facts{grid-column:1;grid-template-columns:1fr 1fr}
  .profile-subscription-facts>div{min-height:49px}
}

/* V286: Premium subscriptions card — warm premium accent without changing bot colors. */
.profile-subscriptions-card{
  position:relative;
  overflow:hidden;
  border:1px solid #e7b83f!important;
  background:
    radial-gradient(circle at 92% 4%,rgba(255,210,73,.22),transparent 19%),
    linear-gradient(135deg,#fffdf7 0%,#fff9e8 28%,#ffffff 64%)!important;
  box-shadow:0 10px 28px rgba(176,120,0,.08)!important;
}
.profile-subscriptions-card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,#d9a514,#ffd966 48%,#e9b62f);
  pointer-events:none;
}
.profile-subscriptions-card::after{
  content:"★";
  position:absolute;
  top:14px;
  right:24px;
  color:rgba(197,142,12,.08);
  font-size:76px;
  line-height:1;
  transform:rotate(-8deg);
  pointer-events:none;
}
.profile-subscriptions-heading{
  position:relative;
  z-index:1;
}
.profile-subscriptions-heading .eyebrow{
  width:max-content;
  padding:4px 9px;
  border:1px solid rgba(201,149,24,.30);
  border-radius:999px;
  background:rgba(255,246,210,.82);
  color:#8a5a00!important;
  font-size:10px!important;
  letter-spacing:.055em;
}
.profile-subscriptions-heading h2{
  color:#392600!important;
}
.profile-subscriptions-heading p:not(.eyebrow){
  color:#6d5b35!important;
}
.profile-subscriptions-main-action{
  position:relative;
  z-index:1;
  border-color:rgba(201,149,24,.38)!important;
  background:linear-gradient(180deg,#fffdf7,#fff6d8)!important;
  color:#775000!important;
  box-shadow:0 4px 12px rgba(174,121,0,.07);
}
.profile-subscriptions-main-action:hover{
  border-color:#d2a11f!important;
  background:#fff1bd!important;
  color:#5d3d00!important;
}
.profile-subscriptions-list{
  position:relative;
  z-index:1;
}
.profile-subscription-row{
  background:rgba(255,255,255,.76)!important;
  backdrop-filter:blur(2px);
}
.profile-subscription-row.is-active{
  background:color-mix(in srgb,var(--profile-sub-accent) 7%,#fff)!important;
}
html[data-theme="dark"] .profile-subscriptions-card{
  border-color:#6e5418!important;
  background:
    radial-gradient(circle at 92% 4%,rgba(210,153,34,.14),transparent 21%),
    linear-gradient(135deg,#18150d 0%,#17191f 42%,#101a2a 100%)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .profile-subscriptions-card::after{color:rgba(255,214,92,.055)}
html[data-theme="dark"] .profile-subscriptions-heading .eyebrow{
  border-color:rgba(227,179,65,.28);
  background:rgba(210,153,34,.13);
  color:#e3b341!important;
}
html[data-theme="dark"] .profile-subscriptions-heading h2{color:#fff0b3!important}
html[data-theme="dark"] .profile-subscriptions-heading p:not(.eyebrow){color:#c7b98f!important}
html[data-theme="dark"] .profile-subscriptions-main-action{
  border-color:rgba(227,179,65,.32)!important;
  background:rgba(210,153,34,.12)!important;
  color:#e3b341!important;
}
html[data-theme="dark"] .profile-subscriptions-main-action:hover{
  border-color:#e3b341!important;
  background:rgba(210,153,34,.20)!important;
}
html[data-theme="dark"] .profile-subscription-row{
  background:rgba(16,26,42,.78)!important;
  backdrop-filter:none;
}
html[data-theme="dark"] .profile-subscription-row.is-active{
  background:color-mix(in srgb,var(--profile-sub-accent) 10%,#101a2a)!important;
}


/* V288: bot invite and official-server cards live outside the module workspace. */
.bot-community-outside-v288{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 14px;
  min-width:0;
}
.bot-community-outside-v288>.bot-install-card{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-width:0;
  min-height:96px;
  margin:0!important;
  padding:16px 18px!important;
  border-radius:14px!important;
}
.bot-community-outside-v288>.bot-install-card>div{
  display:grid;
  gap:4px;
  min-width:0;
}
.bot-community-outside-v288>.bot-install-card h3{
  margin:0;
  font-size:17px;
  line-height:1.25;
}
.bot-community-outside-v288>.bot-install-card p{
  margin:0;
  color:var(--account-muted,var(--gh-muted));
  font-size:13px;
  line-height:1.42;
}
.bot-community-outside-v288>.bot-install-card .inline-button{
  flex:0 0 124px;
  width:124px;
  min-height:48px;
  padding:9px 12px;
}
.bot-community-outside-v288.is-shieldy>.bot-install-card{
  border-color:color-mix(in srgb,#2da44e 30%,var(--account-border,var(--gh-border)));
}
.bot-community-outside-v288.is-shieldy>.official-server-card{
  background:linear-gradient(135deg,color-mix(in srgb,#2da44e 7%,var(--account-surface,var(--gh-card))) 0%,var(--account-surface,var(--gh-card)) 72%);
}
.bot-community-outside-v288.is-shieldy .inline-button{
  background:#1f883d;
  border-color:#1f883d;
}
.bot-community-outside-v288.is-shieldy .inline-button:hover{
  background:#1a7f37;
  border-color:#1a7f37;
}
html[data-theme="dark"] .bot-community-outside-v288.is-shieldy>.official-server-card{
  background:linear-gradient(135deg,rgba(46,160,67,.12),var(--account-surface,#0d1117) 72%);
  border-color:#2f6f43;
}
@media(max-width:900px){
  .bot-community-outside-v288{grid-template-columns:1fr}
}
@media(max-width:620px){
  .bot-community-outside-v288>.bot-install-card{
    align-items:flex-start;
    flex-direction:column;
    min-height:0;
  }
  .bot-community-outside-v288>.bot-install-card .inline-button{
    flex:0 0 auto;
    width:100%;
  }
}


/* V290: compact refresh inside statistics and reliable general save panels. */
.shieldy-general-stack-v290,
.shieldy-general-settings-scope-v290,
.gamey-general-settings-scope-v290{
  display:grid;
  gap:12px;
  min-width:0;
}
.general-statistics-card>.card-title{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
.statistics-header-actions-v290{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  margin-left:auto;
  min-width:0;
}
.statistics-refresh-button-v290{
  min-height:34px!important;
  padding:6px 11px!important;
  border-radius:9px!important;
  font-size:12px!important;
  line-height:1.15!important;
  white-space:nowrap;
}
.statistics-refresh-button-v290:disabled{opacity:.65;cursor:wait}

/* General settings now use one non-overlapping save panel per bot. */
#panel-bot-control .general-settings-save-bar-v290{
  position:static!important;
  bottom:auto!important;
  z-index:auto!important;
  min-height:0!important;
  margin-top:0!important;
  padding:10px!important;
  border-radius:13px!important;
  box-shadow:0 8px 22px rgba(15,31,52,.10)!important;
  backdrop-filter:none!important;
}
#panel-bot-control .general-settings-save-bar-v290:not(.has-unsaved-changes){
  display:none!important;
}
#panel-bot-control .general-settings-save-bar-v290.has-unsaved-changes{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  animation:generalSaveBarInV290 .16s ease-out both;
}
#panel-bot-control .general-settings-save-bar-v290>.primary{
  min-width:170px!important;
  min-height:42px!important;
}
#panel-bot-control .general-settings-save-bar-v290>.discard-unsaved-button{
  min-height:42px!important;
}
@keyframes generalSaveBarInV290{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:700px){
  .statistics-header-actions-v290{width:100%;justify-content:space-between;margin-left:0}
  .statistics-refresh-button-v290{flex:1 1 auto}
  #panel-bot-control .general-settings-save-bar-v290{flex-wrap:wrap!important}
  #panel-bot-control .general-settings-save-bar-v290>.primary,
  #panel-bot-control .general-settings-save-bar-v290>.discard-unsaved-button{width:100%!important;min-width:0!important}
}


/* V292: stable module menu, integrated live details and compact prefix cards. */
.general-statistics-card .status-grid-secondary-v292{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin:12px 0 0!important;
  padding:12px 0 0!important;
  border-top:1px solid var(--account-border,var(--gh-border));
}
.general-statistics-card .status-grid-secondary-v292>.metric-card{
  min-width:0!important;
  min-height:74px!important;
  margin:0!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
  box-shadow:none!important;
}
.general-statistics-card .status-grid-secondary-v292>.metric-card small{
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
}
.general-statistics-card .status-grid-secondary-v292>.metric-card strong{
  margin:2px 0!important;
  font-size:14px!important;
  line-height:1.25!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.general-statistics-card .status-grid-secondary-v292>.metric-card span{
  overflow:hidden!important;
  color:var(--account-muted,var(--gh-muted))!important;
  font-size:11px!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
#panel-bot-control .bot-prefix-card{
  display:grid!important;
  gap:7px!important;
  min-height:0!important;
  margin:0!important;
  padding:13px 15px!important;
}
#panel-bot-control .bot-prefix-card>.card-title{
  order:1!important;
  align-items:center!important;
  margin:0!important;
}
#panel-bot-control .bot-prefix-card>.card-title h3{
  margin:0!important;
  font-size:15px!important;
}
#panel-bot-control .bot-prefix-card>.card-title p{
  margin:2px 0 0!important;
  font-size:11.5px!important;
  line-height:1.35!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row{
  order:2!important;
  display:grid!important;
  grid-template-columns:auto 84px auto!important;
  justify-content:start!important;
  gap:8px!important;
  margin:1px 0 0!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row label{
  font-size:12px!important;
}
#panel-bot-control .bot-prefix-card .bot-prefix-input{
  min-height:36px!important;
  padding:6px 9px!important;
  border-radius:8px!important;
  font-size:15px!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row code{
  min-height:36px!important;
  padding:7px 10px!important;
  border-radius:8px!important;
  font-size:12px!important;
}
#panel-bot-control .bot-prefix-card>small{
  order:3!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.3!important;
}
#panel-bot-control .bot-prefix-card>.prefix-validation-message{
  order:4!important;
  margin:0!important;
}
@media(max-width:900px){
  .general-statistics-card .status-grid-secondary-v292{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .general-statistics-card .status-grid-secondary-v292{grid-template-columns:1fr!important}
  #panel-bot-control .bot-prefix-card>.prefix-control-row{grid-template-columns:1fr!important}
  #panel-bot-control .bot-prefix-card>.prefix-control-row code{justify-self:stretch!important}
}


/* ===== v293 — public Shieldy/Gamey, stable sidebars and system channels ===== */
#panel-bot-control[data-active-bot="shieldy"] .bot-module-sidebar,
#panel-bot-control[data-active-bot="gamey"] .bot-module-sidebar{
  align-self:start!important;
  min-width:0!important;
  overflow:hidden!important;
  transition:none!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"],
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]{
  width:100%!important;
  margin:0!important;
  padding:10px 0 0!important;
  gap:7px!important;
  align-content:start!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"]>button,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  height:50px!important;
  margin:0!important;
  padding:4px 9px!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  transform:none!important;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"]>button:hover,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button:hover,
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"]>button.is-active,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button.is-active{
  transform:none!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"] .module-icon,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] .module-icon{
  box-sizing:border-box!important;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  transform:none!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"] .module-label,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] .module-label{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  line-height:1.2!important;
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-panel.is-active,
#panel-bot-control[data-active-bot="gamey"] .bot-module-panel.is-active{
  animation:none!important;
}
@media(min-width:1051px){
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace{
    grid-template-columns:230px minmax(0,1fr)!important;
    align-items:start!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace>.bot-module-sidebar,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace>.bot-module-sidebar{
    width:230px!important;
    min-width:230px!important;
    max-width:230px!important;
    position:sticky!important;
    top:18px!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace.is-sidebar-collapsed,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed{
    grid-template-columns:84px minmax(0,1fr)!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace.is-sidebar-collapsed>.bot-module-sidebar,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed>.bot-module-sidebar{
    width:84px!important;
    min-width:84px!important;
    max-width:84px!important;
    padding:12px 10px!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="shieldy"],
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]{
    justify-items:center!important;
    gap:8px!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="shieldy"]>button,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"]>button{
    width:52px!important;
    min-width:52px!important;
    height:52px!important;
    min-height:52px!important;
    padding:5px!important;
    grid-template-columns:42px!important;
    place-items:center!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="shieldy"] .module-label,
  #panel-bot-control[data-active-bot="gamey"] #bot-management-workspace.is-sidebar-collapsed .bot-module-menu[data-bot-menu="gamey"] .module-label{
    display:none!important;
  }
}
.system-notification-channel-card-v186{min-width:0}
.system-notification-channel-card-v186 .card-title>div{min-width:0}
.system-notification-channel-card-v186 .card-title p{line-height:1.45}
@media(max-width:1050px){
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"],
  #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]{
    display:flex!important;
    width:100%!important;
    overflow-x:auto!important;
    gap:8px!important;
    padding:8px 2px!important;
    scrollbar-width:thin;
  }
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"]>button,
  #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"]>button{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:58px!important;
    height:50px!important;
    grid-template-columns:40px!important;
    place-items:center!important;
    padding:4px 8px!important;
  }
  #panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"] .module-label,
  #panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] .module-label{
    display:none!important;
  }
}
#panel-bot-control[data-active-bot="shieldy"] .bot-module-menu[data-bot-menu="shieldy"] .module-icon,
#panel-bot-control[data-active-bot="gamey"] .bot-module-menu[data-bot-menu="gamey"] .module-icon{
  font-size:18px!important;
  line-height:1!important;
}


/* V296: compact and unambiguous command-prefix editor for all three bots. */
#panel-bot-control .bot-prefix-card{
  gap:8px!important;
  padding:12px 14px!important;
}
#panel-bot-control .bot-prefix-card>.card-title{
  align-items:flex-start!important;
  gap:12px!important;
}
#panel-bot-control .bot-prefix-card>.card-title>div{
  min-width:0!important;
}
#panel-bot-control .bot-prefix-card>.card-title h3{
  font-size:15px!important;
  line-height:1.2!important;
}
#panel-bot-control .bot-prefix-card>.card-title p{
  max-width:760px!important;
  margin:2px 0 0!important;
  font-size:11px!important;
  line-height:1.32!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row{
  display:grid!important;
  grid-template-columns:auto 76px auto minmax(220px,1fr)!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:8px!important;
  margin:0!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row label{
  white-space:nowrap!important;
  font-size:12px!important;
}
#panel-bot-control .bot-prefix-card .bot-prefix-input{
  width:76px!important;
  min-height:34px!important;
  padding:5px 8px!important;
  font-size:14px!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row code{
  display:inline-flex!important;
  align-items:center!important;
  min-height:34px!important;
  padding:6px 10px!important;
  white-space:nowrap!important;
  font-size:12px!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row>small{
  min-width:0!important;
  margin:0 0 0 2px!important;
  color:var(--account-muted,var(--gh-muted))!important;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1.3!important;
}
#panel-bot-control .bot-prefix-card>.prefix-control-row>small code{
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--account-accent-strong,var(--gh-blue))!important;
  font-size:inherit!important;
}
#panel-bot-control .bot-prefix-card>small{
  display:none!important;
}
@media(max-width:980px){
  #panel-bot-control .bot-prefix-card>.prefix-control-row{
    grid-template-columns:auto 76px auto!important;
  }
  #panel-bot-control .bot-prefix-card>.prefix-control-row>small{
    grid-column:1/-1!important;
    margin-left:0!important;
  }
}
@media(max-width:560px){
  #panel-bot-control .bot-prefix-card>.prefix-control-row{
    grid-template-columns:auto minmax(68px,88px) 1fr!important;
  }
  #panel-bot-control .bot-prefix-card>.prefix-control-row code{
    justify-self:stretch!important;
  }
  #panel-bot-control .bot-prefix-card>.prefix-control-row>small{
    grid-column:1/-1!important;
  }
}


/* V297 — Shieldy previews styled as a native Lolka chat window. */
.lolka-preview-window{
  --lolka-preview-bg:#f2f4f7;
  --lolka-preview-panel:#ffffff;
  --lolka-preview-soft:#e8edf3;
  --lolka-preview-border:#cfd8e3;
  --lolka-preview-text:#1f2937;
  --lolka-preview-muted:#68778c;
  overflow:hidden;
  border:1px solid var(--lolka-preview-border);
  border-radius:14px;
  background:var(--lolka-preview-bg);
  color:var(--lolka-preview-text);
  box-shadow:0 10px 28px rgba(30,50,75,.08);
}
.lolka-preview-appbar,
.lolka-preview-channelbar,
.lolka-preview-composer{display:flex;align-items:center;min-width:0}
.lolka-preview-appbar{
  min-height:54px;
  justify-content:space-between;
  gap:12px;
  padding:9px 12px;
  border-bottom:1px solid var(--lolka-preview-border);
  background:#202633;
  color:#f7f9fc;
}
.lolka-preview-app-identity{display:flex;align-items:center;gap:9px;min-width:0}
.lolka-preview-app-identity img{width:34px;height:34px;flex:0 0 34px;border-radius:10px;object-fit:cover;background:#fff}
.lolka-preview-app-identity>div{display:grid;gap:1px;min-width:0}
.lolka-preview-app-identity strong{overflow:hidden;font-size:13px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.lolka-preview-app-identity small{color:#aeb9c9;font-size:10px;font-weight:800}
.lolka-preview-live-dot{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #4b5669;border-radius:999px;color:#cbd5e1;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.lolka-preview-live-dot::before{content:"";width:6px;height:6px;border-radius:50%;background:#3fb950;box-shadow:0 0 0 3px rgba(63,185,80,.14)}
.lolka-preview-channelbar{gap:7px;min-height:40px;padding:8px 12px;border-bottom:1px solid var(--lolka-preview-border);background:var(--lolka-preview-panel)}
.lolka-preview-channelbar>span{color:#7c8a9e;font-size:19px;font-weight:900}
.lolka-preview-channelbar strong{font-size:12px;white-space:nowrap}
.lolka-preview-channelbar small{min-width:0;overflow:hidden;color:var(--lolka-preview-muted);font-size:10px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.lolka-preview-chat-area{padding:14px 12px;background:linear-gradient(180deg,#f7f9fb 0%,#eef2f6 100%)}
.lolka-preview-message{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.lolka-preview-message .welcome-message-author{align-items:flex-start!important;gap:9px!important;margin:0 0 8px!important}
.lolka-preview-message .welcome-message-author>img{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:50%!important;border:1px solid #cfd8e3!important;background:#fff!important}
.lolka-preview-message .welcome-message-author>div{display:grid;gap:1px;min-width:0}
.lolka-preview-message .welcome-message-author strong{display:flex;align-items:center;gap:6px;color:#172033!important;font-size:13px!important;line-height:1.25}
.lolka-preview-message .welcome-message-author small{color:#7a8798!important;font-size:9px!important;font-weight:700!important}
.lolka-bot-badge{display:inline-flex;align-items:center;min-height:16px;padding:1px 5px;border-radius:4px;background:#2f81f7;color:#fff;font-size:8px;line-height:1;font-weight:950;letter-spacing:.04em}
.lolka-preview-message .welcome-mention-preview{margin:0 0 7px 47px!important;color:#2f81f7!important;font-size:12px!important;font-weight:850!important}
.lolka-preview-message :is(.welcome-embed-preview,.rr-embed-preview,.custom-message-embed-preview){margin-left:47px!important;max-width:calc(100% - 47px)!important;background:#fff!important;border-top-color:#d5dde7!important;border-right-color:#d5dde7!important;border-bottom-color:#d5dde7!important;box-shadow:0 2px 8px rgba(35,55,80,.06)!important}
.lolka-preview-message .welcome-embed-preview{margin-top:0!important}
.lolka-preview-message .rr-reactions-preview{margin:8px 0 0 47px!important}
.lolka-preview-message .custom-preview-sequence{margin:3px 0 0 47px!important;gap:10px!important}
.lolka-preview-message .custom-preview-message{gap:5px!important}
.lolka-preview-message .custom-preview-message-number{font-size:9px!important;letter-spacing:.04em!important}
.lolka-preview-composer{gap:8px;margin:0 10px 10px;padding:9px 10px;border:1px solid var(--lolka-preview-border);border-radius:9px;background:var(--lolka-preview-panel);color:#7c8a9e}
.lolka-preview-composer span,.lolka-preview-composer b{flex:0 0 auto;font-size:14px;line-height:1}
.lolka-preview-composer em{min-width:0;flex:1;overflow:hidden;font-size:10px;font-style:normal;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.welcome-preview-card .welcome-preview-meta{margin-top:7px!important;color:var(--account-muted)!important;font-size:10px!important;text-align:center}
.reaction-role-preview-card .rr-permission-card{margin-top:10px}
.custom-message-preview-column .custom-message-preview-body{display:block!important}
.custom-lolka-message{min-height:86px}
html[data-theme="dark"] .lolka-preview-window{
  --lolka-preview-bg:#171b24;
  --lolka-preview-panel:#202631;
  --lolka-preview-soft:#282f3b;
  --lolka-preview-border:#343d4c;
  --lolka-preview-text:#edf2f7;
  --lolka-preview-muted:#a7b2c2;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
html[data-theme="dark"] .lolka-preview-appbar{background:#12161e;border-color:#343d4c}
html[data-theme="dark"] .lolka-preview-channelbar{background:#202631}
html[data-theme="dark"] .lolka-preview-chat-area{background:linear-gradient(180deg,#1b202a 0%,#171b24 100%)}
html[data-theme="dark"] .lolka-preview-message .welcome-message-author strong{color:#eef3f8!important}
html[data-theme="dark"] .lolka-preview-message .welcome-message-author small{color:#9ba8b8!important}
html[data-theme="dark"] .lolka-preview-message :is(.welcome-embed-preview,.rr-embed-preview,.custom-message-embed-preview){background:#242b36!important;border-top-color:#3a4555!important;border-right-color:#3a4555!important;border-bottom-color:#3a4555!important}
html[data-theme="dark"] .lolka-preview-composer{background:#242b36;color:#9ba8b8}
@media(max-width:640px){
  .lolka-preview-channelbar small{display:none}
  .lolka-preview-message .welcome-message-author>img{width:34px!important;height:34px!important;flex-basis:34px!important}
  .lolka-preview-message .welcome-mention-preview,
  .lolka-preview-message :is(.welcome-embed-preview,.rr-embed-preview,.custom-message-embed-preview),
  .lolka-preview-message .rr-reactions-preview,
  .lolka-preview-message .custom-preview-sequence{margin-left:43px!important;max-width:calc(100% - 43px)!important}
}


/* V298: Shieldy welcome preview in Lolka style and DM feature marked as coming soon. */
.feature-soon-pill{display:inline-flex;align-items:center;justify-content:center;padding:3px 9px;border-radius:999px;background:#fff8c5;color:#7a4d00;border:1px solid #d4a72c;font-size:11px;font-weight:900;white-space:nowrap}
.feature-soon-pill.compact{padding:2px 8px;font-size:10px}
.feature-coming-soon-note{margin-bottom:12px;padding:11px 12px;border:1px dashed #d4a72c;border-radius:10px;background:rgba(210,153,34,.08);color:#7a4d00;font-size:12px;font-weight:800;line-height:1.45}
.is-coming-soon .field textarea[disabled]{opacity:.72;cursor:not-allowed;background:var(--account-surface-soft,var(--gh-subtle))}
.is-disabled-switch{opacity:.72}
.is-disabled-switch input[disabled]{cursor:not-allowed!important}
html[data-theme="dark"] .feature-soon-pill{background:rgba(210,153,34,.14);border-color:#9e6a03;color:#e3b341}
html[data-theme="dark"] .feature-coming-soon-note{background:rgba(210,153,34,.09);border-color:#9e6a03;color:#e3b341}

.lolka-preview-window[data-lolka-preview="welcome"]{
  --lolka-preview-bg:#161b24;
  --lolka-preview-panel:#1e2530;
  --lolka-preview-soft:#262f3b;
  --lolka-preview-border:#303a48;
  --lolka-preview-text:#eef3f8;
  --lolka-preview-muted:#aab5c5;
  border-radius:16px;
  background:linear-gradient(180deg,#151a23 0%,#121721 100%);
  box-shadow:0 16px 36px rgba(6,12,20,.28);
}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-appbar{padding:12px 14px;background:rgba(10,13,19,.56);border-bottom-color:rgba(255,255,255,.06)}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-app-identity img{border-radius:12px;background:#0d1117;border:1px solid rgba(255,255,255,.08)}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-app-identity strong{font-size:14px;color:#f4f7fb}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-app-identity small{color:#95a3b8;font-size:11px}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-live-dot{border-color:#2da44e;color:#cfead7;background:rgba(45,164,78,.08)}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-channelbar{min-height:42px;padding:10px 14px;background:#1a202b;border-bottom-color:rgba(255,255,255,.06)}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-channelbar>span{color:#7f90a6}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-channelbar strong{font-size:12px;color:#eff4f9}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-channelbar small{color:#8f9db0}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-chat-area{padding:16px 14px 8px;background:transparent}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-chat-preview{display:grid;gap:12px}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-message-author{margin:0!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-message-author>img{width:40px!important;height:40px!important;flex-basis:40px!important;border-color:rgba(255,255,255,.08)!important;background:#0d1117!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-message-author strong{color:#f5f7fb!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-message-author small{color:#93a2b6!important;font-size:10px!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-mention-preview{display:none!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-embed-preview{margin:0!important;max-width:100%!important;padding:18px 18px 14px!important;border:1px solid rgba(255,255,255,.06)!important;border-radius:14px!important;background:linear-gradient(180deg,#1b2230 0%,#161d28 100%)!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-banner-preview{margin:0 0 12px!important;min-height:138px;border-radius:14px;background:radial-gradient(circle at 50% 30%,rgba(46,164,79,.18),transparent 45%),linear-gradient(180deg,#0f131b 0%,#090c11 100%);border:1px solid rgba(255,255,255,.05)}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-embed-body{display:grid!important;justify-items:center;grid-template-columns:1fr!important;gap:12px!important;text-align:center}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-avatar-preview{width:74px!important;height:74px!important;border-radius:50%!important;border:3px solid rgba(255,255,255,.9)!important;box-shadow:0 10px 22px rgba(0,0,0,.25)!important;background:#0d1117!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-content{display:grid;gap:6px;justify-items:center}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-content h4{margin:0;color:#fff!important;font-size:18px!important;line-height:1.28!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-content p{margin:0;color:#d5dde8!important;font-size:13px!important;line-height:1.5!important}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-footer{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06);text-align:center}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-footer span{color:#93a2b6!important;font-size:12px!important}
.lolka-preview-window[data-lolka-preview="welcome"] .lolka-preview-composer{margin:0 14px 14px;padding:10px 12px;border-color:rgba(255,255,255,.06);background:#1a202b;color:#8fa0b3}
.lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-meta{margin-top:8px!important;color:#93a2b6!important}
@media(max-width:760px){
  .feature-soon-pill.compact{display:none}
  .lolka-preview-window[data-lolka-preview="welcome"] .welcome-embed-preview{padding:15px 15px 13px!important}
  .lolka-preview-window[data-lolka-preview="welcome"] .welcome-preview-content h4{font-size:16px!important}
}


/* V298 — compact Shieldy welcome preview inspired by the native Lolka message card. */
.shieldy-lolka-card-preview{
  overflow:hidden;
  border:1px solid #343944;
  border-radius:14px;
  background:#1f2229;
  color:#f3f5f7;
  box-shadow:0 14px 34px rgba(13,17,23,.20);
}
.shieldy-lolka-card-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:54px;
  padding:10px 13px;
  border-bottom:1px solid #353a45;
  background:#242830;
}
.shieldy-lolka-card-platform{display:flex;align-items:center;gap:10px;min-width:0}
.shieldy-lolka-card-platform img{width:32px;height:32px;border-radius:10px;object-fit:cover}
.shieldy-lolka-card-platform>div{display:grid;gap:1px;min-width:0}
.shieldy-lolka-card-platform strong{font-size:13px;color:#fff}
.shieldy-lolka-card-platform small{font-size:11px;color:#929aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shieldy-lolka-card-state{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid rgba(56,211,118,.28);
  border-radius:999px;
  background:rgba(56,211,118,.10);
  color:#72e59e;
  font-size:10px;
  font-weight:900;
}
.shieldy-lolka-message{display:grid;gap:8px;padding:14px}
.shieldy-lolka-card-preview .welcome-message-author{display:flex;align-items:center;gap:9px}
.shieldy-lolka-card-preview .welcome-message-author>img{width:38px;height:38px;border-radius:50%;object-fit:cover}
.shieldy-lolka-card-preview .welcome-message-author>div{display:grid;gap:1px}
.shieldy-lolka-card-preview .welcome-message-author strong{color:#f7f8fa;font-size:13px}
.shieldy-lolka-card-preview .welcome-message-author small{color:#858e9d;font-size:10px}
.shieldy-lolka-card-preview .lolka-bot-badge{display:inline-flex;padding:2px 5px;border-radius:5px;background:#2da44e;color:#fff;font-size:9px;vertical-align:middle}
.shieldy-lolka-card-preview .welcome-mention-preview{width:max-content;max-width:100%;padding:4px 7px;border-radius:6px;background:rgba(47,129,247,.14);color:#7db6ff;font-size:11px;font-weight:850}
.shieldy-welcome-image-card{
  --welcome-accent:#2f81f7;
  position:relative;
  min-height:330px;
  overflow:hidden;
  border:1px solid #373c47!important;
  border-left:4px solid var(--welcome-accent)!important;
  border-radius:10px!important;
  background:
    radial-gradient(circle at 50% 8%,color-mix(in srgb,var(--welcome-accent) 30%,transparent),transparent 42%),
    linear-gradient(180deg,#15171c,#101216)!important;
  color:#fff!important;
}
.shieldy-welcome-image-card.is-disabled-preview{opacity:.56;filter:saturate(.65)}
.shieldy-welcome-image-card.is-plain{border-left-width:1px!important}
.shieldy-welcome-image-card .welcome-banner-preview{
  position:absolute;
  inset:0;
  z-index:0;
  background-position:center;
  background-size:cover;
  opacity:.32;
}
.shieldy-welcome-image-card .welcome-banner-preview::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,12,16,.24),rgba(10,12,16,.92))}
.shieldy-welcome-image-content{
  position:relative;
  z-index:1;
  min-height:330px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:26px 22px 20px;
  text-align:center;
}
.shieldy-welcome-bot-avatar{
  width:94px;
  height:94px;
  padding:5px;
  border:2px solid color-mix(in srgb,var(--welcome-accent) 78%,#fff);
  border-radius:50%;
  background:#f7fafc;
  box-shadow:0 0 0 5px rgba(255,255,255,.06),0 12px 30px rgba(0,0,0,.35);
}
.shieldy-welcome-bot-avatar img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover}
.shieldy-welcome-kicker{font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:color-mix(in srgb,var(--welcome-accent) 72%,#fff)}
.shieldy-welcome-image-card h4{max-width:520px;margin:0!important;color:#fff!important;font-size:19px!important;line-height:1.25!important}
.shieldy-welcome-image-card p{max-width:560px;margin:0!important;color:#d4d9e2!important;font-size:12px!important;line-height:1.48!important;white-space:pre-wrap;overflow-wrap:anywhere}
.shieldy-welcome-member-line{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:3px;color:#aeb6c4;font-size:10px;font-weight:800}
.shieldy-welcome-member-line img{width:23px!important;height:23px!important;border-radius:50%!important;object-fit:cover!important}
.shieldy-welcome-image-card .welcome-preview-footer{margin-top:4px;padding-top:9px;border-top:1px solid rgba(255,255,255,.10);color:#8e98a8;font-size:10px}
.welcome-preview-card .welcome-preview-meta{margin-top:9px;text-align:center;color:var(--account-muted);font-size:11px;font-weight:800}
.welcome-preview-card .welcome-preview-meta.is-off{color:#cf6679}

/* Personal messages are unavailable in Lolka for now. */
.welcome-premium-card:has(#welcome-dm){border-style:dashed!important;opacity:.78}
.welcome-premium-card:has(#welcome-dm) .welcome-section-body{display:none!important}
.welcome-premium-card:has(#welcome-dm) .mini-switch{cursor:not-allowed!important}
.welcome-premium-card:has(#welcome-dm) .mini-switch i{opacity:.58}
.feature-soon-pill{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#fff1c2;color:#7a4d00;font-size:9px;font-weight:950;vertical-align:middle}
.feature-soon-pill.compact{font-size:8px;padding:3px 6px}
html[data-theme="dark"] .feature-soon-pill{background:rgba(210,153,34,.18);color:#e3b341}

/* Other Shieldy previews stay compact: no fake full application shell. */
.reaction-role-preview-card .lolka-preview-appbar,
.reaction-role-preview-card .lolka-preview-channelbar,
.reaction-role-preview-card .lolka-preview-composer,
.custom-message-preview-column .lolka-preview-appbar,
.custom-message-preview-column .lolka-preview-channelbar,
.custom-message-preview-column .lolka-preview-composer{display:none!important}
.reaction-role-preview-card .lolka-preview-window,
.custom-message-preview-column .lolka-preview-window{border-color:#343944!important;background:#1f2229!important;color:#f3f5f7!important;border-radius:14px!important}
.reaction-role-preview-card .lolka-preview-chat-area,
.custom-message-preview-column .lolka-preview-chat-area{padding:14px!important}

@media(max-width:620px){
  .shieldy-lolka-card-topbar{align-items:flex-start}
  .shieldy-welcome-image-card,.shieldy-welcome-image-content{min-height:290px}
  .shieldy-welcome-image-content{padding:22px 15px 17px}
  .shieldy-welcome-bot-avatar{width:80px;height:80px}
  .shieldy-welcome-image-card h4{font-size:17px!important}
}


/* ===== V299 — Shieldy page alignment and spacing audit ===== */
/* The free welcome subsection inherited a card border but had no horizontal padding.
   Treat every subsection as a real, consistently padded surface. */
.shieldy-interactions-module .welcome-event-card{
  border-radius:16px!important;
  overflow:hidden!important;
}
.shieldy-interactions-module .welcome-event-card>.automod-rule-head{
  min-height:86px!important;
  padding:18px 20px!important;
  align-items:center!important;
  gap:16px!important;
}
.shieldy-interactions-module .welcome-event-card>.automod-rule-head>div{
  min-width:0!important;
}
.shieldy-interactions-module .welcome-event-card>.automod-rule-head h3{
  margin:0 0 4px!important;
  line-height:1.25!important;
}
.shieldy-interactions-module .welcome-event-card>.automod-rule-head p{
  margin:0!important;
  line-height:1.42!important;
}
.shieldy-interactions-module .welcome-dependent{
  padding:16px 18px 18px!important;
  gap:12px!important;
  border-top:1px solid var(--account-border,var(--gh-border))!important;
  background:color-mix(in srgb,var(--account-surface-soft,var(--gh-subtle)) 56%,transparent)!important;
}
.shieldy-interactions-module .welcome-subsection{
  min-width:0!important;
  margin:0!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:14px!important;
  background:var(--account-surface,var(--gh-card))!important;
  box-shadow:none!important;
}
.shieldy-interactions-module .welcome-subsection:not(.welcome-premium-card){
  padding:16px!important;
}
.shieldy-interactions-module .welcome-subsection:last-child{
  padding-bottom:16px;
}
.shieldy-interactions-module .welcome-subsection>.card-title{
  min-height:0!important;
  margin:0 0 14px!important;
  padding:0!important;
  align-items:center!important;
}
.shieldy-interactions-module .welcome-subsection>.card-title h3{
  margin:0!important;
  font-size:16px!important;
  line-height:1.25!important;
}
.shieldy-interactions-module .welcome-two-columns{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:start!important;
  gap:12px!important;
}
.shieldy-interactions-module .welcome-two-columns>.field,
.shieldy-interactions-module .welcome-section-body>.field,
.shieldy-interactions-module .welcome-section-body .console-fields>.field{
  min-width:0!important;
  margin:0!important;
}
.shieldy-interactions-module .welcome-two-columns :is(input,select),
.shieldy-interactions-module .welcome-section-body :is(input:not([type="checkbox"]):not([type="color"]),select){
  min-height:46px!important;
}
.shieldy-interactions-module .welcome-two-columns .field small{
  min-height:0!important;
  margin-top:1px!important;
  line-height:1.4!important;
}
.shieldy-interactions-module .compact-toggle{
  min-height:68px!important;
  margin:12px 0 0!important;
  padding:12px 14px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:12px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
}
.shieldy-interactions-module .compact-toggle>span{
  min-width:0!important;
}
.shieldy-interactions-module .welcome-premium-card{
  padding:0!important;
  overflow:hidden!important;
}
.shieldy-interactions-module .welcome-section-head{
  min-height:78px!important;
  padding:15px 16px!important;
  align-items:center!important;
  gap:14px!important;
}
.shieldy-interactions-module .welcome-section-head>div:first-child{
  min-width:0!important;
}
.shieldy-interactions-module .welcome-section-head h3{
  margin:0 0 3px!important;
  font-size:16px!important;
  line-height:1.25!important;
}
.shieldy-interactions-module .welcome-section-head p{
  margin:0!important;
  font-size:12px!important;
  line-height:1.4!important;
}
.shieldy-interactions-module .welcome-section-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:0 0 auto!important;
  gap:8px!important;
  margin-left:auto!important;
}
.shieldy-interactions-module .welcome-section-body{
  padding:0 16px 16px!important;
  gap:12px!important;
  border-top:1px solid var(--account-border,var(--gh-border))!important;
}
.shieldy-interactions-module .welcome-section-body.is-open{
  padding-top:16px!important;
}
.shieldy-interactions-module .welcome-inline-toggles{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:10px!important;
  margin-top:0!important;
  padding-top:0!important;
  border-top:0!important;
}
.shieldy-interactions-module .welcome-inline-toggles>label{
  min-width:0!important;
  min-height:64px!important;
  margin:0!important;
  padding:10px 12px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:12px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
}
.shieldy-interactions-module .welcome-inline-toggles input.ui-switch-control{
  margin-right:7px!important;
}
.shieldy-interactions-module .welcome-premium-card:has(#welcome-dm){
  opacity:1!important;
  border-style:dashed!important;
  background:color-mix(in srgb,var(--account-surface-soft,var(--gh-subtle)) 72%,var(--account-surface,var(--gh-card)))!important;
}
.shieldy-interactions-module .welcome-premium-card:has(#welcome-dm) .welcome-section-head{
  min-height:72px!important;
}
.shieldy-interactions-module .feature-soon-pill{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
}
.shieldy-interactions-module .welcome-save-bar{
  margin-top:0!important;
  padding:12px!important;
  border-radius:14px!important;
}
/* Shared Shieldy interaction cards: remove inherited field margins that caused uneven rows. */
.shieldy-interactions-module :is(.reaction-role-editor-column,.custom-message-layout,.reaction-role-layout) .console-fields>.field{
  margin:0!important;
  min-width:0!important;
}
.shieldy-interactions-module :is(.reaction-role-message-card,.reaction-role-list-card,.custom-message-module,.saved-builders-card)>.card-title{
  min-height:0!important;
  align-items:flex-start!important;
}
.shieldy-interactions-module .sticky-save-bar{
  align-items:center!important;
  gap:10px!important;
}
@media(max-width:980px){
  .shieldy-interactions-module .welcome-two-columns{
    grid-template-columns:1fr!important;
  }
  .shieldy-interactions-module .welcome-inline-toggles{
    grid-template-columns:1fr!important;
  }
}
@media(max-width:640px){
  .shieldy-interactions-module .welcome-dependent{
    padding:12px!important;
  }
  .shieldy-interactions-module .welcome-subsection:not(.welcome-premium-card){
    padding:14px!important;
  }
  .shieldy-interactions-module .welcome-section-head{
    min-height:0!important;
    align-items:flex-start!important;
    flex-direction:column!important;
    padding:14px!important;
  }
  .shieldy-interactions-module .welcome-section-actions{
    width:100%!important;
    justify-content:space-between!important;
    margin-left:0!important;
  }
  .shieldy-interactions-module .welcome-section-body{
    padding:0 14px 14px!important;
  }
  .shieldy-interactions-module .welcome-section-body.is-open{
    padding-top:14px!important;
  }
  .shieldy-interactions-module .welcome-event-card>.automod-rule-head{
    padding:15px!important;
  }
}


/* V300: readable variable chips in Shieldy welcome/farewell editors. */
.shieldy-interactions-module .variable-chips button{
  border-color:#303b4c!important;
  background:#171d27!important;
  color:#f6f8fa!important;
  -webkit-text-fill-color:#f6f8fa!important;
  opacity:1!important;
}
.shieldy-interactions-module .variable-chips button:hover,
.shieldy-interactions-module .variable-chips button:focus-visible{
  border-color:#2f81f7!important;
  background:#243249!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.shieldy-interactions-module .variable-chips button:active{
  background:#eaf2ff!important;
  color:#0969da!important;
  -webkit-text-fill-color:#0969da!important;
}
html[data-theme="dark"] .shieldy-interactions-module .variable-chips button{
  border-color:#3a475b!important;
  background:#161b22!important;
  color:#f0f6fc!important;
  -webkit-text-fill-color:#f0f6fc!important;
}

/* ===== V301 — three welcome/farewell modes and custom image upload ===== */
.welcome-channel-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.82fr);gap:12px;align-items:stretch}
.welcome-channel-grid .compact-toggle{height:100%;min-height:72px;margin:0!important}
.welcome-mode-card>.card-title{margin-bottom:12px!important}
.welcome-mode-card>.card-title p{margin:3px 0 0;color:var(--account-muted);font-size:12px;font-weight:650}
.welcome-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.welcome-mode-option{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;min-height:112px;padding:14px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft);cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease}
.welcome-mode-option:hover{transform:translateY(-1px);border-color:color-mix(in srgb,var(--account-accent) 55%,var(--account-border))}
.welcome-mode-option input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0!important;cursor:pointer!important}
.welcome-mode-option.is-selected{border-color:var(--account-accent);background:color-mix(in srgb,var(--account-accent) 8%,var(--account-surface));box-shadow:0 0 0 2px color-mix(in srgb,var(--account-accent) 13%,transparent)}
.welcome-mode-option.is-selected::after{content:"✓";position:absolute;top:9px;right:10px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--account-accent);color:#fff;font-size:12px;font-weight:950}
.welcome-mode-option.is-locked{opacity:.68;cursor:not-allowed;background:color-mix(in srgb,#d4a72c 6%,var(--account-surface-soft));border-color:color-mix(in srgb,#d4a72c 42%,var(--account-border))}
.welcome-mode-option.is-locked input{cursor:not-allowed!important}
.welcome-mode-icon{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--account-border);border-radius:11px;background:var(--account-surface);font-size:18px;color:var(--account-accent)}
.welcome-mode-option>span:nth-of-type(2){display:grid;gap:5px;min-width:0;padding-right:12px}
.welcome-mode-option strong{font-size:13px;line-height:1.3;color:var(--account-text)}
.welcome-mode-option small{color:var(--account-muted);font-size:11px;line-height:1.4;font-weight:650}
.welcome-mode-option>b{grid-column:2;justify-self:start;padding:3px 7px;border-radius:999px;background:#dafbe1;color:#116329;font-size:10px;line-height:1.2}
.welcome-mode-option.is-premium>b{background:#fff8c5;color:#7a4d00}
.welcome-message-card .variable-chips,.welcome-card-editor .variable-chips{margin-top:8px}
.welcome-card-editor{display:none!important}
.welcome-card-editor.is-mode-visible{display:block!important}
.welcome-card-editor.is-locked{display:none!important}
.welcome-card-editor .welcome-section-body{display:grid!important;gap:13px!important;max-height:none!important;opacity:1!important;overflow:visible!important;padding-top:14px!important}
.welcome-upload-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 14px;align-items:center;padding:13px 14px;border:1px dashed color-mix(in srgb,var(--account-accent) 38%,var(--account-border));border-radius:12px;background:color-mix(in srgb,var(--account-accent) 4%,var(--account-surface-soft))}
.welcome-upload-field>div:first-child{display:grid;gap:3px;min-width:0}
.welcome-upload-field strong{font-size:13px;color:var(--account-text)}
.welcome-upload-field small{font-size:11px;line-height:1.4;color:var(--account-muted);font-weight:650}
.welcome-upload-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.welcome-upload-actions input[type="file"]{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.welcome-upload-actions .compact-button{min-height:34px!important;height:34px!important;padding:0 11px!important;margin:0!important;cursor:pointer}
.welcome-upload-status{grid-column:1/-1;color:var(--account-muted);font-size:11px;font-weight:800}
.shieldy-preview-plain-text{margin:8px 0 0;color:#dfe7f2;font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.shieldy-preview-second-author{display:flex;align-items:center;gap:8px;margin:18px -10px 10px;padding:14px 10px 0;border-top:1px solid #313b49}
.shieldy-preview-second-author img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.shieldy-preview-second-author>div{display:grid;gap:1px}.shieldy-preview-second-author strong{color:#eef4fb;font-size:12px}.shieldy-preview-second-author small{color:#8795a8;font-size:10px}
.welcome-embed-preview[hidden],.shieldy-preview-second-author[hidden]{display:none!important}
.welcome-embed-preview.is-separate-card{margin-top:0!important}
html[data-theme="dark"] .welcome-mode-option{background:#111d2f;border-color:#354a66}
html[data-theme="dark"] .welcome-mode-option.is-selected{background:color-mix(in srgb,var(--account-accent) 13%,#111d2f)}
html[data-theme="dark"] .welcome-mode-icon{background:#16243a;border-color:#405673}
html[data-theme="dark"] .welcome-mode-option>b{background:rgba(46,160,67,.18);color:#56d364}
html[data-theme="dark"] .welcome-mode-option.is-premium>b{background:rgba(210,153,34,.17);color:#e3b341}
html[data-theme="dark"] .welcome-upload-field{background:rgba(47,129,247,.06);border-color:#405673}
@media(max-width:1100px){.welcome-mode-grid{grid-template-columns:1fr}.welcome-mode-option{min-height:88px}.welcome-channel-grid{grid-template-columns:1fr}}
@media(max-width:640px){.welcome-upload-field{grid-template-columns:1fr}.welcome-upload-actions{justify-content:flex-start}.welcome-mode-option{grid-template-columns:34px minmax(0,1fr);padding:12px}.welcome-mode-icon{width:34px;height:34px}}


/* ===== V302 — Shieldy welcome polish, aligned switches and server polls ===== */
/* The selected mode already has a strong border, so the duplicate check is removed. */
.shieldy-interactions-module .welcome-mode-option.is-selected::after{content:none!important;display:none!important}
.shieldy-interactions-module .welcome-mode-option>span:nth-of-type(2){padding-right:0!important}

/* Native-looking, readable preview labels. */
.shieldy-lolka-card-preview .shieldy-lolka-card-platform strong,
.shieldy-lolka-card-preview .welcome-message-author strong,
.shieldy-lolka-card-preview .shieldy-preview-second-author strong{
  color:#f7f9fc!important;
  -webkit-text-fill-color:#f7f9fc!important;
  text-decoration:none!important;
  text-shadow:none!important;
}
.shieldy-lolka-card-preview .welcome-message-author small,
.shieldy-lolka-card-preview .shieldy-preview-second-author small{color:#98a4b6!important}
.shieldy-lolka-card-preview .shieldy-preview-plain-text{display:block!important;color:#e6ebf2!important;min-height:20px}
.shieldy-lolka-card-preview .welcome-preview-meta{color:#7f8da1!important}

/* Welcome and reaction-role toggles share one exact 46×26 geometry. */
.shieldy-interactions-module :is(.welcome-master-status,.automod-rule-head,.welcome-section-actions){align-items:center!important}
.shieldy-interactions-module .welcome-master-status{display:flex!important;align-items:center!important;gap:12px!important;min-width:132px!important;justify-content:flex-end!important}
.shieldy-interactions-module .automod-rule-head>label.mini-switch,
.shieldy-interactions-module .welcome-master-status>label.mini-switch,
.shieldy-interactions-module .welcome-section-actions>label.mini-switch{
  position:relative!important;inset:auto!important;display:inline-flex!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:26px!important;min-height:26px!important;margin:0!important;align-self:center!important
}
.shieldy-interactions-module :is(.automod-rule-head>label.mini-switch,.welcome-master-status>label.mini-switch,.welcome-section-actions>label.mini-switch)>input{
  position:absolute!important;inset:0!important;z-index:2!important;width:46px!important;height:26px!important;margin:0!important;opacity:0!important;cursor:pointer!important
}
.shieldy-interactions-module :is(.automod-rule-head>label.mini-switch,.welcome-master-status>label.mini-switch,.welcome-section-actions>label.mini-switch)>i{
  position:absolute!important;inset:0!important;width:46px!important;height:26px!important;margin:0!important;border-radius:999px!important
}
.shieldy-interactions-module .reaction-role-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important}
.shieldy-interactions-module .reaction-role-options>label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:58px!important;margin:0!important;padding:11px 12px!important;border:1px solid var(--account-border)!important;border-radius:12px!important;background:var(--account-surface-soft)!important}
.shieldy-interactions-module .reaction-role-options input.ui-switch-control{flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:26px!important;min-height:26px!important;margin:0!important}

/* Server tools and polls. */
.shieldy-other-module{--shieldy-tools-accent:#2da44e}
.shieldy-other-module .shieldy-other-grid{align-items:start}
.shieldy-poll-card{grid-column:1/-1;min-width:0;border-color:color-mix(in srgb,#d4a72c 42%,var(--account-border))!important;background:linear-gradient(180deg,color-mix(in srgb,#fff8c5 18%,var(--account-surface)),var(--account-surface))!important}
.shieldy-poll-heading{align-items:center!important}
.shieldy-poll-heading>div{display:grid;gap:4px;min-width:0}
.shieldy-poll-heading p{margin:0;color:var(--account-muted);font-size:12px;line-height:1.45}
.shieldy-poll-body{display:block}
.shieldy-poll-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:16px;align-items:start}
.shieldy-poll-editor,.shieldy-poll-side{display:grid;gap:13px;min-width:0}
.shieldy-poll-editor>.field,.shieldy-poll-editor .console-fields>.field{margin:0!important}
.shieldy-poll-premium-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:center;margin-bottom:14px;padding:12px 14px;border:1px dashed #d4a72c;border-radius:12px;background:rgba(210,153,34,.08);color:#7a4d00}
.shieldy-poll-premium-note strong{font-size:13px}.shieldy-poll-premium-note span{font-size:11px;line-height:1.4}.shieldy-poll-premium-note a{grid-column:2;grid-row:1/3;align-self:center;font-weight:900;text-decoration:none}
.shieldy-poll-card.is-premium-locked .shieldy-poll-layout{opacity:.55;filter:saturate(.65)}
.shieldy-poll-card.is-premium-locked .shieldy-poll-layout :is(input,textarea,select,button){pointer-events:none}
.shieldy-poll-toggle-grid{grid-template-columns:1fr!important;margin-top:0!important}
.shieldy-poll-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shieldy-poll-preview{overflow:hidden;border:1px solid #343944;border-radius:13px;background:#1f2229;color:#f3f5f7}
.shieldy-poll-preview-head{display:flex;align-items:center;gap:9px;padding:11px 12px;border-bottom:1px solid #343944;background:#242830}
.shieldy-poll-preview-head img{width:34px;height:34px;border-radius:50%;object-fit:cover}.shieldy-poll-preview-head>div{display:grid;gap:1px}.shieldy-poll-preview-head strong{color:#fff;font-size:12px}.shieldy-poll-preview-head small{color:#929aaa;font-size:9px}
.shieldy-poll-preview-card{--poll-accent:#2da44e;display:grid;gap:9px;margin:12px;padding:13px;border:1px solid #373c47;border-left:4px solid var(--poll-accent);border-radius:9px;background:#171a20}
.shieldy-poll-preview-card>span{color:#9ca8ba;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.shieldy-poll-preview-card h4{margin:0;color:#fff;font-size:15px;line-height:1.35}.shieldy-poll-preview-card>small{color:#8996a8;font-size:10px}
.shieldy-poll-preview-options{display:grid;gap:7px}.shieldy-poll-preview-option{position:relative;overflow:hidden;padding:9px 10px;border:1px solid #343b47;border-radius:8px;background:#222731;color:#e9edf3;font-size:11px;font-weight:800}.shieldy-poll-preview-option::after{content:"";position:absolute;inset:0 auto 0 0;width:var(--poll-percent,0%);background:color-mix(in srgb,var(--poll-accent) 18%,transparent);pointer-events:none}.shieldy-poll-preview-option span{position:relative;z-index:1}
.shieldy-poll-stats{padding:14px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}.shieldy-poll-stats .card-title{align-items:flex-start!important}.shieldy-poll-stats h4{margin:0;font-size:14px}.shieldy-poll-stats p{margin:3px 0 0;color:var(--account-muted);font-size:11px}.shieldy-poll-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.shieldy-poll-stat-grid>div{display:grid;gap:3px;padding:10px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface)}.shieldy-poll-stat-grid span{color:var(--account-muted);font-size:9px;font-weight:900;text-transform:uppercase}.shieldy-poll-stat-grid strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shieldy-poll-results{display:grid;gap:7px;margin-top:10px}.shieldy-poll-result-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 9px;border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface)}.shieldy-poll-result-row span{font-size:11px;font-weight:800}.shieldy-poll-result-row strong{font-size:11px}
html[data-theme="dark"] .shieldy-poll-card{background:linear-gradient(180deg,rgba(210,153,34,.07),#101a2a)!important;border-color:#6e5a25!important}html[data-theme="dark"] .shieldy-poll-premium-note{color:#e3b341;border-color:#9e6a03;background:rgba(210,153,34,.08)}
@media(max-width:1080px){.shieldy-poll-layout{grid-template-columns:1fr}.shieldy-interactions-module .reaction-role-options{grid-template-columns:1fr}}
@media(max-width:640px){.shieldy-poll-premium-note{grid-template-columns:1fr}.shieldy-poll-premium-note a{grid-column:1;grid-row:auto}.shieldy-poll-actions>*{width:100%}.shieldy-poll-stat-grid{grid-template-columns:1fr}.shieldy-poll-card{padding:14px!important}}

/* V303 — shared automod settings are always editable; escalation is an independent module. */
.automod-shared-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:16px!important;
}
.automod-shared-title>div{display:grid;gap:4px;min-width:0}
.automod-shared-title h3{margin:0!important}
.automod-shared-title p{margin:0;color:var(--account-muted);font-size:12px;font-weight:650;line-height:1.45}
.automod-escalation-card{display:grid;gap:16px}
.automod-escalation-head{align-items:center!important}
.automod-escalation-body{display:grid;gap:14px;transition:opacity .16s ease}
.automod-escalation-body.is-disabled{opacity:.58}
.automod-escalation-note{
  display:flex;align-items:flex-start;gap:10px;padding:12px 14px;
  border:1px solid color-mix(in srgb,var(--account-accent) 24%,var(--account-border));
  border-radius:12px;background:color-mix(in srgb,var(--account-accent) 5%,var(--account-surface-soft));
}
.automod-escalation-note strong{flex:0 0 auto;font-size:12px}
.automod-escalation-note span{color:var(--account-muted);font-size:12px;line-height:1.45}
.automod-escalation-rules{display:grid;gap:10px}
.automod-escalation-rule{
  display:grid;gap:12px;padding:14px;
  border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft);
}
.automod-escalation-rule-toolbar{display:flex;align-items:center;gap:7px;min-width:0}
.automod-escalation-rule-number{margin-right:auto;font-size:13px;font-weight:950;color:var(--account-text)}
.automod-rule-switch{margin-right:5px}
.automod-escalation-rule-toolbar .icon-button{
  display:inline-grid;place-items:center;width:32px;height:32px;min-width:32px;padding:0;
  border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface);color:var(--account-text);
  font-size:15px;font-weight:900;cursor:pointer;
}
.automod-escalation-rule-toolbar .icon-button:hover{border-color:var(--account-accent);color:var(--account-accent)}
.automod-escalation-rule-toolbar .icon-button.is-danger:hover{border-color:#cf222e;color:#cf222e;background:rgba(207,34,46,.06)}
.automod-escalation-rule-toolbar .icon-button:disabled{opacity:.35;cursor:not-allowed}
.automod-escalation-grid{display:grid;grid-template-columns:.65fr 1.2fr 1fr 1.2fr;gap:10px;align-items:end}
.automod-escalation-grid .field,.automod-escalation-reason{margin:0!important}
.automod-duration-field>div{display:grid;grid-template-columns:minmax(76px,.62fr) minmax(100px,1fr);gap:7px}
.automod-escalation-reason input{width:100%}
.automod-escalation-summary{
  min-height:34px;display:flex;align-items:center;padding:8px 10px;border-radius:9px;
  background:var(--account-surface);border:1px dashed var(--account-border);color:var(--account-muted);
  font-size:12px;font-weight:850;
}
.automod-escalation-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.automod-add-rule{min-height:38px}
.automod-escalation-footer small{color:var(--account-muted);font-size:11px;font-weight:700}
html[data-theme="dark"] .automod-escalation-rule{background:#101a2a}
html[data-theme="dark"] .automod-escalation-summary{background:#152238}
@media(max-width:1050px){
  .automod-escalation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .automod-shared-title,.automod-escalation-head{display:grid!important;gap:10px!important}
  .automod-shared-title .muted-status,.automod-escalation-head .automod-master-state{justify-self:start}
  .automod-escalation-grid{grid-template-columns:1fr}
  .automod-escalation-rule-toolbar{flex-wrap:wrap}
  .automod-escalation-rule-number{width:100%;margin-right:0}
  .automod-escalation-note{display:grid}
  .automod-escalation-footer{align-items:stretch}
  .automod-add-rule{width:100%}
}


/* V304 — automatic punishments: always active, transparent, sortable and Premium message design. */
.automod-escalation-card{
  display:grid!important;
  gap:16px!important;
  background:color-mix(in srgb,var(--account-surface) 42%,transparent)!important;
  box-shadow:none!important;
  backdrop-filter:blur(7px);
}
.automod-escalation-head{align-items:center!important}
.automod-escalation-head>div{display:grid;gap:4px;min-width:0}
.automod-escalation-head h3,.automod-escalation-head p{margin:0}
.automod-escalation-head p{color:var(--account-muted);font-size:12px;line-height:1.45}
.automod-escalation-rules{display:grid!important;gap:18px!important}
.automod-escalation-rule{
  position:relative;
  display:grid!important;
  gap:13px!important;
  padding:15px!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 70%,transparent)!important;
  box-shadow:0 7px 20px rgba(25,72,96,.045)!important;
  transition:border-color .16s ease,transform .16s ease,opacity .16s ease;
}
.automod-escalation-rule:hover{border-color:var(--account-border-strong)!important}
.automod-escalation-rule.is-dragging{opacity:.48;transform:scale(.992);border-style:dashed!important}
.automod-escalation-rule-toolbar{display:flex;align-items:center;gap:7px;min-width:0}
.automod-escalation-drag{
  display:grid;place-items:center;width:32px;height:32px;min-width:32px;padding:0;
  border:1px solid var(--account-border);border-radius:9px;background:var(--account-surface);
  color:var(--account-muted);font:950 17px/1 Nunito,sans-serif;letter-spacing:-2px;cursor:grab;
}
.automod-escalation-drag:active{cursor:grabbing}
.automod-escalation-drag:hover{border-color:var(--account-accent);color:var(--account-accent)}
.automod-escalation-rule-number{margin-right:auto!important}
.automod-escalation-reason small{font-size:11px}
.automod-escalation-customization{overflow:hidden;border:1px solid var(--account-border);border-radius:12px;background:color-mix(in srgb,var(--account-surface) 58%,transparent)}
.automod-escalation-customization>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;cursor:pointer;list-style:none;background:color-mix(in srgb,var(--account-surface-soft) 75%,transparent)}
.automod-escalation-customization>summary::-webkit-details-marker{display:none}
.automod-escalation-customization>summary>span:first-child{display:grid;gap:2px;min-width:0}
.automod-escalation-customization>summary strong{font-size:13px;color:var(--account-text)}
.automod-escalation-customization>summary small{font-size:11px;color:var(--account-muted)}
.automod-escalation-customization[open]>summary{border-bottom:1px solid var(--account-border)}
.automod-escalation-customization.is-premium-locked>summary{opacity:.82}
.automod-escalation-premium-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 14px;align-items:center;margin:13px;padding:11px 12px;border:1px dashed #d4a72c;border-radius:11px;background:rgba(210,153,34,.08);color:#7a4d00}
.automod-escalation-premium-note strong{font-size:12px}.automod-escalation-premium-note span{font-size:11px}.automod-escalation-premium-note a{grid-column:2;grid-row:1/3;font-size:12px;font-weight:950;text-decoration:none}
.automod-escalation-custom-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px;padding:14px;align-items:start}
.automod-escalation-custom-editor{display:grid;gap:11px;min-width:0}
.automod-escalation-custom-editor .field{margin:0!important}
.automod-color-field{display:grid;grid-template-columns:54px minmax(0,1fr);gap:7px}
.automod-color-field input[type="color"]{width:54px!important;height:44px!important;padding:4px!important}
.automod-escalation-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.automod-escalation-media-card{display:grid;gap:8px;padding:11px;border:1px dashed color-mix(in srgb,var(--account-accent) 28%,var(--account-border));border-radius:11px;background:color-mix(in srgb,var(--account-accent) 3%,var(--account-surface-soft))}
.automod-escalation-media-card>div:first-child{display:grid;gap:2px}.automod-escalation-media-card strong{font-size:12px}.automod-escalation-media-card small,.automod-escalation-media-card>span{color:var(--account-muted);font-size:10px;line-height:1.35;font-weight:700}
.automod-escalation-upload-actions{display:flex;gap:6px;flex-wrap:wrap}.automod-escalation-upload-actions input[type="file"]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.automod-escalation-upload-actions .compact-button{min-height:32px!important;height:32px!important;padding:0 9px!important;font-size:11px!important}
.automod-escalation-preview{overflow:hidden;position:sticky;top:12px;border:1px solid #343944;border-radius:13px;background:#1f2229;color:#f3f5f7}
.automod-escalation-preview-head{display:flex;align-items:center;gap:9px;padding:10px 11px;border-bottom:1px solid #343944;background:#242830}
.automod-escalation-preview-head img{width:36px;height:36px;border-radius:50%;object-fit:cover;background:#15181d}.automod-escalation-preview-head>div{display:grid;gap:1px;min-width:0}.automod-escalation-preview-head strong{color:#fff;font-size:12px}.automod-escalation-preview-head strong b{padding:1px 4px;border-radius:4px;background:#2da44e;font-size:8px}.automod-escalation-preview-head small{color:#929aaa;font-size:9px}.automod-escalation-preview-head>span{margin-left:auto;padding:4px 7px;border:1px solid rgba(63,185,80,.35);border-radius:999px;background:rgba(46,160,67,.12);color:#56d364;font-size:9px;font-weight:900}
.automod-escalation-preview-message{--escalation-preview-accent:#2da44e;display:grid;gap:8px;margin:12px;padding:12px;border:1px solid #373c47;border-left:4px solid var(--escalation-preview-accent);border-radius:8px;background:#171a20}
.automod-escalation-preview-message h4{margin:0;color:#fff;font-size:14px;line-height:1.35}.automod-escalation-preview-message p{margin:0;color:#dbe2ea;font-size:11px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.automod-escalation-preview-message img{display:block;width:100%;max-height:180px;object-fit:cover;border-radius:7px;background:#111}.automod-escalation-preview-message small{color:#8996a8;font-size:9px}
html[data-theme="dark"] .automod-escalation-card{background:rgba(16,26,42,.42)!important}
html[data-theme="dark"] .automod-escalation-rule{background:rgba(16,26,42,.62)!important}
html[data-theme="dark"] .automod-escalation-customization{background:rgba(15,24,38,.6)}
html[data-theme="dark"] .automod-escalation-premium-note{color:#e3b341;border-color:#9e6a03;background:rgba(210,153,34,.08)}
@media(max-width:1080px){.automod-escalation-custom-layout{grid-template-columns:1fr}.automod-escalation-preview{position:static}.automod-escalation-media-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.automod-escalation-card{padding:14px!important}.automod-escalation-rule{padding:12px!important}.automod-escalation-rule-toolbar{flex-wrap:wrap}.automod-escalation-rule-number{width:auto!important;flex:1}.automod-escalation-custom-layout{padding:11px}.automod-escalation-media-grid{grid-template-columns:1fr}.automod-escalation-premium-note{grid-template-columns:1fr}.automod-escalation-premium-note a{grid-column:1;grid-row:auto}.automod-escalation-customization>summary{align-items:flex-start}.automod-escalation-customization>summary .premium-feature-badge{flex:0 0 auto}}

/* V305 — automatic punishment cards use true transparent surfaces. */
.automod-escalation-card,
html[data-theme="light"] .automod-escalation-card,
html[data-theme="dark"] .automod-escalation-card{
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.automod-escalation-rule,
html[data-theme="light"] .automod-escalation-rule,
html[data-theme="dark"] .automod-escalation-rule{
  background:transparent!important;
  box-shadow:none!important;
}
.automod-escalation-customization,
html[data-theme="light"] .automod-escalation-customization,
html[data-theme="dark"] .automod-escalation-customization{
  background:transparent!important;
}
.automod-escalation-customization>summary,
html[data-theme="light"] .automod-escalation-customization>summary,
html[data-theme="dark"] .automod-escalation-customization>summary{
  background:color-mix(in srgb,var(--account-surface-soft) 34%,transparent)!important;
}
.automod-escalation-summary,
html[data-theme="light"] .automod-escalation-summary,
html[data-theme="dark"] .automod-escalation-summary{
  background:color-mix(in srgb,var(--account-surface-soft) 28%,transparent)!important;
}


/* V306 — automatic punishment editor: wider text/title, banner only, mute-role wording. */
.automod-escalation-title-color-grid{
  display:grid;
  grid-template-columns:minmax(280px,1.7fr) minmax(190px,.72fr);
  gap:16px;
  align-items:end;
}
.automod-escalation-title-color-grid .field{margin:0!important;min-width:0}
.automod-escalation-title-field label{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.automod-escalation-title-field label small{
  color:var(--account-muted);
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
}
.automod-escalation-title-field input{
  min-height:52px!important;
  padding:12px 14px!important;
  font-size:17px!important;
  font-weight:900!important;
}
.automod-escalation-color-field{justify-self:stretch}
.automod-escalation-color-field .automod-color-field{
  grid-template-columns:58px minmax(105px,1fr);
  gap:9px;
}
.automod-escalation-color-field .automod-color-field input[type="color"]{
  width:58px!important;
  height:52px!important;
}
.automod-escalation-color-field .automod-color-field input:not([type="color"]){min-height:52px!important}
.automod-escalation-message-field textarea{
  min-height:156px!important;
  height:auto!important;
  padding:13px 14px!important;
  resize:vertical!important;
  line-height:1.5!important;
}
.automod-escalation-banner-only{grid-template-columns:1fr!important}
.automod-escalation-banner-only .automod-escalation-media-card{min-width:0}
@media(max-width:760px){
  .automod-escalation-title-color-grid{grid-template-columns:1fr;gap:11px}
  .automod-escalation-title-field input{min-height:48px!important;font-size:16px!important}
  .automod-escalation-color-field .automod-color-field input[type="color"]{height:48px!important}
  .automod-escalation-color-field .automod-color-field input:not([type="color"]){min-height:48px!important}
  .automod-escalation-message-field textarea{min-height:142px!important}
}

/* ===== V307 — compact Shieldy tools label and unified automod geometry ===== */
/* Keep all compact automod controls aligned, without changing form structure. */
.automod-builder .console-fields{
  align-items:start!important;
}
.automod-builder .console-fields>.field{
  min-width:0!important;
  margin:0!important;
}
.automod-builder .console-fields>.field>label{
  min-height:20px!important;
  line-height:20px!important;
  margin:0!important;
}
.automod-builder .console-fields>.field>:is(
  input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
  select,
  textarea[rows="3"]
){
  box-sizing:border-box!important;
  width:100%!important;
  min-height:60px!important;
  height:60px!important;
  margin:0!important;
  padding:11px 13px!important;
  border-radius:12px!important;
  font-size:14px!important;
  line-height:1.35!important;
  font-weight:750!important;
}
.automod-builder .console-fields>.field>textarea[rows="3"]{
  resize:vertical!important;
  overflow:auto!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
}
.automod-builder .automod-module-exceptions textarea::placeholder,
.automod-builder #shieldy-scope-options textarea::placeholder{
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:-.05px!important;
}
/* One switch size throughout Automod, including old and native switch variants. */
.automod-builder :is(.mini-switch,.switch),
.automod-builder label.toggle-row>i,
.automod-builder input.ui-switch-control[type="checkbox"]{
  box-sizing:border-box!important;
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  height:26px!important;
  min-height:26px!important;
  margin:0!important;
}
.automod-builder input.ui-switch-control[type="checkbox"]::after,
.automod-builder :is(.mini-switch,.switch)>i::after,
.automod-builder label.toggle-row>i::after{
  top:3px!important;
  left:3px!important;
  width:18px!important;
  height:18px!important;
}
.automod-builder input.ui-switch-control[type="checkbox"]:checked::after,
.automod-builder :is(.mini-switch,.switch)>input:checked+i::after,
.automod-builder label.toggle-row>input:checked+i::after{
  transform:translateX(20px)!important;
}
.automod-builder .automod-escalation-head{
  justify-content:flex-start!important;
}
@media(max-width:720px){
  .automod-builder .console-fields>.field>:is(
    input:not([type="checkbox"]):not([type="color"]):not([type="file"]),
    select,
    textarea[rows="3"]
  ){
    min-height:56px!important;
    height:56px!important;
  }
}
.automod-builder textarea[rows="3"]{
  min-height:60px!important;
  height:60px!important;
  padding:11px 13px!important;
  font-size:14px!important;
  line-height:1.35!important;
}


/* ===== V308 — mute-role settings, exact automod switches, greeting hand icon ===== */
#panel-bot-control [data-module-panel^="sh-"] .automod-mute-role-card{background:transparent!important;box-shadow:none!important}
.automod-mute-role-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.automod-mute-role-grid .field{margin:0!important;min-width:0}
.automod-mute-role-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-bottom:1px}
.automod-mute-role-actions .secondary{min-height:46px!important;white-space:nowrap}
.automod-mute-role-status{display:flex;align-items:center;gap:11px;margin-top:13px;padding:11px 12px;border:1px solid #d4a72c;border-radius:12px;background:rgba(210,153,34,.07)}
.automod-mute-role-status>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:rgba(210,153,34,.14);color:#8a5900;font-size:14px;font-weight:950}
.automod-mute-role-status>div{display:grid;gap:2px;min-width:0}.automod-mute-role-status strong{font-size:12px;color:var(--account-text)}.automod-mute-role-status small{font-size:11px;line-height:1.4;color:var(--account-muted)}
.automod-mute-role-status.is-success{border-color:#82e596;background:rgba(46,160,67,.07)}.automod-mute-role-status.is-success>span{background:rgba(46,160,67,.14);color:#1a7f37}
.automod-mute-role-status.is-error{border-color:#ffb3b8;background:rgba(207,34,46,.06)}.automod-mute-role-status.is-error>span{background:rgba(207,34,46,.12);color:#cf222e}
.automod-mute-restrictions-head{margin-top:16px!important}
.automod-mute-restrictions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.automod-mute-restrictions>label{min-height:58px!important;padding:10px 12px!important;border:1px solid var(--account-border)!important;border-radius:12px!important;background:color-mix(in srgb,var(--account-surface-soft) 40%,transparent)!important}
.automod-mute-restrictions>label>span{min-width:0;font-size:12px;font-weight:850;line-height:1.35}

/* Authoritative 46×26 geometry for every switch in every Shieldy section. */
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding-right:0!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>span:first-child{flex:1 1 auto!important;min-width:0!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>input[type="checkbox"]{position:absolute!important;top:50%!important;right:0!important;bottom:auto!important;left:auto!important;z-index:3!important;box-sizing:border-box!important;width:46px!important;min-width:46px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0!important;opacity:0!important;transform:translateY(-50%)!important;cursor:pointer!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>i,
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>i{position:relative!important;inset:auto!important;display:block!important;box-sizing:border-box!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0!important;border:1px solid #9aaabd!important;border-radius:999px!important;background:#dbe4ee!important;box-shadow:none!important;transform:none!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>i::after,
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>i::after{content:""!important;position:absolute!important;top:3px!important;right:auto!important;bottom:auto!important;left:3px!important;box-sizing:border-box!important;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;border:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px rgba(20,33,50,.24)!important;transform:translateX(0)!important;transition:transform .16s ease!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>input:checked+i,
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>input:checked+i{border-color:#2da44e!important;background:#2da44e!important;box-shadow:none!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>input:checked+i::after,
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>input:checked+i::after{transform:translateX(20px)!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch){position:relative!important;display:inline-block!important;box-sizing:border-box!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0!important;vertical-align:middle!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>input[type="checkbox"]{position:absolute!important;inset:0!important;z-index:3!important;box-sizing:border-box!important;width:46px!important;height:26px!important;margin:0!important;padding:0!important;opacity:0!important;transform:none!important;cursor:pointer!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{-webkit-appearance:none!important;appearance:none!important;position:relative!important;inset:auto!important;display:inline-block!important;box-sizing:border-box!important;flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:0!important;border:1px solid #9aaabd!important;border-radius:999px!important;background:#dbe4ee!important;box-shadow:none!important;opacity:1!important;transform:none!important;cursor:pointer!important;vertical-align:middle!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]::after{content:""!important;position:absolute!important;top:3px!important;right:auto!important;bottom:auto!important;left:3px!important;box-sizing:border-box!important;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;border:0!important;border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px rgba(20,33,50,.24)!important;transform:translateX(0)!important;transition:transform .16s ease!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{border-color:#2da44e!important;background:#2da44e!important}
body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked::after{transform:translateX(20px)!important}
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>i,
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>i,
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]{border-color:#60738d!important;background:#42546d!important}
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] label.toggle-row>input:checked+i,
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] :is(.mini-switch,.switch,.normalized-switch,.tt-route-switch,.equalizer-switch)>input:checked+i,
html[data-theme="dark"] body .account-page #panel-bot-control [data-module-panel^="sh-"] input.ui-switch-control[type="checkbox"]:checked{border-color:#3fb950!important;background:#2ea043!important}
#panel-bot-control [data-module="sh-welcome"] .module-icon{line-height:1!important}
.shieldy-interactions-intro-icon{font-size:20px!important;line-height:1!important}
@media(max-width:860px){.automod-mute-role-grid{grid-template-columns:1fr}.automod-mute-role-actions{padding-bottom:0}.automod-mute-restrictions{grid-template-columns:1fr!important}}

/* ===== V309 — simplified Shieldy reaction roles and own messages ===== */
.shieldy-workflow-strip{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
  margin:12px 0 16px;padding:7px;border:1px solid var(--account-border);
  border-radius:15px;background:color-mix(in srgb,var(--account-surface-soft) 45%,transparent)
}
.custom-message-workflow{grid-template-columns:repeat(4,minmax(0,1fr))}
.shieldy-workflow-strip>span{display:flex;align-items:center;gap:9px;min-width:0;padding:9px 11px;border-radius:11px;color:var(--account-muted)}
.shieldy-workflow-strip>span.is-active{background:color-mix(in srgb,#2da44e 11%,transparent);color:var(--account-text)}
.shieldy-workflow-strip b{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:50%;background:var(--account-surface);border:1px solid var(--account-border);font-size:11px}
.shieldy-workflow-strip .is-active b{border-color:#2da44e;color:#16833a;background:color-mix(in srgb,#2da44e 10%,var(--account-surface))}
.shieldy-workflow-strip em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal;font-size:12px;font-weight:850}

.shieldy-toolbox-panel,.shieldy-advanced-panel,.shieldy-delivery-disclosure{
  margin:0 0 14px;border:1px solid var(--account-border);border-radius:14px;
  background:color-mix(in srgb,var(--account-surface-soft) 32%,transparent);overflow:hidden
}
.shieldy-toolbox-panel>summary,.shieldy-advanced-panel>summary,.shieldy-delivery-disclosure>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:13px 15px;cursor:pointer;user-select:none
}
.shieldy-toolbox-panel>summary::-webkit-details-marker,.shieldy-advanced-panel>summary::-webkit-details-marker,.shieldy-delivery-disclosure>summary::-webkit-details-marker{display:none}
.shieldy-toolbox-panel>summary>span,.shieldy-advanced-panel>summary>span{display:grid;gap:2px;min-width:0}
.shieldy-toolbox-panel>summary strong,.shieldy-advanced-panel>summary strong{font-size:13px;color:var(--account-text)}
.shieldy-toolbox-panel>summary small,.shieldy-advanced-panel>summary small{font-size:11px;line-height:1.4;color:var(--account-muted)}
.shieldy-toolbox-panel>summary>b,.shieldy-advanced-panel>summary>b,.shieldy-delivery-disclosure>summary>b{font-size:16px;color:var(--account-muted);transition:transform .16s ease}
.shieldy-toolbox-panel[open]>summary>b,.shieldy-advanced-panel[open]>summary>b,.shieldy-delivery-disclosure[open]>summary>b{transform:rotate(180deg)}
.shieldy-toolbox-body,.shieldy-advanced-body,.shieldy-delivery-body{padding:0 14px 14px;border-top:1px solid var(--account-border)}
.role-toolbox .shieldy-feature-note{margin:12px 0 10px!important;padding:11px 12px!important;box-shadow:none!important}
.role-toolbox .role-template-grid{margin:0 0 10px!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
.role-toolbox .role-template-grid button{min-height:70px!important;padding:10px!important}
.role-toolbox .reaction-role-management-card{margin:0!important;padding:12px!important;box-shadow:none!important;background:transparent!important}

.reaction-role-layout{align-items:start!important;gap:16px!important}
.reaction-role-message-card,.reaction-role-list-card,.reaction-role-preview-card{box-shadow:none!important}
.reaction-role-message-card>.card-title,.reaction-role-list-card>.card-title,.reaction-role-preview-card>.card-title{margin-bottom:14px!important}
.reaction-role-target-fields{grid-template-columns:1fr!important}
.reaction-role-message-card>.field{margin-top:12px!important}
.reaction-role-message-card .reaction-role-color-field{max-width:260px}
.reaction-role-advanced{margin-top:14px;margin-bottom:0;background:transparent}
.reaction-role-advanced .shieldy-advanced-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:14px}
.reaction-role-advanced .shieldy-advanced-grid .field{margin:0!important}
.reaction-role-advanced .shieldy-advanced-switches{margin-top:12px}
.reaction-role-advanced .reaction-role-options{display:grid!important;grid-template-columns:1fr!important;gap:0!important;border:1px solid var(--account-border);border-radius:12px;overflow:hidden}
.reaction-role-advanced .reaction-role-options label{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:48px!important;margin:0!important;padding:9px 12px!important;border:0!important;border-bottom:1px solid var(--account-border)!important;border-radius:0!important;background:transparent!important}
.reaction-role-advanced .reaction-role-options label:last-child{border-bottom:0!important}
.reaction-input-policy{margin:0 0 12px!important}
.rr-permission-card{margin-top:12px!important;padding:12px!important;box-shadow:none!important;background:color-mix(in srgb,var(--account-surface-soft) 35%,transparent)!important}

.custom-message-layout{align-items:start!important;gap:16px!important}
.custom-message-editor-column>article.github-card.console-card{padding:16px!important;box-shadow:none!important}
.custom-message-editor-column>article>.card-title{margin-bottom:12px!important}
.custom-message-editor-column>article>.card-title p{margin:3px 0 0;color:var(--account-muted);font-size:12px}
.shieldy-step-panel{position:relative;margin:0 0 14px;padding:14px;border:1px solid var(--account-border);border-radius:14px;background:transparent}
.shieldy-step-heading{display:flex;align-items:center;gap:10px;min-width:0;margin:0 0 12px}
.shieldy-step-heading>span:first-child{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;background:color-mix(in srgb,#2da44e 12%,transparent);border:1px solid color-mix(in srgb,#2da44e 46%,var(--account-border));color:#16833a;font-size:11px;font-weight:950}
.shieldy-step-heading>div,.shieldy-step-heading>span:nth-child(2){display:grid;gap:2px;min-width:0}
.shieldy-step-heading strong{font-size:13px;color:var(--account-text)}
.shieldy-step-heading small{font-size:11px;line-height:1.35;color:var(--account-muted)}
.shieldy-step-channel .custom-channel-config-head{margin-left:37px}
.shieldy-step-channel .custom-channel-config-head>div{display:none}
.custom-channel-advanced{margin-top:-4px;background:transparent}
.custom-channel-advanced .shieldy-advanced-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:14px}
.custom-channel-advanced .field{margin:0!important}
.shieldy-step-sequence .custom-sequence-head{margin:0!important;padding:0!important;border:0!important}
.shieldy-step-sequence .custom-sequence-head>div:first-child{display:none}
.shieldy-step-sequence .custom-sequence-list{margin-top:10px}

.shieldy-delivery-disclosure{padding:0;background:transparent}
.shieldy-delivery-disclosure>summary{padding:14px}
.shieldy-delivery-disclosure>summary .shieldy-step-heading{margin:0}
.shieldy-delivery-disclosure>.shieldy-delivery-body{padding:0 14px 14px}
.shieldy-delivery-disclosure .custom-delivery-panel{margin:0!important;padding:14px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.shieldy-delivery-disclosure .custom-delivery-head{display:none!important}

.custom-format-toggle{margin:14px 0!important;padding:11px 12px!important;border:1px solid var(--account-border)!important;border-radius:12px!important;background:color-mix(in srgb,var(--account-surface-soft) 38%,transparent)!important}
#custom-message-embed-options{margin-top:0!important;padding-top:14px!important;border-top:1px solid var(--account-border)}
.custom-editor-heading{margin-bottom:14px}
.custom-card-toolbar{margin-bottom:12px!important}
.custom-element-picker{margin-top:10px!important;padding:12px!important;border:1px solid var(--account-border)!important;border-radius:13px!important;background:transparent!important}
.custom-element-picker-head{margin-bottom:10px!important}
.custom-element-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.custom-element-card{min-height:116px!important;padding:10px!important;border-radius:11px!important}
.custom-element-card small{font-size:10px!important;line-height:1.3!important}
.custom-banner-library{margin-top:12px!important;box-shadow:none!important;background:transparent!important}
.custom-banner-library.is-collapsed .custom-banner-tabs,
.custom-banner-library.is-collapsed .custom-banner-live-preview,
.custom-banner-library.is-collapsed .custom-banner-panel,
.custom-banner-library.is-collapsed .custom-banner-selection{display:none!important}
.custom-banner-upload{margin-top:10px!important}
.custom-message-preview-column{position:sticky!important;top:18px!important;padding:14px!important;box-shadow:none!important}
.custom-message-preview-column>.card-title{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important}
.custom-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.custom-preview-actions .muted-status{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

html[data-theme="dark"] .shieldy-workflow-strip>span.is-active,
html[data-theme="dark"] .shieldy-step-heading>span:first-child{background:rgba(46,160,67,.15)}

@media(max-width:1100px){
  .role-toolbox .role-template-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .reaction-role-advanced .shieldy-advanced-grid{grid-template-columns:1fr 1fr}
  .custom-element-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .shieldy-workflow-strip,.custom-message-workflow{grid-template-columns:1fr 1fr}
  .role-toolbox .role-template-grid{grid-template-columns:1fr 1fr!important}
  .reaction-role-advanced .shieldy-advanced-grid,.custom-channel-advanced .shieldy-advanced-grid{grid-template-columns:1fr}
  .custom-message-preview-column{position:static!important}
}
@media(max-width:560px){
  .shieldy-workflow-strip,.custom-message-workflow{grid-template-columns:1fr}
  .role-toolbox .role-template-grid,.custom-element-grid{grid-template-columns:1fr!important}
  .custom-message-preview-column>.card-title{display:grid!important}
  .custom-preview-actions{justify-content:flex-start}
}

#panel-bot-control [data-module="sh-welcome"] .module-icon.module-icon-svg svg{width:20px!important;height:20px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important}


/* ===== V319 — keep the Shieldy mute-role card visible ===== */
#shieldy-mute-role-options.automod-mute-role-visible-card{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  content-visibility:visible!important;
  contain:none!important;
  pointer-events:auto!important;
  user-select:auto!important;
  margin:12px 0 0!important;
  background:transparent!important;
  border:1px solid var(--account-border)!important;
  box-shadow:none!important;
}
#shieldy-mute-role-options.automod-mute-role-visible-card[hidden]{display:block!important}
#shieldy-mute-role-options.automod-mute-role-visible-card .automod-shared-title{
  margin-bottom:14px!important;
}
#shieldy-mute-role-options.automod-mute-role-visible-card .field,
#shieldy-mute-role-options.automod-mute-role-visible-card input,
#shieldy-mute-role-options.automod-mute-role-visible-card button{
  pointer-events:auto!important;
}


/* v320: compact mention row + icon-only preview toggle */
.shieldy-interactions-module .welcome-mention-row{
  min-height:58px!important;
  margin:10px 0 0!important;
  padding:10px 14px!important;
  border:1px solid var(--account-border,var(--gh-border))!important;
  border-radius:12px!important;
  background:var(--account-surface-soft,var(--gh-subtle))!important;
}
.shieldy-interactions-module .welcome-mention-row strong{display:block;line-height:1.2!important;margin-bottom:2px!important}
.shieldy-interactions-module .welcome-mention-row small{display:block;line-height:1.35!important}
.shieldy-interactions-module .welcome-mention-row>span{padding-right:8px!important}
.preview-toggle-button.icon-only-toggle{
  width:40px!important;
  min-width:40px!important;
  height:40px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:0!important;
  line-height:1!important;
}
.preview-toggle-button.icon-only-toggle .preview-toggle-icon{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:18px!important;
  height:18px!important;
  color:var(--account-accent-strong,var(--account-text))!important;
}
.preview-toggle-button.icon-only-toggle .preview-toggle-icon svg{
  width:16px!important;
  height:16px!important;
  stroke:currentColor!important;
  stroke-width:2.2!important;
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  transition:transform .18s ease!important;
}
.preview-toggle-button.icon-only-toggle.is-collapsed .preview-toggle-icon svg{transform:rotate(180deg)!important}
.preview-toggle-button.icon-only-toggle .sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}


/* ===== V320 — compact welcome controls and preview icon button ===== */
.shieldy-interactions-module .welcome-channel-grid{
  align-items:end!important;
}
.shieldy-interactions-module .welcome-channel-grid .welcome-mention-row{
  align-self:end!important;
  height:auto!important;
  min-height:58px!important;
  max-height:64px!important;
  margin:0!important;
  padding:9px 13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.shieldy-interactions-module .welcome-channel-grid .welcome-mention-row>span{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
.shieldy-interactions-module .welcome-channel-grid .welcome-mention-row strong{
  margin:0!important;
  font-size:13px!important;
  line-height:1.2!important;
}
.shieldy-interactions-module .welcome-channel-grid .welcome-mention-row small{
  font-size:11px!important;
  line-height:1.25!important;
}
.preview-toggle-button.icon-only-toggle.is-collapsed .preview-toggle-icon svg{
  transform:none!important;
}
@media(max-width:1100px){
  .shieldy-interactions-module .welcome-channel-grid .welcome-mention-row{
    max-height:none!important;
  }
}


/* ===== V321 — complete automod master disabled state ===== */
#shieldy-settings-form [data-automod-dependent]{
  transition:opacity .18s ease,filter .18s ease,border-color .18s ease,background .18s ease;
}
#shieldy-settings-form [data-automod-dependent].is-automod-master-disabled{
  opacity:.42!important;
  filter:grayscale(.22) saturate(.55)!important;
  pointer-events:none!important;
  user-select:none!important;
  cursor:not-allowed!important;
}
#shieldy-settings-form [data-automod-dependent].is-automod-master-disabled *{
  cursor:not-allowed!important;
}
#shieldy-settings-form.is-automod-master-off .automod-master-card{
  border-color:color-mix(in srgb,var(--account-border) 88%,transparent)!important;
}
#shieldy-settings-form.is-automod-master-off > .sticky-save-bar{
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
}
html[data-theme="dark"] #shieldy-settings-form [data-automod-dependent].is-automod-master-disabled{
  opacity:.34!important;
}

/* ===== V322 — Shieldy welcome/farewell guided setup ===== */
.shieldy-interactions-module .welcome-setup-flow{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  padding:8px;
  border:1px solid var(--account-border);
  border-radius:15px;
  background:color-mix(in srgb,var(--account-surface-soft) 78%,transparent);
}
.shieldy-interactions-module .welcome-setup-flow button{
  position:relative;
  display:grid;
  grid-template-columns:32px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-width:0;
  min-height:58px;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:var(--account-text);
  text-align:left;
  cursor:pointer;
  transition:border-color .16s ease,background .16s ease,transform .16s ease,box-shadow .16s ease;
}
.shieldy-interactions-module .welcome-setup-flow button:hover{
  border-color:color-mix(in srgb,var(--account-accent) 34%,var(--account-border));
  background:var(--account-surface);
  transform:translateY(-1px);
}
.shieldy-interactions-module .welcome-setup-flow button>span{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border:1px solid var(--account-border);
  border-radius:10px;
  background:var(--account-surface);
  color:var(--account-muted);
  font-size:12px;
  font-weight:950;
}
.shieldy-interactions-module .welcome-setup-flow button>div{
  display:grid;
  gap:2px;
  min-width:0;
}
.shieldy-interactions-module .welcome-setup-flow strong{
  color:var(--account-text);
  font-size:12px;
  line-height:1.2;
}
.shieldy-interactions-module .welcome-setup-flow small{
  overflow:hidden;
  color:var(--account-muted);
  font-size:10px;
  font-weight:750;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.shieldy-interactions-module .welcome-setup-flow button.is-complete>span{
  border-color:color-mix(in srgb,#2da44e 55%,var(--account-border));
  background:color-mix(in srgb,#2da44e 12%,var(--account-surface));
  color:#1a7f37;
}
.shieldy-interactions-module .welcome-setup-flow button.is-current{
  border-color:color-mix(in srgb,var(--account-accent) 42%,var(--account-border));
  background:color-mix(in srgb,var(--account-accent) 7%,var(--account-surface));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--account-accent) 9%,transparent);
}
.shieldy-interactions-module .welcome-setup-flow button.is-current>span{
  border-color:var(--account-accent);
  background:var(--account-accent);
  color:#fff;
}
.shieldy-interactions-module .welcome-setup-flow button.is-warning>span{
  border-color:color-mix(in srgb,#d29922 55%,var(--account-border));
  background:color-mix(in srgb,#d29922 13%,var(--account-surface));
  color:#9a6700;
}
.shieldy-interactions-module .welcome-subsection{
  scroll-margin-top:92px;
}
.shieldy-interactions-module .welcome-mode-grid{
  gap:9px;
}
.shieldy-interactions-module .welcome-mode-option{
  grid-template-columns:42px minmax(0,1fr);
  min-height:102px;
  padding:13px;
  overflow:hidden;
}
.shieldy-interactions-module .welcome-mode-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid color-mix(in srgb,var(--account-accent) 23%,var(--account-border));
  border-radius:12px;
  background:color-mix(in srgb,var(--account-accent) 6%,var(--account-surface));
  color:var(--account-accent);
}
.shieldy-interactions-module .welcome-mode-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.shieldy-interactions-module .welcome-mode-option.is-selected .welcome-mode-icon{
  border-color:var(--account-accent);
  background:var(--account-accent);
  color:#fff;
}
.shieldy-interactions-module .welcome-mode-option>b{
  margin-top:2px;
}
.shieldy-interactions-module .welcome-mode-summary{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  padding:10px 12px;
  border:1px solid color-mix(in srgb,var(--account-accent) 24%,var(--account-border));
  border-radius:11px;
  background:color-mix(in srgb,var(--account-accent) 5%,var(--account-surface-soft));
}
.shieldy-interactions-module .welcome-mode-summary-icon{
  display:grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border-radius:9px;
  background:var(--account-accent);
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.shieldy-interactions-module .welcome-mode-summary>div{
  display:grid;
  gap:2px;
  min-width:0;
}
.shieldy-interactions-module .welcome-mode-summary strong{
  color:var(--account-text);
  font-size:12px;
}
.shieldy-interactions-module .welcome-mode-summary small{
  color:var(--account-muted);
  font-size:11px;
  line-height:1.35;
}
.shieldy-interactions-module .welcome-message-card textarea,
.shieldy-interactions-module .welcome-card-editor textarea{
  min-height:104px!important;
}
.shieldy-interactions-module .welcome-card-editor.is-mode-visible{
  animation:shieldyReveal .18s ease-out;
}
.shieldy-interactions-module .welcome-card-editor[data-mode="separate"]{
  border-color:color-mix(in srgb,var(--account-accent) 34%,var(--account-border));
}
.shieldy-interactions-module .welcome-extra-anchor{
  height:0;
  scroll-margin-top:92px;
}
.shieldy-interactions-module .welcome-preview-card{
  position:sticky;
  top:14px;
}
.shieldy-interactions-module .preview-card-actions{
  gap:8px;
}
.shieldy-interactions-module .preview-event-tabs{
  display:inline-grid;
  grid-template-columns:1fr 1fr;
  gap:3px;
  padding:3px;
  border:1px solid var(--account-border);
  border-radius:10px;
  background:var(--account-surface-soft);
}
.shieldy-interactions-module .preview-event-tabs button{
  min-width:62px;
  min-height:30px;
  padding:5px 10px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--account-muted);
  font:850 12px Nunito,sans-serif;
  cursor:pointer;
}
.shieldy-interactions-module .preview-event-tabs button.is-active{
  background:var(--account-surface);
  color:var(--account-text);
  box-shadow:0 2px 8px rgba(31,35,40,.08);
}
.shieldy-interactions-module .is-visually-hidden-select{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.shieldy-interactions-module .welcome-preview-summary{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 10px;
}
.shieldy-interactions-module .welcome-preview-summary span{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 8px;
  border:1px solid var(--account-border);
  border-radius:999px;
  background:var(--account-surface-soft);
  color:var(--account-muted);
  font-size:10px;
  font-weight:900;
}
.shieldy-interactions-module .welcome-preview-summary span:first-child{
  border-color:color-mix(in srgb,var(--account-accent) 32%,var(--account-border));
  color:var(--account-accent);
}
html[data-theme="dark"] .shieldy-interactions-module .welcome-setup-flow button.is-complete>span{
  color:#56d364;
}
html[data-theme="dark"] .shieldy-interactions-module .welcome-setup-flow button.is-warning>span{
  color:#e3b341;
}
@media(max-width:1100px){
  .shieldy-interactions-module .welcome-setup-flow{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:680px){
  .shieldy-interactions-module .welcome-setup-flow{grid-template-columns:1fr}
  .shieldy-interactions-module .welcome-setup-flow button{min-height:52px}
  .shieldy-interactions-module .preview-event-tabs button{min-width:52px;padding-inline:7px}
  .shieldy-interactions-module .welcome-preview-card{position:static}
}

/* v323 — Shieldy roles by choice: reactions/buttons, clean source flow and full-width preview. */
#sh-interaction-view-reactions .rr-redesigned-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px!important;
  overflow:visible!important;
}
#sh-interaction-view-reactions .reaction-role-editor-column{
  display:grid!important;
  gap:16px!important;
  min-width:0!important;
}
#sh-interaction-view-reactions [hidden]{display:none!important}
#sh-interaction-view-reactions .rr-workflow-strip{grid-template-columns:repeat(5,minmax(0,1fr))!important}
#sh-interaction-view-reactions .rr-master-card{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:16px 18px!important;
  border-color:color-mix(in srgb,var(--account-accent) 28%,var(--account-border))!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--account-accent) 7%,var(--account-surface)),var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-master-copy,
#sh-interaction-view-reactions .rr-master-switch{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
}
#sh-interaction-view-reactions .rr-master-copy>div,
#sh-interaction-view-reactions .rr-master-switch{display:flex!important}
#sh-interaction-view-reactions .rr-master-copy>div{flex-direction:column!important;gap:3px!important}
#sh-interaction-view-reactions .rr-master-copy strong{font-size:15px!important}
#sh-interaction-view-reactions .rr-master-copy small{color:var(--account-muted)!important}
#sh-interaction-view-reactions .rr-master-icon{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--account-accent) 13%,var(--account-surface))!important;
  color:var(--account-accent)!important;
  font-size:22px!important;
  font-weight:900!important;
}
#sh-interaction-view-reactions .rr-master-switch{font-weight:900!important;color:var(--account-text)!important}
#sh-interaction-view-reactions .rr-choice-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:14px!important;
}
#sh-interaction-view-reactions .rr-choice-card,
#sh-interaction-view-reactions .rr-method-switch>label{
  position:relative!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  column-gap:12px!important;
  row-gap:3px!important;
  min-height:92px!important;
  padding:15px!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
  cursor:pointer!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease,background .16s ease!important;
}
#sh-interaction-view-reactions .rr-choice-card:hover,
#sh-interaction-view-reactions .rr-method-switch>label:hover{
  border-color:color-mix(in srgb,var(--account-accent) 45%,var(--account-border))!important;
  transform:translateY(-1px)!important;
}
#sh-interaction-view-reactions .rr-choice-card.is-selected,
#sh-interaction-view-reactions .rr-method-switch>label.is-selected{
  border-color:color-mix(in srgb,var(--account-accent) 66%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 6%,var(--account-surface))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--account-accent) 10%,transparent)!important;
}
#sh-interaction-view-reactions .rr-choice-card.is-disabled,
#sh-interaction-view-reactions .rr-method-switch>label.is-disabled{opacity:.52!important;cursor:not-allowed!important;transform:none!important}
#sh-interaction-view-reactions .rr-choice-card input,
#sh-interaction-view-reactions .rr-method-switch input{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
}
#sh-interaction-view-reactions .rr-choice-icon,
#sh-interaction-view-reactions .rr-method-switch>label>span{
  grid-row:1/3!important;
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  border-radius:12px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-accent)!important;
  font-size:21px!important;
  font-weight:900!important;
}
#sh-interaction-view-reactions .rr-choice-card strong,
#sh-interaction-view-reactions .rr-method-switch strong{align-self:end!important;font-size:14px!important;color:var(--account-text)!important}
#sh-interaction-view-reactions .rr-choice-card small,
#sh-interaction-view-reactions .rr-method-switch small{align-self:start!important;color:var(--account-muted)!important;line-height:1.4!important}
#sh-interaction-view-reactions .rr-source-panel{margin-top:14px!important;padding-top:14px!important;border-top:1px solid var(--account-border)!important}
#sh-interaction-view-reactions .rr-source-panel .field{max-width:560px!important}
#sh-interaction-view-reactions .rr-method-switch{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:14px!important;
}
#sh-interaction-view-reactions .rr-method-note{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:12px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-muted)!important;
  font-size:12px!important;
}
#sh-interaction-view-reactions .rr-method-note strong{color:var(--account-text)!important}
#sh-interaction-view-reactions .rr-premium-customization{
  margin-top:14px!important;
  padding:14px!important;
  border:1px solid color-mix(in srgb,#d29922 36%,var(--account-border))!important;
  border-radius:14px!important;
  background:linear-gradient(135deg,color-mix(in srgb,#d29922 5%,var(--account-surface)),var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-premium-customization.is-premium-locked{opacity:.72!important}
#sh-interaction-view-reactions .rr-premium-zone-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:12px!important;
}
#sh-interaction-view-reactions .rr-premium-zone-head>div{display:grid!important;gap:3px!important}
#sh-interaction-view-reactions .rr-premium-zone-head small{color:var(--account-muted)!important}
#sh-interaction-view-reactions .rr-premium-zone-head a{font-size:12px!important;font-weight:900!important;color:#b7791f!important;text-decoration:none!important}
#sh-interaction-view-reactions .rr-inline-switch,
#sh-interaction-view-reactions .rr-rule-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:66px!important;
  padding:12px 14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface)!important;
}
#sh-interaction-view-reactions .rr-inline-switch>span,
#sh-interaction-view-reactions .rr-rule-row>span{display:grid!important;gap:3px!important}
#sh-interaction-view-reactions .rr-inline-switch small,
#sh-interaction-view-reactions .rr-rule-row small{color:var(--account-muted)!important}
#sh-interaction-view-reactions .reaction-input-policy{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
}
#sh-interaction-view-reactions .rr-count-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-height:28px!important;
  padding:5px 10px!important;
  border:1px solid var(--account-border)!important;
  border-radius:999px!important;
  color:var(--account-muted)!important;
  font-size:11px!important;
  font-weight:900!important;
}
#sh-interaction-view-reactions .reaction-role-items{display:grid!important;gap:10px!important;margin-top:12px!important}
#sh-interaction-view-reactions .reaction-role-item-row,
#sh-interaction-view-reactions .reaction-role-item-row.is-layout-stable,
#sh-interaction-view-reactions .reaction-role-item-row.rr-choice-item{
  display:grid!important;
  grid-template-columns:72px minmax(120px,.55fr) minmax(170px,1fr) minmax(150px,.75fr) 130px!important;
  gap:10px!important;
  align-items:end!important;
  width:100%!important;
  min-height:0!important;
  padding:12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:var(--account-surface)!important;
  overflow:visible!important;
}
#sh-interaction-view-reactions .reaction-role-item-row.is-button-mode,
#sh-interaction-view-reactions .reaction-role-item-row.is-button-mode.is-layout-stable{
  grid-template-columns:72px minmax(105px,.45fr) minmax(160px,.85fr) minmax(145px,.65fr) minmax(135px,.55fr) 130px!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-order-control,
#sh-interaction-view-reactions .reaction-role-item-row .rr-row-actions,
#sh-interaction-view-reactions .reaction-role-item-row .rr-field{
  display:grid!important;
  grid-template-rows:18px 44px!important;
  gap:6px!important;
  align-self:end!important;
  min-width:0!important;
  height:auto!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-field>span,
#sh-interaction-view-reactions .reaction-role-item-row .rr-compact-label{
  display:block!important;
  height:18px!important;
  line-height:18px!important;
  color:var(--account-muted)!important;
  font-size:10px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-field input,
#sh-interaction-view-reactions .reaction-role-item-row .rr-field select{
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-reaction-field input{
  text-align:center!important;
  font-size:19px!important;
  line-height:1!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-order-buttons,
#sh-interaction-view-reactions .reaction-role-item-row .rr-action-buttons{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  height:44px!important;
  min-height:44px!important;
  margin:0!important;
}
#sh-interaction-view-reactions .reaction-role-item-row :is(.rr-drag-handle,.rr-order-button,.rr-remove){
  display:grid!important;
  place-items:center!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  margin:0!important;
  border-radius:9px!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-order{
  display:grid!important;
  place-items:center!important;
  width:26px!important;
  height:26px!important;
  flex:0 0 26px!important;
  margin:0!important;
  border-radius:8px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-muted)!important;
  font-size:11px!important;
  font-weight:900!important;
}
#sh-interaction-view-reactions .rr-rules-grid{display:grid!important;gap:10px!important;margin-top:12px!important}
#sh-interaction-view-reactions .rr-limit-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:66px!important;
  padding:12px 14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface)!important;
}
#sh-interaction-view-reactions .rr-limit-row>div{display:grid!important;gap:3px!important}
#sh-interaction-view-reactions .rr-limit-row small{color:var(--account-muted)!important}
#sh-interaction-view-reactions .rr-limit-row input{width:100px!important;text-align:center!important}
#sh-interaction-view-reactions .rr-confirmation-preview-note{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:12px!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--account-accent) 7%,var(--account-surface))!important;
  color:var(--account-muted)!important;
  font-size:12px!important;
}
#sh-interaction-view-reactions .rr-confirmation-preview-note strong{color:var(--account-text)!important}
#sh-interaction-view-reactions .rr-confirmation-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#sh-interaction-view-reactions .reaction-role-advanced{margin-top:14px!important}
#sh-interaction-view-reactions .reaction-role-management-actions{margin-top:12px!important;justify-content:flex-start!important}
#sh-interaction-view-reactions .rr-bottom-preview-card{
  position:static!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  overflow:hidden!important;
}

#sh-interaction-view-reactions .rr-message-customization-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)!important;
  gap:18px!important;
  align-items:start!important;
}
#sh-interaction-view-reactions .rr-message-customization-fields{min-width:0!important}
#sh-interaction-view-reactions .rr-banner-upload-tools{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-top:-4px!important;
}
#sh-interaction-view-reactions .rr-banner-upload-tools small{
  color:var(--account-muted)!important;
  font-size:12px!important;
  font-weight:700!important;
}
#sh-interaction-view-reactions #reaction-role-banner-upload-message{
  min-height:18px!important;
  margin-top:8px!important;
}
#sh-interaction-view-reactions .rr-mini-preview-card{
  position:sticky!important;
  top:16px!important;
  padding:14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:16px!important;
  background:var(--account-surface-soft)!important;
  box-shadow:0 8px 24px rgba(15,23,42,.06)!important;
}
#sh-interaction-view-reactions .rr-mini-preview-head{display:grid!important;gap:3px!important;margin-bottom:12px!important}
#sh-interaction-view-reactions .rr-mini-preview-head small{color:var(--account-muted)!important;font-size:12px!important}
#sh-interaction-view-reactions .rr-mini-preview-body{
  padding:12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
}
#sh-interaction-view-reactions .rr-mini-author{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
#sh-interaction-view-reactions .rr-mini-author img{width:36px!important;height:36px!important;border-radius:50%!important;flex:0 0 36px!important}
#sh-interaction-view-reactions .rr-mini-author div{display:grid!important;gap:1px!important}
#sh-interaction-view-reactions .rr-mini-author strong{font-size:13px!important}
#sh-interaction-view-reactions .rr-mini-author small{color:var(--account-muted)!important;font-size:11px!important}
#sh-interaction-view-reactions .rr-mini-embed-preview{margin-top:10px!important}
#sh-interaction-view-reactions .rr-mini-embed-preview h4{font-size:15px!important}
#sh-interaction-view-reactions .rr-mini-embed-preview p{font-size:12px!important}
#sh-interaction-view-reactions .rr-mini-embed-preview img{
  width:100%!important;
  display:block!important;
  margin:-15px -16px 12px!important;
  width:calc(100% + 32px)!important;
  max-width:calc(100% + 32px)!important;
  aspect-ratio:2 / 1!important;
  object-fit:cover!important;
  border-bottom:1px solid var(--account-border)!important;
}
#sh-interaction-view-reactions .rr-mini-reactions-preview,
#sh-interaction-view-reactions .rr-mini-buttons-preview{margin-top:10px!important}
#sh-interaction-view-reactions .rr-mini-reactions-preview span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:34px!important;
  min-height:34px!important;
  padding:4px 8px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface-soft)!important;
}
#sh-interaction-view-reactions .rr-mini-reactions-preview small,
#sh-interaction-view-reactions .rr-mini-buttons-preview small{color:var(--account-muted)!important;font-size:11px!important}
@media(max-width:980px){
  #sh-interaction-view-reactions .rr-message-customization-layout{grid-template-columns:1fr!important}
  #sh-interaction-view-reactions .rr-mini-preview-card{position:static!important}
}
#sh-interaction-view-reactions .rr-preview-tabs{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  padding:3px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface-soft)!important;
}
#sh-interaction-view-reactions .rr-preview-tabs button{
  min-height:32px!important;
  padding:6px 10px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:var(--account-muted)!important;
  font-size:11px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
#sh-interaction-view-reactions .rr-preview-tabs button.is-active{
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
  box-shadow:0 2px 8px rgba(31,35,40,.08)!important;
}
#sh-interaction-view-reactions .rr-bottom-preview-card .lolka-preview-window{max-width:none!important;width:100%!important}
#sh-interaction-view-reactions .rr-reactions-preview,
#sh-interaction-view-reactions .rr-buttons-preview{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
  margin-top:10px!important;
}
#sh-interaction-view-reactions .rr-buttons-preview[hidden],
#sh-interaction-view-reactions .rr-reactions-preview[hidden]{display:none!important}
#sh-interaction-view-reactions .rr-preview-button{
  min-height:34px!important;
  padding:7px 11px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  font:800 12px Nunito,sans-serif!important;
  opacity:1!important;
}
#sh-interaction-view-reactions .rr-preview-button.is-primary{background:#5865f2!important;color:#fff!important}
#sh-interaction-view-reactions .rr-preview-button.is-secondary{background:#4e5058!important;color:#fff!important}
#sh-interaction-view-reactions .rr-preview-button.is-success{background:#248046!important;color:#fff!important}
#sh-interaction-view-reactions .rr-preview-button.is-danger{background:#da373c!important;color:#fff!important}
#sh-interaction-view-reactions .rr-existing-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
}
#sh-interaction-view-reactions .rr-existing-summary>div{
  display:grid!important;
  gap:4px!important;
  padding:14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface-soft)!important;
}
#sh-interaction-view-reactions .rr-existing-summary strong{font-size:11px!important;color:var(--account-muted)!important;text-transform:uppercase!important;letter-spacing:.04em!important}
#sh-interaction-view-reactions .rr-existing-summary span{font-size:13px!important;font-weight:900!important;color:var(--account-text)!important;overflow-wrap:anywhere!important}
#sh-interaction-view-reactions .rr-confirmation-preview{
  min-height:180px!important;
  padding:28px!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:linear-gradient(180deg,#313338,#2b2d31)!important;
  color:#f2f3f5!important;
}
#sh-interaction-view-reactions .rr-private-badge{
  display:inline-flex!important;
  margin-bottom:14px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  background:rgba(88,101,242,.18)!important;
  color:#b5bac1!important;
  font-size:10px!important;
  font-weight:900!important;
}
#sh-interaction-view-reactions .rr-private-message{display:flex!important;align-items:flex-start!important;gap:10px!important}
#sh-interaction-view-reactions .rr-private-message img{width:38px!important;height:38px!important;border-radius:50%!important;object-fit:cover!important}
#sh-interaction-view-reactions .rr-private-message>div{display:grid!important;gap:4px!important}
#sh-interaction-view-reactions .rr-private-message p{margin:0!important;color:#dbdee1!important}
#sh-interaction-view-reactions.has-disabled-function .reaction-role-layout{pointer-events:auto!important;opacity:1!important;filter:none!important}
#sh-interaction-view-reactions.has-disabled-function .reaction-role-editor-column>article:not(.rr-master-card),
#sh-interaction-view-reactions.has-disabled-function .rr-bottom-preview-card{opacity:.48!important;filter:saturate(.65)!important}
#sh-interaction-view-reactions.has-disabled-function .rr-master-card,
#sh-interaction-view-reactions.has-disabled-function .sticky-save-bar{opacity:1!important;filter:none!important;pointer-events:auto!important}
@media(max-width:1040px){
  #sh-interaction-view-reactions .reaction-role-item-row,
  #sh-interaction-view-reactions .reaction-role-item-row.is-layout-stable,
  #sh-interaction-view-reactions .reaction-role-item-row.rr-choice-item,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode{
    grid-template-columns:64px minmax(105px,.55fr) minmax(150px,1fr) minmax(135px,.75fr) 122px!important;
  }
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode .rr-button-style-field{grid-column:2/4!important}
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode .rr-row-actions{grid-column:5!important;grid-row:1/3!important;align-self:center!important}
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-workflow-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #sh-interaction-view-reactions .rr-choice-grid,
  #sh-interaction-view-reactions .rr-method-switch,
  #sh-interaction-view-reactions .rr-confirmation-fields,
  #sh-interaction-view-reactions .rr-existing-summary{grid-template-columns:1fr!important}
  #sh-interaction-view-reactions .rr-master-card,
  #sh-interaction-view-reactions .rr-premium-zone-head,
  #sh-interaction-view-reactions .preview-card-title{align-items:flex-start!important;flex-direction:column!important}
  #sh-interaction-view-reactions .reaction-role-item-row,
  #sh-interaction-view-reactions .reaction-role-item-row.is-layout-stable,
  #sh-interaction-view-reactions .reaction-role-item-row.rr-choice-item,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode{
    grid-template-columns:54px minmax(0,1fr)!important;
    gap:9px!important;
  }
  #sh-interaction-view-reactions .reaction-role-item-row .rr-order-control{grid-column:1!important;grid-row:1/6!important;align-self:stretch!important}
  #sh-interaction-view-reactions .reaction-role-item-row .rr-field,
  #sh-interaction-view-reactions .reaction-role-item-row .rr-row-actions,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode .rr-button-style-field,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode .rr-row-actions{grid-column:2!important;grid-row:auto!important}
  #sh-interaction-view-reactions .reaction-role-item-row .rr-action-buttons{justify-content:flex-start!important}
  #sh-interaction-view-reactions .rr-rule-row,
  #sh-interaction-view-reactions .rr-inline-switch,
  #sh-interaction-view-reactions .rr-limit-row{align-items:flex-start!important}
  #sh-interaction-view-reactions .rr-preview-tabs{width:100%!important}
  #sh-interaction-view-reactions .rr-preview-tabs button{flex:1 1 0!important}
}
#sh-interaction-view-reactions .rr-free-message-note{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  margin-top:12px!important;
  padding:10px 12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-muted)!important;
  font-size:12px!important;
}
#sh-interaction-view-reactions .rr-free-message-note strong{color:var(--account-text)!important}
#sh-interaction-view-reactions #rr-preview-banner{
  display:block!important;
  width:100%!important;
  max-height:240px!important;
  margin:0 0 12px!important;
  border-radius:9px!important;
  object-fit:cover!important;
}
#sh-interaction-view-reactions #rr-preview-banner[hidden]{display:none!important}

/* ===== V326 — Shieldy welcome/farewell clean editor and compact two-message preview ===== */
#sh-interaction-view-welcome .welcome-setup-flow{display:none!important}
#sh-interaction-view-welcome .welcome-builder{
  grid-template-columns:minmax(0,1fr)!important;
  gap:18px!important;
  overflow:visible!important;
}
#sh-interaction-view-welcome .welcome-preview-column{
  position:static!important;
  width:100%!important;
  min-width:0!important;
}
#sh-interaction-view-welcome .welcome-preview-card{
  position:static!important;
  top:auto!important;
  padding:18px!important;
}
#sh-interaction-view-welcome .welcome-preview-card .preview-card-title{
  align-items:center!important;
  margin-bottom:12px!important;
}
#sh-interaction-view-welcome .welcome-mode-card .card-title,
#sh-interaction-view-welcome .welcome-message-card .card-title{
  align-items:flex-start!important;
}
#sh-interaction-view-welcome .welcome-mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#sh-interaction-view-welcome .welcome-mode-option{min-height:94px!important}
#sh-interaction-view-welcome .welcome-mode-option>b{
  color:#1a7f37!important;
  background:color-mix(in srgb,#2da44e 12%,var(--account-surface))!important;
}
#sh-interaction-view-welcome .welcome-card-editor{
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
  padding:16px!important;
}
#sh-interaction-view-welcome .welcome-card-standard-note{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  padding:11px 12px;
  border:1px solid color-mix(in srgb,#2da44e 36%,var(--account-border));
  border-radius:11px;
  background:color-mix(in srgb,#2da44e 7%,var(--account-surface-soft));
}
#sh-interaction-view-welcome .welcome-card-standard-note>span{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:9px;
  background:#2da44e;
  color:#fff;
  font-size:13px;
  font-weight:950;
}
#sh-interaction-view-welcome .welcome-card-standard-note>div,
#sh-interaction-view-welcome .welcome-premium-customization-head>div{display:grid;gap:2px;min-width:0}
#sh-interaction-view-welcome .welcome-card-standard-note strong,
#sh-interaction-view-welcome .welcome-premium-customization-head strong{font-size:13px;color:var(--account-text)}
#sh-interaction-view-welcome .welcome-card-standard-note small,
#sh-interaction-view-welcome .welcome-premium-customization-head small{font-size:11px;line-height:1.35;color:var(--account-muted)}
#sh-interaction-view-welcome .welcome-card-customization{
  display:grid;
  gap:13px;
  margin-top:12px;
  padding:14px;
  border:1px solid #d4a72c;
  border-radius:12px;
  background:color-mix(in srgb,#fff7d6 42%,var(--account-surface));
  transition:opacity .18s ease,filter .18s ease;
}
#sh-interaction-view-welcome .welcome-card-customization.is-locked{opacity:.64;filter:saturate(.7)}
#sh-interaction-view-welcome .welcome-premium-customization-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid color-mix(in srgb,#d4a72c 45%,var(--account-border));
}
#sh-interaction-view-welcome .welcome-card-customization .field{margin:0!important}
#sh-interaction-view-welcome .welcome-control-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  align-items:start;
}
#sh-interaction-view-welcome .welcome-segmented-control{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  padding:4px;
  border:1px solid var(--account-border);
  border-radius:10px;
  background:var(--account-surface-soft);
}
#sh-interaction-view-welcome .welcome-segmented-control.two-options{grid-template-columns:repeat(2,minmax(0,1fr))}
#sh-interaction-view-welcome .welcome-segmented-control label{position:relative;min-width:0;cursor:pointer}
#sh-interaction-view-welcome .welcome-segmented-control input{position:absolute;opacity:0;pointer-events:none}
#sh-interaction-view-welcome .welcome-segmented-control span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:6px 8px;
  border:1px solid transparent;
  border-radius:7px;
  color:var(--account-muted);
  font-size:11px;
  font-weight:900;
  text-align:center;
  transition:.16s ease;
}
#sh-interaction-view-welcome .welcome-segmented-control input:checked+span{
  border-color:color-mix(in srgb,var(--account-accent) 34%,var(--account-border));
  background:var(--account-surface);
  color:var(--account-text);
  box-shadow:0 2px 7px rgba(31,35,40,.08);
}
#sh-interaction-view-welcome .welcome-banner-presets{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
}
#sh-interaction-view-welcome .welcome-banner-presets label{
  position:relative;
  display:grid;
  gap:6px;
  min-width:0;
  padding:7px;
  border:1px solid var(--account-border);
  border-radius:10px;
  background:var(--account-surface);
  cursor:pointer;
}
#sh-interaction-view-welcome .welcome-banner-presets input{position:absolute;opacity:0;pointer-events:none}
#sh-interaction-view-welcome .welcome-banner-presets label:has(input:checked){
  border-color:var(--account-accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--account-accent) 10%,transparent);
}
#sh-interaction-view-welcome .welcome-banner-presets span{
  display:block;
  height:42px;
  border:1px solid color-mix(in srgb,var(--account-border) 75%,transparent);
  border-radius:7px;
  background:#eef2f6;
}
#sh-interaction-view-welcome .welcome-banner-presets strong{
  overflow:hidden;
  color:var(--account-text);
  font-size:10px;
  text-align:center;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#sh-interaction-view-welcome [data-banner-swatch="standard"]{background:radial-gradient(circle at 25% 25%,rgba(255,255,255,.42),transparent 35%),linear-gradient(135deg,#2da44e,#1a7f37)}
#sh-interaction-view-welcome [data-banner-swatch="green"]{background:radial-gradient(circle at 70% 25%,#56d364 0 8%,transparent 9%),linear-gradient(135deg,#0f3d24,#2da44e)}
#sh-interaction-view-welcome [data-banner-swatch="dark"]{background:radial-gradient(circle at 25% 20%,#34435a,transparent 28%),linear-gradient(135deg,#0d1117,#202938)}
#sh-interaction-view-welcome [data-banner-swatch="soft"]{background:radial-gradient(circle at 75% 20%,#b7efc5,transparent 25%),linear-gradient(135deg,#e7f8ec,#a9e8bb)}
#sh-interaction-view-welcome [data-banner-swatch="none"]{background:repeating-linear-gradient(135deg,#f4f6f8 0 8px,#e5e9ee 8px 16px)}
#sh-interaction-view-welcome .welcome-icon-settings{display:grid;gap:10px;padding-top:2px}
#sh-interaction-view-welcome .welcome-icon-settings>.toggle-row{margin:0!important}
#sh-interaction-view-welcome .welcome-upload-field{margin-top:0!important}
html[data-theme="dark"] #sh-interaction-view-welcome .welcome-card-customization{
  border-color:#9e6a03;
  background:rgba(210,153,34,.08);
}

#sh-interaction-view-welcome .compact-preview-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:92px;
  min-height:34px;
  padding:6px 10px!important;
  border:1px solid var(--account-border)!important;
  border-radius:9px!important;
  background:var(--account-surface)!important;
  color:var(--account-muted)!important;
  font:850 11px Nunito,sans-serif!important;
  cursor:pointer;
}
#sh-interaction-view-welcome .compact-preview-toggle:hover{color:var(--account-text)!important;border-color:color-mix(in srgb,var(--account-accent) 34%,var(--account-border))!important}
#sh-interaction-view-welcome .compact-preview-toggle svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#sh-interaction-view-welcome .preview-collapsible[hidden]{display:none!important}
#sh-interaction-view-welcome .shieldy-lolka-card-preview{
  width:min(100%,820px)!important;
  margin:0 auto!important;
  border-radius:15px!important;
}
#sh-interaction-view-welcome .shieldy-lolka-card-topbar{min-height:50px!important;padding:9px 12px!important}
#sh-interaction-view-welcome .welcome-preview-message-stack{
  display:grid;
  gap:10px;
  padding:12px;
  background:#171b23;
}
#sh-interaction-view-welcome .welcome-preview-message-block{
  display:grid!important;
  gap:8px!important;
  padding:12px!important;
  border:1px solid #343b48;
  border-radius:12px;
  background:#20252e;
  box-shadow:0 5px 14px rgba(0,0,0,.14);
}
#sh-interaction-view-welcome .welcome-preview-message-block[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-preview-message-block.is-disabled-preview{opacity:.55;filter:saturate(.65)}
#sh-interaction-view-welcome .welcome-preview-secondary-message{padding:12px!important}
#sh-interaction-view-welcome .welcome-preview-card-slot:empty{display:none}
#sh-interaction-view-welcome .shieldy-preview-plain-text{
  margin:0 0 0 47px!important;
  color:#dce3ec!important;
  font-size:12px!important;
  line-height:1.48!important;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
#sh-interaction-view-welcome .shieldy-preview-plain-text.is-empty-preview{color:#8994a4!important;font-style:italic}
#sh-interaction-view-welcome .welcome-mention-preview{margin-left:47px!important}
#sh-interaction-view-welcome #welcome-preview-primary-card-slot .welcome-embed-preview{
  display:block;
  width:auto!important;
  max-width:calc(100% - 47px)!important;
  margin:2px 0 0 47px!important;
}
#sh-interaction-view-welcome #welcome-preview-secondary-card-slot .welcome-embed-preview{
  display:block;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#sh-interaction-view-welcome .shieldy-lolka-card-preview>.welcome-embed-preview{display:none!important}

#sh-interaction-view-welcome .shieldy-welcome-image-card{
  --welcome-accent:#2da44e;
  min-height:0!important;
  overflow:hidden!important;
  border:1px solid #d8dee7!important;
  border-left:4px solid var(--welcome-accent)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#1f2937!important;
  box-shadow:0 8px 22px rgba(4,12,24,.15)!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[hidden]{display:none!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-banner-preview{
  position:relative!important;
  inset:auto!important;
  display:block;
  width:100%;
  min-height:112px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background-position:center!important;
  background-size:cover!important;
  opacity:1!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-banner-preview[hidden]{display:none!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-banner-preview::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,15,20,.02),rgba(8,15,20,.22));
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="standard"] .welcome-banner-preview:not(.has-custom-banner){background:radial-gradient(circle at 28% 26%,rgba(255,255,255,.35),transparent 32%),linear-gradient(135deg,var(--welcome-accent),color-mix(in srgb,var(--welcome-accent) 58%,#0d4f2a))!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="green"] .welcome-banner-preview:not(.has-custom-banner){background:radial-gradient(circle at 72% 24%,rgba(117,255,153,.72) 0 7%,transparent 8%),radial-gradient(circle at 35% 70%,rgba(255,255,255,.15),transparent 22%),linear-gradient(135deg,#092e1a,#2da44e)!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="dark"] .welcome-banner-preview:not(.has-custom-banner){background:radial-gradient(circle at 30% 20%,#35445c,transparent 27%),linear-gradient(135deg,#0b0f15,#222c3b)!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="soft"] .welcome-banner-preview:not(.has-custom-banner){background:radial-gradient(circle at 72% 22%,#b9f2c8,transparent 24%),linear-gradient(135deg,#eaf9ee,#9ce2af)!important}
#sh-interaction-view-welcome .shieldy-welcome-image-content{
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:7px!important;
  padding:16px 18px 15px!important;
  color:#1f2937!important;
  text-align:center;
}
#sh-interaction-view-welcome .welcome-banner-preview:not([hidden])+.shieldy-welcome-image-content{padding-top:0!important}
#sh-interaction-view-welcome .welcome-card-avatar-wrap{
  align-self:center;
  width:74px;
  height:74px;
  margin:0 0 2px;
  padding:4px;
  border:2px solid color-mix(in srgb,var(--welcome-accent) 74%,#fff);
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px rgba(255,255,255,.7),0 8px 20px rgba(18,35,50,.20);
}
#sh-interaction-view-welcome .welcome-banner-preview:not([hidden])+.shieldy-welcome-image-content .welcome-card-avatar-wrap{margin-top:-39px}
#sh-interaction-view-welcome .welcome-card-avatar-wrap[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-card-avatar-wrap img{display:block;width:100%!important;height:100%!important;border-radius:inherit!important;object-fit:cover!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-avatar-align="left"] .welcome-card-avatar-wrap{align-self:flex-start}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-avatar-align="right"] .welcome-card-avatar-wrap{align-self:flex-end}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-avatar-shape="square"] .welcome-card-avatar-wrap{border-radius:16px}
#sh-interaction-view-welcome .shieldy-welcome-image-card h4{
  width:100%;
  max-width:none!important;
  margin:0!important;
  color:#1f2937!important;
  font-size:17px!important;
  line-height:1.3!important;
  text-align:inherit!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card p{
  width:100%;
  max-width:none!important;
  margin:0!important;
  color:#596579!important;
  font-size:12px!important;
  line-height:1.48!important;
  text-align:inherit!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-text-align="left"] .shieldy-welcome-image-content{text-align:left!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-text-align="right"] .shieldy-welcome-image-content{text-align:right!important}
#sh-interaction-view-welcome .shieldy-welcome-member-line{
  width:100%;
  margin-top:3px!important;
  color:#7a8596!important;
  font-size:10px!important;
  justify-content:inherit!important;
  text-align:inherit!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-preview-footer{
  width:100%;
  margin-top:5px!important;
  padding-top:9px!important;
  border-top:1px solid #e4e8ee!important;
  color:#7a8596!important;
  font-size:10px!important;
  text-align:inherit!important;
}
html[data-theme="dark"] #sh-interaction-view-welcome .shieldy-welcome-image-card{
  border-color:#3a4555!important;
  background:#f7f9fb!important;
}
@media(max-width:900px){
  #sh-interaction-view-welcome .welcome-mode-grid{grid-template-columns:1fr!important}
  #sh-interaction-view-welcome .welcome-control-grid{grid-template-columns:1fr}
  #sh-interaction-view-welcome .welcome-banner-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px){
  #sh-interaction-view-welcome .preview-card-title{align-items:flex-start!important;flex-direction:column!important}
  #sh-interaction-view-welcome .preview-card-actions{width:100%;justify-content:space-between}
  #sh-interaction-view-welcome .welcome-banner-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sh-interaction-view-welcome .shieldy-preview-plain-text,
  #sh-interaction-view-welcome .welcome-mention-preview{margin-left:0!important}
  #sh-interaction-view-welcome #welcome-preview-primary-card-slot .welcome-embed-preview{max-width:none!important;margin-left:0!important}
}

/* ===== V327 — встроенный предпросмотр входа/выхода и бесплатный тумблер карточки ===== */
#sh-interaction-view-welcome .welcome-builder{
  display:block!important;
  overflow:visible!important;
}
#sh-interaction-view-welcome .welcome-settings-column{
  display:grid!important;
  gap:16px!important;
  min-width:0!important;
}
#sh-interaction-view-welcome .welcome-event-card{
  overflow:visible!important;
}
#sh-interaction-view-welcome .welcome-event-workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(330px,390px)!important;
  gap:16px!important;
  align-items:start!important;
  margin-top:14px!important;
  min-width:0!important;
}
#sh-interaction-view-welcome .welcome-event-workspace>.welcome-dependent{
  min-width:0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview{
  min-width:0!important;
  align-self:stretch!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-card{
  position:sticky!important;
  top:14px!important;
  width:100%!important;
  padding:14px!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
  box-shadow:0 8px 24px rgba(16,35,63,.08)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .preview-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin-bottom:10px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .preview-card-title>div{
  display:grid!important;
  gap:2px!important;
  min-width:0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .preview-card-title h3{
  margin:0!important;
  font-size:14px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .preview-card-title p{
  margin:0!important;
  color:var(--account-muted)!important;
  font-size:10px!important;
  line-height:1.35!important;
}
#sh-interaction-view-welcome .welcome-live-preview-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;
  min-height:25px!important;
  padding:4px 8px!important;
  border:1px solid color-mix(in srgb,#2da44e 34%,var(--account-border))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,#2da44e 8%,var(--account-surface))!important;
  color:#1a7f37!important;
  font-size:9px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}
#sh-interaction-view-welcome .welcome-inline-preview.is-event-disabled .welcome-live-preview-badge{
  border-color:var(--account-border)!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-muted)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-lolka-card-preview{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  border-radius:13px!important;
  overflow:hidden!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-lolka-card-topbar{
  min-height:44px!important;
  padding:8px 10px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-lolka-card-platform img{
  width:28px!important;
  height:28px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-stack{
  gap:8px!important;
  padding:10px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-block{
  gap:7px!important;
  padding:10px!important;
  border-radius:10px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-message-author img{
  width:34px!important;
  height:34px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-message-author{
  gap:8px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-message-author strong{
  font-size:11px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-message-author small{
  font-size:9px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-preview-plain-text,
#sh-interaction-view-welcome .welcome-inline-preview .welcome-mention-preview{
  margin-left:42px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-preview-plain-text{
  font-size:10px!important;
  line-height:1.42!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-mention-preview{
  font-size:9px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .welcome-embed-preview{
  width:auto!important;
  max-width:calc(100% - 42px)!important;
  margin:2px 0 0 42px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-secondary-card-slot] .welcome-embed-preview{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}
#sh-interaction-view-welcome .welcome-card-enable-row{
  margin:12px 0!important;
  padding:11px 12px!important;
  border:1px solid color-mix(in srgb,#2da44e 32%,var(--account-border))!important;
  border-radius:11px!important;
  background:color-mix(in srgb,#2da44e 6%,var(--account-surface-soft))!important;
}
#sh-interaction-view-welcome .welcome-card-enable-row strong{
  color:var(--account-text)!important;
}
#sh-interaction-view-welcome .welcome-mode-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#sh-interaction-view-welcome .welcome-mode-option.is-disabled-option{
  opacity:.48!important;
  filter:saturate(.65)!important;
  cursor:not-allowed!important;
}
#sh-interaction-view-welcome .welcome-mode-option.is-disabled-option *{
  cursor:not-allowed!important;
}

/* Карточка теперь выглядит как цельный горизонтальный баннер, а не высокая белая панель. */
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card{
  position:relative!important;
  isolation:isolate!important;
  aspect-ratio:2 / 1!important;
  min-height:150px!important;
  overflow:hidden!important;
  border:1px solid color-mix(in srgb,var(--welcome-accent) 48%,#ffffff)!important;
  border-left-width:1px!important;
  border-radius:11px!important;
  background:#101720!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(0,0,0,.25)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-banner-preview{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  background-position:center!important;
  background-size:cover!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-banner-preview[hidden]{
  display:block!important;
  background:linear-gradient(135deg,var(--welcome-accent),color-mix(in srgb,var(--welcome-accent) 54%,#08120d))!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-banner-preview::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  background:linear-gradient(180deg,rgba(5,10,15,.18),rgba(5,10,15,.72))!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-content{
  position:relative!important;
  z-index:1!important;
  min-height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:5px!important;
  padding:16px 18px!important;
  color:#fff!important;
  text-align:center!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-banner-preview:not([hidden])+.shieldy-welcome-image-content{
  padding-top:16px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-card-avatar-wrap{
  align-self:center!important;
  width:58px!important;
  height:58px!important;
  margin:0 auto 3px!important;
  padding:3px!important;
  border:2px solid rgba(255,255,255,.88)!important;
  background:rgba(255,255,255,.94)!important;
  box-shadow:0 5px 16px rgba(0,0,0,.28)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-avatar-align="left"] .welcome-card-avatar-wrap{
  align-self:flex-start!important;
  margin-left:0!important;
  margin-right:auto!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-avatar-align="right"] .welcome-card-avatar-wrap{
  align-self:flex-end!important;
  margin-left:auto!important;
  margin-right:0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card h4{
  color:#fff!important;
  font-size:13px!important;
  line-height:1.25!important;
  text-shadow:0 2px 9px rgba(0,0,0,.55)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card p{
  color:rgba(255,255,255,.86)!important;
  font-size:9px!important;
  line-height:1.38!important;
  text-shadow:0 2px 8px rgba(0,0,0,.55)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-member-line{
  margin-top:2px!important;
  color:rgba(255,255,255,.76)!important;
  font-size:8px!important;
  text-shadow:0 2px 7px rgba(0,0,0,.6)!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-preview-footer{
  margin-top:3px!important;
  padding-top:5px!important;
  border-top:1px solid rgba(255,255,255,.22)!important;
  color:rgba(255,255,255,.72)!important;
  font-size:8px!important;
  text-shadow:0 2px 7px rgba(0,0,0,.6)!important;
}

@media(max-width:1180px){
  #sh-interaction-view-welcome .welcome-event-workspace{
    grid-template-columns:minmax(0,1fr)!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview{
    order:-1!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-card{
    position:static!important;
    top:auto!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .shieldy-lolka-card-preview{
    width:min(100%,760px)!important;
    margin:0 auto!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card{
    min-height:210px!important;
  }
}
@media(max-width:700px){
  #sh-interaction-view-welcome .welcome-mode-grid{
    grid-template-columns:1fr!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .preview-card-title{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .shieldy-preview-plain-text,
  #sh-interaction-view-welcome .welcome-inline-preview .welcome-mention-preview{
    margin-left:0!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .welcome-embed-preview{
    width:100%!important;
    max-width:none!important;
    margin-left:0!important;
  }
  #sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card{
    min-height:180px!important;
  }
}


/* V328 — компактная стандартная карточка и аккуратный отступ предпросмотра */
@media(min-width:1181px){
  #sh-interaction-view-welcome .welcome-event-workspace{
    grid-template-columns:minmax(0,1fr) minmax(320px,370px)!important;
    column-gap:18px!important;
    padding-right:10px!important;
    box-sizing:border-box!important;
  }
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-card{
  box-sizing:border-box!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card h4{
  margin-bottom:0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card p[hidden],
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-member-line[hidden],
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-footer[hidden]{
  display:none!important;
}
#sh-interaction-view-welcome .welcome-inline-preview[data-welcome-preview-kind="welcome"] .shieldy-welcome-image-card p{
  margin-top:1px!important;
  font-size:9px!important;
  font-weight:700!important;
  color:rgba(255,255,255,.82)!important;
}
@media(max-width:1180px){
  #sh-interaction-view-welcome .welcome-event-workspace{
    padding-right:0!important;
  }
}

/* V329 — точный стандартный текст и корректная карточка в режиме «Вместе с текстом». */
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot]{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .welcome-embed-preview{
  display:block!important;
  width:calc(100% - 42px)!important;
  min-width:0!important;
  max-width:calc(100% - 42px)!important;
  margin:2px 0 0 42px!important;
  box-sizing:border-box!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .shieldy-welcome-image-card{
  width:calc(100% - 42px)!important;
  min-width:0!important;
  max-width:calc(100% - 42px)!important;
  min-height:142px!important;
  aspect-ratio:auto!important;
  box-sizing:border-box!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .shieldy-welcome-image-content{
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  padding:14px 12px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .shieldy-welcome-image-card h4,
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .shieldy-welcome-image-card p{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:700px){
  #sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .welcome-embed-preview,
  #sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .shieldy-welcome-image-card{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
  }
}

/* V330 welcome banner presets polish */
#sh-interaction-view-welcome .welcome-banner-presets{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}#sh-interaction-view-welcome .welcome-banner-presets label{padding:8px;border-radius:12px;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}#sh-interaction-view-welcome .welcome-banner-presets label:hover{transform:translateY(-1px)}#sh-interaction-view-welcome .welcome-banner-presets span{position:relative;display:block;height:54px;border:1px solid color-mix(in srgb,var(--account-border) 72%,transparent);border-radius:9px;overflow:hidden;background:#e9eef4;box-shadow:inset 0 1px 0 rgba(255,255,255,.38)}#sh-interaction-view-welcome .welcome-banner-presets span::before{content:"";position:absolute;left:50%;top:12px;width:16px;height:16px;border-radius:999px;transform:translateX(-50%);background:rgba(255,255,255,.96);box-shadow:0 0 0 2px rgba(255,255,255,.28),0 6px 12px rgba(15,23,42,.18)}#sh-interaction-view-welcome .welcome-banner-presets span::after{content:"";position:absolute;left:50%;bottom:12px;width:56%;height:8px;border-radius:999px;transform:translateX(-50%);background:rgba(255,255,255,.92);box-shadow:0 -12px 0 -2px rgba(255,255,255,.72)}#sh-interaction-view-welcome .welcome-banner-presets strong{font-size:11px;font-weight:900}#sh-interaction-view-welcome [data-banner-swatch="standard"]{background:radial-gradient(circle at 25% 25%,rgba(255,255,255,.4),transparent 34%),linear-gradient(135deg,#35b65a,#11632c)}#sh-interaction-view-welcome [data-banner-swatch="green"]{background:radial-gradient(circle at 74% 22%,rgba(127,255,164,.86) 0 8%,transparent 9%),radial-gradient(circle at 24% 78%,rgba(255,255,255,.16),transparent 24%),linear-gradient(135deg,#062814,#0f7a35 52%,#2ecc71)}#sh-interaction-view-welcome [data-banner-swatch="dark"]{background:radial-gradient(circle at 28% 18%,rgba(101,127,160,.75),transparent 28%),linear-gradient(135deg,#090d13,#172130 56%,#2a3547)}#sh-interaction-view-welcome [data-banner-swatch="soft"]{background:radial-gradient(circle at 76% 22%,rgba(255,255,255,.78),transparent 25%),linear-gradient(135deg,#f4fff7,#d6f4df 45%,#b9ebc8)}#sh-interaction-view-welcome [data-banner-swatch="soft"]::before,#sh-interaction-view-welcome [data-banner-swatch="soft"]::after{background:rgba(42,74,56,.9);box-shadow:0 -12px 0 -2px rgba(42,74,56,.54),0 0 0 2px rgba(255,255,255,.6),0 6px 12px rgba(15,23,42,.08)}#sh-interaction-view-welcome [data-banner-swatch="color"]{background:linear-gradient(135deg,color-mix(in srgb,var(--account-accent) 90%,#ffffff 10%),color-mix(in srgb,var(--account-accent) 58%,#0d2034 42%))}#sh-interaction-view-welcome [data-banner-swatch="none"]{background:linear-gradient(180deg,#f8fafc,#f8fafc)}#sh-interaction-view-welcome [data-banner-swatch="none"]::before{background:#d0d7de;box-shadow:0 0 0 2px rgba(208,215,222,.45)}#sh-interaction-view-welcome [data-banner-swatch="none"]::after{background:#c4ccd7;box-shadow:0 -12px 0 -2px rgba(208,215,222,.82)}html[data-theme="dark"] #sh-interaction-view-welcome [data-banner-swatch="none"]{background:linear-gradient(180deg,#151b23,#151b23)}html[data-theme="dark"] #sh-interaction-view-welcome [data-banner-swatch="none"]::before{background:#6d7788;box-shadow:0 0 0 2px rgba(109,119,136,.28)}html[data-theme="dark"] #sh-interaction-view-welcome [data-banner-swatch="none"]::after{background:#7e8797;box-shadow:0 -12px 0 -2px rgba(126,135,151,.68)}#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="color"] .welcome-banner-preview:not(.has-custom-banner),#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-banner-preset="color"] .welcome-banner-preview:not(.has-custom-banner){background:linear-gradient(135deg,color-mix(in srgb,var(--welcome-accent) 90%,#ffffff 10%),color-mix(in srgb,var(--welcome-accent) 52%,#082338 48%))!important}#sh-interaction-view-welcome .shieldy-welcome-image-card[data-banner-preset="none"] .welcome-banner-preview:not(.has-custom-banner),#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-banner-preset="none"] .welcome-banner-preview:not(.has-custom-banner){background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.02))!important;border-color:rgba(255,255,255,.08)}@media(max-width:1140px){#sh-interaction-view-welcome .welcome-banner-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:640px){#sh-interaction-view-welcome .welcome-banner-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* V331 — редактор фона, градиента и акцентной полосы карточки Shieldy */
#sh-interaction-view-welcome .welcome-background-editor,
#sh-interaction-view-welcome .welcome-accent-editor{
  display:grid;
  gap:12px;
  margin:16px 0;
  padding:14px;
  border:1px solid var(--account-border);
  border-radius:13px;
  background:var(--account-surface-soft);
}
#sh-interaction-view-welcome .welcome-background-mode-field{margin:0!important}
#sh-interaction-view-welcome .welcome-background-mode{grid-template-columns:repeat(4,minmax(0,1fr))}
#sh-interaction-view-welcome .welcome-background-panel{display:grid;gap:12px}
#sh-interaction-view-welcome .welcome-background-panel[hidden],
#sh-interaction-view-welcome [data-gradient-secondary][hidden],
#sh-interaction-view-welcome [data-gradient-direction][hidden],
#sh-interaction-view-welcome .welcome-accent-controls[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-color-grid,
#sh-interaction-view-welcome .welcome-accent-grid{align-items:start}
#sh-interaction-view-welcome .welcome-background-panel .field,
#sh-interaction-view-welcome .welcome-accent-controls .field{margin:0!important}
#sh-interaction-view-welcome .welcome-gradient-direction{grid-template-columns:repeat(4,minmax(0,1fr))}
#sh-interaction-view-welcome .welcome-accent-toggle{margin:0!important;padding:0!important;border:0!important;background:transparent!important}
#sh-interaction-view-welcome .welcome-accent-controls{display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--account-border)}
#sh-interaction-view-welcome .welcome-accent-width{grid-template-columns:repeat(3,minmax(0,1fr))}
#sh-interaction-view-welcome .welcome-background-panel[data-background-panel="banner"] .welcome-banner-presets{grid-template-columns:repeat(4,minmax(0,1fr))}
#sh-interaction-view-welcome .welcome-background-panel[data-background-panel="banner"] .welcome-upload-field{margin:0!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card{position:relative!important;border-left-width:1px!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:0;
  z-index:4;
  width:var(--welcome-strip-width,5px);
  border-radius:inherit;
  border-top-right-radius:0;
  border-bottom-right-radius:0;
  background:var(--welcome-strip-color,var(--welcome-accent));
  pointer-events:none;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-accent-enabled="false"]::before{display:none}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-accent-side="right"]::before{left:auto;right:0;border-radius:inherit;border-top-left-radius:0;border-bottom-left-radius:0}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="color"] .welcome-banner-preview,
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-background-mode="color"] .welcome-banner-preview{
  background:var(--welcome-bg-1)!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="gradient"] .welcome-banner-preview,
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-background-mode="gradient"] .welcome-banner-preview{
  background:var(--welcome-background)!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="none"] .welcome-banner-preview,
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card[data-background-mode="none"] .welcome-banner-preview{
  background:linear-gradient(180deg,#1d2632,#111821)!important;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="none"] .welcome-banner-preview::after{background:rgba(0,0,0,.08)!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="color"] .welcome-banner-preview::after,
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-background-mode="gradient"] .welcome-banner-preview::after{background:linear-gradient(180deg,rgba(5,10,15,.04),rgba(5,10,15,.38))!important}
@media(max-width:900px){
  #sh-interaction-view-welcome .welcome-background-mode,
  #sh-interaction-view-welcome .welcome-gradient-direction{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  #sh-interaction-view-welcome .welcome-background-editor,
  #sh-interaction-view-welcome .welcome-accent-editor{padding:12px}
  #sh-interaction-view-welcome .welcome-background-mode,
  #sh-interaction-view-welcome .welcome-gradient-direction,
  #sh-interaction-view-welcome .welcome-accent-width{grid-template-columns:1fr}
}


/* V332: simple welcome/farewell is a text embed, never an image card */
#sh-interaction-view-welcome .welcome-inline-preview.is-simple-preview .shieldy-welcome-image-card,
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="simple"] .shieldy-welcome-image-card,
#sh-interaction-view-welcome .welcome-inline-preview.is-simple-preview .welcome-preview-card-slot,
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="simple"] .welcome-preview-card-slot{
  display:none!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text{
  position:relative;
  display:block!important;
  width:auto;
  max-width:calc(100% - 42px);
  min-height:0!important;
  margin:2px 0 0 42px!important;
  padding:10px 12px!important;
  border:1px solid #343d4b;
  border-left:4px solid var(--simple-embed-accent,#2da44e);
  border-radius:3px 9px 9px 3px;
  background:#1b2028;
  color:#e6ebf2!important;
  font-size:10px!important;
  font-style:normal!important;
  line-height:1.48!important;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text.is-empty-preview{
  color:#8994a4!important;
  font-style:italic!important;
}
html:not([data-theme="dark"]) #sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text{
  border-color:#303846;
  border-left-color:var(--simple-embed-accent,#2da44e);
  background:#1b2028;
}
@media(max-width:520px){
  #sh-interaction-view-welcome .welcome-inline-preview .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text{
    max-width:calc(100% - 38px);
    margin-left:38px!important;
    padding:9px 10px!important;
  }
}


/* V333 — accent placement, multicolor frame and toggle spacing */
#sh-interaction-view-welcome .welcome-accent-position{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
#sh-interaction-view-welcome .welcome-frame-options{
  display:grid;
  gap:12px;
  padding-top:12px;
  border-top:1px solid var(--account-border);
}
#sh-interaction-view-welcome .welcome-frame-options[hidden],
#sh-interaction-view-welcome .welcome-frame-side-colors[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-frame-single-row{
  min-height:62px!important;
  margin:0!important;
  padding:11px 18px 11px 13px!important;
}
#sh-interaction-view-welcome .welcome-frame-colors-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
#sh-interaction-view-welcome .welcome-frame-colors-head>div{
  display:grid;
  gap:2px;
  min-width:0;
}
#sh-interaction-view-welcome .welcome-frame-colors-head small{
  color:var(--account-muted);
  font-size:12px;
  line-height:1.35;
}
#sh-interaction-view-welcome .welcome-frame-colors-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin-top:10px;
}
#sh-interaction-view-welcome .welcome-frame-colors-grid .field{margin:0!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card::before{
  box-sizing:border-box;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-accent-side="top"]::before{
  left:0;
  right:0;
  top:0;
  bottom:auto;
  width:auto;
  height:var(--welcome-strip-width,5px);
  border-radius:inherit;
  border-bottom-left-radius:0;
  border-bottom-right-radius:0;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-accent-side="bottom"]::before{
  left:0;
  right:0;
  top:auto;
  bottom:0;
  width:auto;
  height:var(--welcome-strip-width,5px);
  border-radius:inherit;
  border-top-left-radius:0;
  border-top-right-radius:0;
}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-accent-side="frame"]::before{
  inset:0;
  width:auto;
  height:auto;
  border:var(--welcome-strip-width,5px) solid transparent;
  border-color:var(--welcome-strip-top,var(--welcome-strip-color)) var(--welcome-strip-right,var(--welcome-strip-color)) var(--welcome-strip-bottom,var(--welcome-strip-color)) var(--welcome-strip-left,var(--welcome-strip-color));
  border-radius:inherit;
  background:transparent;
}
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row,
#sh-interaction-view-welcome .welcome-card-enable-row{
  padding-right:18px!important;
}
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row>i,
#sh-interaction-view-welcome .welcome-card-enable-row>i{
  flex:0 0 auto;
  margin-right:2px!important;
}
@media(max-width:1040px){
  #sh-interaction-view-welcome .welcome-accent-position{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  #sh-interaction-view-welcome .welcome-accent-position{grid-template-columns:repeat(2,minmax(0,1fr))}
  #sh-interaction-view-welcome .welcome-frame-colors-head{align-items:flex-start;flex-direction:column}
  #sh-interaction-view-welcome .welcome-frame-colors-grid{grid-template-columns:1fr}
  #sh-interaction-view-welcome .welcome-frame-colors-head .compact-button{width:100%}
}


/* V334 — avatar outline customization and real switch right spacing */
#sh-interaction-view-welcome .welcome-avatar-border-editor{display:grid;gap:12px;margin-top:4px;padding:13px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}
#sh-interaction-view-welcome .welcome-avatar-border-toggle{min-height:58px!important;margin:0!important;padding:8px 76px 8px 0!important;border:0!important;background:transparent!important}
#sh-interaction-view-welcome .welcome-avatar-border-controls{display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--account-border)}
#sh-interaction-view-welcome .welcome-avatar-border-controls[hidden],#sh-interaction-view-welcome [data-avatar-border-color-field][hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-avatar-border-grid{align-items:stretch}
#sh-interaction-view-welcome .welcome-avatar-border-grid>.field{margin:0!important}
#sh-interaction-view-welcome .welcome-avatar-accent-row{min-height:64px!important;margin:0!important;padding:10px 76px 10px 12px!important;border:1px solid var(--account-border)!important;border-radius:11px!important;background:var(--account-surface)!important}
#sh-interaction-view-welcome .welcome-avatar-border-width{grid-template-columns:repeat(3,minmax(0,1fr))}
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-card-avatar-wrap{padding:var(--welcome-avatar-border-width,4px)!important;border:0!important;background:var(--welcome-avatar-border-color,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--welcome-avatar-border-color,#fff) 72%,#fff),0 8px 20px rgba(18,35,50,.20)!important}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-card-avatar-wrap{padding:var(--welcome-avatar-border-width,4px)!important;border:0!important;background:var(--welcome-avatar-border-color,#fff)!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--welcome-avatar-border-color,#fff) 72%,#fff),0 5px 16px rgba(0,0,0,.28)!important}
#sh-interaction-view-welcome .shieldy-welcome-image-card[data-avatar-border-enabled="false"] .welcome-card-avatar-wrap{padding:0!important;border:0!important;background:transparent!important;box-shadow:0 5px 16px rgba(0,0,0,.22)!important}
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row,#sh-interaction-view-welcome .welcome-card-enable-row{padding-right:86px!important}
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row>input[type="checkbox"],#sh-interaction-view-welcome .welcome-card-enable-row>input[type="checkbox"],#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row>i,#sh-interaction-view-welcome .welcome-card-enable-row>i{right:16px!important;margin-right:0!important}
#sh-interaction-view-welcome .welcome-avatar-border-toggle>input[type="checkbox"],#sh-interaction-view-welcome .welcome-avatar-border-toggle>i,#sh-interaction-view-welcome .welcome-avatar-accent-row>input[type="checkbox"],#sh-interaction-view-welcome .welcome-avatar-accent-row>i{right:14px!important}
@media(max-width:680px){#sh-interaction-view-welcome .welcome-avatar-border-grid{grid-template-columns:1fr}#sh-interaction-view-welcome .welcome-avatar-border-width{grid-template-columns:1fr}#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row,#sh-interaction-view-welcome .welcome-card-enable-row{padding-right:80px!important}}


/* V335 — isolated switch slot for welcome rows; avoids global absolute-position conflicts */
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row,
#sh-interaction-view-welcome .welcome-card-enable-row{
  padding-right:14px!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot{
  position:relative!important;
  display:block!important;
  flex:0 0 var(--profile-switch-width,50px)!important;
  width:var(--profile-switch-width,50px)!important;
  min-width:var(--profile-switch-width,50px)!important;
  height:var(--profile-switch-height,28px)!important;
  min-height:var(--profile-switch-height,28px)!important;
  margin:0 10px 0 auto!important;
  padding:0!important;
  gap:0!important;
  align-self:center!important;
  box-sizing:border-box!important;
}
#sh-interaction-view-welcome .welcome-channel-grid .welcome-mention-row>.welcome-toggle-slot{
  display:block!important;
  min-width:var(--profile-switch-width,50px)!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>input[type="checkbox"]{
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  cursor:pointer!important;
  appearance:none!important;
  -webkit-appearance:none!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>i{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #8293a8!important;
  border-radius:999px!important;
  background:#43556d!important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.15)!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>i::after{
  content:""!important;
  position:absolute!important;
  top:var(--profile-switch-offset,3px)!important;
  left:var(--profile-switch-offset,3px)!important;
  width:var(--profile-switch-knob,22px)!important;
  height:var(--profile-switch-knob,22px)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(16,35,63,.28)!important;
  transition:transform .18s ease!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>input:checked+i{
  border-color:#2da44e!important;
  background:#2da44e!important;
  box-shadow:0 0 0 3px rgba(45,164,78,.12)!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>input:checked+i::after{
  transform:translateX(var(--profile-switch-shift,22px))!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>input:focus-visible+i{
  outline:3px solid rgba(47,129,247,.24)!important;
  outline-offset:2px!important;
}
#sh-interaction-view-welcome .welcome-toggle-slot>input:disabled+i{
  opacity:.5!important;
  filter:saturate(.55)!important;
}
html[data-theme="dark"] #sh-interaction-view-welcome .welcome-toggle-slot>i{
  border-color:#60738d!important;
  background:#42546d!important;
}
html[data-theme="dark"] #sh-interaction-view-welcome .welcome-toggle-slot>input:checked+i{
  border-color:#3fb950!important;
  background:#2ea043!important;
}
@media(max-width:680px){
  #sh-interaction-view-welcome .welcome-toggle-slot{margin-right:6px!important}
}


/* V336 — consistent structural switch slots across the whole welcome/farewell card editor */
#sh-interaction-view-welcome label.toggle-row.welcome-structured-toggle{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding-right:14px!important;
}
#sh-interaction-view-welcome label.toggle-row.welcome-structured-toggle>span:first-child{
  min-width:0!important;
  flex:1 1 auto!important;
}
#sh-interaction-view-welcome label.toggle-row.welcome-structured-toggle>.welcome-toggle-slot{
  flex:0 0 var(--profile-switch-width,50px)!important;
  width:var(--profile-switch-width,50px)!important;
  min-width:var(--profile-switch-width,50px)!important;
  margin:0 8px 0 auto!important;
}
#sh-interaction-view-welcome .welcome-accent-toggle.welcome-structured-toggle{
  min-height:58px!important;
  padding:8px 14px 8px 0!important;
}
#sh-interaction-view-welcome .welcome-frame-single-row.welcome-structured-toggle{
  padding:11px 14px 11px 13px!important;
}
#sh-interaction-view-welcome .welcome-icon-settings>label.toggle-row.welcome-structured-toggle{
  padding-right:14px!important;
}
#sh-interaction-view-welcome .welcome-avatar-border-toggle.welcome-structured-toggle{
  padding:8px 14px 8px 0!important;
}
#sh-interaction-view-welcome .welcome-avatar-accent-row.welcome-structured-toggle{
  padding:10px 14px 10px 12px!important;
}
@media(max-width:680px){
  #sh-interaction-view-welcome label.toggle-row.welcome-structured-toggle>.welcome-toggle-slot{margin-right:4px!important}
}


/* V337 — Shieldy Tools heading toggle alignment */
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card > .card-title{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  column-gap:18px!important;
  width:100%!important;
  padding-right:16px!important;
}
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card > .card-title > div{
  min-width:0!important;
}
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card > .card-title > .normalized-switch{
  position:relative!important;
  inset:auto!important;
  justify-self:end!important;
  align-self:center!important;
  margin:0!important;
}
#panel-bot-control [data-module-panel="sh-other"] .feature-toggle-grid > label{
  padding-right:18px!important;
}
#panel-bot-control [data-module-panel="sh-other"] .feature-toggle-grid > label > .normalized-switch{
  position:relative!important;
  inset:auto!important;
  justify-self:end!important;
  margin:0!important;
}
@media(max-width:640px){
  #panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card > .card-title{
    column-gap:12px!important;
    padding-right:10px!important;
  }
  #panel-bot-control [data-module-panel="sh-other"] .feature-toggle-grid > label{
    padding-right:14px!important;
  }
}

/* V339 — tighten accent editor top row: smaller accent position control and shift left */
#sh-interaction-view-welcome .welcome-accent-grid{
  grid-template-columns:minmax(0,248px) minmax(0,308px);
  justify-content:start;
  gap:10px 12px;
}
#sh-interaction-view-welcome .welcome-accent-grid .field{
  min-width:0;
}
#sh-interaction-view-welcome .welcome-accent-grid .color-field{
  max-width:248px;
}
#sh-interaction-view-welcome .welcome-accent-position-field{
  max-width:308px;
  justify-self:start;
}
#sh-interaction-view-welcome .welcome-accent-position{
  max-width:308px;
  gap:3px;
  padding:3px;
}
#sh-interaction-view-welcome .welcome-accent-position span{
  min-height:32px;
  padding:6px 6px;
  font-size:10px;
  line-height:1.1;
  text-align:center;
  word-break:break-word;
}
@media(max-width:900px){
  #sh-interaction-view-welcome .welcome-accent-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #sh-interaction-view-welcome .welcome-accent-grid .color-field,
  #sh-interaction-view-welcome .welcome-accent-position-field,
  #sh-interaction-view-welcome .welcome-accent-position{
    max-width:none;
  }
}
@media(max-width:620px){
  #sh-interaction-view-welcome .welcome-accent-grid{
    grid-template-columns:1fr;
    gap:12px;
  }
}


/* V343 — static Shieldy cards with separately configurable native Embeds */
#sh-interaction-view-welcome .welcome-native-embed-editor{display:grid;gap:12px;margin:14px 0;padding:14px;border:1px solid var(--account-border);border-radius:13px;background:var(--account-surface-soft)}
#sh-interaction-view-welcome .welcome-native-embed-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--account-border)}
#sh-interaction-view-welcome .welcome-native-embed-editor-head>div{display:grid;gap:3px;min-width:0}
#sh-interaction-view-welcome .welcome-native-embed-editor-head small{color:var(--account-muted);font-size:12px;line-height:1.42}
#sh-interaction-view-welcome .welcome-native-embed-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
#sh-interaction-view-welcome .welcome-native-embed-mode-card[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-native-embed-mode-card{display:grid;align-content:start;gap:10px;padding:13px;border:1px solid var(--account-border);border-radius:12px;background:var(--account-surface);transition:border-color .16s ease,box-shadow .16s ease}
#sh-interaction-view-welcome .welcome-native-embed-mode-card.is-active-mode{border-color:color-mix(in srgb,var(--account-accent) 58%,var(--account-border));box-shadow:0 0 0 2px color-mix(in srgb,var(--account-accent) 10%,transparent)}
#sh-interaction-view-welcome .welcome-native-embed-mode-head{display:flex;align-items:center;gap:10px;padding-bottom:9px;border-bottom:1px solid var(--account-border)}
#sh-interaction-view-welcome .welcome-native-embed-mode-head>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:color-mix(in srgb,var(--account-accent) 12%,var(--account-surface-soft));color:var(--account-accent-strong);font-size:13px;font-weight:950}
#sh-interaction-view-welcome .welcome-native-embed-mode-head>div{display:grid;gap:2px;min-width:0}
#sh-interaction-view-welcome .welcome-native-embed-mode-head small{color:var(--account-muted);font-size:11px;line-height:1.35}
#sh-interaction-view-welcome .welcome-native-embed-mode-card .field{margin:0!important}
#sh-interaction-view-welcome .welcome-native-embed-shell{--welcome-native-embed-accent:#2da44e;display:grid;gap:7px;width:100%;padding:11px 11px 10px 14px;border:1px solid #343d4b;border-left:4px solid var(--welcome-native-embed-accent);border-radius:4px 9px 9px 4px;background:#1b2028;color:#e6ebf2;box-shadow:0 3px 10px rgba(0,0,0,.12)}
#sh-interaction-view-welcome .welcome-native-embed-shell>[data-preview-native-embed-title]{font-size:11px;line-height:1.35;color:#fff}
#sh-interaction-view-welcome .welcome-native-embed-shell>[data-preview-native-embed-description]{margin:0;color:#cbd3df;font-size:10px;line-height:1.42}
#sh-interaction-view-welcome .welcome-native-embed-shell>[data-preview-native-embed-footer]{color:#8994a4;font-size:9px;line-height:1.3}
#sh-interaction-view-welcome .welcome-native-embed-image-slot{display:block;min-width:0}
#sh-interaction-view-welcome .welcome-native-embed-image-slot .shieldy-welcome-image-card{width:100%;margin:2px 0 0!important}
#sh-interaction-view-welcome .welcome-inline-preview.is-simple-preview .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text,
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="simple"] .welcome-preview-message-block.is-simple-message .shieldy-preview-plain-text{max-width:calc(100% - 42px);margin:2px 0 0 42px!important;padding:0!important;border:0!important;background:transparent!important;color:#dfe5ed!important;font-size:10px!important;line-height:1.48!important;box-shadow:none!important}
#sh-interaction-view-welcome .welcome-upload-field input[type="file"]:invalid~*{border-color:#cf222e}
@media(max-width:900px){#sh-interaction-view-welcome .welcome-native-embed-grid{grid-template-columns:1fr}}
@media(max-width:620px){#sh-interaction-view-welcome .welcome-native-embed-editor{padding:12px}#sh-interaction-view-welcome .welcome-native-embed-editor-head{flex-direction:column}}


.admin-bot-role-config-v348{display:grid;gap:14px;padding:16px;border:1px solid var(--account-border);border-radius:15px;background:var(--account-surface-soft)}
.admin-bot-role-config-v348 .card-title h4{margin:0;font-size:17px}.admin-bot-role-config-v348 .card-title p{margin:4px 0 0;color:var(--account-muted)}
.admin-bot-role-fields-v348{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-bot-role-fields-v348 .field{display:grid;gap:7px}.admin-bot-role-fields-v348 .field span{font-size:12px;font-weight:900;color:var(--account-muted)}.admin-bot-role-fields-v348 input{width:100%;min-width:0}
.admin-bot-role-actions-v348{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.admin-bot-role-actions-v348 small{color:var(--account-muted)}
@media(max-width:1000px){.admin-bot-role-fields-v348{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.admin-bot-role-fields-v348{grid-template-columns:1fr}}


/* V350 — save/reset availability is tied to real draft state, never to dependent-module disabling. */
#panel-bot-control :is(.sticky-save-bar,.universal-save-bar-v186,.form-actions,.prefix-card-actions).has-unsaved-changes{pointer-events:auto!important;visibility:visible!important;}
#panel-bot-control :is(.sticky-save-bar,.universal-save-bar-v186,.form-actions,.prefix-card-actions).has-unsaved-changes>.discard-unsaved-button:not([data-busy="1"]){pointer-events:auto!important;opacity:1!important;}
#panel-bot-control :is(.sticky-save-bar,.universal-save-bar-v186,.form-actions,.prefix-card-actions).has-unsaved-changes button:not(:disabled){cursor:pointer!important;}


/* ===== V355 — Shieldy reaction roles: bot-authored messages require Premium ===== */
#sh-interaction-view-reactions .rr-premium-source-card strong{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  flex-wrap:wrap!important;
}
#sh-interaction-view-reactions .rr-premium-source-card .premium-feature-badge{
  min-height:22px!important;
  padding:3px 7px!important;
  font-size:10px!important;
  line-height:1!important;
}
#sh-interaction-view-reactions .rr-premium-source-card.is-premium-locked{
  border-color:color-mix(in srgb,#d29922 42%,var(--account-border))!important;
  background:linear-gradient(135deg,color-mix(in srgb,#d29922 5%,var(--account-surface)),var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-premium-source-card.is-premium-locked .rr-choice-icon{
  color:#b7791f!important;
  background:color-mix(in srgb,#d29922 10%,var(--account-surface-soft))!important;
}
#sh-interaction-view-reactions .rr-source-premium-notice{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:12px!important;
  padding:11px 13px!important;
  border:1px solid color-mix(in srgb,#d29922 38%,var(--account-border))!important;
  border-radius:11px!important;
  background:color-mix(in srgb,#d29922 6%,var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-source-premium-notice[hidden]{display:none!important}
#sh-interaction-view-reactions .rr-source-premium-notice>div{display:grid!important;gap:3px!important}
#sh-interaction-view-reactions .rr-source-premium-notice strong{color:var(--account-text)!important;font-size:12px!important}
#sh-interaction-view-reactions .rr-source-premium-notice span{color:var(--account-muted)!important;font-size:11px!important;line-height:1.4!important}
#sh-interaction-view-reactions .rr-source-premium-notice a{
  flex:0 0 auto!important;
  color:#b7791f!important;
  font-size:12px!important;
  font-weight:900!important;
  text-decoration:none!important;
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-source-premium-notice{align-items:flex-start!important;flex-direction:column!important}
}


/* V357 — flatten Shieldy welcome/farewell card editor: one Premium container only */
#sh-interaction-view-welcome .welcome-native-embed-editor{
  margin:2px 0 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  gap:10px;
}
#sh-interaction-view-welcome .welcome-native-embed-editor-head{
  padding:0 0 9px;
  border-bottom:1px solid color-mix(in srgb,#d4a72c 35%,var(--account-border));
}
#sh-interaction-view-welcome .welcome-native-embed-mode-card{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  gap:10px;
}
#sh-interaction-view-welcome .welcome-native-embed-mode-card.is-active-mode{
  border-color:transparent;
  box-shadow:none;
}
#sh-interaction-view-welcome .welcome-native-embed-mode-head{
  padding:0 0 9px;
  border-bottom:1px solid var(--account-border);
}
#sh-interaction-view-welcome .welcome-native-embed-mode-head>span{
  background:color-mix(in srgb,var(--account-accent) 10%,transparent);
}
@media(max-width:620px){
  #sh-interaction-view-welcome .welcome-native-embed-editor{padding:0}
}


/* ===== V359: reaction roles — one emoji, free buttons and clear button colors ===== */
#sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode),
#sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).is-layout-stable,
#sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).rr-choice-item{
  grid-template-columns:72px minmax(120px,.55fr) minmax(210px,1fr) 130px!important;
}
#sh-interaction-view-reactions .reaction-role-item-row [hidden]{display:none!important}
#sh-interaction-view-reactions .reaction-role-item-row .rr-button-style-field select{
  cursor:pointer!important;
  font-weight:800!important;
}
#sh-interaction-view-reactions .reaction-role-item-row .rr-emoji:invalid{
  border-color:#cf222e!important;
  box-shadow:0 0 0 2px rgba(207,34,46,.12)!important;
}
#sh-interaction-view-reactions .rr-reactions-preview>span{
  min-width:38px!important;
  justify-content:center!important;
}
#sh-interaction-view-reactions .rr-reactions-preview>span em{display:none!important}
@media(max-width:1040px){
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode),
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).is-layout-stable,
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).rr-choice-item{
    grid-template-columns:64px minmax(105px,.55fr) minmax(150px,1fr) 122px!important;
  }
}
@media(max-width:760px){
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode),
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).is-layout-stable,
  #sh-interaction-view-reactions .reaction-role-item-row:not(.is-button-mode).rr-choice-item{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
}


/* v362 — Roles and reactions simplified without changing saved field identifiers. */
#sh-interaction-view-reactions .rr-settings-card{
  padding:18px!important;
  overflow:visible!important;
}
#sh-interaction-view-reactions .rr-settings-section{
  padding:0!important;
  margin:0!important;
}
#sh-interaction-view-reactions .rr-settings-section+.rr-settings-section{
  margin-top:20px!important;
  padding-top:20px!important;
  border-top:1px solid var(--account-border)!important;
}
#sh-interaction-view-reactions .rr-subsection-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
  margin-bottom:12px!important;
}
#sh-interaction-view-reactions .rr-subsection-head>div{
  display:grid!important;
  gap:3px!important;
}
#sh-interaction-view-reactions .rr-subsection-head strong{
  color:var(--account-text)!important;
  font-size:15px!important;
}
#sh-interaction-view-reactions .rr-subsection-head small{
  color:var(--account-muted)!important;
  line-height:1.45!important;
}
#sh-interaction-view-reactions .rr-subsection-head-actions{
  align-items:center!important;
}
#sh-interaction-view-reactions .rr-standard-message-note{
  justify-content:space-between!important;
  gap:14px!important;
  margin-top:14px!important;
}
#sh-interaction-view-reactions .rr-standard-message-note>div{
  display:grid!important;
  gap:3px!important;
}
#sh-interaction-view-reactions .rr-customization-toggle{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:72px!important;
  margin-top:12px!important;
  padding:13px 14px!important;
  border:1px solid color-mix(in srgb,#d29922 34%,var(--account-border))!important;
  border-radius:12px!important;
  background:color-mix(in srgb,#d29922 4%,var(--account-surface))!important;
  cursor:pointer!important;
}
#sh-interaction-view-reactions .rr-customization-toggle>span:first-child{
  display:grid!important;
  gap:3px!important;
}
#sh-interaction-view-reactions .rr-customization-toggle small{
  color:var(--account-muted)!important;
}
#sh-interaction-view-reactions .rr-customization-control{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex:0 0 auto!important;
}
#sh-interaction-view-reactions .rr-customization-toggle.is-premium-locked{
  opacity:.78!important;
}
#sh-interaction-view-reactions .rr-customization-toggle.is-disabled{
  cursor:not-allowed!important;
}
#sh-interaction-view-reactions .rr-source-card .rr-premium-customization,
#sh-interaction-view-reactions .rr-settings-card .rr-premium-customization{
  margin-top:14px!important;
  padding:16px 0 0!important;
  border:0!important;
  border-top:1px solid color-mix(in srgb,#d29922 35%,var(--account-border))!important;
  border-radius:0!important;
  background:transparent!important;
}
#sh-interaction-view-reactions #reaction-role-preview-card[hidden]{display:none!important}
#sh-interaction-view-reactions .rr-bottom-preview-card{
  margin-top:0!important;
}
@media(max-width:700px){
  #sh-interaction-view-reactions .rr-subsection-head-actions,
  #sh-interaction-view-reactions .rr-customization-toggle{
    align-items:flex-start!important;
    flex-direction:column!important;
  }
  #sh-interaction-view-reactions .rr-customization-control{
    width:100%!important;
    justify-content:space-between!important;
  }
}


/* Shieldy welcome/farewell native Embed editor — V367 */
#sh-interaction-view-welcome .welcome-native-embed-editor-head .premium-feature-badge{flex:0 0 auto}
#sh-interaction-view-welcome .welcome-embed-variable-groups{display:grid;gap:9px;padding-top:2px}
#sh-interaction-view-welcome .welcome-embed-variable-row{display:grid;gap:5px}
#sh-interaction-view-welcome .welcome-embed-variable-row>small{color:var(--account-muted);font-size:11px;font-weight:900}
#sh-interaction-view-welcome .compact-variable-chips{gap:5px}
#sh-interaction-view-welcome .compact-variable-chips button{min-height:27px;padding:4px 8px;font-size:10px;border-radius:8px}
@media(max-width:620px){#sh-interaction-view-welcome .welcome-native-embed-editor-head .premium-feature-badge{align-self:flex-start}}


/* V368 — Shieldy custom welcome/farewell banner preview uses the real 1200x600 (2:1) canvas. */
#sh-interaction-view-welcome .shieldy-welcome-image-card .welcome-banner-preview.has-custom-banner{
  aspect-ratio:2 / 1!important;
  min-height:0!important;
  height:auto!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-color:#101720!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:2 / 1!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .shieldy-welcome-image-card .welcome-banner-preview.has-custom-banner{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}


/* ===== V373: standard emoji picker inside Shieldy reaction-role rows ===== */
#sh-interaction-view-reactions #reaction-role-items,
#sh-interaction-view-reactions .reaction-role-item-row,
#sh-interaction-view-reactions .rr-reaction-field,
#sh-interaction-view-reactions .rr-emoji-control{
  overflow:visible!important;
}
#sh-interaction-view-reactions .reaction-role-item-row{
  position:relative!important;
}
#sh-interaction-view-reactions .reaction-role-item-row.is-emoji-picker-open{
  z-index:40!important;
}
#sh-interaction-view-reactions .rr-emoji-control{
  position:relative!important;
  width:100%!important;
  height:54px!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  padding-left:16px!important;
  padding-right:112px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  position:absolute!important;
  top:7px!important;
  right:7px!important;
  z-index:2!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 11px!important;
  border:1px solid color-mix(in srgb,var(--account-accent) 28%,var(--account-border))!important;
  border-radius:11px!important;
  background:color-mix(in srgb,var(--account-accent) 8%,var(--account-surface))!important;
  color:var(--account-text)!important;
  box-shadow:none!important;
  font:800 12px/1 Nunito,sans-serif!important;
  cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger:hover,
#sh-interaction-view-reactions .rr-emoji-picker-trigger[aria-expanded="true"]{
  border-color:color-mix(in srgb,var(--account-accent) 58%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 15%,var(--account-surface))!important;
  box-shadow:0 7px 18px color-mix(in srgb,var(--account-accent) 14%,transparent)!important;
  transform:translateY(-1px)!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:20px!important;
  min-width:20px!important;
  font:18px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-card{
  position:absolute!important;
  top:calc(100% + 9px)!important;
  left:0!important;
  z-index:80!important;
  width:min(372px,calc(100vw - 34px))!important;
  padding:12px!important;
  border:1px solid color-mix(in srgb,var(--account-accent) 24%,var(--account-border))!important;
  border-radius:16px!important;
  background:color-mix(in srgb,var(--account-surface) 96%,var(--account-accent) 4%)!important;
  box-shadow:0 22px 52px rgba(15,23,42,.22),0 0 0 1px rgba(255,255,255,.04) inset!important;
  color:var(--account-text)!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-card[hidden]{display:none!important}
#sh-interaction-view-reactions .rr-emoji-picker-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0 0 9px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-head strong{
  font-size:14px!important;
  line-height:1.2!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-close{
  display:grid!important;
  place-items:center!important;
  width:30px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:9px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-muted)!important;
  font:900 19px/1 Nunito,sans-serif!important;
  cursor:pointer!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-search{
  position:relative!important;
  display:block!important;
  margin-bottom:9px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-search>span{
  position:absolute!important;
  left:12px!important;
  top:50%!important;
  z-index:1!important;
  transform:translateY(-50%)!important;
  color:var(--account-muted)!important;
  font-size:18px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-search input{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 12px 0 36px!important;
  border-radius:11px!important;
  font-size:13px!important;
  line-height:40px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-tabs{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  overflow-x:auto!important;
  padding:2px 1px 7px!important;
  scrollbar-width:thin!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-tab{
  flex:0 0 auto!important;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  min-height:34px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  font:19px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
  cursor:pointer!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-tab:hover{
  background:var(--account-surface-soft)!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-tab.is-active{
  border-color:color-mix(in srgb,var(--account-accent) 32%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 12%,var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-grid{
  display:grid!important;
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:4px!important;
  max-height:218px!important;
  overflow-y:auto!important;
  padding:5px!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 72%,transparent)!important;
  scrollbar-width:thin!important;
  scrollbar-color:color-mix(in srgb,var(--account-accent) 45%,var(--account-border)) transparent!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-grid::-webkit-scrollbar{width:8px!important}
#sh-interaction-view-reactions .rr-emoji-picker-grid::-webkit-scrollbar-thumb{
  border:2px solid transparent!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--account-accent) 42%,var(--account-border))!important;
  background-clip:padding-box!important;
}
#sh-interaction-view-reactions .rr-emoji-choice{
  display:grid!important;
  place-items:center!important;
  aspect-ratio:1!important;
  min-width:0!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  font:23px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
  cursor:pointer!important;
  transition:background .13s ease,border-color .13s ease,transform .13s ease!important;
}
#sh-interaction-view-reactions .rr-emoji-choice:hover{
  border-color:color-mix(in srgb,var(--account-accent) 32%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 13%,var(--account-surface))!important;
  transform:translateY(-2px) scale(1.08)!important;
}
#sh-interaction-view-reactions .rr-emoji-choice.is-selected{
  border-color:color-mix(in srgb,var(--account-accent) 58%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 18%,var(--account-surface))!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-note{
  display:block!important;
  margin:8px 2px 0!important;
  color:var(--account-muted)!important;
  font-size:11px!important;
  line-height:1.35!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-empty{
  grid-column:1/-1!important;
  padding:28px 8px!important;
  color:var(--account-muted)!important;
  text-align:center!important;
  font-size:13px!important;
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-emoji-picker-card{
    position:fixed!important;
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    top:auto!important;
    width:auto!important;
    max-height:min(72vh,560px)!important;
  }
  #sh-interaction-view-reactions .rr-emoji-picker-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    max-height:34vh!important;
  }
}
@media(max-width:430px){
  #sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{display:none!important}
  #sh-interaction-view-reactions .rr-emoji-picker-trigger{width:40px!important;padding:0!important}
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{padding-right:56px!important}
  #sh-interaction-view-reactions .rr-emoji-picker-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){
  #sh-interaction-view-reactions .rr-emoji-picker-trigger,
  #sh-interaction-view-reactions .rr-emoji-choice{transition:none!important}
}

/* V376 — Shieldy polls option editor and always-readable automod */
.shieldy-poll-options-field{display:grid!important;gap:10px!important}
.shieldy-poll-options-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.shieldy-poll-options-head>div{display:grid;gap:4px}
.shieldy-poll-options-head label{font-weight:900}
.shieldy-poll-options-head small,.shieldy-poll-options-footer small{color:var(--account-muted);font-size:11px;line-height:1.4}
.shieldy-poll-option-list{display:grid;gap:8px}
.shieldy-poll-option-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px;align-items:center}
.shieldy-poll-option-order{display:grid;place-items:center;width:34px;height:40px;border:1px solid var(--account-border);border-radius:10px;background:var(--account-surface-soft);color:var(--account-muted);font-size:11px;font-weight:900}
.shieldy-poll-option-input{width:100%;min-width:0;min-height:40px!important;margin:0!important}
.shieldy-poll-option-remove{min-height:40px!important;height:40px!important;white-space:nowrap}
.shieldy-poll-option-remove:disabled{opacity:.42!important;cursor:not-allowed!important}
.shieldy-poll-options-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.shieldy-poll-options-footer>span{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border:1px solid var(--account-border);border-radius:999px;background:var(--account-surface-soft);color:var(--account-muted);font-size:10px;font-weight:900}
@media(max-width:560px){
  .shieldy-poll-option-row{grid-template-columns:32px minmax(0,1fr)}
  .shieldy-poll-option-remove{grid-column:2;width:100%}
}

/* Automod has no global off-state. Disabled individual rules stay fully readable and editable. */
#shieldy-settings-form #automod-module-list,
#shieldy-settings-form #automod-module-list .automod-module,
#shieldy-settings-form #automod-module-list .automod-module .automod-module-summary,
#shieldy-settings-form #automod-module-list .automod-module .automod-module-body,
#shieldy-settings-form .automod-shared-card,
#shieldy-settings-form .automod-shared-card.is-function-disabled{
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
  cursor:default!important;
  user-select:auto!important;
}
#shieldy-settings-form #automod-module-list.is-disabled .automod-module,
#shieldy-settings-form #automod-module-list.is-disabled .automod-module *{
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
  cursor:default!important;
}

/* V377 — repair reaction-role emoji/button control layout */
#sh-interaction-view-reactions .reaction-role-item-row,
#sh-interaction-view-reactions .reaction-role-item-row.is-layout-stable,
#sh-interaction-view-reactions .reaction-role-item-row.rr-choice-item{
  grid-template-columns:72px minmax(190px,.68fr) minmax(170px,1fr) minmax(160px,.78fr) 140px!important;
}
#sh-interaction-view-reactions .reaction-role-item-row.is-button-mode,
#sh-interaction-view-reactions .reaction-role-item-row.is-button-mode.is-layout-stable{
  grid-template-columns:72px minmax(190px,.68fr) minmax(170px,.88fr) minmax(160px,.72fr) minmax(145px,.58fr) 130px!important;
}
#sh-interaction-view-reactions .rr-emoji-control{
  position:relative!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:7px!important;
  width:100%!important;
  height:44px!important;
  min-height:44px!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  position:static!important;
  display:block!important;
  width:56px!important;
  min-width:56px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  text-align:center!important;
  font:21px/44px "Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  position:static!important;
  inset:auto!important;
  z-index:2!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  transform:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger:hover,
#sh-interaction-view-reactions .rr-emoji-picker-trigger[aria-expanded="true"]{
  transform:none!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-card{
  top:calc(100% + 9px)!important;
  left:0!important;
  right:auto!important;
}
@media(max-width:1180px){
  #sh-interaction-view-reactions .reaction-role-item-row,
  #sh-interaction-view-reactions .reaction-role-item-row.is-layout-stable,
  #sh-interaction-view-reactions .reaction-role-item-row.rr-choice-item,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode,
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode.is-layout-stable{
    grid-template-columns:68px minmax(180px,.72fr) minmax(160px,1fr) minmax(150px,.8fr) 132px!important;
  }
  #sh-interaction-view-reactions .reaction-role-item-row.is-button-mode .rr-button-style-field{
    grid-column:auto!important;
  }
}
@media(max-width:900px){
  #sh-interaction-view-reactions .rr-emoji-control{
    grid-template-columns:54px minmax(0,1fr)!important;
  }
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
    width:54px!important;
    min-width:54px!important;
  }
}
@media(max-width:430px){
  #sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{display:inline!important}
  #sh-interaction-view-reactions .rr-emoji-picker-trigger{width:100%!important;padding:0 10px!important}
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{padding:0!important}
}

/* V379 — native Embed switch + compact reaction-role emoji control */
#sh-interaction-view-welcome .welcome-native-embed-mode-head{
  justify-content:flex-start!important;
}
#sh-interaction-view-welcome .welcome-native-embed-mode-head>div{
  flex:1 1 auto!important;
}
#sh-interaction-view-welcome .welcome-native-embed-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:9px!important;
  flex:0 0 auto!important;
  margin-left:auto!important;
  padding:5px 7px 5px 10px!important;
  border:1px solid color-mix(in srgb,var(--account-accent) 28%,var(--account-border))!important;
  border-radius:999px!important;
  background:color-mix(in srgb,var(--account-accent) 6%,var(--account-surface))!important;
  color:var(--account-text)!important;
  cursor:pointer!important;
}
#sh-interaction-view-welcome .welcome-native-embed-toggle>span{
  width:auto!important;
  height:auto!important;
  flex:0 0 auto!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font-size:11px!important;
  font-weight:900!important;
}
#sh-interaction-view-welcome .welcome-native-embed-toggle .ui-switch-control{
  flex:0 0 auto!important;
}
#sh-interaction-view-welcome .welcome-native-embed-disabled-note{
  display:grid!important;
  gap:3px!important;
  padding:11px 12px!important;
  border:1px dashed var(--account-border)!important;
  border-radius:11px!important;
  background:var(--account-surface-soft)!important;
}
#sh-interaction-view-welcome .welcome-native-embed-disabled-note[hidden]{display:none!important}
#sh-interaction-view-welcome .welcome-native-embed-disabled-note strong{font-size:13px!important}
#sh-interaction-view-welcome .welcome-native-embed-disabled-note small{color:var(--account-muted)!important;font-size:11px!important;line-height:1.4!important}
#sh-interaction-view-welcome .welcome-native-embed-mode-card.is-embed-disabled .welcome-native-embed-mode-head{
  border-bottom-color:transparent!important;
}
#sh-interaction-view-welcome .welcome-native-embed-shell.is-embed-disabled-preview{
  gap:0!important;
  padding:0!important;
  border:0!important;
  border-left:0!important;
  border-radius:9px!important;
  background:transparent!important;
  box-shadow:none!important;
}
#sh-interaction-view-welcome .welcome-native-embed-shell.is-embed-disabled-preview .welcome-native-embed-image-slot{
  display:block!important;
  width:100%!important;
}
#sh-interaction-view-welcome .welcome-native-embed-shell.is-embed-disabled-preview .shieldy-welcome-image-card{
  margin:0!important;
}

#sh-interaction-view-reactions .rr-emoji-control{
  display:grid!important;
  grid-template-columns:72px minmax(118px,1fr)!important;
  justify-content:start!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  max-width:236px!important;
  min-width:196px!important;
  height:46px!important;
  min-height:46px!important;
  overflow:visible!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
  box-shadow:inset 0 1px 0 color-mix(in srgb,#fff 24%,transparent)!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  position:static!important;
  width:72px!important;
  min-width:72px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 8px!important;
  border:0!important;
  border-right:1px solid var(--account-border)!important;
  border-radius:13px 0 0 13px!important;
  background:var(--account-surface-soft)!important;
  text-align:center!important;
  font:26px/44px "Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
  box-shadow:none!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji:focus{
  outline:0!important;
  box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--account-accent) 48%,transparent)!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  position:static!important;
  width:100%!important;
  min-width:0!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0 11px 11px 0!important;
  background:color-mix(in srgb,#2da44e 8%,var(--account-surface))!important;
  color:var(--account-text)!important;
  box-shadow:none!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger:hover,
#sh-interaction-view-reactions .rr-emoji-picker-trigger[aria-expanded="true"]{
  background:color-mix(in srgb,#2da44e 16%,var(--account-surface))!important;
  border-color:transparent!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:20px!important;
  min-width:20px!important;
  font-size:16px!important;
  line-height:1!important;
  opacity:.85!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{
  font-weight:900!important;
}
#sh-interaction-view-reactions .rr-reaction-field{
  justify-items:start!important;
}
@media(max-width:900px){
  #sh-interaction-view-welcome .welcome-native-embed-mode-head{align-items:flex-start!important;flex-wrap:wrap!important}
  #sh-interaction-view-welcome .welcome-native-embed-toggle{margin-left:38px!important}
  #sh-interaction-view-reactions .rr-emoji-control{grid-template-columns:68px minmax(110px,1fr)!important;width:100%!important;max-width:230px!important;min-width:188px!important}
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{width:68px!important;min-width:68px!important;font-size:24px!important}
  #sh-interaction-view-reactions .rr-emoji-picker-trigger{width:100%!important;min-width:0!important}
}

/* ===== V380 — Shieldy Own Messages workspace redesign ===== */
#sh-interaction-view-messages .custom-message-workflow{display:none!important}
#sh-interaction-view-messages .custom-message-layout{
  grid-template-columns:minmax(0,1fr) minmax(320px,360px)!important;
  gap:16px!important;
}
#sh-interaction-view-messages .custom-message-editor-column{min-width:0!important}
#sh-interaction-view-messages .custom-message-workspace-card{
  display:grid!important;
  grid-template-columns:minmax(230px,270px) minmax(0,1fr)!important;
  grid-template-rows:auto auto auto auto auto!important;
  gap:12px 14px!important;
  align-items:start!important;
  padding:16px!important;
}
#sh-interaction-view-messages .custom-message-workspace-head{
  grid-column:1/-1!important;
  margin:0 0 2px!important;
  padding:0 0 14px!important;
  border-bottom:1px solid var(--account-border)!important;
}
#sh-interaction-view-messages .custom-message-workspace-head p{margin:3px 0 0!important;color:var(--account-muted)!important;font-size:12px!important}
#sh-interaction-view-messages .custom-message-workspace-status{
  display:inline-flex!important;align-items:center!important;min-height:30px!important;padding:5px 10px!important;
  border:1px solid var(--account-border)!important;border-radius:999px!important;
  background:var(--account-surface-soft)!important;color:var(--account-muted)!important;
  font-size:11px!important;font-weight:900!important;white-space:nowrap!important
}
#sh-interaction-view-messages .shieldy-step-channel{grid-column:1!important;grid-row:2!important}
#sh-interaction-view-messages .custom-channel-inline-settings{grid-column:1!important;grid-row:3!important}
#sh-interaction-view-messages .shieldy-step-sequence{grid-column:1!important;grid-row:4!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure{grid-column:1!important;grid-row:5!important}
#sh-interaction-view-messages .custom-format-toggle{grid-column:2!important;grid-row:2!important;margin:0!important}
#sh-interaction-view-messages #custom-message-embed-options{
  grid-column:2!important;grid-row:3/7!important;
  min-width:0!important;margin:0!important;padding:14px!important;
  border:1px solid var(--account-border)!important;border-radius:14px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 24%,transparent)!important
}
#sh-interaction-view-messages #custom-message-content{display:none!important}
#sh-interaction-view-messages .custom-message-library-panel,
#sh-interaction-view-messages .custom-channel-inline-settings,
#sh-interaction-view-messages .shieldy-delivery-disclosure{
  margin:0!important;padding:12px!important;border:1px solid var(--account-border)!important;
  border-radius:13px!important;background:color-mix(in srgb,var(--account-surface-soft) 34%,transparent)!important;
  box-shadow:none!important;overflow:visible!important
}
#sh-interaction-view-messages .custom-channel-inline-settings{display:block!important}
#sh-interaction-view-messages .custom-channel-inline-title{display:grid!important;gap:2px!important;margin-bottom:10px!important}
#sh-interaction-view-messages .custom-channel-inline-title strong{font-size:12px!important}
#sh-interaction-view-messages .custom-channel-inline-title small{color:var(--account-muted)!important;font-size:10px!important;line-height:1.35!important}
#sh-interaction-view-messages .custom-channel-inline-settings .shieldy-advanced-body{
  padding:0!important;border:0!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important
}
#sh-interaction-view-messages .custom-channel-inline-settings .field{margin:0!important;gap:5px!important}
#sh-interaction-view-messages .custom-channel-inline-settings .field label{font-size:11px!important}
#sh-interaction-view-messages .custom-channel-inline-settings .field small{font-size:10px!important;line-height:1.35!important}
#sh-interaction-view-messages .shieldy-step-heading{margin:0 0 10px!important}
#sh-interaction-view-messages .shieldy-step-heading>span:first-child{display:none!important}
#sh-interaction-view-messages .shieldy-step-heading strong{font-size:13px!important}
#sh-interaction-view-messages .shieldy-step-heading small{font-size:10px!important}
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head{margin:0!important;display:flex!important;justify-content:flex-end!important}
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head>div{display:none!important}
#sh-interaction-view-messages .custom-channel-config-head button,
#sh-interaction-view-messages .custom-sequence-head-actions button{width:100%!important;min-height:36px!important}
#sh-interaction-view-messages .custom-channel-config-list,
#sh-interaction-view-messages .custom-sequence-list{display:grid!important;gap:8px!important;margin-top:9px!important}
#sh-interaction-view-messages .custom-channel-config-item{
  display:grid!important;grid-template-columns:minmax(0,1fr) 32px!important;gap:7px!important;
  padding:7px!important;border:1px solid var(--account-border)!important;border-radius:11px!important;
  background:var(--account-surface)!important;transition:border-color .16s ease,background .16s ease!important
}
#sh-interaction-view-messages .custom-channel-config-item.is-active{
  border-color:color-mix(in srgb,#2da44e 58%,var(--account-border))!important;
  background:color-mix(in srgb,#2da44e 7%,var(--account-surface))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,#2da44e 9%,transparent)!important
}
#sh-interaction-view-messages .custom-channel-config-select{
  display:grid!important;grid-template-columns:30px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;
  min-width:0!important;padding:0!important;border:0!important;background:transparent!important;color:var(--account-text)!important;text-align:left!important;cursor:pointer!important
}
#sh-interaction-view-messages .custom-channel-config-icon{
  display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:9px!important;
  background:var(--account-surface-soft)!important;color:var(--account-accent)!important;font-size:12px!important;font-weight:950!important
}
#sh-interaction-view-messages .custom-channel-config-copy{display:grid!important;gap:1px!important;min-width:0!important}
#sh-interaction-view-messages .custom-channel-config-copy strong{font-size:11px!important}
#sh-interaction-view-messages .custom-channel-config-copy small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--account-muted)!important;font-size:9px!important}
#sh-interaction-view-messages .custom-channel-config-copy em{font-style:normal!important;color:var(--account-muted)!important;font-size:9px!important;font-weight:800!important}
#sh-interaction-view-messages .custom-channel-config-state{color:#16833a!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}
#sh-interaction-view-messages .custom-channel-config-delete{width:32px!important;min-width:32px!important;height:32px!important;align-self:center!important}
#sh-interaction-view-messages .custom-sequence-head{display:grid!important;gap:8px!important}
#sh-interaction-view-messages .custom-sequence-head-actions{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:8px!important;align-items:center!important}
#sh-interaction-view-messages .custom-message-limit{
  display:inline-flex!important;justify-content:center!important;min-width:64px!important;padding:6px 8px!important;
  border:1px solid var(--account-border)!important;border-radius:9px!important;background:var(--account-surface)!important;
  color:var(--account-muted)!important;font-size:10px!important;font-weight:900!important
}
#sh-interaction-view-messages .custom-sequence-item{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;
  padding:8px!important;border:1px solid var(--account-border)!important;border-radius:11px!important;
  background:var(--account-surface)!important;transition:border-color .16s ease,background .16s ease!important
}
#sh-interaction-view-messages .custom-sequence-item.is-active{
  border-color:color-mix(in srgb,#2da44e 58%,var(--account-border))!important;
  background:color-mix(in srgb,#2da44e 7%,var(--account-surface))!important;
  box-shadow:0 0 0 2px color-mix(in srgb,#2da44e 8%,transparent)!important
}
#sh-interaction-view-messages .custom-sequence-select{
  display:grid!important;grid-template-columns:28px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;
  width:100%!important;padding:0!important;border:0!important;background:transparent!important;color:var(--account-text)!important;text-align:left!important;cursor:pointer!important
}
#sh-interaction-view-messages .custom-sequence-index{
  display:grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:9px!important;
  background:var(--account-surface-soft)!important;color:var(--account-muted)!important;font-size:10px!important;font-weight:950!important
}
#sh-interaction-view-messages .custom-sequence-copy{display:grid!important;gap:2px!important;min-width:0!important}
#sh-interaction-view-messages .custom-sequence-copy strong{font-size:11px!important}
#sh-interaction-view-messages .custom-sequence-copy small{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:var(--account-muted)!important;font-size:9px!important}
#sh-interaction-view-messages .custom-sequence-state{color:#16833a!important;font-size:9px!important;font-weight:900!important;white-space:nowrap!important}
#sh-interaction-view-messages .custom-sequence-actions{
  display:grid!important;grid-template-columns:repeat(4,32px)!important;justify-content:end!important;gap:5px!important;
  padding-top:7px!important;border-top:1px solid var(--account-border)!important
}
#sh-interaction-view-messages .custom-sequence-actions button{width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure{padding:0!important;overflow:hidden!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure>summary{padding:11px 12px!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure>summary .shieldy-step-heading{margin:0!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure>summary strong{font-size:11px!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure>summary small{font-size:9px!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure>.shieldy-delivery-body{padding:0 11px 11px!important}
#sh-interaction-view-messages .custom-format-toggle{min-height:62px!important;padding:11px 13px!important;border-radius:13px!important}
#sh-interaction-view-messages .custom-editor-heading{padding-bottom:11px!important;border-bottom:1px solid var(--account-border)!important}
#sh-interaction-view-messages .custom-editor-heading strong{font-size:15px!important}
#sh-interaction-view-messages .custom-card-toolbar{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  padding:10px 0 12px!important;margin:0!important;border-bottom:1px solid var(--account-border)!important
}
#sh-interaction-view-messages .custom-element-picker{padding:12px!important;background:var(--account-surface)!important}
#sh-interaction-view-messages .custom-element-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#sh-interaction-view-messages .custom-element-card{min-height:102px!important}
#sh-interaction-view-messages .custom-message-preview-column{
  width:100%!important;min-width:0!important;max-height:calc(100vh - 36px)!important;padding:14px!important;
  border-radius:14px!important;background:var(--account-surface)!important
}
#sh-interaction-view-messages .custom-message-preview-column>.card-title{padding-bottom:11px!important;border-bottom:1px solid var(--account-border)!important}
#sh-interaction-view-messages .custom-message-preview-column h3{font-size:15px!important}
#sh-interaction-view-messages .custom-preview-actions #custom-preview-side-toggle{display:none!important}
#sh-interaction-view-messages .custom-message-preview-body{margin-top:12px!important}
#sh-interaction-view-messages .sticky-save-bar{margin-top:12px!important}
html[data-theme="dark"] #sh-interaction-view-messages .custom-message-library-panel,
html[data-theme="dark"] #sh-interaction-view-messages .custom-channel-inline-settings,
html[data-theme="dark"] #sh-interaction-view-messages #custom-message-embed-options{background:rgba(255,255,255,.025)!important}
@media(max-width:1180px){
  #sh-interaction-view-messages .custom-message-layout{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-message-preview-column{position:static!important;max-height:none!important}
}
@media(max-width:860px){
  #sh-interaction-view-messages .custom-message-workspace-card{grid-template-columns:1fr!important;grid-template-rows:auto!important}
  #sh-interaction-view-messages .custom-message-workspace-card>*{grid-column:1!important;grid-row:auto!important}
  #sh-interaction-view-messages #custom-message-embed-options{grid-column:1!important;grid-row:auto!important}
  #sh-interaction-view-messages .custom-message-workspace-status{white-space:normal!important}
}
@media(max-width:560px){
  #sh-interaction-view-messages .custom-message-workspace-head{display:grid!important}
  #sh-interaction-view-messages .custom-element-grid{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-sequence-select{grid-template-columns:28px minmax(0,1fr)!important}
  #sh-interaction-view-messages .custom-sequence-state{grid-column:2!important}
}


/* ===== V384 — Own Messages full-width row layout ===== */
#sh-interaction-view-messages .custom-message-workspace-card{
  display:flex!important;
  flex-direction:column!important;
  gap:12px!important;
  padding:18px!important;
}
#sh-interaction-view-messages .custom-message-workspace-card>*{
  width:100%!important;
  min-width:0!important;
  grid-column:auto!important;
  grid-row:auto!important;
}
#sh-interaction-view-messages .custom-message-workspace-head{order:1!important}
#sh-interaction-view-messages .shieldy-step-channel{order:2!important}
#sh-interaction-view-messages .custom-channel-inline-settings{order:3!important}
#sh-interaction-view-messages .shieldy-step-sequence{order:4!important}
#sh-interaction-view-messages .custom-format-toggle{order:5!important}
#sh-interaction-view-messages #custom-message-embed-options{order:6!important}
#sh-interaction-view-messages .shieldy-delivery-disclosure{order:7!important}
#sh-interaction-view-messages #custom-message-content{order:9!important}

#sh-interaction-view-messages .custom-message-library-panel,
#sh-interaction-view-messages .custom-channel-inline-settings,
#sh-interaction-view-messages .shieldy-delivery-disclosure,
#sh-interaction-view-messages #custom-message-embed-options{
  padding:15px!important;
  border-radius:14px!important;
}

/* Channels are normal cards in one horizontal row, not narrow vertical strips. */
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
}
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head>div{
  display:grid!important;
  gap:3px!important;
}
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head>div strong{font-size:13px!important}
#sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head>div small{font-size:10px!important;color:var(--account-muted)!important}
#sh-interaction-view-messages .custom-channel-config-head button{
  width:auto!important;
  min-width:150px!important;
  flex:0 0 auto!important;
}
#sh-interaction-view-messages .custom-channel-config-list{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
#sh-interaction-view-messages .custom-channel-config-item{
  min-height:68px!important;
  padding:10px!important;
}
#sh-interaction-view-messages .custom-channel-config-select{
  grid-template-columns:36px minmax(0,1fr)!important;
  gap:10px!important;
}
#sh-interaction-view-messages .custom-channel-config-icon{
  width:36px!important;
  height:36px!important;
}
#sh-interaction-view-messages .custom-channel-config-copy strong{font-size:12px!important}
#sh-interaction-view-messages .custom-channel-config-copy small,
#sh-interaction-view-messages .custom-channel-config-copy em{font-size:10px!important}
#sh-interaction-view-messages .custom-channel-config-state{
  grid-column:2!important;
  justify-self:start!important;
  margin-top:2px!important;
}

/* Channel parameters use one clean horizontal row. */
#sh-interaction-view-messages .custom-channel-inline-settings .shieldy-advanced-body{
  grid-template-columns:minmax(220px,.7fr) minmax(300px,1.3fr)!important;
  gap:12px!important;
  align-items:start!important;
}
#sh-interaction-view-messages .custom-channel-inline-title{margin-bottom:12px!important}

/* Message entries are full-width rows with actions on the right. */
#sh-interaction-view-messages .custom-sequence-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
}
#sh-interaction-view-messages .custom-sequence-head-actions{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  flex:0 0 auto!important;
}
#sh-interaction-view-messages .custom-sequence-head-actions button{
  width:auto!important;
  min-width:170px!important;
}
#sh-interaction-view-messages .custom-sequence-item{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  min-height:58px!important;
  padding:9px 10px!important;
}
#sh-interaction-view-messages .custom-sequence-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  padding:0 0 0 10px!important;
  border-top:0!important;
  border-left:1px solid var(--account-border)!important;
}
#sh-interaction-view-messages .custom-sequence-copy strong{font-size:12px!important}
#sh-interaction-view-messages .custom-sequence-copy small{font-size:10px!important}

/* Embed switch is a regular full-width settings row. */
#sh-interaction-view-messages .custom-format-toggle{
  min-height:68px!important;
  margin:0!important;
  padding:13px 15px!important;
}

/* Editor fills the row instead of occupying a thin right column. */
#sh-interaction-view-messages #custom-message-embed-options{
  margin:0!important;
  background:color-mix(in srgb,var(--account-surface-soft) 24%,transparent)!important;
}
#sh-interaction-view-messages .custom-card-toolbar{
  padding:12px 0 14px!important;
}

/* Element choices are compact rows, not square tiles. */
#sh-interaction-view-messages .custom-element-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:8px!important;
}
#sh-interaction-view-messages .custom-element-card{
  display:grid!important;
  grid-template-columns:72px minmax(0,1fr) 36px!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:
    "preview title add"
    "preview description add"!important;
  align-items:center!important;
  gap:3px 12px!important;
  min-height:72px!important;
  padding:10px 12px!important;
  text-align:left!important;
}
#sh-interaction-view-messages .custom-element-card-title{
  grid-area:title!important;
  align-self:end!important;
  font-size:13px!important;
}
#sh-interaction-view-messages .custom-element-card-preview{
  grid-area:preview!important;
  width:72px!important;
  min-width:72px!important;
  height:50px!important;
  min-height:50px!important;
  margin:0!important;
}
#sh-interaction-view-messages .custom-element-card>small{
  grid-area:description!important;
  align-self:start!important;
  margin:0!important;
  font-size:10px!important;
  line-height:1.35!important;
}
#sh-interaction-view-messages .custom-element-card>b{
  grid-area:add!important;
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  margin:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface)!important;
  font-size:18px!important;
}

@media(max-width:900px){
  #sh-interaction-view-messages .custom-channel-config-list{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-channel-inline-settings .shieldy-advanced-body{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-sequence-head{align-items:stretch!important;flex-direction:column!important}
  #sh-interaction-view-messages .custom-sequence-head-actions{width:100%!important}
  #sh-interaction-view-messages .custom-sequence-head-actions button{flex:1 1 auto!important;min-width:0!important}
}
@media(max-width:620px){
  #sh-interaction-view-messages .shieldy-step-channel .custom-channel-config-head{align-items:stretch!important;flex-direction:column!important}
  #sh-interaction-view-messages .custom-channel-config-head button{width:100%!important;min-width:0!important}
  #sh-interaction-view-messages .custom-sequence-item{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-sequence-actions{padding:8px 0 0!important;border-left:0!important;border-top:1px solid var(--account-border)!important}
  #sh-interaction-view-messages .custom-element-card{
    grid-template-columns:58px minmax(0,1fr) 34px!important;
  }
  #sh-interaction-view-messages .custom-element-card-preview{width:58px!important;min-width:58px!important}
}


/* ===== V386 — final width repair for Own Messages and emoji control ===== */
/* Own Messages: never reserve an empty preview column. Preview is a full-width row below the editor. */
#sh-interaction-view-messages,
#sh-interaction-view-messages .custom-message-layout,
#sh-interaction-view-messages .custom-message-editor-column,
#sh-interaction-view-messages .custom-message-workspace-card,
#sh-interaction-view-messages .custom-message-preview-column{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#sh-interaction-view-messages .custom-message-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:16px!important;
  align-items:start!important;
}
#sh-interaction-view-messages .custom-message-editor-column{
  grid-column:1!important;
  min-width:0!important;
}
#sh-interaction-view-messages .custom-message-editor-column>article.github-card.console-card,
#sh-interaction-view-messages .custom-message-workspace-card,
#sh-interaction-view-messages .custom-message-workspace-card>*{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
#sh-interaction-view-messages .custom-message-preview-column{
  grid-column:1!important;
  position:static!important;
  top:auto!important;
  max-height:none!important;
  margin:0!important;
  overflow:visible!important;
}
#sh-interaction-view-messages .custom-message-layout.is-preview-collapsed{
  grid-template-columns:minmax(0,1fr)!important;
}
#sh-interaction-view-messages .custom-channel-config-list{
  width:100%!important;
}
#sh-interaction-view-messages .custom-channel-config-item,
#sh-interaction-view-messages .custom-channel-config-select,
#sh-interaction-view-messages .custom-channel-inline-settings,
#sh-interaction-view-messages .custom-sequence-panel,
#sh-interaction-view-messages #custom-message-embed-options,
#sh-interaction-view-messages .shieldy-delivery-disclosure{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}

/* Reaction roles: compact selected-emoji square + normal picker button, no stretched empty area. */
#sh-interaction-view-reactions .reaction-role-item-row .rr-reaction-field{
  justify-items:start!important;
  min-width:0!important;
}
#sh-interaction-view-reactions .rr-emoji-control{
  position:relative!important;
  display:grid!important;
  grid-template-columns:58px 142px!important;
  align-items:stretch!important;
  gap:0!important;
  width:200px!important;
  min-width:200px!important;
  max-width:200px!important;
  height:46px!important;
  min-height:46px!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:var(--account-surface)!important;
  overflow:visible!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  position:static!important;
  display:block!important;
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0!important;
  border:0!important;
  border-right:1px solid var(--account-border)!important;
  border-radius:12px 0 0 12px!important;
  background:var(--account-surface-soft)!important;
  box-shadow:none!important;
  text-align:center!important;
  font:24px/44px "Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  position:static!important;
  inset:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:142px!important;
  min-width:142px!important;
  max-width:142px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0 12px 12px 0!important;
  transform:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger-icon{
  width:20px!important;
  min-width:20px!important;
  max-width:20px!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{
  overflow:visible!important;
  text-overflow:clip!important;
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-emoji-control{
    grid-template-columns:56px minmax(118px,1fr)!important;
    width:min(100%,220px)!important;
    min-width:174px!important;
    max-width:220px!important;
  }
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
    width:56px!important;
    min-width:56px!important;
    max-width:56px!important;
  }
  #sh-interaction-view-reactions .rr-emoji-picker-trigger{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* ===== V387 — Shieldy automod unified opaque surfaces =====
   Legacy V304/V305 styles intentionally made punishment and mute-role cards transparent.
   Automod no longer has a global disabled state, so every section uses the same site surface. */
#shieldy-settings-form [data-automod-dependent],
#shieldy-settings-form [data-automod-dependent].is-automod-master-disabled,
#shieldy-settings-form #automod-module-list.is-disabled,
#shieldy-settings-form .automod-module.is-function-disabled,
#shieldy-settings-form .automod-shared-card.is-function-disabled{
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
  user-select:auto!important;
  cursor:default!important;
}
#shieldy-settings-form :is(
  .automod-module,
  .automod-shared-card,
  .automod-mute-role-card,
  .automod-escalation-card
){
  background:var(--account-surface)!important;
  border-color:var(--account-border)!important;
  box-shadow:var(--account-shadow)!important;
  backdrop-filter:none!important;
}
#shieldy-settings-form :is(
  .automod-module-summary,
  .automod-module-body,
  .automod-escalation-head,
  .automod-escalation-body
){
  opacity:1!important;
  filter:none!important;
}
#shieldy-settings-form :is(
  .automod-module-exceptions,
  .automod-escalation-rule,
  .automod-escalation-customization,
  .automod-escalation-summary,
  .automod-escalation-note,
  .automod-mute-role-status,
  .automod-mute-restrictions>label
){
  background:var(--account-surface-soft)!important;
  border-color:var(--account-border)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
#shieldy-settings-form .automod-escalation-customization>summary{
  background:color-mix(in srgb,var(--account-surface-soft) 88%,var(--account-surface))!important;
}
#shieldy-settings-form .automod-escalation-preview{
  background:#1f2229!important;
}
html[data-theme="dark"] #shieldy-settings-form :is(
  .automod-module,
  .automod-shared-card,
  .automod-mute-role-card,
  .automod-escalation-card
){
  background:var(--account-surface)!important;
}
html[data-theme="dark"] #shieldy-settings-form :is(
  .automod-module-exceptions,
  .automod-escalation-rule,
  .automod-escalation-customization,
  .automod-escalation-summary,
  .automod-escalation-note,
  .automod-mute-role-status,
  .automod-mute-restrictions>label
){
  background:var(--account-surface-soft)!important;
}


/* ===== V388 — Own Messages channel marker and 3x2 element grid ===== */
/* Inactive channels no longer display the compressed › glyph that looked like a dot. */
#sh-interaction-view-messages .custom-channel-config-state:empty{
  display:none!important;
}
#sh-interaction-view-messages .custom-channel-config-state:not(:empty){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:22px!important;
  padding:3px 8px!important;
  border-radius:999px!important;
  background:color-mix(in srgb,#2da44e 10%,var(--account-surface))!important;
  color:#1a8f43!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:900!important;
  line-height:1!important;
}

/* Six message elements: exactly two rows and three columns on desktop. */
#sh-interaction-view-messages .custom-element-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#sh-interaction-view-messages .custom-element-card{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) 32px!important;
  grid-template-rows:minmax(30px,auto) minmax(30px,auto)!important;
  grid-template-areas:
    "preview title add"
    "preview description add"!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:2px!important;
  width:100%!important;
  min-width:0!important;
  min-height:92px!important;
  height:100%!important;
  padding:11px!important;
  border-radius:12px!important;
  text-align:left!important;
}
#sh-interaction-view-messages .custom-element-card-preview{
  grid-area:preview!important;
  align-self:center!important;
  justify-self:center!important;
  width:54px!important;
  min-width:54px!important;
  height:54px!important;
  min-height:54px!important;
  margin:0!important;
  border-radius:10px!important;
}
#sh-interaction-view-messages .custom-element-card-title{
  grid-area:title!important;
  align-self:end!important;
  display:flex!important;
  align-items:flex-end!important;
  min-width:0!important;
  min-height:30px!important;
  margin:0!important;
  color:var(--account-text)!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.25!important;
  overflow-wrap:anywhere!important;
}
#sh-interaction-view-messages .custom-element-card>small{
  grid-area:description!important;
  align-self:start!important;
  display:block!important;
  min-width:0!important;
  min-height:30px!important;
  margin:0!important;
  color:var(--account-muted)!important;
  font-size:9px!important;
  font-weight:700!important;
  line-height:1.35!important;
  overflow-wrap:anywhere!important;
}
#sh-interaction-view-messages .custom-element-card>b{
  grid-area:add!important;
  align-self:center!important;
  justify-self:end!important;
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  margin:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:9px!important;
  background:var(--account-surface)!important;
  color:var(--account-accent)!important;
  font-size:17px!important;
  font-weight:800!important;
  line-height:1!important;
}
#sh-interaction-view-messages .custom-element-card:hover>b{
  border-color:color-mix(in srgb,var(--account-accent) 55%,var(--account-border))!important;
  background:color-mix(in srgb,var(--account-accent) 8%,var(--account-surface))!important;
}

@media(max-width:1050px){
  #sh-interaction-view-messages .custom-element-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:650px){
  #sh-interaction-view-messages .custom-element-grid{
    grid-template-columns:1fr!important;
  }
  #sh-interaction-view-messages .custom-element-card{
    min-height:82px!important;
  }
}


/* ===== V389 — profile labels, notifications, own-message cards and reaction emoji final audit ===== */

/* Profile subscription status: compact wording fits the status column without clipping. */
.profile-subscription-status{
  max-width:100%!important;
  padding:3px 6px!important;
  font-size:10px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}

/* Profile notifications: normal site typography and visible spacing between switch rows. */
.profile-notifications-form{
  display:grid!important;
  gap:10px!important;
}
.profile-notification-option{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  min-height:76px!important;
  padding:14px 16px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface-soft)!important;
  cursor:pointer!important;
}
.profile-notification-option + .profile-notification-option{
  margin-top:0!important;
}
.profile-notification-option>span:first-child{
  display:grid!important;
  gap:4px!important;
  min-width:0!important;
}
.profile-notification-option strong{
  margin:0!important;
  color:var(--account-text)!important;
  font:900 15px/1.3 Nunito,sans-serif!important;
  letter-spacing:0!important;
}
.profile-notification-option small{
  margin:0!important;
  color:var(--account-muted)!important;
  font:700 13px/1.42 Nunito,sans-serif!important;
  letter-spacing:0!important;
}

/* Own Messages element cards: one strict baseline for preview, title, description and + button. */
#sh-interaction-view-messages .custom-element-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
#sh-interaction-view-messages .custom-element-card{
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 34px!important;
  grid-template-rows:32px 36px!important;
  grid-template-areas:
    "preview title add"
    "preview description add"!important;
  align-content:center!important;
  align-items:center!important;
  column-gap:10px!important;
  row-gap:2px!important;
  width:100%!important;
  min-width:0!important;
  min-height:94px!important;
  height:94px!important;
  padding:11px!important;
  text-align:left!important;
}
#sh-interaction-view-messages .custom-element-card-preview{
  grid-area:preview!important;
  align-self:center!important;
  justify-self:center!important;
  width:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  margin:0!important;
}
#sh-interaction-view-messages .custom-element-card-title{
  grid-area:title!important;
  display:flex!important;
  align-items:center!important;
  align-self:stretch!important;
  min-width:0!important;
  min-height:32px!important;
  margin:0!important;
  color:var(--account-text)!important;
  font:900 12px/1.25 Nunito,sans-serif!important;
  letter-spacing:0!important;
  overflow-wrap:anywhere!important;
}
#sh-interaction-view-messages .custom-element-card>small{
  grid-area:description!important;
  display:-webkit-box!important;
  align-self:stretch!important;
  min-width:0!important;
  min-height:36px!important;
  margin:0!important;
  overflow:hidden!important;
  color:var(--account-muted)!important;
  font:700 9.5px/1.35 Nunito,sans-serif!important;
  letter-spacing:0!important;
  overflow-wrap:anywhere!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
}
#sh-interaction-view-messages .custom-element-card>b{
  grid-area:add!important;
  align-self:center!important;
  justify-self:center!important;
  display:grid!important;
  place-items:center!important;
  width:32px!important;
  min-width:32px!important;
  max-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  margin:0!important;
  padding:0!important;
  font:800 17px/1 Nunito,sans-serif!important;
}
@media(max-width:1050px){
  #sh-interaction-view-messages .custom-element-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:650px){
  #sh-interaction-view-messages .custom-element-grid{grid-template-columns:1fr!important}
  #sh-interaction-view-messages .custom-element-card{height:90px!important;min-height:90px!important}
}

/* Reaction roles: selected emoji and picker button use the same 54px control height as neighbouring inputs. */
#sh-interaction-view-reactions .reaction-role-item-row .rr-reaction-field{
  justify-items:start!important;
  align-items:start!important;
  min-width:0!important;
}
#sh-interaction-view-reactions .rr-emoji-control{
  position:relative!important;
  display:grid!important;
  grid-template-columns:60px 140px!important;
  align-items:stretch!important;
  gap:0!important;
  width:200px!important;
  min-width:200px!important;
  max-width:200px!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface)!important;
  overflow:visible!important;
  box-shadow:none!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  position:static!important;
  display:block!important;
  width:60px!important;
  min-width:60px!important;
  max-width:60px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-right:1px solid var(--account-border)!important;
  border-radius:11px 0 0 11px!important;
  background:var(--account-surface-soft)!important;
  box-shadow:none!important;
  text-align:center!important;
  font:25px/52px "Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  position:static!important;
  inset:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:140px!important;
  min-width:140px!important;
  max-width:140px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0 11px 11px 0!important;
  transform:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  font:900 14px/1 Nunito,sans-serif!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger-icon{
  display:inline-grid!important;
  place-items:center!important;
  width:22px!important;
  min-width:22px!important;
  max-width:22px!important;
  height:22px!important;
  font:18px/1 "Segoe UI Emoji","Apple Color Emoji",sans-serif!important;
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-emoji-control{
    grid-template-columns:58px minmax(118px,1fr)!important;
    width:min(100%,210px)!important;
    min-width:176px!important;
    max-width:210px!important;
  }
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
  }
  #sh-interaction-view-reactions .rr-emoji-picker-trigger{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* ===== V390 — reaction-role emoji control fills its grid column =====
   Previous releases fixed the control at 200px while the Emoji grid column was wider,
   leaving a visible empty strip before the Role ID field. */
#sh-interaction-view-reactions .reaction-role-item-row .rr-reaction-field{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  justify-items:stretch!important;
}
#sh-interaction-view-reactions .rr-emoji-control{
  display:grid!important;
  grid-template-columns:64px minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  margin:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface)!important;
  overflow:visible!important;
}
#sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
  width:64px!important;
  min-width:64px!important;
  max-width:64px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-right:1px solid var(--account-border)!important;
  border-radius:11px 0 0 11px!important;
  text-align:center!important;
  font:26px/52px "Segoe UI Emoji","Apple Color Emoji",Nunito,sans-serif!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:0 11px 11px 0!important;
  justify-content:center!important;
  overflow:hidden!important;
}
#sh-interaction-view-reactions .rr-emoji-picker-trigger>span:last-child{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
@media(max-width:760px){
  #sh-interaction-view-reactions .rr-emoji-control{
    grid-template-columns:58px minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
  #sh-interaction-view-reactions .rr-emoji-control>.rr-emoji{
    width:58px!important;
    min-width:58px!important;
    max-width:58px!important;
    font-size:24px!important;
  }
}


/* ===== V394 — Shieldy message timer moved to Tools ===== */
.shieldy-other-module .shieldy-other-grid>.shieldy-message-timer-card{
  width:100%!important;
  margin:16px 0 0!important;
  padding:0!important;
  border:1px solid var(--account-border)!important;
  border-radius:16px!important;
  background:var(--account-surface)!important;
  box-shadow:0 8px 22px rgba(16,35,63,.045)!important;
  overflow:hidden!important;
}
.shieldy-other-module .shieldy-message-timer-card>summary{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:72px!important;
  padding:16px 18px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 46%,transparent)!important;
}
.shieldy-other-module .shieldy-message-timer-card>summary .shieldy-timer-heading{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.shieldy-other-module .shieldy-message-timer-card>summary .shieldy-timer-heading strong{
  color:var(--account-text)!important;
  font:900 16px/1.3 Nunito,sans-serif!important;
}
.shieldy-other-module .shieldy-message-timer-card>summary .shieldy-timer-heading small{
  color:var(--account-muted)!important;
  font:700 12px/1.45 Nunito,sans-serif!important;
}
.shieldy-other-module .shieldy-message-timer-card>summary>.premium-feature-badge{margin-left:auto!important;flex:0 0 auto!important}
.shieldy-other-module .shieldy-message-timer-card.is-premium-locked{
  border-color:#d4a72c!important;
  background:color-mix(in srgb,#fff7d6 34%,var(--account-surface))!important;
}
.shieldy-other-module .shieldy-message-timer-card.is-premium-locked>.shieldy-delivery-body{
  opacity:.55!important;
  pointer-events:none!important;
  user-select:none!important;
}
html[data-theme="dark"] .shieldy-other-module .shieldy-message-timer-card.is-premium-locked{
  border-color:#9e6a03!important;
  background:rgba(210,153,34,.07)!important;
}
.shieldy-other-module .shieldy-message-timer-card>.shieldy-delivery-body{
  padding:0 18px 18px!important;
  border-top:1px solid var(--account-border)!important;
}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-panel{
  width:100%!important;
  margin:0!important;
  padding:18px 0 0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-grid{
  display:grid!important;
  gap:14px!important;
  margin:0 0 14px!important;
}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-grid.three-fields{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-grid.two-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-field{min-width:0!important;margin:0!important}
.shieldy-other-module .shieldy-message-timer-card .custom-delivery-toggles{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  margin-top:2px!important;
}
.shieldy-other-module .shieldy-message-timer-card .routing-display-item{margin:0!important}
@media(max-width:900px){
  .shieldy-other-module .shieldy-message-timer-card .custom-delivery-grid.three-fields,
  .shieldy-other-module .shieldy-message-timer-card .custom-delivery-grid.two-fields{grid-template-columns:1fr!important}
}
@media(max-width:620px){
  .shieldy-other-module .shieldy-other-grid>.shieldy-message-timer-card{margin-top:12px!important}
  .shieldy-other-module .shieldy-message-timer-card>summary{min-height:64px!important;padding:14px!important}
  .shieldy-other-module .shieldy-message-timer-card>.shieldy-delivery-body{padding:0 14px 14px!important}
  .shieldy-other-module .shieldy-message-timer-card .custom-delivery-toggles{grid-template-columns:1fr!important}
}

/* ===== V395 — Shieldy Tools toggles, free message timer and Premium styling preview ===== */
#panel-bot-control [data-module-panel="sh-other"] .shieldy-other-grid{
  gap:14px!important;
}
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card{
  padding:0!important;
  overflow:hidden!important;
  border-radius:16px!important;
}
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card>.card-title{
  min-height:76px!important;
  margin:0!important;
  padding:16px 18px!important;
  border-bottom:0!important;
  background:color-mix(in srgb,var(--account-surface-soft) 52%,transparent)!important;
}
#panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card.is-feature-enabled>.card-title{
  border-bottom:1px solid var(--account-border)!important;
}
#panel-bot-control [data-module-panel="sh-other"] .feature-settings-body{
  margin:0!important;
  padding:18px!important;
  gap:14px!important;
}
#panel-bot-control [data-module-panel="sh-other"] .feature-settings-body[hidden],
#panel-bot-control [data-module-panel="sh-other"] [hidden]{
  display:none!important;
}
#panel-bot-control [data-module-panel="sh-other"] .shieldy-tool-card-title .premium-card-heading{
  gap:10px!important;
  flex-wrap:wrap!important;
}
#panel-bot-control [data-module-panel="sh-other"] .shieldy-tool-card-title h3{
  margin:0!important;
}

.shieldy-message-timer-body{
  padding:18px!important;
}
.shieldy-message-timer-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.shieldy-message-timer-editor{
  display:grid!important;
  gap:14px!important;
  min-width:0!important;
}
.shieldy-message-timer-card .custom-delivery-grid{
  display:grid!important;
  gap:12px!important;
  margin:0!important;
}
.shieldy-message-timer-card .custom-delivery-grid.two-fields{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.shieldy-message-timer-card .custom-delivery-grid.three-fields{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.shieldy-message-timer-card .custom-delivery-field{
  min-width:0!important;
  margin:0!important;
}
.shieldy-message-timer-card .custom-delivery-field>label{
  min-height:22px!important;
}
.shieldy-message-timer-card .custom-delivery-field>.field-hint{
  min-height:34px!important;
}
.shieldy-message-timer-card .timer-message-field textarea{
  min-height:108px!important;
}
.shieldy-message-timer-card [data-timer-scheduled-field][hidden],
.shieldy-message-timer-card [data-timer-repeat-field][hidden]{
  display:none!important;
}
.timer-next-run{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  min-height:48px!important;
  padding:11px 14px!important;
  border:1px solid color-mix(in srgb,var(--shieldy-accent,#2da44e) 28%,var(--account-border))!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--shieldy-accent,#2da44e) 6%,var(--account-surface))!important;
}
.timer-next-run span{
  color:var(--account-muted)!important;
  font:800 12px/1.3 Nunito,sans-serif!important;
}
.timer-next-run strong{
  color:var(--account-text)!important;
  font:900 13px/1.3 Nunito,sans-serif!important;
  text-align:right!important;
}
.timer-subfeature-card{
  overflow:hidden!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface)!important;
}
.timer-subfeature-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:14px!important;
  min-height:68px!important;
  padding:13px 14px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 55%,transparent)!important;
}
.timer-subfeature-head>div{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.timer-subfeature-head strong{
  color:var(--account-text)!important;
  font:900 14px/1.35 Nunito,sans-serif!important;
}
.timer-subfeature-head small{
  color:var(--account-muted)!important;
  font:700 11px/1.4 Nunito,sans-serif!important;
}
.timer-subfeature-body{
  display:grid!important;
  gap:12px!important;
  padding:14px!important;
  border-top:1px solid var(--account-border)!important;
}
.timer-premium-customization.is-premium-locked{
  border-color:color-mix(in srgb,#d4a72c 58%,var(--account-border))!important;
}
.timer-premium-customization.is-premium-locked .timer-subfeature-head{
  background:color-mix(in srgb,#fff3bf 35%,var(--account-surface))!important;
}
html[data-theme="dark"] .timer-premium-customization.is-premium-locked .timer-subfeature-head{
  background:rgba(210,153,34,.08)!important;
}
.timer-premium-lock-note{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:4px 12px!important;
  align-items:center!important;
  padding:13px 14px!important;
  border-top:1px solid color-mix(in srgb,#d4a72c 44%,var(--account-border))!important;
  background:color-mix(in srgb,#fff8d8 48%,var(--account-surface))!important;
}
.timer-premium-lock-note strong,
.timer-premium-lock-note span{
  grid-column:1!important;
}
.timer-premium-lock-note strong{
  color:var(--account-text)!important;
  font:900 13px/1.3 Nunito,sans-serif!important;
}
.timer-premium-lock-note span{
  color:var(--account-muted)!important;
  font:700 11px/1.4 Nunito,sans-serif!important;
}
.timer-premium-lock-note a{
  grid-column:2!important;
  grid-row:1/3!important;
  align-self:center!important;
  white-space:nowrap!important;
  color:#8a5a00!important;
  font:900 11px/1.2 Nunito,sans-serif!important;
}
.shieldy-message-timer-card .custom-delivery-toggles{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  margin:0!important;
}
.shieldy-message-timer-card .custom-delivery-toggles .routing-display-item{
  min-height:72px!important;
  margin:0!important;
}

.shieldy-message-timer-preview{
  position:sticky!important;
  top:14px!important;
  display:grid!important;
  gap:12px!important;
  min-width:0!important;
  padding:14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 55%,var(--account-surface))!important;
}
.timer-preview-card-title{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.timer-preview-card-title>div{
  display:grid!important;
  gap:3px!important;
  min-width:0!important;
}
.timer-preview-card-title strong{
  color:var(--account-text)!important;
  font:900 14px/1.35 Nunito,sans-serif!important;
}
.timer-preview-card-title small{
  color:var(--account-muted)!important;
  font:700 11px/1.4 Nunito,sans-serif!important;
}
.timer-lolka-preview{
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.timer-lolka-preview .lolka-preview-chat-area{
  min-height:250px!important;
}
.timer-preview-message{
  width:100%!important;
  min-width:0!important;
}
.timer-preview-plain-text{
  margin:8px 0 0 48px!important;
  color:var(--account-text)!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  font:700 12px/1.5 Nunito,sans-serif!important;
}
.timer-preview-embed{
  position:relative!important;
  display:grid!important;
  gap:7px!important;
  margin:8px 0 0 48px!important;
  padding:12px 13px 11px 15px!important;
  overflow:hidden!important;
  border:1px solid var(--account-border)!important;
  border-radius:7px!important;
  background:color-mix(in srgb,var(--account-surface) 94%,transparent)!important;
}
.timer-preview-embed::before{
  content:""!important;
  position:absolute!important;
  inset:0 auto 0 0!important;
  width:4px!important;
  background:var(--timer-accent,#2da44e)!important;
}
.timer-preview-embed img{
  width:100%!important;
  max-height:168px!important;
  object-fit:cover!important;
  border-radius:6px!important;
}
.timer-preview-embed h4{
  margin:0!important;
  color:var(--account-text)!important;
  font:900 14px/1.35 Nunito,sans-serif!important;
}
.timer-preview-embed p{
  margin:0!important;
  color:var(--account-text)!important;
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  font:700 12px/1.5 Nunito,sans-serif!important;
}
.timer-preview-embed small{
  color:var(--account-muted)!important;
  font:700 10px/1.4 Nunito,sans-serif!important;
}
.timer-preview-buttons{
  display:flex!important;
  gap:7px!important;
  margin:8px 0 0 48px!important;
}
.timer-preview-buttons span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:32px!important;
  padding:7px 12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:7px!important;
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
  font:900 11px/1.2 Nunito,sans-serif!important;
}
.timer-preview-meta{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
.timer-preview-meta>div{
  display:grid!important;
  gap:3px!important;
  padding:10px 11px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface)!important;
}
.timer-preview-meta span{
  color:var(--account-muted)!important;
  font:800 10px/1.2 Nunito,sans-serif!important;
}
.timer-preview-meta strong{
  color:var(--account-text)!important;
  font:900 11px/1.35 Nunito,sans-serif!important;
}

@media(max-width:1100px){
  .shieldy-message-timer-layout{
    grid-template-columns:1fr!important;
  }
  .shieldy-message-timer-preview{
    position:relative!important;
    top:auto!important;
  }
}
@media(max-width:760px){
  #panel-bot-control [data-module-panel="sh-other"] .flexible-feature-card>.card-title{
    min-height:68px!important;
    padding:14px!important;
  }
  #panel-bot-control [data-module-panel="sh-other"] .feature-settings-body,
  .shieldy-message-timer-body{
    padding:14px!important;
  }
  .shieldy-message-timer-card .custom-delivery-grid.two-fields,
  .shieldy-message-timer-card .custom-delivery-grid.three-fields,
  .shieldy-message-timer-card .custom-delivery-toggles{
    grid-template-columns:1fr!important;
  }
  .timer-premium-lock-note{
    grid-template-columns:1fr!important;
  }
  .timer-premium-lock-note a{
    grid-column:1!important;
    grid-row:auto!important;
    justify-self:start!important;
  }
}

/* V395 compact field correction for the redesigned timer editor. */
#panel-bot-control [data-module-panel="sh-other"] .shieldy-other-grid{
  margin-top:16px!important;
}
.shieldy-other-module .shieldy-other-grid>.shieldy-message-timer-card{
  margin:0!important;
}
.shieldy-message-timer-card .custom-delivery-field{
  display:flex!important;
  flex-direction:column!important;
  grid-template-rows:none!important;
  align-content:initial!important;
  gap:6px!important;
}
.shieldy-message-timer-card .custom-delivery-field>label{
  display:block!important;
  min-height:0!important;
  margin:0!important;
  align-items:initial!important;
  line-height:1.3!important;
}
.shieldy-message-timer-card .custom-delivery-field>.field-hint{
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  line-height:1.4!important;
  text-align:left!important;
  word-spacing:normal!important;
  letter-spacing:normal!important;
  white-space:normal!important;
}
.shieldy-message-timer-card .custom-delivery-field>:is(input,select,textarea){
  align-self:stretch!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 14px!important;
}
.shieldy-message-timer-card .custom-delivery-field>textarea{
  height:auto!important;
  min-height:88px!important;
  padding:13px 14px!important;
  resize:vertical!important;
  overflow:auto!important;
}
.shieldy-message-timer-card .timer-message-field>textarea{
  min-height:110px!important;
}
.shieldy-message-timer-card .custom-delivery-field>.color-field{
  width:100%!important;
  min-height:52px!important;
  margin:0!important;
}
.shieldy-message-timer-card .timer-button-url-field{
  grid-column:1/-1!important;
}
.shieldy-message-timer-card .timer-full-row{
  grid-column:1/-1!important;
}


/* V396 custom datepicker for Shieldy timer to match the site style. */
.shieldy-message-timer-card .custom-delivery-field>.timer-datepicker{
  position:relative!important;
  width:100%!important;
}
.timer-datepicker-trigger{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  width:100%!important;
  min-height:52px!important;
  padding:0 14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
  box-shadow:0 1px 0 rgba(15,23,42,.02)!important;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease!important;
}
.timer-datepicker-trigger:hover,
.timer-datepicker-trigger[aria-expanded="true"]{
  border-color:color-mix(in srgb,var(--shieldy-accent,#2da44e) 45%,var(--account-border))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--shieldy-accent,#2da44e) 10%,transparent)!important;
}
.timer-datepicker-trigger.is-empty .timer-datepicker-trigger-text{
  color:var(--account-muted)!important;
}
.timer-datepicker-trigger-text{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font:800 14px/1.3 Nunito,sans-serif!important;
}
.timer-datepicker-trigger-icon{
  flex:0 0 auto!important;
  font-size:16px!important;
  opacity:.72!important;
}
.timer-datepicker-popover{
  position:absolute!important;
  z-index:48!important;
  top:calc(100% + 10px)!important;
  left:0!important;
  width:min(100%,520px)!important;
  min-width:320px!important;
  padding:14px!important;
  border:1px solid var(--account-border)!important;
  border-radius:16px!important;
  background:var(--account-surface)!important;
  box-shadow:0 22px 50px rgba(15,23,42,.16)!important;
}
html[data-theme="dark"] .timer-datepicker-popover{
  box-shadow:0 24px 56px rgba(0,0,0,.42)!important;
}
.timer-datepicker-header{
  display:grid!important;
  grid-template-columns:auto 1fr auto!important;
  align-items:center!important;
  gap:10px!important;
  margin-bottom:12px!important;
}
.timer-datepicker-header strong{
  text-align:center!important;
  color:var(--account-text)!important;
  font:900 15px/1.3 Nunito,sans-serif!important;
}
.timer-datepicker-nav{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:36px!important;
  height:36px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface-soft)!important;
  color:var(--account-text)!important;
  font:900 16px/1 Nunito,sans-serif!important;
}
.timer-datepicker-body{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 160px!important;
  gap:14px!important;
}
.timer-datepicker-calendar{
  display:grid!important;
  gap:10px!important;
}
.timer-datepicker-weekdays,
.timer-datepicker-days{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:6px!important;
}
.timer-datepicker-weekdays span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  color:var(--account-muted)!important;
  font:800 11px/1.2 Nunito,sans-serif!important;
}
.timer-datepicker-day,
.timer-datepicker-day-empty{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  border-radius:10px!important;
}
.timer-datepicker-day{
  border:1px solid transparent!important;
  background:transparent!important;
  color:var(--account-text)!important;
  font:800 13px/1 Nunito,sans-serif!important;
}
.timer-datepicker-day:hover{
  background:color-mix(in srgb,var(--shieldy-accent,#2da44e) 9%,var(--account-surface-soft))!important;
  border-color:color-mix(in srgb,var(--shieldy-accent,#2da44e) 30%,var(--account-border))!important;
}
.timer-datepicker-day.is-selected{
  background:var(--shieldy-accent,#2da44e)!important;
  border-color:var(--shieldy-accent,#2da44e)!important;
  color:#fff!important;
}
.timer-datepicker-day.is-today:not(.is-selected){
  border-color:color-mix(in srgb,var(--shieldy-accent,#2da44e) 55%,var(--account-border))!important;
  background:color-mix(in srgb,var(--shieldy-accent,#2da44e) 8%,transparent)!important;
}
.timer-datepicker-day-empty{
  visibility:hidden!important;
}
.timer-datepicker-time{
  display:grid!important;
  align-content:start!important;
  gap:10px!important;
  padding:10px!important;
  border:1px solid var(--account-border)!important;
  border-radius:12px!important;
  background:color-mix(in srgb,var(--account-surface-soft) 58%,transparent)!important;
}
.timer-datepicker-time-label{
  color:var(--account-text)!important;
  font:900 12px/1.2 Nunito,sans-serif!important;
}
.timer-datepicker-time-fields{
  display:grid!important;
  grid-template-columns:1fr auto 1fr!important;
  align-items:center!important;
  gap:8px!important;
}
.timer-datepicker-time-fields>span{
  color:var(--account-muted)!important;
  font:900 18px/1 Nunito,sans-serif!important;
}
.timer-datepicker-time-fields select{
  width:100%!important;
  min-height:42px!important;
  padding:0 10px!important;
  border:1px solid var(--account-border)!important;
  border-radius:10px!important;
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
  font:800 13px/1.2 Nunito,sans-serif!important;
}
.timer-datepicker-shortcuts{
  display:flex!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.timer-datepicker-shortcut,
.timer-datepicker-apply{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:36px!important;
  border-radius:10px!important;
  font:900 12px/1.2 Nunito,sans-serif!important;
}
.timer-datepicker-shortcut{
  padding:0 12px!important;
  border:1px solid var(--account-border)!important;
  background:var(--account-surface)!important;
  color:var(--account-text)!important;
}
.timer-datepicker-apply{
  width:100%!important;
  padding:0 14px!important;
  border:1px solid color-mix(in srgb,var(--shieldy-accent,#2da44e) 80%,#1f8a40)!important;
  background:var(--shieldy-accent,#2da44e)!important;
  color:#fff!important;
}
@media(max-width:760px){
  .timer-datepicker-popover{
    width:100%!important;
    min-width:0!important;
  }
  .timer-datepicker-body{
    grid-template-columns:1fr!important;
  }
}


/* V401 — TuneTune music settings: align toggle rows and switches evenly. */
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--control-switch-width)!important;
  align-items:center!important;
  column-gap:18px!important;
  min-height:74px!important;
  padding:14px 0!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row+label.toggle-row{
  border-top:1px solid var(--account-border,var(--gh-border))!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row>span:first-child{
  display:grid!important;
  align-content:center!important;
  gap:6px!important;
  min-width:0!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row>span:first-child>strong{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  line-height:1.28!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row>span:first-child>small{
  display:block!important;
  margin:0!important;
  line-height:1.45!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row>input[type="checkbox"],
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row>i{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  align-self:center!important;
}
#tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row .premium-badge{
  align-self:center!important;
  margin:0!important;
}
@media(max-width:760px){
  #tunetune-music-panel [data-music-panel="settings"] .console-form>label.toggle-row{
    min-height:68px!important;
    padding:12px 0!important;
  }
}


/* V414 — Gamey integration cards: collapsible rows with compact preview, no master toggle. */
.gamey-cards-feature-body-v414{display:block!important}
.gamey-game-profile-editor-v414>summary{
  grid-template-columns:48px minmax(150px,1fr) minmax(190px,250px) auto 28px!important;
  gap:14px!important;
  min-height:94px;
}
.gamey-integration-mini-preview-v414{
  position:relative;
  display:block;
  width:100%;
  height:64px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 26%,var(--account-border));
  border-radius:11px;
  background:var(--account-surface-soft);
  box-shadow:0 6px 16px rgba(24,42,74,.08);
}
.gamey-integration-mini-preview-v414>img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.gamey-integration-mini-preview-v414>span{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:2px;
  padding:9px 10px;
  background:linear-gradient(180deg,transparent 18%,rgba(6,10,18,.86));
  color:#fff;
  text-align:left;
}
.gamey-integration-mini-preview-v414 b{font-size:12px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gamey-integration-mini-preview-v414 i{font-size:9px;line-height:1.1;font-style:normal;opacity:.78}
.gamey-fixed-statistics-note-v414{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:start;
  padding:15px 16px;
  border:1px solid var(--account-border);
  border-radius:14px;
  background:var(--account-surface-soft);
}
.gamey-fixed-statistics-note-v414>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:color-mix(in srgb,var(--gamey-profile-accent-v221,#e83e82) 12%,var(--account-surface));font-size:20px}
.gamey-fixed-statistics-note-v414 strong{display:block;margin-bottom:4px}
.gamey-fixed-statistics-note-v414 p{margin:0;color:var(--account-muted);line-height:1.45}
@media(max-width:900px){
  .gamey-game-profile-editor-v414>summary{grid-template-columns:46px minmax(140px,1fr) minmax(160px,210px) 24px!important}
  .gamey-game-profile-editor-v414 .gamey-game-profile-state-v221{display:none!important}
}
@media(max-width:650px){
  .gamey-game-profile-editor-v414>summary{grid-template-columns:42px minmax(0,1fr) 24px!important;min-height:76px}
  .gamey-integration-mini-preview-v414{display:none}
}


/* V420 — Gamey tournaments & events section */
.gamey-events-module-v420 .console-heading{margin-bottom:18px}
.gamey-events-hero-v420{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px;align-items:stretch}
.gamey-events-hero-copy-v420 h3{margin:0 0 10px;font-size:26px;line-height:1.12}
.gamey-events-hero-copy-v420 p{margin:0;color:var(--account-subtext,#637086);line-height:1.6}
.gamey-events-hero-badge-v420{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--account-accent,#ff4fa1) 18%,transparent);color:var(--account-accent-strong,#c21870);font-weight:800;font-size:12px;letter-spacing:.08em;margin-bottom:10px}
.gamey-events-feature-tags-v420{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.gamey-events-feature-tags-v420 span{padding:8px 12px;border:1px solid var(--account-border,#d8e0ee);border-radius:999px;background:var(--account-soft,#f7faff);font-weight:700;color:var(--account-text,#1f2b45)}
.gamey-events-hero-preview-v420{display:flex;align-items:stretch}
.gamey-event-preview-card-v420{width:100%;overflow:hidden;border:1px solid color-mix(in srgb,var(--account-accent,#ff4fa1) 28%,var(--account-border,#d8e0ee));border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--account-accent,#ff4fa1) 4%,#fff) 0%,#fff 100%);box-shadow:0 18px 35px rgba(31,43,69,.08)}
.gamey-event-preview-banner-v420{height:132px;background:linear-gradient(135deg,rgba(255,79,161,.95),rgba(112,63,255,.92));position:relative}
.gamey-event-preview-banner-v420::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 16% 20%,rgba(255,255,255,.26),transparent 24%),radial-gradient(circle at 80% 30%,rgba(255,255,255,.18),transparent 20%),linear-gradient(120deg,transparent 0 52%,rgba(255,255,255,.12) 52% 54%,transparent 54% 100%)}
.gamey-event-preview-body-v420{padding:16px}
.gamey-event-preview-head-v420{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.gamey-event-preview-head-v420 strong{display:block;font-size:18px;color:var(--account-text,#1f2b45)}
.gamey-event-preview-head-v420 small{display:block;margin-top:3px;color:var(--account-subtext,#637086)}
.gamey-event-status-pill-v420{white-space:nowrap;padding:8px 11px;border-radius:999px;background:#eefaf2;color:#1a7f49;border:1px solid #c8ead3;font-size:12px;font-weight:800}
.gamey-event-preview-card-v420 ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}
.gamey-event-preview-card-v420 li{position:relative;padding-left:18px;color:var(--account-text,#1f2b45);line-height:1.45}
.gamey-event-preview-card-v420 li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;border-radius:999px;background:var(--account-accent,#ff4fa1)}
.gamey-events-stats-grid-v420{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:16px}
.gamey-events-stats-grid-v420 .github-card{padding:18px;border-radius:16px;display:grid;gap:6px}
.gamey-events-stats-grid-v420 strong{font-size:32px;line-height:1;color:var(--account-text,#1f2b45)}
.gamey-events-stats-grid-v420 span{color:var(--account-subtext,#637086);font-weight:700}
.gamey-events-format-grid-v420,.gamey-events-two-columns-v420{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.gamey-event-type-card-v420.premium{border-color:color-mix(in srgb,#f3b33d 45%,var(--account-border,#d8e0ee))}
.gamey-event-bullets-v420{margin:0;padding-left:18px;display:grid;gap:8px;color:var(--account-text,#1f2b45)}
.gamey-event-builder-v420,.gamey-event-premium-v420,.gamey-event-roadmap-v420{margin-top:16px}
.gamey-event-toggle-grid-v420{margin-top:12px}
.gamey-events-inline-fields-v420{margin-top:12px}
.gamey-events-reward-grid-v420{grid-template-columns:repeat(3,minmax(0,1fr))}
.gamey-event-premium-v420>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}
.gamey-event-premium-v420>summary::-webkit-details-marker{display:none}
.gamey-event-premium-v420>summary>span:first-child{display:grid;gap:4px}
.gamey-event-premium-v420>summary small{color:var(--account-subtext,#637086)}
.gamey-event-premium-v420[open]>summary i{transform:rotate(180deg)}
.gamey-event-premium-v420>summary i{transition:transform .2s ease;font-style:normal;color:var(--account-subtext,#637086)}
.gamey-event-premium-body-v420{margin-top:14px}
.gamey-events-premium-note-v420{margin-top:14px;padding:14px 16px;border-radius:14px;background:var(--account-soft,#f7faff);border:1px solid var(--account-border,#d8e0ee);color:var(--account-subtext,#637086);line-height:1.55}
.gamey-event-roadmap-grid-v420{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.gamey-event-roadmap-grid-v420>div{padding:16px;border:1px solid var(--account-border,#d8e0ee);border-radius:14px;background:var(--account-soft,#f7faff);display:grid;gap:6px}
.gamey-event-roadmap-grid-v420 strong{font-size:16px;color:var(--account-text,#1f2b45)}
.gamey-event-roadmap-grid-v420 span{color:var(--account-subtext,#637086);line-height:1.45}
@media (max-width: 1100px){
  .gamey-events-hero-v420,.gamey-events-format-grid-v420,.gamey-events-two-columns-v420,.gamey-event-roadmap-grid-v420,.gamey-events-stats-grid-v420{grid-template-columns:1fr 1fr}
  .gamey-events-hero-v420{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .gamey-events-stats-grid-v420,.gamey-events-format-grid-v420,.gamey-events-two-columns-v420,.gamey-event-roadmap-grid-v420,.gamey-events-reward-grid-v420{grid-template-columns:1fr}
  .gamey-event-preview-head-v420{flex-direction:column;align-items:flex-start}
}

/* V436: neutral payment-status notices. */
.account-alert.info{background:#ddf4ff;border-color:#54aeff;color:#0550ae}
html[data-theme="dark"] .account-alert.info{background:#0c2d45!important;border-color:#1f6feb!important;color:#79c0ff!important}


.site-availability-notice{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:18px 20px;border:1px solid color-mix(in srgb,#f59e0b 46%,var(--account-border));border-radius:16px;background:color-mix(in srgb,#f59e0b 10%,var(--account-surface));}
.site-availability-notice strong{font-size:16px}.site-availability-notice p{margin:4px 0 0;color:var(--account-muted);}


/* V445 — free standard welcome banners and stable combined-message preview. */
#sh-interaction-view-welcome .welcome-free-banner-presets{
  display:grid;
  gap:10px;
  margin:12px 0 14px;
  padding:13px;
  border:1px solid color-mix(in srgb,#2da44e 28%,var(--account-border));
  border-radius:12px;
  background:color-mix(in srgb,#2da44e 5%,var(--account-surface-soft));
}
#sh-interaction-view-welcome .welcome-free-banner-presets-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
#sh-interaction-view-welcome .welcome-free-banner-presets-head>div{
  display:grid;
  gap:3px;
  min-width:0;
}
#sh-interaction-view-welcome .welcome-free-banner-presets-head strong{
  color:var(--account-text);
  font-size:14px;
}
#sh-interaction-view-welcome .welcome-free-banner-presets-head small{
  color:var(--account-muted);
  font-size:11px;
  line-height:1.42;
}
#sh-interaction-view-welcome .welcome-free-banner-presets>.field{
  margin:0!important;
}
#sh-interaction-view-welcome .welcome-free-banner-presets .welcome-banner-presets{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-primary-card-slot] .welcome-native-embed-image-slot .shieldy-welcome-image-card,
#sh-interaction-view-welcome .welcome-inline-preview [data-preview-secondary-card-slot] .welcome-native-embed-image-slot .shieldy-welcome-image-card{
  width:100%!important;
  max-width:none!important;
  margin:2px 0 0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-native-embed-shell{
  min-width:0!important;
  max-width:100%!important;
}
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="combined"] [data-preview-primary-card-slot]{
  width:calc(100% - 42px)!important;
  max-width:none!important;
  margin:2px 0 0 42px!important;
}
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="combined"] [data-preview-primary-card-slot] .welcome-native-embed-shell{
  width:100%!important;
}
#sh-interaction-view-welcome .welcome-inline-preview[data-preview-mode="combined"] [data-preview-primary-card-slot] .welcome-embed-preview{
  width:100%!important;
  max-width:none!important;
  margin:2px 0 0!important;
}
#sh-interaction-view-welcome .welcome-inline-preview .welcome-banner-preview[data-preview-source="custom"]{
  background-size:cover!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}
@media(max-width:640px){
  #sh-interaction-view-welcome .welcome-free-banner-presets-head{
    flex-direction:column;
  }
  #sh-interaction-view-welcome .welcome-free-banner-presets .welcome-banner-presets{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* V449 — server selector and save result feedback inside every bot save dock. */
.joyjoy-save-dock-v449{
  overflow:visible!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:10px!important;
  z-index:40!important;
}
.joyjoy-save-server-picker-v449{
  position:relative!important;
  flex:0 1 292px!important;
  min-width:230px!important;
  margin-left:auto!important;
  z-index:42!important;
}
.joyjoy-save-server-trigger-v449{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  width:100%!important;
  min-height:52px!important;
  padding:8px 12px!important;
  border:1px solid var(--account-border)!important;
  border-radius:13px!important;
  background:var(--account-surface,#fff)!important;
  color:var(--account-text)!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:0 5px 16px rgba(20,38,28,.045)!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.joyjoy-save-server-trigger-v449:hover,
.joyjoy-save-server-picker-v449.is-open .joyjoy-save-server-trigger-v449{
  border-color:color-mix(in srgb,var(--account-accent,#2da44e) 60%,var(--account-border))!important;
  box-shadow:0 8px 22px rgba(20,38,28,.08)!important;
}
.joyjoy-save-server-trigger-v449:focus-visible{
  outline:3px solid color-mix(in srgb,var(--account-accent,#2da44e) 22%,transparent)!important;
  outline-offset:2px!important;
}
.joyjoy-save-server-trigger-v449:active{transform:translateY(1px)!important}
.joyjoy-save-server-copy-v449{display:grid!important;gap:1px!important;min-width:0!important}
.joyjoy-save-server-copy-v449>span{
  color:var(--account-muted)!important;
  font-size:9px!important;
  font-weight:950!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
}
.joyjoy-save-server-copy-v449>strong{
  overflow:hidden!important;
  color:var(--account-text)!important;
  font-size:13px!important;
  font-weight:950!important;
  line-height:1.25!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.joyjoy-save-server-copy-v449>small{
  overflow:hidden!important;
  color:var(--account-muted)!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.joyjoy-save-server-arrow-v449{
  width:9px!important;
  height:9px!important;
  border-top:2px solid currentColor!important;
  border-left:2px solid currentColor!important;
  color:var(--account-muted)!important;
  transform:rotate(45deg)!important;
  transition:transform .16s ease!important;
}
.joyjoy-save-server-picker-v449.is-open .joyjoy-save-server-arrow-v449{transform:rotate(225deg)!important}
.joyjoy-save-server-menu-v449{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:calc(100% + 10px)!important;
  display:grid!important;
  gap:5px!important;
  max-height:min(320px,45vh)!important;
  padding:8px!important;
  overflow:auto!important;
  border:1px solid var(--account-border)!important;
  border-radius:14px!important;
  background:var(--account-surface,#fff)!important;
  box-shadow:0 18px 48px rgba(20,38,28,.18)!important;
  transform-origin:bottom center!important;
  animation:joyjoySaveServerMenuIn .16s ease-out both!important;
  z-index:80!important;
}
.joyjoy-save-server-menu-v449[hidden]{display:none!important}
.joyjoy-save-server-option-v449{
  display:grid!important;
  gap:2px!important;
  width:100%!important;
  min-height:46px!important;
  padding:8px 10px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  background:transparent!important;
  color:var(--account-text)!important;
  text-align:left!important;
  cursor:pointer!important;
}
.joyjoy-save-server-option-v449:hover{background:var(--account-surface-soft,#f6f8fa)!important}
.joyjoy-save-server-option-v449.is-selected{
  border-color:#82e596!important;
  background:#dafbe1!important;
  color:#116329!important;
}
.joyjoy-save-server-option-v449>strong{font-size:12px!important;font-weight:950!important}
.joyjoy-save-server-option-v449>small{font-size:10px!important;font-weight:800!important;color:var(--account-muted)!important}
.joyjoy-save-server-empty-v449{padding:12px!important;color:var(--account-muted)!important;font-size:11px!important;text-align:center!important}
.joyjoy-save-result-v449{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:38px!important;
  padding:7px 10px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  opacity:0!important;
  transform:translateY(4px) scale(.97)!important;
  pointer-events:none!important;
}
.joyjoy-save-result-v449.is-visible{
  opacity:1!important;
  transform:none!important;
  animation:joyjoySaveResultIn .22s ease-out both!important;
}
.joyjoy-save-result-v449>i{
  display:grid!important;
  place-items:center!important;
  width:24px!important;
  height:24px!important;
  border-radius:50%!important;
  font-style:normal!important;
  font-size:14px!important;
  font-weight:1000!important;
}
.joyjoy-save-result-v449>span{font-size:11px!important;font-weight:950!important;white-space:nowrap!important}
.joyjoy-save-result-v449.is-success{border-color:#82e596!important;background:#dafbe1!important;color:#116329!important}
.joyjoy-save-result-v449.is-success>i{background:#2da44e!important;color:#fff!important}
.joyjoy-save-result-v449.is-error{border-color:#ffb3b8!important;background:#ffebe9!important;color:#a40e26!important}
.joyjoy-save-result-v449.is-error>i{background:#cf222e!important;color:#fff!important}
@keyframes joyjoySaveServerMenuIn{from{opacity:0;transform:translateY(5px) scale(.985)}to{opacity:1;transform:none}}
@keyframes joyjoySaveResultIn{from{opacity:0;transform:translateY(4px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .joyjoy-save-server-menu-v449,.joyjoy-save-result-v449.is-visible{animation:none!important}
  .joyjoy-save-server-trigger-v449,.joyjoy-save-server-arrow-v449{transition:none!important}
}
@media(max-width:820px){
  .joyjoy-save-server-picker-v449{order:3!important;flex:1 1 100%!important;min-width:0!important;margin-left:0!important}
  .joyjoy-save-result-v449{margin-left:auto!important}
}
@media(max-width:520px){
  .joyjoy-save-dock-v449>.primary,
  .joyjoy-save-dock-v449>.discard-unsaved-button{flex:1 1 calc(50% - 6px)!important;min-width:0!important}
  .joyjoy-save-result-v449{order:4!important;width:100%!important;justify-content:center!important;margin-left:0!important}
}


/* V462: full availability enforcement in the public cabinet. */
body[data-management-unavailable] #panel-bot-control > :not([data-site-availability-notice]),
body[data-management-unavailable] [data-active-bot] > :not([data-site-availability-notice]) {
  display: none !important;
}
.site-availability-lock-v462 {
  min-height: 180px;
  display: grid !important;
  place-items: center;
  text-align: center;
  border-style: dashed;
}
.site-availability-lock-v462 p { max-width: 680px; margin: 8px auto 0; }
[data-availability-link-disabled] {
  opacity: .48 !important;
  cursor: not-allowed !important;
  filter: grayscale(.45);
}
.subscription-bot-option-v151[data-purchase-unavailable="1"] b,
.subscription-purchase-unavailable-v462 {
  color: var(--warning-text, #b45309);
}
[data-theme="dark"] .site-availability-lock-v462,
html[data-theme="dark"] .site-availability-lock-v462,
body.theme-dark .site-availability-lock-v462 {
  background: var(--surface-2, #171a21) !important;
  color: var(--text-primary, #f4f6fb) !important;
  border-color: var(--border-strong, #3a4150) !important;
}


/* V471: General and Journal share one save dock on all three bot pages. */
body[data-account-page="bots"] :is([data-module-panel="tt-general"],[data-module-panel="sh-general"],[data-module-panel="gm-general"]) .journal-save-bar-v202{display:none!important;visibility:hidden!important;pointer-events:none!important}
body[data-account-page="bots"] :is([data-module-panel="tt-general"],[data-module-panel="sh-general"],[data-module-panel="gm-general"])>.general-dock-after-journal-v471{margin-top:18px!important}

/* V483: role icon and unavailable temporary-room bitrate */
.shieldy-user-check-icon svg{
  width:21px;
  height:21px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.shieldy-coming-soon-field>label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.shieldy-soon-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:3px 9px;
  border:1px solid color-mix(in srgb,#d4a72c 62%,var(--account-border));
  border-radius:999px;
  background:color-mix(in srgb,#fff8c5 72%,var(--account-surface));
  color:#7d4e00;
  font-size:11px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.shieldy-coming-soon-field select:disabled{
  cursor:not-allowed;
  opacity:.72;
  color:var(--account-muted);
  background:var(--account-surface-soft);
  border-style:dashed;
}
.shieldy-coming-soon-field small{
  line-height:1.4;
}
html[data-theme="dark"] .shieldy-soon-badge{
  border-color:#9e6a03;
  background:rgba(210,153,34,.11);
  color:#e3b341;
}
