/* "Мой бот" — private bot panel (pbot.js). Builds on partner.css + theme-allan.css tokens. */
.pb-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.pb-bot{display:flex;align-items:center;gap:12px;min-width:0}
.pb-bot img,.pb-ava{width:48px;height:48px;border-radius:50%;flex:none;display:grid;place-items:center;background:var(--panel-2);font-size:22px;object-fit:cover}
.pb-bot-tx{min-width:0}
.pb-name{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}
.pb-dot{width:9px;height:9px;border-radius:50%;background:#64748b;display:inline-block;flex:none}
.pb-dot.on{background:var(--green,#34d399);box-shadow:0 0 0 3px rgba(52,211,153,.18)}
.pb-head-act{display:flex;gap:8px;flex-wrap:wrap}
.pb-head-act a.xbtn,.pb-bar a.xbtn,.pb-callout a.xbtn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

.pb-subnav{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:18px;padding-bottom:2px}
.pb-subnav::-webkit-scrollbar{display:none}
.pb-subnav button{flex:none;background:var(--panel-2);border:1px solid var(--stroke-2);color:var(--muted);border-radius:999px;padding:8px 14px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;min-height:38px}
.pb-subnav button:hover{color:var(--text)}
.pb-subnav button.on{background:rgba(99,102,241,.18);border-color:rgba(129,140,248,.55);color:#c7d2fe}

.pb-body{display:flex;flex-direction:column}
.pb-bar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.pb-bar h2{margin-bottom:4px}
.pb-bar p{margin:0;max-width:640px}
.pb-bar code,.pb-help-step code{background:#0f172a;border:1px solid #1e293b;border-radius:6px;padding:1px 6px;font-size:13px}
.pb-seg{display:inline-flex;gap:4px;background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:10px;padding:3px}
.pb-seg-b{background:transparent;border:0;color:var(--muted);font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:7px;cursor:pointer}
.pb-seg-b.on{background:var(--indigo-600,#4f46e5);color:#fff}

.pb-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:14px}
.pb-panel{background:var(--panel);border:1px solid var(--glass-bd,var(--stroke));border-radius:12px;padding:16px 18px;margin-bottom:14px;min-width:0}
.pb-panel h3{font-size:15px;margin:0 0 12px}
.pb-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pb-two .pb-panel{margin-bottom:0}
.pb-chart{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:6px;align-items:end;height:150px}
.pb-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;min-width:0}
.pb-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:2px}
.pb-bars i{display:block;width:42%;max-width:14px;border-radius:4px 4px 0 0;min-height:2px}
.pb-bars i.s{background:rgba(129,140,248,.4)}
.pb-bars i.v{background:var(--green,#34d399)}
.pb-col span{font-size:10.5px;color:var(--muted);white-space:nowrap}
.pb-legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px;font-size:12.5px;color:var(--muted)}
.pb-legend span::before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.pb-legend .s::before{background:rgba(129,140,248,.4)}
.pb-legend .v::before{background:var(--green,#34d399)}
.pb-top{display:flex;flex-direction:column;gap:8px}
.pb-top-row{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.pb-top-row span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pb-top-row span:last-child{flex:none}
.pb-top-row b{color:var(--text)}
.pb-callout{background:rgba(99,102,241,.1);border:1px solid rgba(129,140,248,.35);border-radius:12px;padding:12px 16px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;font-size:14.5px}

.pb-ads,.pb-srvs{display:flex;flex-direction:column;gap:12px}
.pb-ad,.pb-srv{background:var(--panel);border:1px solid var(--glass-bd,var(--stroke));border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:9px;min-width:0}
.pb-ad-top,.pb-srv-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pb-ad-top b{font-size:15.5px;overflow-wrap:anywhere}
.pb-link a{color:var(--blue-2);overflow-wrap:anywhere}
.pb-chip{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:rgba(255,255,255,.07);color:var(--muted);white-space:nowrap}
.pb-chip.g{background:rgba(52,211,153,.14);color:#6ee7b7}
.pb-chip.a{background:rgba(245,158,11,.15);color:#fcd34d}
.pb-chip.n{background:rgba(148,163,184,.15);color:#cbd5e1}
.pb-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#0f172a;border:1px solid #1e293b;border-radius:10px;padding:10px 12px;font-size:14px;max-height:180px;overflow:auto;min-height:20px}
.pb-warn{background:rgba(248,113,113,.1);border:1px solid rgba(248,113,113,.35);color:#fca5a5;border-radius:10px;padding:8px 12px;font-size:13.5px}
.pb-metrics{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;color:var(--muted)}
.pb-metrics b{color:var(--text)}
.pb-prog{height:6px;border-radius:999px;background:#1e293b;overflow:hidden}
.pb-prog i{display:block;height:100%;background:var(--green,#34d399);border-radius:999px}
.pb-ad-act,.pb-form-act{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.pb-danger{color:#fca5a5!important}
.pb-empty{text-align:center;color:var(--muted);padding:26px 12px;border:1px dashed var(--stroke-2);border-radius:12px}

.pb-form{background:var(--panel);border:1px solid rgba(129,140,248,.45);border-radius:12px;padding:16px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;margin-bottom:14px;scroll-margin-top:90px}
.pb-form h3{grid-column:1/-1;margin:0;font-size:16px}
.pb-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.pb-f>span{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.pb-f .plog-inp,.pb-srv textarea{width:100%;box-sizing:border-box;min-width:0;font-weight:500}
.pb-f textarea,.pb-srv textarea{resize:vertical;min-height:70px;line-height:1.45}
.pb-f small,.pb-check small{font-size:12.5px;line-height:1.4}
.pb-form .wide{grid-column:1/-1}
.pb-check{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:14.5px;min-width:0}
.pb-check input{margin-top:3px;width:17px;height:17px;flex:none;accent-color:var(--indigo-500,#6366f1)}
.pb-check small{display:block;margin-top:2px}
.pb-check-mid{align-self:end;padding-bottom:10px}
.pb-guilds{display:flex;flex-wrap:wrap;gap:8px 18px}

.pb-srv-top img,.pb-srv-top .pb-ava{width:40px;height:40px;border-radius:10px}
.pb-srv-top>div{flex:1;min-width:0}
.pb-srv-top b{overflow-wrap:anywhere}
.pb-toggle{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--muted);cursor:pointer}
.pb-cardlist{display:flex;flex-wrap:wrap;gap:6px}
.pb-cardlist a{font-size:13px;background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:8px;padding:4px 10px;text-decoration:none;color:var(--blue-2)}
.pb-det summary{cursor:pointer;color:var(--blue-2);font-size:14px}
.pb-det[open] summary{margin-bottom:8px}
.pb-det .pb-form-act{margin-top:8px}

.pb-logf{margin-bottom:12px}
.pb-pager{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:10px}

.pb-help{display:flex;flex-direction:column;gap:12px}
.pb-help-step{background:var(--panel);border:1px solid var(--glass-bd,var(--stroke));border-radius:12px;padding:14px 18px}
.pb-help-step h3{margin:0 0 8px;font-size:16px;display:flex;align-items:center;gap:10px}
.pb-num{width:26px;height:26px;border-radius:50%;background:rgba(99,102,241,.2);color:#c7d2fe;display:grid;place-items:center;font-size:13px;flex:none}
.pb-help-step p,.pb-help-step li{font-size:14.5px;line-height:1.55;color:#cbd5e1;margin:0}
.pb-help-step p+p,.pb-help-step ol+p,.pb-help-step ul+p{margin-top:8px}
.pb-help-step ol,.pb-help-step ul{margin:4px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:5px}

@media (max-width:760px){
  .pb-two{grid-template-columns:1fr}
  .pb-form{grid-template-columns:1fr;padding:14px}
  .pb-check-mid{align-self:start;padding-bottom:0}
}
@media (max-width:600px){
  .pb-chart{height:120px;gap:3px}
  .pb-col span{font-size:9px}
  .pb-head-act{width:100%}
  .pb-head-act>*{flex:1;min-height:40px}
  .pb-bar>.xbtn,.pb-bar>a.xbtn{width:100%;min-height:42px}
  .pb-ad-act .btn,.pb-form-act .btn,.pb-form-act .xbtn{flex:1 1 calc(50% - 8px);min-height:40px}
  .pb-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
}

/* The "Мой бот" pane is the partner's own tool: the network stat cards and admin boxes stay on the Overview. */
#app[data-pane="pbot"] #p-cards,#app[data-pane="pbot"] #xp-edit,#app[data-pane="pbot"] #xp-dm{display:none}

/* Ad mode: no check (default) / join check — on the card and in the form */
.pb-mode-row{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.pb-mode{display:inline-flex;gap:3px;background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:10px;padding:3px}
.pb-mode-b{background:transparent;border:0;color:var(--muted);font:inherit;font-size:13px;font-weight:600;padding:6px 12px;border-radius:7px;cursor:pointer;white-space:nowrap}
.pb-mode-b:hover{color:var(--text)}
.pb-mode-b.on{background:var(--indigo-600,#4f46e5);color:#fff}
.pb-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pb-mode-card{display:flex;gap:10px;align-items:flex-start;background:#0f172a;border:1px solid #1e293b;border-radius:10px;padding:10px 12px;cursor:pointer;text-transform:none;letter-spacing:0}
.pb-mode-card:has(input:checked){border-color:rgba(129,140,248,.7);background:rgba(99,102,241,.1)}
.pb-mode-card input{margin-top:3px;accent-color:var(--indigo-500,#6366f1);flex:none}
.pb-mode-card b{display:block;font-size:14.5px;color:var(--text)}
.pb-mode-card small{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;font-weight:500}
.pb-warn{display:flex;flex-direction:column;gap:10px}
.pb-warn-act{display:flex;gap:8px;flex-wrap:wrap}
.pb-warn-act a.xbtn{text-decoration:none;display:inline-flex;align-items:center}
@media (max-width:600px){
  .pb-modes{grid-template-columns:1fr}
  .pb-mode{width:100%}
  .pb-mode-b{flex:1}
  .pb-warn-act>*{flex:1 1 100%;justify-content:center;min-height:40px}
}

/* Three ad modes + tag check settings */
.pb-modes{grid-template-columns:repeat(3,minmax(0,1fr))}
.pb-mode{flex-wrap:wrap}
.pb-tagset{background:rgba(99,102,241,.07);border:1px solid rgba(129,140,248,.3);border-radius:10px;padding:12px 14px}
.pb-tagset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.pb-tagset-grid .wide{grid-column:1/-1}
.pb-taginfo{display:flex;flex-wrap:wrap;gap:4px 14px}
@media (max-width:900px){ .pb-modes{grid-template-columns:1fr} }
@media (max-width:760px){ .pb-tagset-grid{grid-template-columns:1fr} }

/* Formats: verification cards and giveaways (Discord-like previews, permission problems) */
.pb-probs b{display:block;margin-bottom:4px}
.pb-probs ul{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:3px}
.pb-bad{color:#fca5a5}
.pb-form select.plog-sel{width:100%;min-width:0;box-sizing:border-box}
.pb-color{height:42px;padding:4px;cursor:pointer}
.pb-dur{display:flex;gap:8px}
.pb-dur>*{flex:1;min-width:0}
.pb-dur>.pb-limit{flex:0 0 120px}
.pb-dur>[data-pb-act="gw-limit-reset"]{flex:0 0 auto}
.pb-limit-now{display:block}
.pb-emojis{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px;max-height:124px;overflow:auto}
.pb-emo{background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:8px;padding:3px;min-width:36px;height:36px;display:grid;place-items:center;cursor:pointer;color:var(--text);font:inherit;font-size:12px}
.pb-emo:hover{border-color:rgba(129,140,248,.6)}
.pb-emo img{width:24px;height:24px;object-fit:contain}
.pb-dmsg{background:#313338;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;max-width:520px;box-sizing:border-box}
.pb-embed{background:#2b2d31;border-left:4px solid #5865F2;border-radius:4px;padding:10px 14px;display:flex;flex-direction:column;gap:6px;color:#dbdee1;font-size:14px;min-width:0}
.pb-embed-author{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.pb-embed-author img{width:22px;height:22px;border-radius:50%}
.pb-embed-title{font-weight:700;color:#f2f3f5;font-size:15.5px;overflow-wrap:anywhere}
.pb-embed-desc{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.pb-embed-desc b{color:#f2f3f5}
.pb-drow{display:flex;gap:8px;flex-wrap:wrap}
.pb-dbtn{display:inline-flex;align-items:center;gap:6px;background:#5865F2;color:#fff;border-radius:4px;padding:6px 14px;font-size:14px;font-weight:500;max-width:100%;overflow-wrap:anywhere}
.pb-dbtn.sec{background:#4e5058}
.pb-demoji{width:18px;height:18px;object-fit:contain}
.pb-win{display:inline-block;background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:999px;padding:2px 10px;font-size:13px;margin:2px 2px 0 0;overflow-wrap:anywhere}
.pb-win.on{border-color:rgba(52,211,153,.6);color:#6ee7b7}
.pb-parts{display:flex;flex-wrap:wrap;gap:4px;max-height:180px;overflow:auto}
.pb-ad-act a.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
@media (max-width:600px){
  .pb-ad-act a.btn{flex:1 1 calc(50% - 8px);min-height:40px}
  .pb-form-act [data-pb-act="meta-refresh"]{flex:1 1 100%}
}
.pb-preview.dmd{white-space:normal}

/* Giveaway message editor: formatting toolbar, placeholders, emoji picker, link button */
.pb-mdbar{display:flex;flex-wrap:wrap;gap:4px}
.pb-mdb{min-width:34px;height:32px;padding:0 9px;border-radius:7px;background:var(--panel-2);border:1px solid var(--stroke-2);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.pb-mdb:hover{border-color:rgba(129,140,248,.6)}
.pb-mdb-i{font-style:italic}.pb-mdb-u{text-decoration:underline}.pb-mdb-s{text-decoration:line-through}
.pb-mdb-wide{font-weight:600}
.pb-tpl{font-family:ui-monospace,Consolas,monospace;font-size:13.5px}
.pb-chips{display:flex;flex-wrap:wrap;gap:6px}
.pb-chip-b{background:transparent;border:1px dashed var(--stroke-2);border-radius:999px;color:var(--muted);font:inherit;font-size:12.5px;padding:3px 10px;cursor:pointer}
.pb-chip-b:hover{color:var(--text);border-color:rgba(129,140,248,.6)}
.pb-chip-b code{color:#c7d2fe}
.pb-epick{background:rgba(99,102,241,.07);border:1px solid rgba(129,140,248,.3);border-radius:10px;padding:10px 12px}
.pb-epick-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pb-epick-top b{font-size:13.5px}
.pb-epick-top select{flex:1 1 180px;min-width:0}
.pb-emojis.big{max-height:220px}
.pb-embed-desc.dmd{white-space:normal}
.pb-embed-foot{font-size:12px;color:#949ba4;margin-top:4px}
.pb-dbtn.sec{gap:5px}
.pb-dlink{flex:none;opacity:.9}

/* Message text editor: emojis shown as images/animations */
.pb-editor{min-height:118px;max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text;line-height:1.55;padding:10px 12px;font-family:ui-monospace,Consolas,monospace;font-size:13.5px;box-sizing:border-box}
.pb-editor:focus{outline:none;border-color:rgba(129,140,248,.7)}
.pb-editor:empty::before{content:attr(data-placeholder);color:var(--muted);white-space:pre-wrap;pointer-events:none}
.pb-edemoji{width:22px;height:22px;object-fit:contain;vertical-align:-6px;margin:0 1px}
.pb-emoprev{flex:0 0 auto !important;width:42px;display:grid;place-items:center;background:var(--panel-2);border:1px solid var(--stroke-2);border-radius:8px;font-size:20px}
.pb-emoprev:empty{display:none}
.pb-emoprev img{width:24px;height:24px;object-fit:contain}
.pb-dbtn.st-secondary{background:#4e5058}
.pb-dbtn.st-primary{background:#5865F2}
.pb-dbtn.st-success{background:#248046}
.pb-dbtn.st-danger{background:#da373c}
.pb-prevseg{margin-bottom:8px}
.pb-dbtn.off{opacity:.5}
.pb-sect{border-top:1px solid var(--stroke-2);padding-top:14px;margin-top:4px}
.pb-sect>span{color:var(--text)}
/* Giveaways: «Настроить шаблон» + «Запустить розыгрыш», and the template summary under them */
.pb-gw-btns{display:flex;gap:8px;flex-wrap:wrap}
.pb-gw-btns button:disabled{opacity:.5;cursor:not-allowed}
.pb-gw-tpl{margin:-4px 0 12px;line-height:1.5}
.pb-tpl-lead{margin:-6px 0 0}
@media (max-width:600px){.pb-gw-btns{width:100%}.pb-gw-btns>button{flex:1 1 0;min-height:40px}}
/* Giveaways list pages (the admin's .pager look; the cabinet has no .pager of its own) */
.pb-gwpager{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:14px}
.pb-gwpager button{min-width:34px;height:32px;padding:0 10px;background:#1e293b;border:1px solid #334155;border-radius:8px;color:#cbd5e1;font:inherit;font-size:13px;cursor:pointer}
.pb-gwpager button:hover:not(:disabled){background:#334155;color:#fff}
.pb-gwpager button.on{background:rgba(79,70,229,.2);border-color:rgba(99,102,241,.5);color:#c7d2fe}
.pb-gwpager button:disabled{opacity:.4;cursor:default}
.pb-gwpager .gap{color:#94a3b8;padding:0 2px}
.pb-gwpager .count{margin-left:auto;color:#94a3b8;font-size:12.5px}
@media (max-width:600px){.pb-gwpager .count{margin-left:0;width:100%}}
.pb-gw-act{justify-content:flex-start}
.pb-gw-act .btn{min-height:0;height:38px;box-sizing:border-box;padding-top:0;padding-bottom:0;line-height:1;display:inline-flex;align-items:center;justify-content:center}
.pb-gw-tpls{margin:4px 0 0;padding-left:18px;display:grid;gap:2px}
.pb-gw-tpls b{color:var(--text,#f8fafc);font-weight:600}
.pb-gw-report{margin:0 0 12px}
.pb-gw-report .btn{margin-top:8px;justify-self:start;align-self:flex-start;width:auto}
.pb-tplsrv{padding:12px 14px;border:1px solid rgba(129,140,248,.35);border-radius:10px;background:rgba(79,70,229,.08);gap:8px}
/* «Запустить розыгрыш» → the server picker dialog */
.pb-modal{position:fixed;inset:0;z-index:200;background:rgba(2,6,23,.72);display:grid;place-items:center;padding:16px;box-sizing:border-box}
.pb-modal-box{width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#1e293b;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:20px;box-sizing:border-box;display:grid;gap:12px;box-shadow:0 24px 60px -24px rgba(0,0,0,.85)}
.pb-modal-box h3{margin:0;font-size:18px}
.pb-modal-box p{margin:0}
.pb-pick-tools{display:flex;gap:8px;flex-wrap:wrap}
.pb-pick-list{display:grid;gap:6px}
.pb-pick-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #334155;border-radius:8px;background:#0f172a;cursor:pointer;min-width:0}
.pb-pick-row input{width:18px;height:18px;flex:none;accent-color:#6366f1}
.pb-pick-tx{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pb-pick-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-pick-last{font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-pick-prize{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* «Сервера» on a giveaway: the batch it was started with */
.pb-batch{border:1px solid #334155;border-radius:8px;overflow:hidden}
.pb-batch-h{padding:8px 12px;font-size:12px;font-weight:600;color:#94a3b8;background:rgba(15,23,42,.6);border-bottom:1px solid #334155}
.pb-batch-row{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;padding:8px 12px}
.pb-batch-row+.pb-batch-row{border-top:1px solid #1e293b}
.pb-batch-name{flex:1 1 200px;min-width:0;overflow-wrap:anywhere;font-size:14px}
.pb-batch-act{display:flex;gap:6px;margin-left:auto}
.pb-batch-act .btn{height:32px;display:inline-flex;align-items:center;padding-top:0;padding-bottom:0;text-decoration:none}
/* Network giveaways preview: the server on top of the embed, one reaction under it */
.pb-embed-author{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#f2f3f5;margin-bottom:6px}
.pb-embed-author img{width:22px;height:22px;border-radius:50%;object-fit:cover}
.pb-dreact{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border-radius:8px;background:rgba(88,101,242,.15);border:1px solid #5865f2;color:#dee0fc;font-size:13px;font-weight:600}
.pb-dreact img,.pb-dreact .pb-emo-i{width:18px;height:18px}

/* A giveaway card: the bot-created channel could not be locked */
.pb-warn-line{color:#fcd34d}

/* the ad form: Example / Use the ping / Set up the example; the template's ad ping picker */
.pb-adtools{display:flex;flex-wrap:wrap;gap:8px}
.pb-adex{margin-top:10px;padding:12px;border:1px dashed var(--stroke-2);border-radius:10px;display:grid;gap:10px}
.pb-adping{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pb-adping .plog-sel{flex:1 1 180px;min-width:0}

/* template server switch: search + icon buttons with a status dot */
.pb-srvsearch{width:100%}
.pb-srvbtns{display:flex;flex-wrap:wrap;gap:6px;max-height:210px;overflow:auto;margin-top:6px}
.pb-srvbtn{display:inline-flex;align-items:center;gap:7px;max-width:230px;padding:5px 11px 5px 6px;border:1px solid var(--stroke-2);border-radius:999px;background:var(--panel-2);color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.pb-srvbtn:hover{color:var(--text);border-color:rgba(129,140,248,.5)}
.pb-srvbtn.on{border-color:var(--indigo-600,#4f46e5);background:rgba(79,70,229,.15);color:#fff}
.pb-srvbtn img,.pb-srvbtn .pb-ava2{width:22px;height:22px;border-radius:50%;object-fit:cover;flex:none;display:inline-flex;align-items:center;justify-content:center;background:var(--panel);font-size:12px}
.pb-srvbtn-n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-srvdot{width:7px;height:7px;border-radius:50%;flex:none}
.pb-srvdot.g{background:#34d399}
.pb-srvdot.a{background:#f59e0b}
.pb-srvdot.n{background:transparent;border:1px solid var(--stroke-2)}
/* Lists with a search box (pickSel in pbot.js): the button looks like the select it stands for */
.pb-srch{display:block;min-width:0}
.pb-srch-btn{width:100%;min-width:0;box-sizing:border-box;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
.pb-adping .pb-srch{flex:1 1 180px;min-width:0}
.pb-srchpop{position:fixed;z-index:1200;display:flex;flex-direction:column;gap:6px;padding:8px;box-sizing:border-box;background:#1e293b;border:1px solid #334155;border-radius:10px;box-shadow:0 18px 44px -12px rgba(0,0,0,.75)}
.pb-srchpop .plog-inp{width:100%;min-width:0;box-sizing:border-box;min-height:38px;flex:none}
.pb-srchlist{overflow-y:auto;min-height:0;flex:1 1 auto;display:flex;flex-direction:column;gap:1px;overscroll-behavior:contain}
.pb-srchopt{display:flex;align-items:baseline;justify-content:space-between;gap:10px;width:100%;text-align:left;background:transparent;border:0;border-radius:7px;padding:8px 10px;color:#e2e8f0;font:inherit;font-size:14px;cursor:pointer}
.pb-srchopt>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-srchopt small{flex:none;color:#64748b;font-size:11.5px;font-variant-numeric:tabular-nums}
.pb-srchopt:hover,.pb-srchopt.hl{background:rgba(99,102,241,.18)}
.pb-srchopt.on{color:#a5b4fc;font-weight:600}
.pb-srchnone{padding:10px}
@media (max-width:600px){.pb-srchopt small{display:none}}
