/* PanelAiBot V3 Phase 6 — simplification & automation workspace */
:root{--v6-blue:#3567ee;--v6-blue-soft:#eef4ff;--v6-green:#129766;--v6-red:#e45464;--v6-radius:15px}
.bp-screen-automation,.bp-screen-templates,.bp-screen-command-settings,.bp-screen-requests,.bp-screen-referrals,.bp-screen-smart-assistant,.bp-screen-auto-publish,.bp-screen-settings{max-width:1180px;margin-inline:auto}
.bp-screen :where(.button){min-height:38px;border-radius:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px}
.bp-screen :where(.button.small){min-height:32px;border-radius:9px}

/* Sidebar: keep the customer menu easy to scan */
.tenant-shell .bp-nav-group-v3{margin-bottom:12px}.tenant-shell .bp-nav-group-label{font-size:9px;letter-spacing:.13em}.tenant-shell .bp-nav-link{min-height:38px;border-radius:9px}.tenant-shell .bp-nav-link span{font-size:12px}

/* Settings buttons */
.bp-screen-settings .settings-control-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:7px;background:color-mix(in srgb,var(--card) 88%,var(--primary) 12%);border:1px solid var(--line);border-radius:14px;position:sticky;top:72px;z-index:4}
.bp-screen-settings .settings-control-nav :is(button,.settings-nav-link){min-width:0;min-height:46px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;color:var(--muted)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;text-decoration:none!important;box-shadow:none!important;padding:8px 10px!important;cursor:pointer}
.bp-screen-settings .settings-control-nav :is(button,.settings-nav-link):hover{background:var(--card)!important;color:var(--text)!important;border-color:var(--line)!important}.bp-screen-settings .settings-control-nav button.active{background:var(--card)!important;color:var(--primary)!important;border-color:color-mix(in srgb,var(--primary) 35%,var(--line))!important;box-shadow:0 3px 12px rgba(15,23,42,.05)!important}.bp-screen-settings .settings-control-nav .settings-nav-link small{margin-inline-start:auto}
.bp-screen-settings .settings-dedicated-links{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.bp-screen-settings .settings-dedicated-links>a{min-height:82px!important;border-radius:12px!important;padding:12px!important}.bp-screen-settings .save-dock{border-radius:14px!important;box-shadow:0 10px 30px rgba(15,23,42,.08)!important}

/* Auto poster — recipient builder */
.bp-screen-auto-publish .fire2919-rule-builder{border:1px solid var(--line)!important;border-radius:16px!important;padding:18px!important;background:var(--card)!important;box-shadow:0 5px 20px rgba(15,23,42,.04)!important}
.bp-screen-auto-publish .fire2919-rule-builder>.card-head{margin-bottom:14px!important}.bp-screen-auto-publish :is(.fire2919-channel-choice,.fire2919-channel-tabs){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:10px 0 14px!important}.bp-screen-auto-publish :is(.fire2919-channel-choice,.fire2919-channel-tabs) label{min-height:55px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;padding:10px 12px!important;display:flex!important;align-items:center!important;gap:9px!important;cursor:pointer}.bp-screen-auto-publish :is(.fire2919-channel-choice,.fire2919-channel-tabs) label:has(input:checked){border-color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 7%,var(--card))!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 25%,transparent)}
.bp-screen-auto-publish .fire2919-smart-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.bp-screen-auto-publish .fire2919-source-card{min-width:0!important;min-height:84px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:var(--surface)!important;padding:13px!important;display:flex!important;align-items:flex-start!important;gap:10px!important;cursor:pointer}.bp-screen-auto-publish .fire2919-source-card:has(input:checked){border-color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 7%,var(--card))!important}.bp-screen-auto-publish .fire2919-source-card input{margin-top:3px!important}.bp-screen-auto-publish .fire2919-source-card b{display:block!important;font-size:12px!important;color:var(--text)!important}.bp-screen-auto-publish .fire2919-source-card small{display:block!important;margin-top:4px!important;color:var(--muted)!important;font-size:10px!important}.bp-screen-auto-publish .fire2919-picker-grid{gap:12px!important}.bp-screen-auto-publish .fire2919-check-picker{border:1px solid var(--line)!important;border-radius:13px!important;background:var(--surface)!important;overflow:hidden!important}.bp-screen-auto-publish .fire2919-picker-head{padding:12px 13px!important;border-bottom:1px solid var(--line)!important;background:var(--card)!important}.bp-screen-auto-publish .fire2919-picker-search{margin:10px!important;width:calc(100% - 20px)!important;border-radius:10px!important}.bp-screen-auto-publish .fire2919-check-list{max-height:280px!important;padding:0 9px 9px!important}.bp-screen-auto-publish .fire2919-check-list label{border:0!important;border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent)!important;border-radius:0!important;padding:9px 5px!important;background:transparent!important}.bp-screen-auto-publish .fire2919-check-list label:last-child{border-bottom:0!important}.bp-screen-auto-publish .fire2919-check-list label:has(input:checked){background:color-mix(in srgb,var(--primary) 6%,transparent)!important}.bp-screen-auto-publish .fire2919-rule-options{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important}.bp-screen-auto-publish .fire2919-events-box{margin-top:12px!important;padding:13px!important;border-radius:12px!important;background:var(--surface)!important;border:1px solid var(--line)!important}.bp-screen-auto-publish .fire2919-event-grid label{border-radius:9px!important;min-height:38px!important}.bp-screen-auto-publish .fire2919-recipient-panel{padding:14px!important;border:1px solid var(--line)!important;border-radius:14px!important;background:color-mix(in srgb,var(--surface) 92%,var(--primary) 8%)!important}


.bp-screen-auto-publish .fire2919-audience-section{border-radius:16px!important;padding:16px!important}.bp-screen-auto-publish .fire2919-source-summary{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;margin:12px 0!important;padding:0!important;background:transparent!important}.bp-screen-auto-publish .fire2919-source-summary>span{min-width:0;border:1px solid var(--line)!important;border-radius:11px!important;background:var(--surface)!important;padding:9px 8px!important;text-align:center!important}.bp-screen-auto-publish .fire2919-source-summary b{display:block!important;font-size:16px!important;color:var(--text)!important}.bp-screen-auto-publish .fire2919-source-summary small{display:block!important;font-size:8.5px!important;color:var(--muted)!important;line-height:1.35!important;margin-top:2px!important}.bp-screen-auto-publish .fire2919-channel-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-bottom:12px!important}.bp-screen-auto-publish .fire2919-channel-tabs label{position:relative!important;min-height:58px!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:10px 12px!important;background:var(--surface)!important;display:flex!important;align-items:center!important;gap:10px!important;cursor:pointer!important}.bp-screen-auto-publish .fire2919-channel-tabs input{width:17px!important;height:17px!important;flex:0 0 auto!important}.bp-screen-auto-publish .fire2919-channel-tabs label:has(input:checked){border-color:var(--primary)!important;background:color-mix(in srgb,var(--primary) 7%,var(--card))!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--primary) 18%,transparent)!important}.bp-screen-auto-publish .fire2919-channel-tabs b,.bp-screen-auto-publish .fire2919-channel-tabs small{display:block!important}.bp-screen-auto-publish .fire2919-channel-tabs b{font-size:12px!important}.bp-screen-auto-publish .fire2919-channel-tabs small{font-size:9px!important;color:var(--muted)!important;margin-top:2px!important}.bp-screen-auto-publish .fire2919-manual-grid{margin-top:12px!important}.bp-screen-auto-publish .fire2919-manual-grid textarea{min-height:90px!important}.bp-screen-auto-publish .fire2919-rule-builder>.button.primary.large{margin-top:12px!important;min-width:190px!important}

/* Smart assistant — clean two-column builder */
.bp-screen-smart-assistant .assistant2921-page{display:grid!important;gap:14px!important}.bp-screen-smart-assistant .assistant2921-hero{border-radius:16px!important;padding:18px!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,var(--card)),var(--card))!important}.bp-screen-smart-assistant .assistant2921-orb{width:48px!important;height:48px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:var(--primary)!important;color:white!important;font-size:23px!important;box-shadow:none!important}.bp-screen-smart-assistant .assistant2921-hero-copy h1{font-size:22px!important;margin:2px 0 5px!important}.bp-screen-smart-assistant .assistant2921-hero-copy p{max-width:720px!important;color:var(--muted)!important}.bp-screen-smart-assistant .assistant2921-status{min-width:180px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;padding:11px 13px!important}.bp-screen-smart-assistant .bp-section-jump{padding:6px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--card)!important;gap:5px!important}.bp-screen-smart-assistant .bp-section-jump a{border-radius:9px!important;min-height:35px!important}.bp-screen-smart-assistant .assistant2921-layout{display:grid!important;grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr)!important;gap:14px!important;align-items:start!important}.bp-screen-smart-assistant .assistant2921-config{border-radius:16px!important;padding:17px!important}.bp-screen-smart-assistant .assistant2921-toggle-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.bp-screen-smart-assistant .assistant2921-toggle{min-height:48px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:var(--surface)!important;padding:9px 11px!important}.bp-screen-smart-assistant .assistant2921-toggle:has(input:checked){border-color:color-mix(in srgb,var(--v6-green) 60%,var(--line))!important;background:color-mix(in srgb,var(--v6-green) 6%,var(--card))!important}.bp-screen-smart-assistant .assistant2921-mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.bp-screen-smart-assistant details.assistant2921-api-card{border:1px solid var(--line)!important;border-radius:12px!important;background:var(--surface)!important;overflow:hidden!important}.bp-screen-smart-assistant details.assistant2921-api-card>summary{padding:12px!important;background:var(--card)!important}.bp-screen-smart-assistant .assistant2921-preview-card{position:sticky!important;top:78px!important;border-radius:16px!important;padding:14px!important}.bp-screen-smart-assistant .assistant2921-preview,.bp-screen-smart-assistant .assistant2828-preview{border-radius:18px!important;background:linear-gradient(160deg,color-mix(in srgb,var(--primary) 6%,var(--surface)),var(--surface))!important;border:1px solid var(--line)!important;box-shadow:none!important}.bp-screen-smart-assistant .assistant2921-preview-chat,.bp-screen-smart-assistant .assistant2828-preview-chat{border-radius:20px!important;box-shadow:0 18px 40px rgba(15,23,42,.12)!important;overflow:hidden!important}.bp-screen-smart-assistant .assistant2921-preview-chat header,.bp-screen-smart-assistant .assistant2828-preview-chat>header{min-height:58px!important}.bp-screen-smart-assistant .assistant2921-preview-launcher,.bp-screen-smart-assistant .assistant2828-preview-launcher{box-shadow:0 10px 24px rgba(15,23,42,.18)!important}.bp-screen-smart-assistant .actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.bp-screen-smart-assistant .actions .button{min-width:120px!important}

/* Automation page */
.bp-screen-automation .bp-route-body{max-width:1000px;margin-inline:auto}.automation6-status{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 16px;border:1px solid var(--line);border-inline-start:3px solid var(--muted);border-radius:14px;background:var(--card);box-shadow:0 4px 15px rgba(15,23,42,.04);margin-bottom:14px}.automation6-status.is-active{border-inline-start-color:var(--v6-green)}.automation6-status-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:color-mix(in srgb,var(--v6-green) 10%,var(--card));color:var(--v6-green)}.automation6-status strong{display:block;font-size:13px}.automation6-status small{display:block;color:var(--muted);margin-top:3px}.automation6-form{display:grid;gap:14px}.automation6-card{border-radius:15px!important;padding:18px!important;box-shadow:0 5px 18px rgba(15,23,42,.045)!important}.automation6-card-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.automation6-card-head.compact h2{margin:0 0 6px;font-size:15px}.automation6-card-head.compact p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.automation6-card-head output{font-size:17px;font-weight:800;color:var(--primary);align-self:flex-end}.automation6-master,.automation6-service-toggle{display:flex;align-items:center;gap:9px;white-space:nowrap}.automation6-master input,.automation6-toggle-list input,.automation6-service-toggle input{position:absolute;opacity:0;pointer-events:none}.automation6-master>span,.automation6-toggle-list label>span,.automation6-service-toggle>span{width:38px;height:22px;border-radius:999px;background:#cbd5e1;position:relative;flex:0 0 auto;transition:.16s}.automation6-master>span:after,.automation6-toggle-list label>span:after,.automation6-service-toggle>span:after{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:white;top:3px;left:3px;box-shadow:0 1px 3px rgba(0,0,0,.16);transition:.16s}.automation6-master:has(input:checked)>span,.automation6-toggle-list label:has(input:checked)>span,.automation6-service-toggle:has(input:checked)>span{background:var(--v6-green)}.automation6-master:has(input:checked)>span:after,.automation6-toggle-list label:has(input:checked)>span:after,.automation6-service-toggle:has(input:checked)>span:after{transform:translateX(16px)}[dir="rtl"] .automation6-master:has(input:checked)>span:after,[dir="rtl"] .automation6-toggle-list label:has(input:checked)>span:after,[dir="rtl"] .automation6-service-toggle:has(input:checked)>span:after{transform:translateX(-16px)}[dir="rtl"] .automation6-master>span:after,[dir="rtl"] .automation6-toggle-list label>span:after,[dir="rtl"] .automation6-service-toggle>span:after{left:auto;right:3px}.automation6-divider{height:1px;background:var(--line);margin:17px 0}.automation6-setting-block{display:grid;gap:11px}.automation6-setting-block>div:first-child strong{font-size:13px}.automation6-setting-block>div:first-child p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.55}.automation6-number-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.automation6-number-row>label{display:flex;align-items:center;gap:7px}.automation6-number-row input,.automation6-inline-number input{width:82px!important;height:36px!important}.automation6-number-row label span,.automation6-inline-number em{font-size:11px;color:var(--muted);font-style:normal}.automation6-presets{display:flex;gap:6px;flex-wrap:wrap}.automation6-presets button{height:34px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:11px;cursor:pointer}.automation6-presets button:hover{border-color:var(--primary);color:var(--primary)}.automation6-inline-number{display:flex;align-items:center;gap:8px;width:max-content}.automation6-range{width:100%;accent-color:var(--primary);margin-top:12px}.automation6-request-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.automation6-request-card{display:flex;gap:10px;align-items:flex-start;min-height:62px;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--surface);cursor:pointer}.automation6-request-card input{position:absolute;opacity:0}.automation6-check{width:18px;height:18px;border:1px solid #b8c4d7;border-radius:4px;display:grid;place-items:center;color:transparent;flex:0 0 auto;font-size:12px}.automation6-request-card:has(input:checked){border-color:color-mix(in srgb,var(--primary) 65%,var(--line));background:color-mix(in srgb,var(--primary) 5%,var(--card))}.automation6-request-card:has(input:checked) .automation6-check{background:var(--primary);border-color:var(--primary);color:white}.automation6-request-card b{display:block;font-size:12px}.automation6-request-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.automation6-radio-stack{display:grid;gap:9px;margin-top:12px}.automation6-radio-stack label{display:grid;grid-template-columns:20px minmax(0,1fr);gap:8px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);cursor:pointer}.automation6-radio-stack label:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 5%,var(--card))}.automation6-radio-stack b,.automation6-radio-stack small{display:block}.automation6-radio-stack small{color:var(--muted);font-size:10px;margin-top:3px}.automation6-toggle-list{display:grid;gap:12px;margin-top:12px}.automation6-toggle-list label{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:start;cursor:pointer}.automation6-toggle-list b{display:block;font-size:12px}.automation6-toggle-list small{display:block;color:var(--muted);font-size:10px;line-height:1.45;margin-top:2px}.automation6-metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.automation6-metric-grid label>span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.automation6-metric-grid label>div{display:flex;align-items:center;gap:8px}.automation6-metric-grid input{max-width:100px}.automation6-metric-grid em{font-style:normal;font-size:10px;color:var(--muted)}.automation6-advanced{padding:0!important}.automation6-advanced>summary{padding:15px 18px;display:flex;justify-content:space-between;cursor:pointer;list-style:none}.automation6-advanced>summary>span{display:flex;align-items:center;gap:8px}.automation6-advanced-body{padding:0 18px 18px;border-top:1px solid var(--line)}.automation6-blocked{display:grid;gap:8px;margin-top:16px}.automation6-blocked b,.automation6-blocked small{display:block}.automation6-blocked small{color:var(--muted);font-size:10px;margin-top:2px}.automation6-save{position:sticky;bottom:10px;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--card) 94%,transparent);backdrop-filter:blur(15px);box-shadow:0 8px 30px rgba(15,23,42,.10)}.automation6-save strong,.automation6-save small{display:block}.automation6-save small{color:var(--muted);font-size:10px;margin-top:2px}.automation6-followups{margin-top:24px}.automation6-section-title{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:11px}.automation6-section-title h2{font-size:18px;margin:2px 0}.automation6-followup-switches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.automation6-followup-switch{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--card)}.automation6-followup-switch>span{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;background:var(--surface);color:var(--muted)}.automation6-followup-switch.is-on>span{color:var(--v6-green);background:color-mix(in srgb,var(--v6-green) 9%,var(--card))}.automation6-followup-switch b,.automation6-followup-switch small{display:block}.automation6-followup-switch small{color:var(--muted);font-size:10px;margin-top:2px}.automation6-mini-toggle{height:32px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);display:flex;align-items:center;gap:6px;padding:0 9px;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.automation6-mini-toggle i{width:7px;height:7px;border-radius:50%;background:#94a3b8}.automation6-mini-toggle.on i{background:var(--v6-green)}.automation6-followup-log{padding:0!important;overflow:hidden}.automation6-log-head{padding:14px 16px;border-bottom:1px solid var(--line)}.automation6-log-head h3{margin:0;font-size:14px}.automation6-log-head p{margin:4px 0 0;color:var(--muted);font-size:10px}.automation6-log-list>article{display:grid;grid-template-columns:32px minmax(180px,1.25fr) minmax(120px,.8fr) minmax(100px,.65fr) minmax(140px,.85fr) auto;gap:10px;align-items:center;padding:11px 15px;border-bottom:1px solid var(--line)}.automation6-log-list>article:last-child{border-bottom:0}.automation6-kind{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--surface);color:var(--primary)}.automation6-log-list b,.automation6-log-list small{display:block}.automation6-log-list small{font-size:9px;color:var(--muted)}.automation6-log-main b{font-size:11px}.automation6-empty{padding:34px;display:grid;place-items:center;gap:7px;color:var(--muted)}

/* Templates inspired by the compact reference */
.bp-screen-templates .bp-route-body{max-width:1040px;margin-inline:auto}.templates6-page{display:grid;gap:12px}.templates6-info{display:grid;grid-template-columns:26px minmax(0,1fr);gap:10px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--primary) 7%,var(--card));color:var(--text)}.templates6-info>span{color:var(--primary)}.templates6-info p{margin:0;font-size:11px;line-height:1.55}.templates6-top-actions{display:flex;align-items:start;justify-content:space-between;gap:10px}.templates6-variables{flex:1}.templates6-variables>summary{width:max-content;list-style:none;cursor:pointer;display:flex;align-items:center;gap:7px;padding:8px 11px;background:var(--card);border:1px solid var(--line);border-radius:9px;font-size:10px}.templates6-variable-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:var(--card)}.templates6-variable-grid>div{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:start}.templates6-variable-grid code{padding:3px 6px;border-radius:5px;background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--primary);font-size:9px}.templates6-variable-grid span{font-size:9px;color:var(--muted);line-height:1.45}.templates6-backup-actions{display:flex;gap:7px}.templates6-stats{display:flex;gap:13px;flex-wrap:wrap;font-size:10px;color:var(--muted)}.templates6-stats span{padding-inline-end:13px;border-inline-end:1px solid var(--line)}.templates6-stats span:last-child{border:0}.templates6-stats b{color:var(--text);font-size:12px}.templates6-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}.templates6-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}.templates6-tabs::-webkit-scrollbar{display:none}.templates6-tabs button{border:1px solid var(--line);background:var(--card);color:var(--muted);border-radius:999px;padding:7px 13px;font:inherit;font-size:10px;white-space:nowrap;cursor:pointer}.templates6-tabs button.active{background:#14223b;color:white;border-color:#14223b}.templates6-search{height:38px;border:1px solid var(--line);border-radius:9px;background:var(--surface);display:flex;align-items:center;gap:8px;padding:0 10px;color:var(--muted)}.templates6-search input{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;width:100%;height:100%!important;padding:0!important}.templates6-groups{border-top:1px solid var(--line)}.templates6-group{border-bottom:1px solid var(--line)}.templates6-group>summary{list-style:none;display:grid;grid-template-columns:34px minmax(0,1fr) 24px;gap:10px;align-items:center;padding:13px 10px;cursor:pointer}.templates6-group>summary:hover{background:color-mix(in srgb,var(--surface) 80%,transparent)}.templates6-group-icon{width:30px;height:30px;border-radius:9px;background:var(--card);border:1px solid var(--line);display:grid;place-items:center;color:var(--primary)}.templates6-group summary b,.templates6-group summary small{display:block}.templates6-group summary b{font-size:11px}.templates6-group summary small{font-size:9px;color:var(--muted);margin-top:2px}.templates6-chevron{font-size:17px;color:var(--muted);transition:.15s}.templates6-group[open] .templates6-chevron{transform:rotate(90deg)}.templates6-group-body{padding:0 10px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.templates6-template{border:1px solid var(--line);border-radius:10px;background:var(--card);padding:11px;min-width:0}.templates6-template header{display:flex;justify-content:space-between;gap:8px;align-items:start}.templates6-template header strong{font-size:10px;overflow-wrap:anywhere}.templates6-template header small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.templates6-template header a{width:29px;height:29px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;color:var(--muted)}.templates6-template p{font-size:10px;color:var(--muted);line-height:1.5;margin:10px 0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.templates6-edit{border:0;background:transparent;color:var(--primary);font:inherit;font-size:10px;font-weight:700;display:flex;gap:6px;align-items:center;cursor:pointer;padding:0}.templates6-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.templates6-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.templates6-floating-save{position:sticky!important;bottom:12px!important;margin:14px 0 0 auto!important;z-index:4!important}.templates6-dialog textarea{min-height:190px}

/* Requests: lighter cards, clearer status */
.bp-screen-requests .bp-route-body{max-width:1080px;margin-inline:auto}.bp-screen-requests .deep291-hero{border-radius:14px!important}.bp-screen-requests .requests291-stats{gap:9px!important}.bp-screen-requests .requests291-stats article{border-radius:12px!important;box-shadow:none!important}.bp-screen-requests .requests291-source-card,.bp-screen-requests .requests291-list-card{border-radius:14px!important;box-shadow:0 4px 16px rgba(15,23,42,.035)!important}.bp-screen-requests .requests291-filters{display:grid!important;grid-template-columns:minmax(0,1fr) 170px 170px!important;gap:8px!important}.bp-screen-requests .requests291-row{border:1px solid var(--line)!important;border-radius:11px!important;margin:8px!important;padding:11px!important;background:var(--card)!important}.bp-screen-requests .requests291-row:hover{border-color:color-mix(in srgb,var(--primary) 35%,var(--line))!important}.bp-screen-requests .deep291-inline-details{margin-top:8px!important}.bp-screen-requests .requests291-detail-grid{border-radius:10px!important;background:var(--surface)!important;padding:10px!important}

/* Commands */
.bp-screen-command-settings .bp-route-body{max-width:1000px;margin-inline:auto}.commands6-page{display:grid;gap:12px}.commands6-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;border-radius:15px!important}.commands6-hero h2{margin:4px 0 6px;font-size:18px}.commands6-hero p{margin:0;color:var(--muted);font-size:11px}.commands6-stats{display:flex;gap:7px}.commands6-stats span{min-width:74px;border:1px solid var(--line);border-radius:10px;padding:8px;background:var(--surface);text-align:center}.commands6-stats b,.commands6-stats small{display:block}.commands6-stats b{font-size:16px}.commands6-stats small{font-size:9px;color:var(--muted);margin-top:2px}.commands6-preview{border-radius:15px!important}.commands6-section-head{display:flex;justify-content:space-between;gap:10px}.commands6-section-head h2{font-size:14px;margin:0 0 4px}.commands6-section-head p{font-size:10px;color:var(--muted);margin:0}.commands6-test-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:11px}.commands6-test-row textarea{min-height:48px!important}.commands6-preview-result{margin-top:10px;border-radius:10px;max-height:250px;overflow:auto}.commands6-filter{display:flex;gap:6px;overflow-x:auto}.commands6-filter button{border:1px solid var(--line);background:var(--card);border-radius:999px;padding:7px 13px;font:inherit;font-size:10px;cursor:pointer;color:var(--muted)}.commands6-filter button.active{background:#14223b;color:white;border-color:#14223b}.commands6-list{display:grid;gap:8px}.commands6-card{padding:0!important;overflow:hidden;border-radius:13px!important}.commands6-card summary{list-style:none;display:grid;grid-template-columns:36px minmax(0,1fr) auto 24px;gap:10px;align-items:center;padding:12px 13px;cursor:pointer}.commands6-card summary:hover{background:var(--surface)}.commands6-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;color:var(--primary);background:var(--surface)}.commands6-copy strong,.commands6-copy small{display:block}.commands6-copy strong{font-size:12px}.commands6-copy small{color:var(--muted);font-size:9px;margin-top:3px}.commands6-state{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:5px 8px;font-size:9px;color:var(--muted)}.commands6-state i{width:7px;height:7px;border-radius:50%;background:#94a3b8}.commands6-state.on i{background:var(--v6-green)}.commands6-arrow{font-size:18px;color:var(--muted)}.commands6-card[open] .commands6-arrow{transform:rotate(90deg)}.commands6-form{border-top:1px solid var(--line);padding:14px;background:var(--surface)}.commands6-top-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.commands6-toggle{display:flex;align-items:center;gap:8px}.commands6-toggle input{width:auto!important}.commands6-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.commands6-grid label>span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.commands6-checks{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.commands6-checks label{display:flex;align-items:center;gap:6px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--card);font-size:10px}.commands6-actions{display:flex;justify-content:flex-end;margin-top:11px}

/* Referrals */
.bp-screen-referrals .bp-route-body{max-width:1000px;margin-inline:auto}.referrals6-page{display:grid;gap:12px}.referrals6-hero{border-radius:16px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 7%,var(--card)),var(--card))!important}.referrals6-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center}.referrals6-hero h2{font-size:19px;margin:4px 0 6px}.referrals6-hero p{margin:0;color:var(--muted);font-size:11px}.referrals6-rate{min-width:120px;border:1px solid color-mix(in srgb,var(--primary) 22%,var(--line));border-radius:13px;background:var(--surface);padding:12px;text-align:center}.referrals6-rate strong,.referrals6-rate small{display:block}.referrals6-rate strong{font-size:25px;color:var(--primary)}.referrals6-rate small{font-size:9px;color:var(--muted)}.referrals6-share{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:10px;margin-top:15px}.referrals6-field{display:grid;gap:5px}.referrals6-field>span{font-size:9px;color:var(--muted)}.referrals6-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.referrals6-copy input,.referrals6-field input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.referrals6-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.referrals6-stat{border-radius:13px!important;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;min-height:88px}.referrals6-stat-icon{width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--primary) 8%,var(--surface));color:var(--primary);display:grid;place-items:center}.referrals6-stat small,.referrals6-stat strong{display:block}.referrals6-stat small{font-size:9px;color:var(--muted)}.referrals6-stat strong{font-size:21px;margin-top:2px}.referrals6-list{border-radius:15px!important;padding:0!important;overflow:hidden}.referrals6-list-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px;border-bottom:1px solid var(--line)}.referrals6-list-head h2{font-size:14px;margin:0 0 3px}.referrals6-list-head p{font-size:9px;color:var(--muted);margin:0}.referrals6-rows{display:grid}.referrals6-row{display:grid;grid-template-columns:minmax(150px,1.4fr) 110px 90px 110px 130px;gap:10px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line);font-size:10px}.referrals6-row:last-child{border-bottom:0}.referrals6-row:hover{background:var(--surface)}.referrals6-row strong,.referrals6-row small{display:block}.referrals6-row small{font-size:8.5px;color:var(--muted);margin-top:2px}.referrals6-row .badge{justify-self:start}.referrals6-empty{padding:26px 14px;text-align:center;color:var(--muted);font-size:10px}

/* Mobile */
@media(max-width:900px){
 .bp-screen-smart-assistant .assistant2921-layout{grid-template-columns:1fr!important}.bp-screen-smart-assistant .assistant2921-preview-card{position:static!important;order:-1!important}.bp-screen-auto-publish .fire2919-smart-grid{grid-template-columns:1fr!important}.bp-screen-auto-publish .fire2919-source-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}.bp-screen-auto-publish .fire2919-rule-options{grid-template-columns:1fr!important}.templates6-variable-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation6-request-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.automation6-followup-switches{grid-template-columns:1fr}.automation6-log-list>article{grid-template-columns:32px minmax(0,1fr) auto}.automation6-log-list>article>div:nth-of-type(2),.automation6-log-list>article>div:nth-of-type(4){display:none}.commands6-hero{align-items:flex-start}.commands6-stats{flex-wrap:wrap}
}
@media(max-width:700px){
 .bp-screen-settings .settings-control-nav{display:flex!important;overflow-x:auto!important;top:59px!important;scrollbar-width:none}.bp-screen-settings .settings-control-nav::-webkit-scrollbar{display:none}.bp-screen-settings .settings-control-nav :is(button,.settings-nav-link){flex:0 0 auto!important;min-width:118px!important}.bp-screen-settings .settings-dedicated-links{grid-template-columns:1fr 1fr!important}
 .automation6-status{grid-template-columns:34px minmax(0,1fr)}.automation6-status>.button{grid-column:1/-1;width:100%}.automation6-card{padding:14px!important}.automation6-card-head{display:grid;gap:10px}.automation6-master{justify-self:start}.automation6-request-grid,.automation6-metric-grid{grid-template-columns:1fr}.automation6-number-row{align-items:flex-start;flex-direction:column}.automation6-presets{width:100%}.automation6-presets button{flex:1 1 auto}.automation6-save{bottom:6px}.automation6-save>div{display:none}.automation6-save .button{width:100%}.automation6-log-list>article{grid-template-columns:30px minmax(0,1fr) auto;padding:10px}.automation6-log-list>article>div:nth-of-type(2),.automation6-log-list>article>div:nth-of-type(3),.automation6-log-list>article>div:nth-of-type(4){display:none}
 .templates6-top-actions,.templates6-toolbar{align-items:stretch;flex-direction:column}.templates6-backup-actions{justify-content:flex-end}.templates6-variable-grid{grid-template-columns:1fr}.templates6-group-body,.templates6-editor-grid{grid-template-columns:1fr}.templates6-floating-save{width:100%;margin-inline:0!important}.templates6-tabs{padding-bottom:2px}
 .bp-screen-requests .requests291-filters{grid-template-columns:1fr!important}.bp-screen-requests .requests291-row-head{grid-template-columns:auto minmax(0,1fr)!important}.bp-screen-requests .requests291-row-head time{grid-column:2;font-size:9px}.bp-screen-requests .requests291-detail-grid{grid-template-columns:1fr!important}
 .commands6-hero{display:grid}.commands6-stats{width:100%}.commands6-stats span{flex:1}.commands6-test-row,.commands6-top-options,.commands6-grid{grid-template-columns:1fr}.commands6-card summary{grid-template-columns:34px minmax(0,1fr) 20px}.commands6-state{display:none}.commands6-form{padding:11px}
 .bp-screen-smart-assistant .assistant2921-hero{grid-template-columns:42px minmax(0,1fr)!important}.bp-screen-smart-assistant .assistant2921-status{grid-column:1/-1!important;width:100%!important}.bp-screen-smart-assistant .assistant2921-toggle-grid,.bp-screen-smart-assistant .assistant2921-mode-grid{grid-template-columns:1fr!important}.bp-screen-smart-assistant .assistant2921-config{padding:13px!important}.bp-screen-smart-assistant .actions .button{flex:1 1 130px!important}
 .bp-screen-auto-publish :is(.fire2919-channel-choice,.fire2919-channel-tabs){grid-template-columns:1fr!important}.bp-screen-auto-publish .fire2919-source-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bp-screen-auto-publish .fire2919-picker-grid{grid-template-columns:1fr!important}.bp-screen-auto-publish .fire2919-rule-builder{padding:13px!important}.bp-screen-auto-publish .fire2919-check-list{max-height:230px!important}
 .bp-screen-referrals .grid.cards{grid-template-columns:1fr!important}.bp-screen-referrals .table-wrap{overflow-x:auto}.bp-screen-referrals .grid.two{grid-template-columns:1fr!important}.referrals6-hero-grid,.referrals6-share{grid-template-columns:1fr}.referrals6-rate{justify-self:stretch}.referrals6-stats{grid-template-columns:1fr}.referrals6-row{grid-template-columns:minmax(0,1fr) auto}.referrals6-row>div:nth-child(3),.referrals6-row>div:nth-child(5){display:none}
}
@media(max-width:430px){.bp-screen-settings .settings-dedicated-links{grid-template-columns:1fr!important}.templates6-backup-actions{display:grid;grid-template-columns:1fr 1fr}.automation6-followup-switch{grid-template-columns:32px minmax(0,1fr)}.automation6-followup-switch form{grid-column:1/-1}.automation6-mini-toggle{width:100%;justify-content:center}.commands6-stats span{min-width:0}.bp-screen-smart-assistant .assistant2921-preview,.bp-screen-smart-assistant .assistant2828-preview{min-height:420px!important}}
