:root{--navy:#14213d;--blue:#1f8efa;--teal:#22c7a9;--amber:#ffb547;--bg:#f5f7fb;--line:#e4e9f2;--text:#18233b;--muted:#718096;--white:#fff;--danger:#e5484d;--shadow:0 16px 40px rgba(20,33,61,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:var(--bg)}button,input,textarea,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.app-shell{min-height:100vh;display:grid;grid-template-columns:248px 1fr}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--navy);color:white;padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 32px}.brand img{width:46px;height:46px;object-fit:contain}.brand strong,.brand small{display:block}.brand small{opacity:.56;margin-top:3px;font-size:12px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{border:0;background:transparent;color:#aeb9cd;text-align:left;padding:12px 16px;border-radius:12px}.sidebar nav button:hover,.sidebar nav button.active{color:#fff;background:rgba(31,142,250,.18)}.sidebar nav button.active{box-shadow:inset 3px 0 var(--blue)}.sidebar-footer{margin-top:auto;padding:18px 10px 0;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;gap:10px;font-size:13px}.link-button{border:0;background:none;color:var(--teal);padding:0}.app-shell main{grid-column:2;padding:34px 44px 80px;max-width:1500px;width:100%}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.topbar h1{margin:3px 0 0;font-size:30px}.eyebrow{margin:0;color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.16em}.badge{padding:7px 12px;border-radius:999px;background:#eaf4ff;color:var(--blue);font-weight:700;font-size:13px}.badge.paid{background:#fff3dc;color:#9b6100}.view{display:none}.view.active{display:block}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:18px}.stat,.panel{background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.stat{padding:24px}.stat span,.stat small{display:block;color:var(--muted)}.stat strong{display:block;font-size:34px;margin:12px 0 5px}.panel{padding:26px;margin-bottom:18px}.panel h2{margin:4px 0 20px;font-size:20px}.source-panel{display:grid;grid-template-columns:1fr auto;gap:22px;align-items:center}.source-identity{display:flex;align-items:center;gap:13px}.source-icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,var(--blue),var(--teal));color:white;font-weight:900}.source-identity strong,.source-identity small{display:block}.source-identity small{color:var(--muted);margin-top:4px}.inline-form{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr auto;gap:10px}.hint{grid-column:1/-1;margin:0;color:var(--muted);font-size:13px}.section-heading{display:flex;justify-content:space-between;align-items:start}.button{border:0;border-radius:11px;padding:11px 17px;font-weight:750;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.button.primary{background:var(--blue);color:white}.button.amber{background:var(--amber);color:#4b3100}.button.ghost{background:#edf1f7;color:var(--text)}input,textarea,select{width:100%;border:1px solid #d9e0ea;border-radius:10px;padding:11px 12px;background:#fff;color:var(--text);outline:0}input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,142,250,.12)}textarea{resize:vertical}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.compact{grid-template-columns:2fr 1fr 1fr auto;align-items:start}.form-grid label span,.stack-form label span{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.form-grid label small{color:var(--muted);display:block;margin-top:6px}.full{grid-column:1/-1}.align-end{align-self:end}.toggle{display:flex!important;gap:10px;align-items:center;padding:10px 0}.toggle input{width:18px;height:18px}.toggle span{margin:0!important}.cards-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.group-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.group-head{display:flex;justify-content:space-between;gap:15px}.group-head h3{margin:0 0 5px}.group-head small{color:var(--muted)}.group-health{font-size:12px;color:#17866e;background:#e5fbf6;padding:5px 9px;border-radius:999px;height:max-content}.price-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px 0}.price-strip div{padding:10px;background:var(--bg);border-radius:10px}.price-strip span,.price-strip strong{display:block}.price-strip span{font-size:11px;color:var(--muted);margin-bottom:3px}.card-actions{display:flex;justify-content:flex-end;gap:8px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:680px}th,td{text-align:left;padding:13px 12px;border-bottom:1px solid var(--line);font-size:14px}th{font-size:12px;color:var(--muted);text-transform:uppercase}.positive{color:#13866d;font-weight:800}.negative{color:var(--danger);font-weight:800}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.stack-form{display:grid;gap:11px}.login-shell{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 10%,#e9f5ff 0,transparent 45%),var(--bg)}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:42px;text-align:center;box-shadow:var(--shadow)}.login-logo{width:130px;height:130px;object-fit:contain}.login-card h1{margin:8px 0}.login-card .muted{color:var(--muted);line-height:1.7;margin:16px 0 24px}.login-card .button{width:100%}dialog{border:0;border-radius:20px;padding:0;width:min(760px,calc(100% - 32px));box-shadow:0 30px 90px rgba(20,33,61,.25)}dialog::backdrop{background:rgba(20,33,61,.52);backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:start;padding:24px 26px;border-bottom:1px solid var(--line)}.dialog-head h2{margin:4px 0 0}.icon-button{border:0;background:#eef2f7;border-radius:50%;width:34px;height:34px;font-size:22px}.dialog-body{padding:26px;max-height:72vh;overflow:auto}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}.toast{position:fixed;right:24px;bottom:24px;max-width:380px;padding:14px 18px;border-radius:12px;background:var(--navy);color:#fff;box-shadow:var(--shadow);transform:translateY(120px);opacity:0;transition:.25s}.toast.show{transform:none;opacity:1}.toast.error{background:#a52a2f}
.source-mode-note{margin:20px 0;padding:16px;border:1px solid #bceee4;border-radius:12px;background:#ecfbf7}.source-mode-note strong,.source-mode-note span{display:block}.source-mode-note strong{color:#13866d;font-size:16px}.source-mode-note span{margin-top:6px;color:var(--muted);font-size:13px}.source-panel{display:block}.source-panel .inline-form{margin-top:20px}.source-panel .hint{margin-top:12px}.current-source-card{margin-top:20px;padding:18px;border:1px solid #dce8f6;border-radius:14px;background:linear-gradient(135deg,#f7fbff,#f5fffc)}.current-source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.current-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.current-source-grid>div{min-width:0;padding:13px 14px;border-radius:11px;background:#fff;border:1px solid var(--line)}.current-source-grid small,.current-source-grid strong{display:block}.current-source-grid small{color:var(--muted);font-size:12px;margin-bottom:6px}.current-source-grid strong,.source-link{font-size:14px;font-weight:750;overflow-wrap:anywhere}.source-link{color:var(--blue);text-decoration:none}.source-link[href]:hover{text-decoration:underline}
.subtabs{display:flex;gap:8px;margin:4px 0 18px;border-bottom:1px solid var(--line)}.subtabs button{border:0;background:transparent;color:var(--muted);font-weight:750;padding:11px 18px;border-bottom:3px solid transparent}.subtabs button.active{color:var(--blue);border-bottom-color:var(--blue)}.group-search{max-width:520px;margin-bottom:16px}.blacklist-hint{margin:0 0 16px}.danger-link{color:var(--danger)}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.55}
.feature-plan-card{min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;padding:18px;background:#f9fbfe}.feature-plan-card legend{padding:0 9px;color:var(--blue);font-weight:800}.paid-plan-card legend{color:#9b6100}.feature-plan-card>label>span{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.feature-plan-card>label>small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.feature-options{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;margin-top:12px}.feature-options .toggle{padding:7px 0}
.text-tier-editor{border:1px solid var(--line);border-radius:14px;padding:18px;background:#f9fbfe}.text-tier-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.text-tier-heading strong,.text-tier-heading small{display:block}.text-tier-heading small{color:var(--muted);font-size:12px;margin-top:5px}.text-tier-labels,.text-tier-row{display:grid;grid-template-columns:1fr 1fr 1fr 76px;gap:12px;align-items:center}.text-tier-labels{padding:0 2px 7px;color:var(--muted);font-size:12px;font-weight:700}.text-tier-row{margin-bottom:10px}.text-tier-row:last-child{margin-bottom:0}.text-tier-row label span{display:none}.text-tier-remove{color:var(--danger)!important;white-space:nowrap}
.card-actions{flex-wrap:wrap}.clone-description{margin:0 0 18px;color:var(--muted);line-height:1.65}.clone-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.clone-target-option{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f9fbfe;cursor:pointer}.clone-target-option:hover{border-color:var(--blue);background:#f3f9ff}.clone-target-option input{width:19px;height:19px;flex:0 0 auto}.clone-target-option span,.clone-target-option strong,.clone-target-option small{display:block;min-width:0}.clone-target-option small{margin-top:5px;color:var(--muted);overflow-wrap:anywhere}.clone-empty{grid-column:1/-1;padding:22px;border:1px dashed #cbd5e1;border-radius:12px;color:var(--muted);text-align:center}.clone-dialog-actions{margin-top:22px}
.access-mode-card{display:grid;grid-template-columns:1fr auto auto;gap:16px;align-items:center;margin-bottom:18px;padding:18px;border:1px solid #bceee4;border-radius:14px;background:#ecfbf7}.access-mode-card strong,.access-mode-card small{display:block}.access-mode-card small{margin-top:5px;color:var(--muted)}.access-form{margin-bottom:20px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#f9fbfe}.operator-list{display:grid;gap:5px}.operator-list small{color:var(--muted)}.status-authorized{color:#13866d;font-weight:800}.status-pending{color:#9b6100;font-weight:800}.inline-actions{display:flex;gap:10px;align-items:center;white-space:nowrap}
.currency-rule-editor{display:grid;gap:14px}.currency-rule-intro strong,.currency-rule-intro small{display:block}.currency-rule-intro small{margin-top:6px;color:var(--muted)}#currency-rule-categories{display:grid;gap:14px}.currency-category{border:1px solid var(--line);border-radius:14px;padding:17px;background:#f9fbfe}.currency-category.silver{background:#f7f8fb}.currency-category.gold{background:#fffaf0;border-color:#f1dfb8}.currency-category-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.currency-category-head small{color:var(--muted)}.currency-message-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.currency-message-rule{display:grid;grid-template-columns:20px 1fr 110px;gap:9px;align-items:center;padding:9px 10px;border-radius:10px;background:#fff;border:1px solid var(--line)}.currency-message-rule>input[type=checkbox]{width:18px;height:18px}.currency-message-rule>input[type=number]{padding:8px}.currency-message-rule span{margin:0!important}.balance-penalty-card{background:linear-gradient(135deg,#f7fbff,#fffaf0);border-color:#d9e6f5}
@media(max-width:900px){.app-shell{display:block}.sidebar{position:static;width:auto;height:auto;padding:16px}.brand{padding-bottom:12px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap}.sidebar-footer{display:none}.app-shell main{padding:24px 18px}.stats-grid,.cards-list,.admin-grid{grid-template-columns:1fr}.source-panel{grid-template-columns:1fr}.inline-form,.form-grid.compact{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.topbar h1{font-size:25px}.feature-options{grid-template-columns:1fr}.text-tier-heading{align-items:flex-start}.text-tier-labels{display:none}.text-tier-row{grid-template-columns:1fr 1fr}.text-tier-row label span{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.text-tier-remove{align-self:end;height:43px}}
@media(max-width:600px){.clone-targets{grid-template-columns:1fr}}
@media(max-width:700px){.access-mode-card{grid-template-columns:1fr}.access-mode-card .toggle{padding:0}}
@media(max-width:700px){.currency-message-grid{grid-template-columns:1fr}.currency-category-head{align-items:flex-start;flex-direction:column}}
.keyboard-builder{--keyboard-purple:#8b5cf6}.keyboard-heading{align-items:center;margin-bottom:22px}.keyboard-heading h2{margin-bottom:0}.keyboard-config-grid{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:18px;align-items:end;margin-bottom:24px}.keyboard-config-grid>label>span{display:block;margin-bottom:7px;font-size:13px;font-weight:750}.keyboard-config-grid .keyboard-enabled{align-self:end;min-height:43px}.keyboard-editor-block>label{display:block;margin-bottom:9px;color:var(--muted);font-size:14px}.keyboard-editor-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:10px 12px;border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;background:#f9fbfe}.keyboard-editor-toolbar button{min-width:40px;height:36px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:#655f73;font-size:17px}.keyboard-editor-toolbar button:hover{background:#eee8ff;color:var(--keyboard-purple)}.keyboard-message-editor{min-height:160px;padding:16px;border:1px solid var(--line);border-radius:0 0 12px 12px;background:#fff;outline:0;line-height:1.7}.keyboard-message-editor:focus{border-color:var(--keyboard-purple);box-shadow:0 0 0 3px rgba(139,92,246,.1)}.keyboard-message-editor:empty::before{content:attr(data-placeholder);color:#9791a3}.keyboard-list-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 14px;color:var(--muted)}.keyboard-list-heading>div{display:flex;align-items:center;gap:14px}.keyboard-add-row{background:var(--keyboard-purple)!important;color:#fff!important}.keyboard-rows{display:grid;gap:12px}.keyboard-row-card{padding:14px 16px;border:1px dashed #d7d3e0;border-radius:13px;background:#fff;transition:.15s}.keyboard-row-card.drag-over{border-color:var(--keyboard-purple);background:#faf7ff}.keyboard-row-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:#777184}.keyboard-row-head strong{font-size:14px}.keyboard-row-head .danger-link{margin-left:auto}.keyboard-row-drag,.keyboard-button-drag{cursor:grab;user-select:none;color:#817a90;font-size:21px}.keyboard-row-drag:active,.keyboard-button-drag:active{cursor:grabbing}.keyboard-button-list{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.keyboard-button-chip{display:flex;align-items:center;gap:4px;min-width:150px;padding:5px 7px;border:1px solid var(--keyboard-purple);border-radius:9px;background:#fff;color:var(--keyboard-purple)}.keyboard-button-chip input{min-width:90px;padding:6px 4px;border:0;box-shadow:none!important;color:var(--keyboard-purple);font-weight:750}.keyboard-button-chip input[readonly]{cursor:default}.keyboard-button-chip>button{width:28px;height:28px;padding:0;border:0;background:transparent;color:#ff4d5a;font-size:20px}.keyboard-add-button{width:44px;height:44px;border:0;border-radius:50%;background:#eee8ff;color:var(--keyboard-purple);font-size:28px}.keyboard-empty{padding:28px;border:1px dashed #d7d3e0;border-radius:13px;color:var(--muted);text-align:center}.field-note{margin:14px 0 0;color:var(--muted);font-size:13px;line-height:1.65}
@media(max-width:900px){.keyboard-config-grid{grid-template-columns:1fr}.keyboard-heading{align-items:flex-start}.keyboard-button-chip{min-width:130px}.keyboard-message-editor{min-height:130px}}
.drop-config-form{gap:20px}.drop-trigger-card{min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;padding:18px;background:#f9fbfe}.drop-trigger-card legend{padding:0 8px}.drop-trigger-card .form-grid.compact{grid-template-columns:1fr 1fr}.drop-reward-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}.drop-reward-heading strong,.drop-reward-heading small{display:block}.drop-reward-heading small{margin-top:5px;color:var(--muted)}.drop-reward-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.drop-reward-grid article{padding:16px;border:1px solid var(--line);border-radius:13px;background:#f9fbfe}.drop-reward-grid article>strong{display:block;margin-bottom:12px;color:var(--blue)}.drop-reward-grid label{display:block;margin-top:10px}.drop-reward-grid label span{display:block;margin-bottom:6px;font-size:12px;font-weight:700}.drop-broadcast-block{display:grid;gap:12px;padding:18px;border:1px solid #dce8f6;border-radius:14px;background:#f7fbff}.danger-badge{background:#ffe8e8!important;color:var(--danger)!important}
.drop-reward-grid .chest-reward-card{background:linear-gradient(145deg,#fff9e8,#fff 58%);border-color:#f5d78d;box-shadow:0 10px 28px rgba(212,156,25,.09)}.chest-reward-title{display:flex;align-items:center;gap:10px;margin-bottom:8px}.chest-reward-title>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff0bd;font-size:23px}.chest-reward-title strong,.chest-reward-title small{display:block}.chest-reward-title strong{color:#9b6700!important}.chest-reward-title small{margin-top:3px;color:#9b7d40;font-size:12px}.drop-chest-pool{min-width:0;margin:0;border:1px solid #dbe7f4;border-radius:20px;padding:24px;background:linear-gradient(145deg,#f7fbff 0,#fff 58%,#fffbef 100%);box-shadow:0 12px 32px rgba(31,64,104,.05)}.drop-chest-pool legend{padding:0 11px;font-size:19px;font-weight:900;color:#167ee9}.drop-chest-intro{display:flex;align-items:center;gap:15px;padding:16px 18px;border:1px solid #e1eaf4;border-radius:15px;background:rgba(255,255,255,.86)}.drop-chest-intro-icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#fff2bc,#ffdc78);box-shadow:inset 0 0 0 1px rgba(193,137,0,.08);font-size:25px}.drop-chest-intro strong,.drop-chest-intro p{display:block;margin:0}.drop-chest-intro strong{color:#163252;font-size:15px}.drop-chest-intro p{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.65}.drop-chest-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 2px 12px}.drop-chest-toolbar small{color:var(--muted)}.drop-chest-selected-count{display:inline-flex;align-items:center;padding:6px 11px;border-radius:999px;background:#edf1f6;color:#68768a;font-size:12px;font-weight:800}.drop-chest-selected-count.has-selection{background:#e5f3ff;color:#167ee9}.drop-chest-pool .feature-check-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;border:0;padding:0;background:transparent}.drop-chest-option{position:relative;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center!important;gap:13px!important;min-height:112px;padding:17px!important;overflow:hidden;border:1px solid #dce5ef;border-radius:16px!important;background:#fff!important;cursor:pointer;box-shadow:0 5px 16px rgba(31,64,104,.05);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.drop-chest-option:hover{transform:translateY(-2px);border-color:#80bcf5;box-shadow:0 11px 25px rgba(31,111,210,.12)}.drop-chest-option.is-selected{border-color:#248df2;background:linear-gradient(145deg,#edf7ff,#fff)!important;box-shadow:0 0 0 2px rgba(36,141,242,.11),0 10px 25px rgba(31,111,210,.09)}.drop-chest-input{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;opacity:0!important;pointer-events:none!important}.drop-chest-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(145deg,#fff3c4,#ffdf83);box-shadow:inset 0 0 0 1px rgba(186,127,0,.08);font-size:26px}.drop-chest-copy{display:block!important;min-width:0}.drop-chest-title{display:flex!important;align-items:center;gap:8px;min-width:0}.drop-chest-title strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#122b4b;font-size:15px}.drop-chest-status{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#f0f3f7;color:#8290a4;font-size:10px;font-weight:800}.drop-chest-option.is-selected .drop-chest-status{background:#dcefff;color:#167ee9}.drop-chest-command{display:inline-flex!important;margin-top:7px;padding:3px 8px;border-radius:7px;background:#f2f5f9;color:#53657c;font:700 12px ui-monospace,SFMono-Regular,Consolas,monospace}.drop-chest-meta{display:flex!important;flex-wrap:wrap;gap:6px;margin-top:8px}.drop-chest-meta em{padding:3px 7px;border-radius:7px;background:#f7f9fb;color:#708096;font-size:11px;font-style:normal}.drop-chest-check{display:grid;place-items:center;width:27px;height:27px;border:2px solid #c9d6e5;border-radius:9px;color:transparent;background:#fff;font-weight:900;transition:.18s}.drop-chest-option.is-selected .drop-chest-check{border-color:#248df2;background:#248df2;color:#fff;box-shadow:0 5px 12px rgba(36,141,242,.25)}.drop-chest-pool .empty-state{grid-column:1/-1;display:grid;justify-items:center;gap:7px;padding:34px;border:1px dashed #cfdbe8;border-radius:16px;background:rgba(255,255,255,.7);color:var(--muted);text-align:center}.drop-chest-pool .empty-state>span{font-size:28px}.drop-chest-pool .empty-state strong{color:#42546b}.drop-chest-pool .empty-state small{display:block}
@media(max-width:1100px){.drop-reward-grid,.drop-chest-pool .feature-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.drop-reward-grid,.drop-chest-pool .feature-check-grid{grid-template-columns:1fr}.drop-reward-heading{align-items:flex-start;flex-direction:column}.drop-trigger-card .form-grid.compact{grid-template-columns:1fr}.drop-chest-pool{padding:17px}.drop-chest-intro{align-items:flex-start;padding:14px}.drop-chest-intro-icon{width:42px;height:42px;font-size:22px}.drop-chest-toolbar{align-items:flex-start;flex-direction:column;gap:6px}.drop-chest-option{min-height:98px;padding:14px!important}.drop-chest-icon{width:46px;height:46px;font-size:23px}.drop-chest-title{align-items:flex-start;flex-direction:column;gap:5px}.drop-chest-meta{gap:4px}}
.whitelist-form{margin-top:4px}.whitelist-group-picker{min-width:0;margin:0;border:1px solid var(--line);border-radius:14px;padding:18px;background:#f9fbfe}.whitelist-group-picker legend{padding:0 8px;font-weight:800;color:var(--blue)}.whitelist-picker-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.whitelist-picker-head>small{color:var(--muted)}.whitelist-picker-head>div{display:flex;gap:14px}.whitelist-group-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.whitelist-group-option{display:flex!important;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer}.whitelist-group-option:hover{border-color:var(--blue);background:#f3f9ff}.whitelist-group-option>input{width:19px;height:19px;flex:0 0 auto}.whitelist-group-option span,.whitelist-group-option strong,.whitelist-group-option small{display:block!important;min-width:0;margin:0!important}.whitelist-group-option small{margin-top:4px!important;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:1000px){.whitelist-group-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.whitelist-group-options{grid-template-columns:1fr}.whitelist-picker-head{align-items:flex-start;flex-direction:column}}

/* Mobile dashboard navigation and responsive layout */
html,body{max-width:100%;overflow-x:hidden}.app-shell main,.view,.panel,.group-card,fieldset{min-width:0}.topbar-title{display:flex;align-items:center;gap:12px}.mobile-menu-toggle,.mobile-menu-close,.mobile-nav-overlay,.mobile-order-controls{display:none}
@media(max-width:900px){
  body{background:#f5f7fb}.app-shell{display:block;min-height:100dvh}.app-shell main{grid-column:auto;width:100%;max-width:none;padding:78px 14px 42px}
  .sidebar{position:fixed;z-index:1100;inset:0 auto 0 0;width:min(310px,86vw);height:100dvh;padding:20px 16px;overflow-y:auto;transform:translateX(-105%);transition:transform .22s ease;box-shadow:16px 0 42px rgba(20,33,61,.24)}
  body.mobile-nav-open .sidebar{transform:translateX(0)}body.mobile-nav-open{overflow:hidden}
  .mobile-nav-overlay{display:block;position:fixed;z-index:1050;inset:0;background:rgba(13,24,48,.52);opacity:0;pointer-events:none;transition:opacity .22s ease;backdrop-filter:blur(2px)}body.mobile-nav-open .mobile-nav-overlay{opacity:1;pointer-events:auto}
  .sidebar .brand{padding:0 4px 22px}.sidebar .brand>div{min-width:0}.mobile-menu-close{display:grid;margin-left:auto;width:38px;height:38px;place-items:center;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:26px;line-height:1}
  .sidebar nav{display:grid;gap:6px;overflow:visible}.sidebar nav button{min-height:46px;padding:12px 15px;font-size:15px;white-space:normal}.sidebar-footer{display:flex;margin-top:28px;padding:18px 10px 0}
  .topbar{position:fixed;z-index:900;inset:0 0 auto 0;height:64px;margin:0;padding:9px 14px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);box-shadow:0 6px 22px rgba(20,33,61,.06);backdrop-filter:blur(12px)}.topbar-title{min-width:0}.topbar-title>div{min-width:0}.topbar .eyebrow{display:none}.topbar h1{margin:0;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar .badge{padding:6px 10px;font-size:12px;white-space:nowrap}.mobile-menu-toggle{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border:0;border-radius:11px;background:#eaf4ff;color:var(--navy);font-size:23px;line-height:1}
  .stats-grid,.cards-list,.admin-grid{grid-template-columns:1fr;gap:12px}.stat{padding:18px}.stat strong{font-size:29px;margin:8px 0 3px}.panel{padding:18px;margin-bottom:14px;border-radius:15px}.panel h2{font-size:19px;margin-bottom:16px}
  .source-panel,.inline-form,.form-grid,.form-grid.compact,.keyboard-config-grid,.drop-trigger-card .form-grid.compact{grid-template-columns:1fr}.source-panel .inline-form{display:grid}.source-panel .inline-form .button{width:100%}.current-source-grid{grid-template-columns:1fr}.current-source-card{padding:14px}
  .section-heading{flex-direction:column;align-items:stretch;gap:14px}.section-heading>.button,.section-heading>button{width:100%}.button{min-height:44px}.align-end{align-self:stretch}.form-grid{gap:14px}.full{grid-column:auto}
  .group-card{padding:18px;border-radius:15px}.group-head{align-items:flex-start}.price-strip{margin:16px 0}.card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card-actions .button{width:100%;padding:10px 8px;font-size:14px}
  .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:680px}.table-wrap::after{content:"左右滑动查看完整表格";display:block;position:sticky;left:0;width:max-content;margin-top:10px;color:var(--muted);font-size:12px}
  dialog{position:fixed;inset:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.dialog-head{padding:16px 18px}.dialog-body{max-height:calc(100dvh - 73px);padding:18px;overflow-y:auto}.dialog-actions{position:sticky;bottom:-18px;margin:18px -18px -18px;padding:12px 18px;background:#fff;border-top:1px solid var(--line)}
  .clone-targets,.currency-message-grid,.feature-options,.whitelist-group-options,.drop-reward-grid{grid-template-columns:1fr}.access-mode-card{grid-template-columns:1fr}.clone-target-option{padding:12px}.currency-category{padding:14px}.currency-message-rule{grid-template-columns:20px minmax(0,1fr) 92px}.feature-plan-card{padding:15px}
  .text-tier-heading{align-items:flex-start;flex-direction:column}.text-tier-heading .button{width:100%}.text-tier-labels{display:none}.text-tier-row{grid-template-columns:1fr 1fr}.text-tier-row label span{display:block;font-size:12px;font-weight:700;margin-bottom:6px}.text-tier-remove{align-self:end;height:44px}
  .keyboard-heading{align-items:stretch}.keyboard-editor-toolbar{overflow-x:auto;flex-wrap:nowrap}.keyboard-editor-toolbar button{flex:0 0 auto}.keyboard-list-heading{align-items:flex-start;gap:12px;flex-direction:column}.keyboard-list-heading>div{width:100%;justify-content:space-between}.keyboard-row-card{padding:12px}.keyboard-button-list{display:grid;grid-template-columns:1fr}.keyboard-button-chip{display:grid;width:100%;min-width:0;grid-template-columns:auto auto minmax(0,1fr) auto}.keyboard-button-chip input{min-width:0}.keyboard-add-button{justify-self:center}.mobile-order-controls{display:inline-flex;gap:4px}.mobile-order-controls button{display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:8px;background:#eee8ff;color:#6d28d9;font-weight:800}.keyboard-row-head .mobile-order-controls{margin-left:auto}.keyboard-row-head .danger-link{margin-left:0}
  .whitelist-picker-head,.drop-reward-heading{align-items:flex-start;flex-direction:column}.whitelist-picker-head>div{width:100%;justify-content:flex-end}.drop-broadcast-block{padding:14px}.drop-trigger-card{padding:15px}
  .access-form{padding:14px}.inline-actions{flex-wrap:wrap;white-space:normal}.subtabs{overflow-x:auto}.subtabs button{flex:0 0 auto;white-space:nowrap}
  input,textarea,select{font-size:16px}.toast{right:12px;bottom:12px;left:12px;max-width:none;text-align:center}
}
@media(max-width:480px){
  .app-shell main{padding:74px 10px 32px}.topbar{padding-inline:10px}.panel,.group-card{padding:14px;border-radius:13px}.login-card{padding:28px 20px}.login-logo{width:104px;height:104px}
  .card-actions{grid-template-columns:1fr}.price-strip{gap:6px}.price-strip div{padding:9px 7px}.price-strip strong{font-size:14px}.current-source-heading{align-items:flex-start;flex-direction:column}.current-source-grid>div{padding:11px 12px}
  .text-tier-row{grid-template-columns:1fr}.text-tier-remove{width:100%}.currency-message-rule{grid-template-columns:20px minmax(0,1fr) 82px;padding:8px}.dialog-head{padding:14px}.dialog-body{padding:14px;max-height:calc(100dvh - 67px)}.dialog-actions{bottom:-14px;margin:16px -14px -14px;padding:10px 14px;flex-direction:column}.dialog-actions .button{width:100%}
}
.feature-hub-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.feature-switches{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.feature-stats{margin-top:0}.feature-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:0 0 18px;padding:0 8px}.feature-tabs button{border:0;background:transparent;color:var(--muted);font-weight:800;padding:13px 18px;border-bottom:3px solid transparent}.feature-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}.feature-form-actions{display:flex;gap:8px}.feature-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#f9fbfe}.feature-group-list{display:grid;gap:14px;margin-top:20px}.feature-group-card{border:1px solid var(--line);border-radius:15px;padding:18px;background:#f9fbfe}.feature-group-card .feature-check-grid{margin:14px 0;background:#fff}.feature-group-card .form-grid{gap:12px}.feature-tab-panel code{padding:3px 7px;border-radius:6px;background:#edf3fa;color:#174f86}.feature-tab-panel textarea{line-height:1.55}
.feature-cycle-settings{margin:0;padding:18px;border:1px solid #dce8f6;border-radius:14px;background:#f7fbff}.feature-cycle-settings>legend{padding:0 8px;color:var(--blue);font-weight:800}.feature-cycle-settings .form-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.field-title{display:block;margin-bottom:7px;font-size:13px;font-weight:700}.relationship-reward-items{margin-top:7px;background:#fff}.relationship-reward-items .toggle{padding:3px 0}

.keyboard-button-chip>.keyboard-button-preview{width:auto;min-width:94px;max-width:280px;height:34px;padding:6px 14px;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.keyboard-button-preview.style-default{background:#fff;color:#6d28d9;border-color:#8b5cf6}.keyboard-button-preview.style-success{background:#22a06b;color:#fff;border-color:#22a06b}.keyboard-button-preview.style-primary{background:#2f80ed;color:#fff;border-color:#2f80ed}.keyboard-button-preview.style-danger{background:#e5484d;color:#fff;border-color:#e5484d}.keyboard-button-chip>.keyboard-button-remove{width:28px;height:28px;padding:0;border:0;background:transparent;color:#ff4d5a;font-size:20px}.keyboard-button-form{display:grid;gap:18px}.keyboard-button-form>label>span{display:block;margin-bottom:7px;font-size:13px;font-weight:750}.keyboard-emoji-presets{display:flex;flex-wrap:wrap;gap:8px;margin-top:-8px}.keyboard-emoji-presets button{min-width:40px;height:38px;padding:0 9px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;font-size:19px}.keyboard-emoji-presets button:last-child{font-size:13px;color:var(--muted)}.keyboard-color-fieldset{margin:0;padding:0;border:0}.keyboard-color-fieldset legend{margin-bottom:10px;font-size:13px;font-weight:750}.keyboard-color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.keyboard-color-option{position:relative;display:block;padding:12px;border:2px solid transparent;border-radius:10px;text-align:center;cursor:pointer;font-weight:800}.keyboard-color-option input{position:absolute;opacity:0;pointer-events:none}.keyboard-color-option.style-default{background:#fff;color:#6d28d9;border-color:#c4b5fd}.keyboard-color-option.style-success{background:#22a06b;color:#fff}.keyboard-color-option.style-primary{background:#2f80ed;color:#fff}.keyboard-color-option.style-danger{background:#e5484d;color:#fff}.keyboard-color-option:has(input:checked){box-shadow:0 0 0 4px rgba(139,92,246,.2);border-color:#6d28d9}.keyboard-button-live-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.keyboard-button-live-preview small{color:var(--muted)}.keyboard-button-live-preview .keyboard-button-preview{min-width:150px;padding:11px 18px;border-radius:9px;font-weight:800}.keyboard-button-dialog{width:min(620px,calc(100% - 32px))}
@media(max-width:600px){.keyboard-color-options{grid-template-columns:1fr 1fr}.keyboard-button-chip>.keyboard-button-preview{width:100%;max-width:none}.keyboard-button-live-preview{align-items:stretch;flex-direction:column}.keyboard-button-live-preview .keyboard-button-preview{width:100%}}
@media(max-width:900px){.feature-hub-heading{align-items:flex-start;flex-direction:column}.feature-switches{display:grid;width:100%}.feature-tabs{overflow:auto}.feature-tabs button{white-space:nowrap}.feature-check-grid{grid-template-columns:1fr 1fr}.feature-cycle-settings .form-grid.compact{grid-template-columns:1fr}}
@media(max-width:560px){.feature-check-grid{grid-template-columns:1fr}.feature-form-actions{width:100%;flex-direction:column}.feature-form-actions .button{width:100%}.feature-group-card .group-head{align-items:flex-start;flex-direction:column}.feature-group-card .group-head .button{width:100%}}

/* Polished group keyboard editor */
.keyboard-list-heading{align-items:flex-start;margin:30px 0 18px}.keyboard-list-heading>div{align-items:flex-start;flex-direction:column;gap:14px}.keyboard-list-heading>div>span{font-size:16px;color:#5f6675}.keyboard-list-heading>small{padding-top:5px;color:#8a91a1}.keyboard-add-row{padding:12px 20px;border-radius:8px;box-shadow:0 5px 12px rgba(109,40,217,.18)}.keyboard-rows{gap:18px}.keyboard-row-card{padding:18px 16px 14px;border-color:#d8dbe3;border-radius:12px;background:#fff}.keyboard-row-head{margin-bottom:14px;padding:0 4px;color:#6d6f7b}.keyboard-row-head strong{font-size:16px;font-weight:650}.keyboard-row-head .keyboard-row-remove{margin-left:auto;width:34px;height:32px;border:0;border-radius:8px;background:transparent;opacity:.45;filter:grayscale(1)}.keyboard-row-head .keyboard-row-remove:hover{background:#fff0f1;opacity:1;filter:none}.keyboard-button-list{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.keyboard-button-chip{display:grid;grid-template-columns:auto minmax(70px,1fr) auto;align-items:center;gap:8px;min-width:180px;max-width:430px;height:58px;padding:0 12px;border:1.5px solid #8b5cf6;border-radius:10px;background:#fff;color:#7c3aed}.keyboard-button-chip.style-success{border-color:#22a06b;background:#22a06b;color:#fff}.keyboard-button-chip.style-primary{border-color:#2f80ed;background:#2f80ed;color:#fff}.keyboard-button-chip.style-danger{border-color:#e5484d;background:#e5484d;color:#fff}.keyboard-button-chip .keyboard-button-drag{color:inherit;opacity:.72}.keyboard-button-chip>.keyboard-button-label{display:block;width:100%;min-width:0;height:auto;padding:8px 2px;border:0;background:transparent;color:inherit;font-size:15px;font-weight:750;line-height:1.25;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.keyboard-button-chip>.keyboard-button-label:hover{text-decoration:underline;text-underline-offset:3px}.keyboard-button-chip>.keyboard-button-remove{width:26px;height:28px;padding:0;border:0;background:transparent;color:inherit;font-size:20px;opacity:.72}.keyboard-button-chip.style-default>.keyboard-button-remove{color:#ff4d5a}.keyboard-button-chip>.keyboard-button-remove:hover{opacity:1;transform:scale(1.08)}.keyboard-add-button{flex:0 0 58px;width:58px;height:58px;margin-left:auto;border-radius:50%;background:#f0eaff;color:#8b5cf6;font-size:30px}.keyboard-add-button:hover{background:#e4d8ff;transform:translateY(-1px)}
.keyboard-button-dialog{width:min(750px,calc(100% - 32px));border-radius:12px}.keyboard-edit-dialog-head{padding:20px 28px;border-bottom:0}.keyboard-edit-title{display:flex;align-items:center;gap:16px}.keyboard-edit-title h2{margin:0;font-size:23px}.keyboard-edit-title-icon{font-size:32px;line-height:1;color:#50485f}.keyboard-button-dialog .dialog-body{padding:8px 28px 24px}.keyboard-button-form{display:block}.keyboard-edit-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px 14px}.keyboard-edit-grid label>span{display:block;margin:0 0 -9px 14px;position:relative;z-index:1;width:max-content;padding:0 7px;background:#fff;color:#6c6874;font-size:13px}.keyboard-edit-grid input,.keyboard-edit-grid select{height:62px;border-color:#d7d5dd;border-radius:10px;padding:17px 18px 10px}.keyboard-emoji-picker{position:relative;grid-row:1/3;align-self:start;padding-top:12px}.keyboard-emoji-toggle{display:flex;width:100%;height:52px;align-items:center;justify-content:center;gap:9px;border:1.5px solid #8b5cf6;border-radius:8px;background:#fff;color:#8b5cf6}.keyboard-emoji-toggle span{font-size:21px}.keyboard-emoji-toggle strong{font-weight:700}.keyboard-emoji-presets{position:absolute;z-index:5;top:69px;left:0;width:238px;margin:0;padding:10px;border:1px solid #ded9e8;border-radius:10px;background:#fff;box-shadow:0 15px 35px rgba(52,43,71,.18)}.keyboard-emoji-presets button{background:#fff}.keyboard-edit-text,.keyboard-edit-style{grid-column:2}.keyboard-button-dialog .dialog-actions{margin-top:26px}.keyboard-button-dialog .dialog-actions .button{min-width:118px;padding:13px 24px}.keyboard-button-dialog .dialog-actions .primary{background:#8b5cf6}.keyboard-button-dialog .dialog-actions .ghost{background:#92959b;color:#fff}
@media(max-width:700px){.keyboard-list-heading{gap:10px}.keyboard-row-card{padding:14px 12px}.keyboard-button-list{display:grid;grid-template-columns:1fr}.keyboard-button-chip{width:100%;max-width:none;height:52px}.keyboard-add-button{justify-self:center;margin-left:0}.keyboard-edit-grid{grid-template-columns:1fr}.keyboard-emoji-picker{grid-row:auto;padding-top:0}.keyboard-edit-text,.keyboard-edit-style{grid-column:1}.keyboard-emoji-toggle{width:150px}.keyboard-button-dialog .dialog-actions{flex-direction:row}.keyboard-button-dialog .dialog-actions .button{width:auto;flex:1}}

/* Dedicated tenant bot */
.tenant-bot-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff 55%,#eef8ff)}.tenant-bot-hero h2{margin-bottom:9px}.tenant-bot-hero .hint{max-width:800px;line-height:1.7}.tenant-bot-layout{display:grid;grid-template-columns:1fr 1.25fr;gap:18px}.tenant-bot-layout .panel{height:calc(100% - 18px)}.tenant-bot-actions{margin-top:18px}.setup-steps{display:grid;gap:13px;margin:0;padding-left:24px;line-height:1.65}.setup-steps code{padding:3px 7px;border-radius:6px;background:#edf3fa;color:#174f86}.empty-state{padding:30px 18px;border:1px dashed #cbd5e1;border-radius:12px;color:var(--muted);text-align:center}.field-error{padding:11px 13px;border-radius:10px;background:#fff0f1;color:var(--danger);font-size:13px}.group-bot-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0 4px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:#f9fbfe}.compact-button{min-height:auto;padding:7px 11px;font-size:12px}
@media(max-width:900px){.tenant-bot-hero{align-items:flex-start;flex-direction:column}.tenant-bot-layout{grid-template-columns:1fr}.group-bot-meta{align-items:stretch;flex-direction:column}.group-bot-meta .button{width:100%}}

/* Group automation */
.group-tools-hero{display:flex;align-items:end;justify-content:space-between;gap:28px}.group-tools-hero>div{max-width:800px}.group-tools-hero>label{min-width:320px}.group-tools-tabs{padding-inline:0}.group-tools-panel{display:none}.group-tools-panel.active{display:block}.automation-picker{margin:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fbff}.automation-picker legend{padding:0 8px;color:var(--blue);font-weight:850}.automation-target{display:grid!important;grid-template-columns:22px minmax(150px,1.3fr) 130px minmax(150px,1fr) 100px minmax(180px,1fr);align-items:center;gap:10px;margin-top:10px;padding:12px;border:1px solid #dce6f2;border-radius:12px;background:#fff}.automation-target>.target-enabled{width:19px;height:19px}.automation-target .target-main strong,.automation-target .target-main small{display:block}.automation-target .target-main small{margin-top:3px;color:var(--muted)}.automation-list{display:grid;gap:12px}.automation-rule{display:grid;grid-template-columns:100px 1fr 150px 130px auto;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:13px;background:#f9fbfe}.automation-rule textarea{grid-column:2/5}.schedule-rule{grid-template-columns:110px 120px 1fr 1fr auto}.schedule-rule .schedule-content,.schedule-rule .schedule-media,.schedule-rule .schedule-buttons{grid-column:1/-1}.sticky-save{position:sticky;z-index:10;bottom:12px;display:flex;justify-content:flex-end;margin-top:14px;padding:12px;border:1px solid rgba(47,128,237,.15);border-radius:14px;background:rgba(255,255,255,.92);box-shadow:0 10px 30px rgba(20,33,61,.12);backdrop-filter:blur(10px)}
.unmute-group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.unmute-group-option{display:flex!important;align-items:center;gap:12px;padding:14px;border:1px solid #dce6f2;border-radius:12px;background:#fff;cursor:pointer}.unmute-group-option:has(input:checked){border-color:#2f80ed;background:#eef6ff;box-shadow:0 0 0 2px rgba(47,128,237,.08)}.unmute-group-option input{width:19px;height:19px}.unmute-group-option span{display:grid;gap:3px}.unmute-group-option small{color:var(--muted)}
.legacy-unmute-register{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:12px;margin-top:14px}.legacy-unmute-register input{width:100%}
.variable-template-editor{position:relative;width:100%;border-radius:10px;background:#fff}.variable-template-editor textarea,.variable-template-highlight{font:inherit;line-height:1.55;white-space:pre-wrap;overflow-wrap:break-word;tab-size:4}.variable-template-editor textarea{position:relative;z-index:2;display:block;min-height:112px;background:transparent;color:transparent;caret-color:var(--text);-webkit-text-fill-color:transparent}.variable-template-highlight{position:absolute;z-index:1;inset:0;margin:0;padding:11px 12px;border:1px solid transparent;border-radius:10px;color:var(--text);overflow:hidden;pointer-events:none}.variable-template-highlight .variable-token{color:var(--blue);font-weight:800;background:transparent}.variable-template-editor textarea::selection{background:rgba(47,128,237,.22)}
@media(max-width:1100px){.automation-target{grid-template-columns:22px 1fr 130px}.automation-target .target-phrase,.automation-target .target-action,.automation-target .target-url{grid-column:2/4}.automation-rule,.schedule-rule{grid-template-columns:1fr 1fr}.automation-rule textarea,.schedule-rule .schedule-content,.schedule-rule .schedule-media,.schedule-rule .schedule-buttons{grid-column:1/-1}}
@media(max-width:700px){.group-tools-hero{align-items:stretch;flex-direction:column}.group-tools-hero>label{min-width:0}.automation-target{grid-template-columns:22px 1fr}.automation-target .target-kind,.automation-target .target-phrase,.automation-target .target-action,.automation-target .target-url{grid-column:2}.automation-rule,.schedule-rule{grid-template-columns:1fr}.automation-rule textarea,.schedule-rule .schedule-content,.schedule-rule .schedule-media,.schedule-rule .schedule-buttons{grid-column:1}.unmute-group-list,.legacy-unmute-register{grid-template-columns:1fr}.sticky-save .button{width:100%}}

/* Scheduled message manager */
.schedule-manager{min-height:480px}.schedule-toolbar{display:flex;justify-content:space-between;margin:20px 0}.schedule-search{display:grid;grid-template-columns:auto minmax(180px,320px) auto;align-items:center}.schedule-search>span{z-index:1;margin-right:-34px;padding-left:12px;color:var(--muted)}.schedule-search input{padding-left:36px;border-radius:9px 0 0 9px}.schedule-search .button{height:43px;border-radius:0 9px 9px 0}.schedule-table{min-width:1540px}.schedule-table th{white-space:nowrap}.schedule-table td{vertical-align:middle}.schedule-content-cell{display:block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-actions{display:flex;gap:10px;white-space:nowrap}.schedule-status{padding:5px 10px;border:0;border-radius:999px;background:#eef1f5;color:#667085}.schedule-status.enabled{background:#e3f8f2;color:#13866d}.schedule-empty{padding:42px!important;text-align:center;color:var(--muted)}.schedule-dialog{width:min(1100px,calc(100% - 32px))}.schedule-form{display:grid;gap:22px}.schedule-editor-grid{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:end}.schedule-editor-grid label>span,.schedule-content-label>span,.schedule-media-fields label>span,.schedule-options label>span{display:block;margin-bottom:7px;font-size:13px;font-weight:750}.schedule-rich-editor{border:1px solid var(--line);border-radius:12px;overflow:hidden}.schedule-editor-toolbar{display:flex;gap:4px;padding:8px 12px;border-bottom:1px solid var(--line);background:#f8fafc}.schedule-editor-toolbar button{min-width:42px;height:36px;border:0;border-radius:7px;background:transparent;color:#4f5563;font-size:15px}.schedule-editor-toolbar button:hover{background:#eaf3ff;color:var(--blue)}.schedule-rich-editor textarea{display:block;width:100%;min-height:240px;border:0;border-radius:0;box-shadow:none!important}.schedule-media-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.schedule-button-builder{padding:18px;border:1px solid var(--line);border-radius:14px;background:#fbfcfe}.schedule-subheading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:15px}.schedule-subheading strong,.schedule-subheading small{display:block}.schedule-subheading small{margin-top:4px;color:var(--muted)}#schedule-button-rows{display:grid;gap:12px}.schedule-button-row{padding:14px;border:1px dashed #d6dbe4;border-radius:12px;background:#fff}.schedule-button-row-head{display:flex;align-items:center;gap:10px;margin-bottom:12px;color:#707786}.schedule-button-row-head .danger-link{margin-left:auto}.schedule-button-list{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.schedule-button-chip{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;align-items:center;gap:7px;min-width:180px;padding:7px 10px;border:1.5px solid #8b5cf6;border-radius:9px;color:#7c3aed}.schedule-button-chip.style-success{border-color:#22a06b;background:#22a06b;color:#fff}.schedule-button-chip.style-primary{border-color:#2f80ed;background:#2f80ed;color:#fff}.schedule-button-chip.style-danger{border-color:#e5484d;background:#e5484d;color:#fff}.schedule-button-label,.schedule-button-remove{border:0;background:transparent;color:inherit}.schedule-button-label{padding:7px;text-align:left;font-weight:800}.schedule-button-remove{font-size:20px}.schedule-options{padding-top:4px}.schedule-preview{padding:18px;border:1px solid #b9d9ff;border-radius:12px;background:#f2f8ff}.schedule-preview strong{display:block;margin-bottom:10px}.schedule-preview div{white-space:pre-wrap;line-height:1.7}.schedule-dialog-actions{position:sticky;bottom:-26px;margin:0 -26px -26px;padding:14px 26px;background:#fff;border-top:1px solid var(--line)}
.guard-ad-builder{margin-top:2px}.guard-ad-builder #guard-ad-button-rows{display:grid;gap:12px}.guard-ad-button-row.drag-over{border-color:#8b5cf6;background:#faf7ff}.guard-ad-url{grid-column:2}.guard-ad-builder .schedule-button-chip{min-height:50px}.guard-ad-builder .keyboard-empty{background:#fff}
.keyword-manager{min-height:480px}.keyword-toolbar{display:flex;margin:20px 0}.keyword-table{min-width:1180px}.keyword-table th{white-space:nowrap}.keyword-table td{vertical-align:middle}.keyword-condition-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:16px;align-items:end}.keyword-condition-grid label>span{display:block;margin-bottom:7px;font-size:13px;font-weight:750}.keyword-condition-grid .toggle{min-height:43px}.keyword-dialog .hint{margin:-10px 0 0}.keyword-dialog #keyword-button-rows{display:grid;gap:12px}.media-upload-grid>label{display:grid;grid-template-columns:1fr;gap:9px;padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8fbff}.media-upload-grid>label>span{margin:0!important;font-weight:800}.media-upload-button{min-height:54px;border:1.5px dashed #2f80ed;border-radius:11px;background:#edf6ff;color:#1769c2;font-size:15px;font-weight:850}.media-upload-button:hover{background:#dfefff}.media-upload-button:disabled{cursor:wait;opacity:.7}.media-upload-grid small{color:var(--muted);overflow-wrap:anywhere}.keyword-options small{display:block;margin-top:6px;color:var(--muted)}
@media(max-width:900px){.schedule-manager .section-heading{align-items:stretch;flex-direction:column}.schedule-manager .section-heading .button{width:100%}.schedule-search{grid-template-columns:auto minmax(0,1fr) auto;width:100%}.schedule-editor-grid,.schedule-media-fields{grid-template-columns:1fr}.schedule-dialog-actions{bottom:-18px;margin:0 -18px -18px;padding:12px 18px}.schedule-dialog-actions .button{width:100%}.schedule-subheading{align-items:stretch;flex-direction:column}.schedule-button-list{display:grid;grid-template-columns:1fr}.schedule-button-chip{width:100%}.schedule-button-row-head .mobile-order-controls{margin-left:auto}}
@media(max-width:900px){.keyword-manager .section-heading{align-items:stretch;flex-direction:column}.keyword-manager .section-heading .button{width:100%}.keyword-condition-grid{grid-template-columns:1fr 1fr}.keyword-condition-grid .toggle{align-self:center}}
@media(max-width:700px){.guard-ad-url{grid-column:1}.guard-ad-builder .schedule-subheading .button{width:100%}}
@media(max-width:700px){.keyword-condition-grid{grid-template-columns:1fr}.keyword-toolbar .schedule-search{width:100%}.keyword-dialog .schedule-rich-editor textarea{min-height:180px}}
