/* Group settings: task overview, visible navigation, contained lists and dialogs. */
#bots.group-gear{width:auto;height:44px;min-width:196px;padding:10px 20px!important;font-size:14px!important;font-weight:650;border:1px solid #235348!important;border-radius:11px!important;background:#24584b;color:#fff;box-shadow:0 3px 9px #163f3420;display:inline-flex;align-items:center;justify-content:center;gap:8px}
#bots.group-gear[hidden]{display:none}#bots.group-gear:hover{background:#183f35;transform:none}#bots.group-gear.is-back{background:#eef5f2;color:#214c40;border:2px solid #6b9384!important;box-shadow:none}#bots.group-gear.is-back:hover{background:#dcece4}
.group-head>div{flex:1;min-width:0}.group-head #group-title{max-width:100%}
#studio-panel{background:#fcfdfc}.studio-head{padding:10px 18px;background:white}.studio-head h2{font-size:17px}.studio-head small{font-size:11px}.studio-tabs{padding:9px 16px;gap:6px;background:white;overflow-x:auto;align-items:center;flex-shrink:0}.studio-tabs button{padding:10px 13px;min-height:41px;font-size:12px;white-space:nowrap;border:1px solid transparent;background:transparent;color:#52675d;border-radius:9px}.studio-tabs button>span{margin-right:4px;font-size:15px}.studio-tabs button:hover{background:#eef5f0}.studio-tabs button.active{background:#24584b;color:#fff;border-color:#24584b}.studio-tabs button:focus-visible,.settings-card:focus-visible,#bots:focus-visible{outline:3px solid #d5a64e;outline-offset:2px}
#studio-body{padding:16px 18px;min-width:0;scrollbar-gutter:auto}#studio-body[data-section=overview]{display:flex;flex-direction:column}.studio-panel:has(#studio-body:not([data-section=overview]):not([data-section=carousel]))>.studio-head{display:none}
.settings-overview{display:flex;flex-direction:column;gap:17px;min-height:0}.settings-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px}.settings-eyebrow{font-size:9px;font-weight:650;letter-spacing:1.4px;color:#718477}.settings-welcome h3{font-size:23px;letter-spacing:-.45px;margin:4px 0 5px}.settings-welcome p{font-size:12px;color:#63786c;margin:0;line-height:1.45}.settings-context{padding:7px 11px;background:#eff4f1;border:1px solid #dde8e1;border-radius:7px;font-size:11px;max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.settings-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.settings-card{display:flex;flex-direction:column;text-align:left;padding:15px 17px;background:white;border:1px solid #dce6df;border-radius:13px;min-width:0;box-shadow:0 2px 4px #23463203;transition:background .15s,border-color .15s,box-shadow .15s}.settings-card:hover{background:#f7fbf9;border-color:#7aa48f;box-shadow:0 5px 17px #315d4410}.settings-card.featured{background:#eff7f1;border-color:#a7c6b4}.settings-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;gap:8px}.settings-card-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;font-size:21px;background:#eaf2ed;color:#386451}.settings-card.featured .settings-card-icon{background:#24584b;color:white}.settings-card-top small{font-size:10px;color:#6a7e70}.settings-card>strong{font-size:15px;margin-bottom:6px;color:#203e30}.settings-card-description{font-size:12px;line-height:1.5;color:#65776a;max-width:300px}.settings-card-action{display:flex;justify-content:space-between;gap:8px;padding-top:12px;margin-top:auto;font-size:12px;font-weight:650;color:#245747}.settings-guide{padding:16px 18px;border:1px dashed #cbdcd0;border-radius:13px;background:#f6f8f5;font-size:12px;line-height:1.55;color:#607565}.settings-guide>strong{font-size:14px;color:#345b45}.settings-guide ol{padding-left:19px;margin:8px 0}.settings-guide li{padding:2px 0}.settings-guide p{font-size:11px;margin:8px 0 0;color:#768579}
.settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;margin-bottom:15px}.settings-section-head h3{font-size:19px;margin:0 0 6px}.settings-section-head p{font-size:12px;color:var(--muted);line-height:1.5;margin:0;max-width:590px}.settings-section-head>button{flex-shrink:0;min-height:40px}.settings-main-action{padding:11px 18px;font-size:13px}.settings-count{display:inline-block;font-size:12px;vertical-align:middle;border-radius:15px;background:#e9f0eb;padding:3px 8px}.settings-list{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1}.settings-pagination{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding-top:12px;flex-shrink:0}.settings-empty{text-align:center;align-content:center;padding:30px 16px;color:#6b7c70;grid-column:1/-1;min-height:200px}.settings-empty>span{font-size:31px;color:#6e9b83}.settings-empty h3{font-size:16px;color:#3b5948;margin:12px 0 7px}.settings-empty p{font-size:12px;margin:0 0 16px;line-height:1.6}
#studio-body[data-section=posts],#studio-body[data-section=violators],#studio-body[data-section=bots]{display:flex;flex-direction:column;overflow:hidden}#studio-body[data-section=posts] .studio-jobs{margin:0;border:1px solid var(--line);border-radius:12px;background:white;padding:16px}.studio-job{gap:12px}.studio-job small{max-width:60ch;overflow-wrap:anywhere}.violation-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:15px;background:white;border:1px solid #dfe7e1;border-radius:11px;margin-bottom:9px}.violation-mark{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fbf0dd;color:#a67522;font-size:16px}.violation-row strong{font-size:13px}.violation-row p{font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:5px 0;color:#566e5f}.violation-row small{font-size:10px;color:#7b8b7f}.violation-row .status-pill{font-size:10px;white-space:nowrap}.violation-row>button{font-size:12px;min-height:38px;color:#285941;border-color:#b9cfbf;background:#f4f9f5}
.settings-dialog{width:min(960px,calc(100vw - 36px));max-width:960px;max-height:calc(100dvh - 40px);padding:0;overflow:hidden}.settings-dialog[open]{display:flex;flex-direction:column}.settings-dialog>header,.settings-dialog>footer{flex-shrink:0;padding:14px 20px;background:white}.settings-dialog>header small{font-size:11px;color:var(--muted)}.settings-dialog>header button{font-size:22px;padding:3px 10px}.settings-dialog-body{padding:18px 20px;overflow:auto;min-height:0;background:#fcfdfc}.settings-dialog footer{border-top:1px solid var(--line);display:flex;align-items:center;gap:10px}.settings-dialog footer span{font-size:11px;color:var(--muted);margin-right:auto}.settings-dialog footer button{min-height:40px;white-space:nowrap}.post-advanced{border:1px solid var(--line);border-radius:9px;padding:10px;background:#f5f8f5}.post-advanced summary{font-size:12px;cursor:pointer;color:#3a634d}.post-advanced[open] summary{margin-bottom:12px}.post-advanced .studio-hint{margin:9px 0}.post-advanced .check{line-height:1.5}.settings-dialog .studio-preview{position:static}.settings-dialog .preview-message{min-height:150px}
#studio-body[data-section=moderation]{overflow:hidden}.protection-v10{display:flex;flex-direction:column;height:100%;max-width:none;min-height:0}.protection-intro{flex-shrink:0;margin-bottom:10px}.protection-intro h3{font-size:19px}.protection-intro p{font-size:12px}.protection-mode{flex-shrink:0;margin-bottom:12px}.protection-mode .field{font-size:11px;gap:5px}.protection-mode select{min-height:35px}.protection-mode small:empty{display:none}.rule-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-height:0;overflow:auto;scrollbar-width:thin;flex:1;align-content:start}.rule-preset,.rule-preset:first-child{grid-column:auto;grid-template-columns:23px minmax(0,1fr) auto;grid-template-rows:auto;gap:8px;padding:10px 12px;border-radius:10px;min-height:64px;align-content:center}.rule-preset:first-child .rule-switch{grid-column:1/3;grid-row:1;font-size:12px}.rule-preset:first-child>div{grid-column:2;grid-row:2}.rule-preset:first-child>button{grid-column:3;grid-row:1/3}.rule-description p{display:none}.rule-preset:first-child p{font-size:10px;line-height:1.35;margin:0}.rule-title{font-size:12px;line-height:1.35}.rule-summary{font-size:10px;line-height:1.45;display:block;margin-top:4px}.rule-preset>button{font-size:11px;padding:7px 9px;min-height:34px}.rule-check input,.rule-switch input{width:18px;height:18px}.warning-settings{display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;background:#f4f7f3;border:1px solid var(--line);border-radius:10px;padding:11px 14px;flex-shrink:0;margin-top:8px;font-size:11px;color:#46644d}.warning-settings strong,.warning-settings small{display:block}.warning-settings strong{font-size:12px}.warning-settings small{font-size:10px;color:var(--muted);margin-top:3px}.protection-footer{position:static;flex-shrink:0;margin-top:10px;padding:10px 0 0;background:transparent}.protection-footer .studio-actions{align-items:center}.protection-footer .studio-actions button{min-height:37px}.protection-footer small{font-size:10px}.rule-help-dialog .check{line-height:1.55;font-size:12px}.rule-help-dialog .message-text{overflow-wrap:anywhere}.rule-help-dialog footer button{min-height:40px}
.bot-catalog-head{flex-shrink:0;margin-bottom:15px;align-items:center}.bot-catalog-head p{max-width:580px}.bot-catalog-head button{min-height:40px}.bot-card-grid{overflow:auto;min-height:0;align-content:start;scrollbar-width:thin;padding:1px 1px 5px;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.bot-card{padding:12px;gap:5px}.bot-avatar{width:33px;height:33px;font-size:19px;margin-bottom:1px}.bot-card-groups{padding-top:5px}.bot-card>button{min-height:34px}.bot-card-status{font-size:10px}#bot-manager-jobs:empty{display:none}
.apps-intro p{max-width:700px}.application-catalog{margin:12px 0 15px}.application-card{padding:14px;gap:8px}.application-card button{min-height:38px}.legacy-app{margin-top:12px;padding-top:10px}.legacy-app p{font-size:11px;line-height:1.45}.apps-section-head{margin-bottom:10px}.app-instance-grid{max-height:240px;overflow:auto;scrollbar-width:thin}
@media(min-width:1500px){.bot-card-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.settings-card{padding:20px}.settings-card-grid{gap:16px}.settings-welcome h3{font-size:27px}}
@media(max-height:780px) and (min-width:1050px){#studio-body{padding:12px 16px}.settings-overview{gap:12px}.settings-card{padding:12px 14px}.settings-card-top{margin-bottom:6px}.settings-card-description{font-size:11px}.settings-card-action{padding-top:9px}.settings-welcome h3{font-size:21px}.settings-guide{padding:12px 15px}.protection-intro{margin-bottom:7px}.protection-intro h3{font-size:17px}.protection-intro p{font-size:11px}.protection-mode{margin-bottom:8px}.rule-preset,.rule-preset:first-child{padding:7px 10px;min-height:58px}.rule-presets{gap:6px}.warning-settings{padding:8px 12px;margin-top:7px}.protection-footer{margin-top:8px;padding-top:8px}.protection-footer .studio-actions button{min-height:34px;padding:7px 10px}.studio-tabs{padding:7px 14px}.studio-tabs button{min-height:38px;padding:9px 11px}.settings-section-head{margin-bottom:12px}}
@media(max-width:1100px){.settings-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-context{display:none}.bot-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.violation-row{grid-template-columns:28px minmax(0,1fr) auto}.violation-row .status-pill{grid-column:2;grid-row:2}.violation-row>button{grid-column:3;grid-row:1/3}.settings-section-head{align-items:flex-start}.settings-section-head>button{max-width:200px}.settings-dialog .studio-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:760px){#bots.group-gear{min-width:155px;padding:9px 12px!important;font-size:12px!important;height:41px}.group-head{align-items:center;flex-wrap:wrap}.group-head>div{flex-basis:100%}.studio-tabs{padding:8px}.studio-tabs button{padding:9px 10px}#studio-body{padding:12px}.settings-card-grid{grid-template-columns:1fr}.settings-welcome h3{font-size:21px}.settings-card{min-height:145px}.settings-guide{display:none}.rule-presets{grid-template-columns:1fr}.protection-intro{display:flex;flex-wrap:wrap}.protection-mode{display:block}.settings-section-head{flex-wrap:wrap}.settings-dialog .studio-columns{grid-template-columns:1fr}.settings-dialog footer{flex-wrap:wrap}.settings-dialog footer span{flex-basis:100%}.bot-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bot-catalog-head{flex-wrap:wrap}.violation-row{grid-template-columns:25px minmax(0,1fr)}.violation-row>button{grid-column:2;grid-row:3;justify-self:start}.settings-context{display:none}}
.studio-panel:has(#studio-body:not([data-section=carousel]))>.studio-head{display:none}
.settings-group-label{display:none;font-size:9px;letter-spacing:1.25px;font-weight:600;color:var(--green)}.group-work:has(#studio-panel:not([hidden])) #source-label{display:none}.group-work:has(#studio-panel:not([hidden])) .settings-group-label{display:block}
.studio-state{flex-shrink:0;font-size:11px;color:#56715f;padding:6px 18px;background:#f0f5f1}.studio-state:empty{display:none}
#bots.group-gear.is-back{background:#31566d;border-color:#31566d!important;color:white}#bots.group-gear.is-back:hover{background:#244252}
#studio-body[data-app-screen=catalogue]{display:flex;flex-direction:column;overflow:hidden}.carousel-start-guide{display:flex;align-items:center;gap:17px;background:#f0f6f1;border:1px solid #dce8df;border-radius:10px;padding:13px 17px;margin-bottom:19px;flex-shrink:0;font-size:12px;color:#557460}.carousel-start-guide b{display:inline-grid;place-items:center;width:23px;height:23px;border-radius:50%;background:white;margin-right:6px;color:#346b4d}.carousel-start-guide>span{white-space:nowrap}#studio-body[data-app-screen=catalogue] .app-instance-grid{max-height:none;flex:1;min-height:0;align-content:start}.legacy-app{flex-shrink:0}.legacy-app summary{cursor:pointer;font-size:12px;color:#607968;padding:4px 0}.legacy-app[open]{max-height:160px;overflow:auto}
@media(max-width:760px){.carousel-start-guide{gap:7px;flex-wrap:wrap;font-size:11px}}
.rule-presets>.warning-settings{margin:0;min-height:58px;height:100%;padding:8px 12px}.rule-presets>.warning-settings>span:last-child{white-space:nowrap}
@media(min-width:1050px){.protection-mode .field{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:12px}.protection-intro h3{line-height:1.3;margin-bottom:3px}.protection-intro p{line-height:1.3}.protection-footer small{margin-top:4px}.bot-card{display:grid;grid-template-columns:34px minmax(0,1fr);gap:4px;align-content:start}.bot-card .bot-avatar{grid-column:1;grid-row:1/3;margin:0}.bot-card>strong,.bot-card>small:not(.bot-card-groups){grid-column:2}.bot-card-status,.bot-card-groups,.bot-card>button{grid-column:1/-1}.bot-card-groups{min-height:0;padding-top:2px;margin:0}.bot-card>button{margin-top:5px}}
@media(max-height:780px) and (min-width:1050px){.protection-intro{margin-bottom:5px}.protection-mode{margin-bottom:6px}.protection-footer{margin-top:6px}}
@media(prefers-reduced-motion:reduce){.settings-card{transition:none}}

/* Own groups v1: separate owned groups and keep their management in one fixed workspace. */
.group-section{display:flex;flex-direction:column;gap:2px;margin:0 0 10px}
.group-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 7px 5px;font-size:10px;letter-spacing:.7px;text-transform:uppercase;color:#708279;position:sticky;top:0;z-index:2;background:#fff}
.group-section-head strong{font-size:10px}.group-section-head span{display:grid;place-items:center;min-width:22px;height:19px;padding:0 6px;border-radius:10px;background:#edf3ef;color:#4d6758;font-size:10px;letter-spacing:0}
.group-section-own .group-section-head{color:#245b40}.group-section-own .group-section-head span{background:#e4f1e9;color:#245b40}
.group-item.own-group{background:#f8fcf9}.group-item.own-group.active{background:#e8f5ec;border-color:#a9ceb7}
.group-item.own-group .group-select strong{color:#234d38}.group-item.own-group .group-select small{color:#47715a;font-weight:600}
.group-section-other{padding-top:2px;border-top:1px solid #edf1ee}.group-list-empty{padding:24px 10px;text-align:center;font-size:11px;color:var(--muted)}

#studio-panel:has(.own-group-shell){overflow:hidden;background:#f8faf8}
.own-group-shell{display:grid;grid-template-columns:188px minmax(0,1fr);height:100%;min-height:0;overflow:hidden}
.own-group-nav{display:flex;flex-direction:column;min-height:0;padding:14px 10px;border-right:1px solid #dfe7e1;background:#f3f7f4}
.own-group-nav-title{padding:4px 8px 13px;border-bottom:1px solid #dfe7e1;margin-bottom:8px;min-width:0}
.own-group-nav-title small,.own-group-nav-title strong,.own-group-nav-title span{display:block}.own-group-nav-title small{font-size:9px;letter-spacing:1.2px;color:#719080;font-weight:700}.own-group-nav-title strong{margin-top:5px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#244b38}.own-group-nav-title span{margin-top:3px;font-size:10px;color:#78897f}
.own-group-nav .studio-tabs{display:flex;flex-direction:column;gap:4px;padding:0;border:0;background:transparent;overflow:visible}
.own-group-nav .studio-tabs button{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;width:100%;min-height:42px;padding:8px 10px;text-align:left;border:1px solid transparent;border-radius:9px;color:#4d6457;background:transparent}
.own-group-nav .studio-tabs button>span:first-child{font-size:17px;margin:0}.own-group-nav .studio-tabs button>span:last-child{font-size:12px;white-space:nowrap}
.own-group-nav .studio-tabs button:hover{background:#e9f1ec}.own-group-nav .studio-tabs button.active{background:#24584b;border-color:#24584b;color:#fff}
.own-group-content{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}
.own-group-content-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #e3eae5;flex-shrink:0;background:#fff}
.own-group-content-head small{display:block;font-size:9px;letter-spacing:1.1px;color:#799085;font-weight:700}.own-group-content-head h2{font-size:18px;margin:2px 0 3px;color:#244334}.own-group-content-head p{font-size:11px;color:var(--muted);margin:0;line-height:1.35}
.own-group-content #studio-body{flex:1;min-height:0;overflow:hidden;padding:12px 16px}
.own-group-content .studio-state{padding:5px 16px;font-size:10px}
.settings-overview{height:100%;min-height:0;overflow:hidden;gap:10px}.settings-overview-copy{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-shrink:0}.settings-overview-copy strong{font-size:14px;color:#2c4f3b}.settings-overview-copy span{font-size:10px;color:var(--muted);text-align:right}
.own-group-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:9px;flex:1;min-height:0}
.own-group-card-grid .settings-card{min-height:0;padding:12px 14px}.own-group-card-grid .settings-card-top{margin-bottom:5px}.own-group-card-grid .settings-card-icon{width:28px;height:28px;font-size:18px}.own-group-card-grid .settings-card>strong{font-size:14px;margin-bottom:4px}.own-group-card-grid .settings-card-description{font-size:11px;line-height:1.35}.own-group-card-grid .settings-card-action{padding-top:7px;font-size:11px}
.own-group-content #studio-body[data-section=overview]{display:flex;flex-direction:column}
.own-group-content #studio-body[data-section=moderation],.own-group-content #studio-body[data-section=violators],.own-group-content #studio-body[data-section=bots],.own-group-content #studio-body[data-section=posts]{overflow:hidden}
@media(max-height:760px) and (min-width:1050px){.own-group-nav{padding:10px 8px}.own-group-nav-title{padding-bottom:9px}.own-group-nav .studio-tabs button{min-height:36px;padding:6px 9px}.own-group-content-head{padding:8px 14px}.own-group-content-head h2{font-size:16px}.own-group-content #studio-body{padding:9px 12px}.settings-overview-copy{display:none}.own-group-card-grid{gap:7px}.own-group-card-grid .settings-card{padding:9px 11px}.own-group-card-grid .settings-card-description{font-size:10px}}
@media(max-width:900px){.own-group-shell{grid-template-columns:150px minmax(0,1fr)}.own-group-nav .studio-tabs button{grid-template-columns:22px minmax(0,1fr);padding:7px}.own-group-nav .studio-tabs button>span:last-child{font-size:10px}.own-group-content-head{padding:10px 12px}}
@media(max-width:650px){.own-group-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.own-group-nav{padding:6px 8px;border-right:0;border-bottom:1px solid #dfe7e1}.own-group-nav-title{display:none}.own-group-nav .studio-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.own-group-nav .studio-tabs button{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:1px;min-height:46px;padding:4px 2px}.own-group-nav .studio-tabs button>span:first-child{font-size:15px}.own-group-nav .studio-tabs button>span:last-child{font-size:8px}.own-group-content-head{display:none}.own-group-content #studio-body{padding:8px}.own-group-card-grid{grid-template-columns:1fr 1fr;grid-template-rows:repeat(2,minmax(0,1fr))}}

/* Own group members tab and six-section compact dashboard. */
.own-group-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
.own-group-content #studio-body[data-section=members]{padding:0;display:flex;overflow:hidden}
#growth-panel.own-group-embedded{display:flex!important;flex:1;min-width:0;min-height:0;border:0;background:#fff}
#growth-panel.own-group-embedded .growth-heading{padding:10px 14px}
#growth-panel.own-group-embedded .growth-content{overflow:hidden;padding:10px 14px;gap:7px}
#growth-panel.own-group-embedded .growth-footer,#growth-panel.own-group-embedded .growth-run-actions{padding:8px 14px}
#growth-panel.own-group-embedded .growth-setup-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;align-items:center}
#growth-panel.own-group-embedded .growth-setup-fields h3,#growth-panel.own-group-embedded .growth-setup-fields p{margin:0}
#growth-panel.own-group-embedded .growth-setup-fields h3{grid-column:1;font-size:12px}
#growth-panel.own-group-embedded .growth-setup-fields p{grid-column:1;font-size:10px;line-height:1.35}
#growth-panel.own-group-embedded .growth-setup-fields button{grid-column:2;grid-row:auto/span 2;min-width:145px;align-self:center}
#growth-panel.own-group-embedded .growth-selection-summary{font-size:10px}
@media(max-width:900px){.own-group-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.own-group-nav .studio-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.own-group-card-grid{grid-template-columns:1fr 1fr;grid-template-rows:repeat(3,minmax(0,1fr))}#growth-panel.own-group-embedded .growth-setup-fields{grid-template-columns:1fr}#growth-panel.own-group-embedded .growth-setup-fields button{grid-column:1;grid-row:auto;width:100%}}

/* Group boost v2: compact account actors + DB/group source in one viewport. */
.own-group-members{margin-left:4px;color:#587166;white-space:nowrap}.own-group-members b{color:#244e39}
#growth-panel.own-group-embedded>.boost-panel{flex:1;min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:9px;padding:10px 12px;overflow:hidden;background:#f8faf8}
.boost-section{border:1px solid #dce6df;border-radius:12px;background:#fff;padding:10px 12px;min-width:0}
.boost-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}.boost-section-title strong,.boost-section-title span{display:block}.boost-section-title strong{font-size:13px;color:#284d39}.boost-section-title span{margin-top:2px;font-size:10px;line-height:1.35;color:var(--muted)}.boost-section-title>b{flex-shrink:0;font-size:10px;padding:4px 8px;border-radius:12px;background:#e9f3ec;color:#2f6547}
.boost-accounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px}.boost-account{display:grid;grid-template-columns:16px 31px minmax(0,1fr);align-items:center;gap:7px;min-width:0;padding:7px 8px;border:1px solid #dce6df;border-radius:10px;background:#fbfdfb;cursor:pointer}.boost-account:has(input:checked){border-color:#79ac8b;background:#edf7f0;box-shadow:inset 0 0 0 1px #9bc6a9}.boost-account.is-disabled{opacity:.55;cursor:not-allowed}.boost-account input{width:15px;height:15px;margin:0;accent-color:#2f7750}.boost-account-avatar{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:#e1eee6;color:#285d40;font-size:12px;font-weight:800}.boost-account strong,.boost-account small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boost-account strong{font-size:11px;color:#284637}.boost-account small{font-size:9px;color:var(--muted);margin-top:2px}
.boost-source-section{display:flex;flex-direction:column;min-height:0;overflow:hidden}.boost-form-row{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:9px;align-items:end}.boost-source-section .field{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:650;color:#435e4e}.boost-source-section input,.boost-source-section select,.boost-source-section textarea{width:100%;padding:8px 9px;border:1px solid #cfded4;border-radius:8px;background:#fff;font:inherit;color:var(--ink)}.boost-source-section textarea{resize:none;min-height:52px;max-height:52px;line-height:1.35}.boost-source-section .field>small{font-size:9px;font-weight:400;line-height:1.35;color:var(--muted)}.boost-source-section>.boost-form-row{flex-shrink:0}.boost-source-section #boost-db-fields,.boost-source-section #boost-group-fields{margin-top:8px;min-height:0}.boost-source-section #boost-group-fields{display:flex;flex-direction:column;gap:7px}.boost-source-section #boost-group-fields[hidden],.boost-source-section #boost-db-fields[hidden]{display:none}.boost-source-section .studio-hint{font-size:9.5px;line-height:1.35;margin:5px 0 0}
.boost-run{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border:1px solid #d6e3d9;border-radius:12px;background:#f0f7f2;min-height:54px}.boost-run>div:first-child{min-width:0}.boost-run strong,.boost-run span{display:block}.boost-run strong{font-size:12px;color:#244f38}.boost-run span{margin-top:3px;font-size:9.5px;color:#657b6d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62ch}.boost-run-actions{display:flex;gap:6px;flex-shrink:0}.boost-run-actions button{min-height:35px;padding:7px 10px;font-size:10px}
@media(max-height:760px) and (min-width:901px){#growth-panel.own-group-embedded>.boost-panel{gap:6px;padding:7px 9px}.boost-section{padding:7px 9px}.boost-section-title{margin-bottom:5px}.boost-account{padding:5px 6px}.boost-account-avatar{width:25px;height:25px}.boost-source-section input,.boost-source-section select,.boost-source-section textarea{padding:6px 8px}.boost-source-section textarea{min-height:42px;max-height:42px}.boost-run{min-height:45px;padding:6px 9px}.boost-run-actions button{min-height:31px;padding:5px 8px}}
@media(max-width:900px){.boost-form-row{grid-template-columns:1fr 150px}.own-group-members{display:block;margin:2px 0 0}.boost-accounts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#growth-panel.own-group-embedded>.boost-panel{overflow:auto;display:flex;flex-direction:column}.boost-form-row{grid-template-columns:1fr}.boost-accounts{grid-template-columns:1fr 1fr}.boost-run{align-items:flex-start;flex-direction:column}.boost-run-actions{width:100%}.boost-run-actions button{flex:1}}

/* Group boost v3: account cards mirror the top account strip. */
.boost-account-carousel{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;gap:6px;align-items:start;min-width:0}
.boost-account-arrow{width:28px;height:58px;padding:0;border:0;background:transparent;font-size:22px;color:#536b5d;box-shadow:none!important}
.boost-account-arrow[data-growth-scroll=left]{grid-column:1}.boost-account-track{grid-column:2}.boost-account-arrow[data-growth-scroll=right]{grid-column:3}
.boost-account-arrow:hover:not(:disabled){background:#eef5f0}.boost-account-arrow:disabled{opacity:.28}
.boost-account-track{display:flex;gap:8px;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;padding:1px 0 2px;overscroll-behavior-x:contain}
.boost-account-track::-webkit-scrollbar{display:none}
.boost-account-item{flex:0 0 205px;min-width:205px;max-width:205px}
.boost-account-card{height:58px;display:grid;grid-template-columns:minmax(0,1fr) 72px;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.boost-account-copy{min-width:0;padding:9px 10px;display:flex;flex-direction:column;justify-content:center}
.boost-account-copy strong,.boost-account-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.boost-account-copy strong{font-size:12px;color:#284637}.boost-account-copy small{font-size:10px;color:var(--muted);margin-top:4px}
.boost-account-control{min-width:0;border-left:1px solid #dbe9df;background:#eef6f0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px}
.boost-account-state{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;font-size:9px;color:#4d6557;white-space:nowrap}.boost-account-state i{width:6px;height:6px;border-radius:50%;background:#a6b2ab;flex:0 0 auto}.boost-account-state em{font-style:normal;overflow:hidden;text-overflow:ellipsis}
.boost-account-card[data-actor-state=active],.boost-account-card[data-actor-state=queued],.boost-account-card[data-actor-state=running]{border-color:#82b596;background:#f5fbf7}.boost-account-card[data-actor-state=active] .boost-account-state i,.boost-account-card[data-actor-state=queued] .boost-account-state i,.boost-account-card[data-actor-state=running] .boost-account-state i{background:#349459;box-shadow:0 0 0 3px #d0ecd9}
.boost-account-card[data-actor-state=waiting] .boost-account-state i,.boost-account-card[data-actor-state=paused] .boost-account-state i{background:#b78a3d}.boost-account-card[data-actor-state=blocked] .boost-account-state i,.boost-account-card[data-actor-state=uncertain] .boost-account-state i{background:var(--danger)}
.boost-account-control button{padding:2px 6px;min-height:0;border-radius:6px;font-size:8px;line-height:1.35;background:#fff;border-color:#cfded4;color:#6f403a}
.boost-account-check{display:flex;align-items:center;justify-content:center;gap:6px;padding:5px 2px 0;font-size:10px;color:#52675b;cursor:pointer}.boost-account-check input{width:14px;height:14px;margin:0;accent-color:#2f7750}.boost-account-check:has(input:disabled){opacity:.6;cursor:default}
@media(max-height:760px) and (min-width:901px){.boost-account-card{height:52px}.boost-account-arrow{height:52px}.boost-account-copy{padding:7px 9px}.boost-account-item{flex-basis:195px;min-width:195px;max-width:195px}.boost-account-check{padding-top:3px}}
@media(max-width:650px){.boost-account-item{flex-basis:185px;min-width:185px;max-width:185px}.boost-account-carousel{grid-template-columns:25px minmax(0,1fr) 25px}.boost-account-arrow{width:25px}}

/* Group boost validation: red means this value blocks launch; green means ready. */
.boost-source-section select.growth-valid,.boost-source-section input.growth-valid,.boost-source-section textarea.growth-valid{border-color:#53a876;box-shadow:0 0 0 1px #53a87633;background:#fbfffc}
.boost-source-section select.growth-invalid,.boost-source-section input.growth-invalid,.boost-source-section textarea.growth-invalid{border-color:#cf645c;box-shadow:0 0 0 1px #cf645c33;background:#fffafa}
.boost-accounts-section.growth-valid{border-color:#75b68e;box-shadow:0 0 0 1px #75b68e2e}
.boost-accounts-section.growth-invalid{border-color:#d3776f;box-shadow:0 0 0 1px #d3776f2e}
.boost-account-item.is-eligible .boost-account-card{border-color:#75b68e;background:#f7fcf8}
.boost-account-item.is-ineligible .boost-account-card{border-color:#d3776f;background:#fff8f7}
.boost-account-item.is-ineligible .boost-account-control{background:#fbeceb;border-left-color:#e6b4af}
.boost-account-item.is-ineligible .boost-account-state{color:#93483f}
.boost-account-item.is-ineligible .boost-account-state i{background:#c85f56;box-shadow:0 0 0 3px #f2d6d2}
.boost-account-item.is-ineligible .boost-account-check{color:#984b43}
.boost-account-item.is-checking .boost-account-card{border-color:#c9d4cd;background:#fafcfa}

/* Group boost compact group-source controls. */
.boost-group-grid{display:grid;grid-template-columns:minmax(190px,260px) minmax(240px,1fr) minmax(190px,230px);gap:9px;align-items:start;min-width:0}
.boost-group-grid .field{min-width:0}.boost-group-grid select,.boost-group-grid textarea{min-width:0}
.boost-group-keywords-field textarea{min-height:36px;max-height:36px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}
.boost-group-keywords-field>small{white-space:normal}
@media(max-width:1180px){.boost-group-grid{grid-template-columns:minmax(180px,1fr) minmax(210px,1.25fr)}.boost-group-action-field{grid-column:1/-1;max-width:300px}}
@media(max-width:760px){.boost-group-grid{grid-template-columns:1fr}.boost-group-action-field{grid-column:auto;max-width:none}.boost-group-keywords-field textarea{white-space:normal;min-height:44px;max-height:44px}}

/* Group boost v4: fixed compact controls on the left, live process on the right. */
.boost-source-section{min-height:0}
.boost-source-layout{display:grid;grid-template-columns:430px minmax(0,1fr);gap:18px;align-items:stretch;min-width:0;min-height:0;flex:1}
.boost-source-controls{width:430px;max-width:430px;min-width:0;display:flex;flex-direction:column;gap:8px;align-self:start}
.boost-source-controls>.boost-form-row{display:grid;grid-template-columns:minmax(0,290px) 130px;gap:10px;align-items:end}
.boost-source-controls #boost-db-fields,.boost-source-controls #boost-group-fields{width:100%;margin-top:0;min-height:0}
.boost-source-controls #boost-group-fields{display:block}
.boost-source-controls #boost-db-fields[hidden],.boost-source-controls #boost-group-fields[hidden]{display:none!important}
.boost-source-controls .boost-group-grid{display:flex;flex-direction:column;gap:8px;width:100%;min-width:0}
.boost-source-controls .boost-group-grid .field{width:100%;max-width:100%;min-width:0}
.boost-source-controls .boost-group-keywords-field textarea{min-height:38px;max-height:38px;white-space:nowrap;overflow-x:auto;overflow-y:hidden}
.boost-source-controls .studio-hint{max-width:430px}
.boost-live-panel{min-width:0;border:1px solid #dce8df;border-radius:14px;background:linear-gradient(135deg,#f8fbf9 0%,#eef6f1 100%);padding:14px 16px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;overflow:hidden;position:relative}
.boost-live-panel:before{content:"";position:absolute;right:-50px;top:-70px;width:180px;height:180px;border-radius:50%;border:28px solid rgba(53,116,79,.05);pointer-events:none}
.boost-live-top{display:flex;align-items:center;gap:7px;position:relative;z-index:1}
.boost-live-top small{font-size:9px;letter-spacing:1.4px;font-weight:800;color:#668071}
.boost-live-top>b{margin-left:auto;font-size:11px;color:#315f45;background:#fff;border:1px solid #d9e7dd;border-radius:999px;padding:3px 8px}
.boost-live-pulse{width:8px;height:8px;border-radius:50%;background:#aebbb3;box-shadow:0 0 0 4px rgba(174,187,179,.16);flex:0 0 auto}
.boost-live-pulse.is-live{background:#3d9560;box-shadow:0 0 0 5px rgba(61,149,96,.14);animation:boostPulse 1.45s ease-in-out infinite}
.boost-live-main{display:flex;align-items:center;gap:13px;position:relative;z-index:1}
.boost-live-main>div:last-child{min-width:0}
.boost-live-main strong{display:block;font-size:14px;color:#284d39}
.boost-live-main p{margin:4px 0 0;font-size:10px;line-height:1.4;color:#6a7e72;max-width:52ch}
.boost-live-orbit{width:46px;height:46px;border-radius:50%;border:1px solid #cfe0d5;display:grid;place-items:center;position:relative;flex:0 0 auto;background:rgba(255,255,255,.72)}
.boost-live-orbit:before{content:"";position:absolute;width:29px;height:29px;border-radius:50%;border:1px dashed #8eb29b}
.boost-live-orbit i{width:10px;height:10px;border-radius:50%;background:#4f8e68;box-shadow:0 0 0 5px rgba(79,142,104,.10)}
.boost-live-orbit span{position:absolute;width:6px;height:6px;border-radius:50%;background:#7eb391;transform:translate(17px,0)}
.boost-live-panel.is-running .boost-live-orbit:before{animation:boostSpin 3.2s linear infinite}
.boost-live-panel.is-running .boost-live-orbit span{animation:boostOrbit 2.1s linear infinite}
.boost-live-bar{height:7px;border-radius:999px;background:#dfe9e2;overflow:hidden;position:relative;z-index:1}
.boost-live-bar>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#4c8f67,#76ad89);transition:width .35s ease}
.boost-live-bar>span.is-indeterminate{animation:boostIndeterminate 1.6s ease-in-out infinite}
.boost-live-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;position:relative;z-index:1}
.boost-live-metrics>div{min-width:0;border:1px solid #dfe9e2;background:rgba(255,255,255,.66);border-radius:10px;padding:8px 9px}
.boost-live-metrics b,.boost-live-metrics span{display:block}
.boost-live-metrics b{font-size:13px;color:#284d39;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.boost-live-metrics span{margin-top:2px;font-size:8.5px;color:#718379}
@keyframes boostPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.82);opacity:.72}}
@keyframes boostSpin{to{transform:rotate(360deg)}}
@keyframes boostOrbit{from{transform:rotate(0deg) translateX(17px) rotate(0deg)}to{transform:rotate(360deg) translateX(17px) rotate(-360deg)}}
@keyframes boostIndeterminate{0%{transform:translateX(-120%)}50%{transform:translateX(85%)}100%{transform:translateX(240%)}}
@media(max-width:1180px){.boost-source-layout{grid-template-columns:390px minmax(0,1fr);gap:12px}.boost-source-controls{width:390px;max-width:390px}.boost-source-controls>.boost-form-row{grid-template-columns:minmax(0,250px) 130px}}
@media(max-width:850px){.boost-source-layout{grid-template-columns:1fr}.boost-source-controls{width:100%;max-width:430px}.boost-live-panel{min-height:170px}}

/* Group boost v5: taller keywords, one-line action, compact process monitor. */
.boost-source-controls .boost-group-keywords-field textarea{
  min-height:64px;
  max-height:64px;
  white-space:normal;
  overflow-y:auto;
  overflow-x:hidden;
  line-height:1.35;
}
.boost-source-controls .boost-group-action-field{
  display:grid!important;
  grid-template-columns:145px minmax(0,1fr);
  align-items:center;
  gap:10px;
}
.boost-source-controls .boost-group-action-field>select{
  margin:0;
}
.boost-live-panel{
  align-self:start;
  min-height:0;
  padding:10px 12px;
  gap:8px;
  border-radius:12px;
  background:#f7faf8;
}
.boost-live-panel:before{display:none}
.boost-live-head{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
}
.boost-live-head>div{min-width:0}
.boost-live-head small{
  display:block;
  font-size:8px;
  line-height:1;
  letter-spacing:1.2px;
  font-weight:800;
  color:#71877a;
}
.boost-live-head strong{
  display:block;
  margin-top:3px;
  font-size:12px;
  line-height:1.15;
  color:#284d39;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.boost-live-head>b{
  font-size:10px;
  color:#315f45;
  background:#fff;
  border:1px solid #d9e7dd;
  border-radius:999px;
  padding:3px 7px;
}
.boost-live-detail{
  margin:0;
  min-height:14px;
  font-size:9px;
  line-height:1.35;
  color:#6c8074;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.boost-live-bar{height:5px}
.boost-live-metrics{gap:6px}
.boost-live-metrics>div{
  border:0;
  border-top:1px solid #dde8e0;
  background:transparent;
  border-radius:0;
  padding:6px 2px 0;
}
.boost-live-metrics b{font-size:12px}
.boost-live-metrics span{margin-top:1px;font-size:8px}
@media(max-width:1180px){
  .boost-source-controls .boost-group-action-field{grid-template-columns:135px minmax(0,1fr)}
}
@media(max-width:850px){
  .boost-live-panel{min-height:0}
}

/* Group boost v6: action belongs under the process block, not in the left form. */
.boost-source-right{min-width:0;display:flex;flex-direction:column;gap:8px;align-self:start}
.boost-group-action-row{
  width:100%;
  display:grid!important;
  grid-template-columns:155px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:0;
  margin:0;
}
.boost-group-action-row[hidden]{display:none!important}
.boost-group-action-row>span{font-size:10px;font-weight:650;color:#435e4e;white-space:nowrap}
.boost-group-action-row>select{min-width:0;width:100%;margin:0}
.boost-source-controls .boost-group-action-field{display:none!important}
@media(max-width:850px){
  .boost-source-right{width:100%}
  .boost-group-action-row{grid-template-columns:145px minmax(0,1fr)}
}

/* Group boost v7: keywords and action are side-by-side in the same left row. */
.boost-group-bottom-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 185px;
  gap:10px;
  align-items:start;
  width:100%;
  min-width:0;
}
.boost-group-bottom-row .boost-group-keywords-field{min-width:0}
.boost-source-controls .boost-group-action-field{
  display:flex!important;
  flex-direction:column;
  gap:5px;
  width:185px;
  min-width:185px;
  max-width:185px;
  align-self:start;
}
.boost-source-controls .boost-group-action-field select{
  width:100%;
  min-width:0;
  margin:0;
}
@media(max-width:1180px){
  .boost-group-bottom-row{grid-template-columns:minmax(0,1fr) 175px}
  .boost-source-controls .boost-group-action-field{width:175px;min-width:175px;max-width:175px}
}
@media(max-width:850px){
  .boost-group-bottom-row{grid-template-columns:minmax(0,1fr) 180px}
}

/* Group boost v8: screenshot-locked layout. */
.boost-source-layout{
  grid-template-columns:430px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
.boost-source-right{
  min-width:0;
  width:100%;
  display:block;
}
.boost-source-right .boost-live-panel{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.boost-source-controls .boost-group-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
}
.boost-source-controls .boost-group-action-field{
  display:grid!important;
  grid-template-columns:145px minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  max-width:none;
}
.boost-source-controls .boost-group-action-field>span{
  font-size:10px;
  font-weight:650;
  color:#435e4e;
  white-space:nowrap;
}
.boost-source-controls .boost-group-action-field>select{
  width:100%;
  min-width:0;
  margin:0;
}
.boost-source-controls .boost-group-keywords-field textarea{
  min-height:64px;
  max-height:64px;
}
@media(max-width:1180px){
  .boost-source-layout{grid-template-columns:390px minmax(0,1fr);gap:12px}
  .boost-source-controls .boost-group-action-field{grid-template-columns:135px minmax(0,1fr)}
}

/* Group boost v9: verified in sandbox against the user's screenshot. */
.boost-source-layout{
  display:grid;
  grid-template-columns:430px minmax(0,1fr);
  gap:18px;
  align-items:start;
  min-width:0;
}
.boost-source-controls{
  width:430px;
  max-width:430px;
  min-width:0;
}
.boost-source-controls .boost-group-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
  width:100%;
  min-width:0;
}
.boost-source-controls .boost-group-keywords-field textarea{
  min-height:64px;
  max-height:64px;
  white-space:normal;
  overflow-y:auto;
  overflow-x:hidden;
}
.boost-source-right{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-rows:auto auto;
  gap:8px;
  align-content:start;
}
.boost-source-right .boost-live-panel{
  width:100%;
  max-width:none;
  min-height:0;
  height:106px;
  box-sizing:border-box;
  padding:9px 12px;
  gap:5px;
}
.boost-group-action-row{
  width:275px;
  min-width:0;
  max-width:275px;
  display:flex!important;
  flex-direction:column;
  gap:5px;
  margin:0;
  padding:0;
  align-items:stretch;
}
.boost-group-action-row[hidden]{display:none!important}
.boost-group-action-row>select{
  width:100%;
  min-width:0;
  margin:0;
}
@media(max-width:1180px){
  .boost-source-layout{grid-template-columns:390px minmax(0,1fr);gap:12px}
  .boost-source-controls{width:390px;max-width:390px}
  .boost-group-action-row{width:260px;max-width:260px}
}

/* Account carousel invariant: never wrap actor cards to a second row. */
.boost-account-track{flex-wrap:nowrap}

/* Group boost action UX v12: only the two primary run controls remain visible. */
.boost-source-controls .boost-group-keywords-field>small{
  font-size:11px;
  font-weight:500;
  line-height:1.45;
  color:#566b5e;
}
.boost-run{
  min-height:62px;
  padding:9px 12px;
  justify-content:flex-start;
  background:#f0f7f2;
}
.boost-run .boost-run-state[hidden]{display:none!important}
.boost-run-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.boost-run-actions button{
  height:42px;
  min-height:42px;
  min-width:132px;
  padding:0 18px;
  border-radius:10px;
  font-size:12px;
  font-weight:750;
  line-height:1;
  opacity:1;
}
.boost-run-actions .boost-stop-action{
  background:#fff5f4;
  border:1px solid #d98d86;
  color:#94443d;
  box-shadow:0 1px 2px rgba(124,54,48,.06);
}
.boost-run-actions .boost-stop-action:not(:disabled):hover{
  background:#fceae8;
  border-color:#c86f66;
}
.boost-run-actions .boost-stop-action:disabled{
  background:#fbf6f5;
  border-color:#dbc5c2;
  color:#aa8d89;
  opacity:.9;
}
.boost-run-actions .boost-start-action{
  background:#24624c;
  border:1px solid #24624c;
  color:#fff;
  box-shadow:0 2px 6px rgba(36,98,76,.22);
}
.boost-run-actions .boost-start-action:not(:disabled):hover{
  background:#1c5540;
  border-color:#1c5540;
}
.boost-run-actions .boost-start-action:disabled{
  background:#9cb8ad;
  border-color:#9cb8ad;
  color:#f8fbfa;
  box-shadow:none;
  opacity:.92;
}

/* Group boost action UX v13: readable helper text and left-aligned run controls. */
.boost-source-controls .boost-group-keywords-field>small{
  font-size:12px;
  font-weight:600;
  line-height:1.5;
  color:#465d50;
}
.boost-run{
  justify-content:flex-start;
}

/* Protection executor UX: account first, bot optional. */
.protection-executor{flex-shrink:0;border:1px solid #dce6df;border-radius:12px;background:#fbfdfb;padding:10px 12px;margin-bottom:10px}
.protection-executor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.protection-executor-head h3{margin:0 0 3px;font-size:13px;color:#294b39}
.protection-executor-head p{margin:0;font-size:10.5px;line-height:1.4;color:var(--muted)}
.protection-executor-head>button{min-height:30px;padding:5px 8px;font-size:10px;flex-shrink:0}
.protection-executor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.executor-choice{min-width:0;border:1px solid #d9e5dd;border-radius:10px;background:#fff;padding:9px 10px}
.executor-choice.selected{border-color:#72ad8b;background:#eff8f2;box-shadow:inset 0 0 0 1px #a9ceb5}
.executor-choice-title{display:flex;align-items:center;gap:7px;min-width:0}
.executor-choice-title input{width:16px;height:16px;margin:0;accent-color:#28694d;flex:0 0 auto}
.executor-choice-title strong{font-size:11.5px;color:#294939;white-space:nowrap}
.executor-badge{margin-left:auto;padding:3px 6px;border-radius:999px;background:#dceee2;color:#37634b;font-size:8px;white-space:nowrap}
.executor-choice>small{display:block;margin:4px 0 7px 23px;font-size:9px;line-height:1.35;color:var(--muted)}
.executor-account{margin-left:23px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:7px}
.executor-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#dcece2;color:#285b40;font-size:11px;font-weight:800}
.executor-account>span:nth-child(2){min-width:0}
.executor-account b,.executor-account em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.executor-account b{font-size:10.5px}.executor-account em{font-style:normal;font-size:8.5px;color:var(--muted);margin-top:2px}
.executor-account i{font-style:normal;font-size:9px;font-weight:700;color:#2c6c4a}
.executor-bot-row{margin-left:23px;display:grid;grid-template-columns:minmax(150px,1fr) auto auto;gap:6px;align-items:center}
.executor-bot-row select{min-width:0;width:100%;height:34px;padding:5px 8px;font-size:10px;border:1px solid #a9beb1;background:#fff;color:#213e30;font-weight:600}
.executor-bot-row button{height:34px;padding:5px 10px;font-size:9.5px;white-space:nowrap;font-weight:800;border-width:1px}
.executor-bot-row .executor-connect{background:#256b49;border-color:#256b49;color:#fff;box-shadow:0 2px 7px rgba(37,107,73,.18)}
.executor-bot-row .executor-create{background:#fff;border-color:#7ea18d;color:#275b40}
.executor-bot-row .executor-connect:disabled{background:#dcebe2;border-color:#b9d1c2;color:#4d745f;box-shadow:none}
.executor-bot-foot{margin:7px 0 0 23px;display:flex;align-items:center;gap:8px;min-height:25px;flex-wrap:wrap}
.executor-state{font-size:9.5px;line-height:1.35;min-width:0}
.executor-state.is-ready{color:#17683f;font-weight:800}.executor-state.is-warning{color:#8b5b2b}.executor-state.is-muted{color:var(--muted)}
.executor-token-ok{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#e4f4e9;color:#17683f;font-size:8.5px;font-weight:800}
.bot-create-dialog{width:min(440px,calc(100vw - 24px));max-width:440px}
.bot-create-content>p:first-child{margin:0 0 12px;color:#435b4d;font-size:11px;line-height:1.45}
.bot-create-fields{display:grid;gap:10px;max-width:340px}
.bot-create-fields .field{font-size:11px;font-weight:800;color:#203e30}
.bot-create-fields input{width:100%;box-sizing:border-box;margin-top:5px;height:38px;padding:7px 9px;border:1.5px solid #86a694;border-radius:8px;background:#fff;color:#173929;font-size:12px;font-weight:700;outline:none}
.bot-create-fields input:focus{border-color:#2f7652;box-shadow:0 0 0 3px rgba(47,118,82,.12)}
.bot-create-status{margin-top:10px;padding:8px 9px;border-radius:8px;background:#f3f6f4;color:#53685b;font-size:10px;line-height:1.4}
.bot-create-status.is-working{background:#eef5f1;color:#2f6448;font-weight:700}
.bot-create-status.is-error{background:#fff0ed;color:#9a3f31;font-weight:700}
.bot-success-dialog{width:min(500px,calc(100vw - 24px));max-width:500px}
.bot-success-dialog footer{justify-content:flex-end!important}
.bot-success-content{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:center}
.bot-success-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e3f3e8;color:#197044;font-size:22px;font-weight:900}
.bot-success-content strong{font-size:14px;color:#19452f}.bot-success-content p{margin:4px 0 0;font-size:10.5px;line-height:1.45;color:#566b5e}
.executor-setup{height:27px;padding:4px 8px;font-size:9px;margin-left:auto;white-space:nowrap}
.executor-warning{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:center;margin-top:8px;margin-left:0;padding:8px 10px;border:1px solid #e5c38d;border-radius:9px;background:#fff7ea;color:#73532c}
.executor-warning strong{font-size:10px}.executor-warning span{grid-column:1;font-size:9px;line-height:1.35}.executor-warning button{grid-column:2;grid-row:1/3;height:31px;font-size:9px;padding:5px 8px}
.executor-dialog-note{padding:9px 10px;border-radius:8px;background:#eff7f2;color:#356048;font-size:11px}
@media(max-height:780px) and (min-width:1050px){
 .protection-executor{padding:7px 9px;margin-bottom:6px}.protection-executor-head{margin-bottom:6px}
 .protection-executor-head p{font-size:9.5px}.executor-choice{padding:7px 8px}.executor-choice>small{margin-bottom:5px}
 .executor-account{grid-template-columns:25px minmax(0,1fr) auto}.executor-avatar{width:25px;height:25px}
 .executor-bot-row select,.executor-bot-row button{height:29px}.executor-bot-foot{margin-top:4px;min-height:22px}
}
@media(max-width:900px){
 .protection-executor-grid{grid-template-columns:1fr}.executor-bot-row{grid-template-columns:1fr auto}.executor-bot-row .primary{grid-column:1/-1}
}

.executor-poll-note,.executor-lock-note{display:block;margin:4px 0 0 23px;font-size:8.5px;line-height:1.3;color:#6c7d72}
.executor-lock-note{color:#7b6751;font-weight:600}
.executor-choice input:disabled,.executor-choice select:disabled,.executor-choice button:disabled{cursor:not-allowed;opacity:.72}

/* Protection UX v3: status in group header, per-rule actions, compact profanity editor. */
.protection-header-state{display:inline-flex!important;align-items:center;margin-left:10px;padding:3px 8px;border-radius:999px;border:1px solid #c9d9cf;background:#f2f7f4;color:#315e46;font-size:9px!important;font-weight:800;letter-spacing:0!important;vertical-align:middle}
.protection-executor-head h3{font-size:15.5px;font-weight:850;color:#173f2d;letter-spacing:.05px}
.protection-progress{display:block;min-height:0;margin:-3px 0 7px 2px;font-size:9px;color:#6d7f74}
.system-rule-dialog{width:min(440px,92vw);max-width:440px}
.system-rule-dialog .rule-help-content{padding:14px 18px}
.system-rule-dialog .rule-help-content p{margin:0 0 8px;font-size:12px;line-height:1.45;color:#40594b}
.system-rule-dialog footer{justify-content:flex-end}
.profanity-rule-dialog{width:min(570px,94vw);max-width:570px}
.profanity-rule-dialog header>div{min-width:0}
.profanity-rule-dialog header small{display:block;margin-top:3px;font-size:10px;color:#71867a;font-weight:650}
.profanity-rule-content{padding:15px 18px}
.profanity-count{display:flex;align-items:baseline;gap:9px;padding:10px 12px;margin-bottom:12px;border:1px solid #cfe0d5;border-radius:10px;background:#f1f8f3}
.profanity-count strong{font-size:22px;line-height:1;color:#1d6541}
.profanity-count span{font-size:10px;font-weight:700;color:#496555}
.profanity-extra-field{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:#294b39}
.profanity-extra-field textarea{min-height:82px;max-height:135px;border:1.5px solid #8fab99!important;background:#fff!important;font-size:12px!important;line-height:1.4}
.profanity-extra-field textarea:focus{border-color:#2e7651!important;box-shadow:0 0 0 3px rgba(46,118,81,.11)}
.profanity-extra-hint{display:block;margin-top:5px;font-size:9.5px;color:#6a7b71}
.profanity-rule-content .rule-consequences{margin-top:13px;padding-top:11px}
.profanity-rule-content .rule-consequences h3{margin:0 0 8px;font-size:12px;color:#294b39}
.profanity-rule-content .rule-consequences .check{margin:7px 0;font-size:11px}
.profanity-rule-content .rule-consequences .field{font-size:11px;font-weight:700;color:#40594b}
.rule-apply-note{margin-top:11px;padding:7px 9px;border-radius:8px;background:#f4f6f5;color:#6b7a72;font-size:9.5px}
.rule-apply-note.is-pending{background:#fff5e8;color:#86602f}
.rule-apply-note.is-applied{background:#e9f6ed;color:#236943;font-weight:700}
.profanity-rule-footer{justify-content:flex-end!important}
.profanity-rule-footer button{min-width:105px;font-weight:800}
.profanity-rule-footer .done-button:not(:disabled){background:#fff;border-color:#4e8868;color:#235b3d}
.profanity-rule-footer .done-button:disabled{opacity:.45;cursor:not-allowed}
.rule-examples-title{margin:14px 0 7px;font-size:12px;color:#294b39}
.rule-positive-examples>div{display:flex;flex-direction:column;justify-content:flex-start}
.rule-positive-examples p{margin:5px 0;color:#355d47;font-size:11px;line-height:1.4}
.custom-rule-dialog{width:min(570px,94vw);max-width:570px}
.custom-rule-field{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:11px;font-weight:800;color:#294b39}
.custom-rule-field textarea{min-height:90px;max-height:150px;border:1.5px solid #91aa9b!important;background:#fff!important;font-size:12px!important;line-height:1.4}
.custom-rule-field textarea:focus{border-color:#2e7651!important;box-shadow:0 0 0 3px rgba(46,118,81,.11)}
.custom-rule-hint{display:block;margin-top:6px;font-size:9.5px;line-height:1.45;color:#65796d}

