#native-bots-panel .nb-project{max-width:520px;margin-bottom:12px}
#native-bots-panel .nb-panel>nav{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
#native-bots-panel .nb-panel>nav button{font-size:14px;padding:8px 12px;min-height:36px}
#native-bots-panel .nb-panel>main{padding:10px 0}
#native-bots-panel .nb-workspace-heading{gap:12px;align-items:center;margin-bottom:14px}
#native-bots-panel .nb-form-card{padding:18px;border:1px solid #d5e7e0;border-radius:14px;background:#fff}
#native-bots-panel .nb-form-card small{color:#527d72}
#native-bots-panel .nb-empty-forms{padding:22px;border:1px dashed #bbd5cc;border-radius:14px;text-align:center;background:#f8fcfa}
#native-bots-panel .nb-constructor-drawer{width:min(980px,100vw);max-width:100vw}
#native-bots-panel .nb-constructor{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px;align-items:start}
#native-bots-panel .nb-constructor-fields form{display:flex;flex-direction:column;gap:8px}
#native-bots-panel .nb-constructor-fields label{margin:0;font-size:14px;font-weight:600}
#native-bots-panel .nb-constructor-fields input:not([type=checkbox]),#native-bots-panel .nb-constructor-fields textarea,#native-bots-panel .nb-constructor-fields select{min-height:36px;padding:9px 10px;width:100%;margin-top:5px;font:inherit}
#native-bots-panel .nb-constructor-fields small{font-size:12px;line-height:1.4;color:#607b71;font-weight:400}
#native-bots-panel .nb-constructor-fields .nb-check{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #dceae4;border-radius:8px}
#native-bots-panel .nb-constructor-fields input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;appearance:auto!important;accent-color:#258d76;margin:0!important;flex:none}
#native-bots-panel .nb-channel-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:7px}
#native-bots-panel .nb-constructor-preview{position:sticky;top:0;padding:16px;border-radius:14px;background:#eef5f2;display:grid;gap:12px}
#native-bots-panel .nb-preview-window{background:#fff;border:1px solid #d6e5df;border-radius:14px;padding:18px;box-shadow:0 6px 20px #163c3110;overflow-wrap:anywhere}
#native-bots-panel .nb-preview-window h3{margin:0 0 8px;font-size:21px}
#native-bots-panel .nb-preview-window p{white-space:pre-wrap;line-height:1.5}
#native-bots-panel .nb-preview-consent{font-size:12px;color:#52786c}
#native-bots-panel .nb-preview-window button{display:block;width:100%;margin-top:6px;background:#d6e7e0;color:#55756a;border:0}
#native-bots-panel .nb-chat-preview{background:#e2eee8;border-radius:12px;padding:12px}
#native-bots-panel .nb-chat-bubble{background:#fff;border-radius:4px 12px 12px 12px;padding:13px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
#native-bots-panel .nb-form-note.error{background:#fff0ec;color:#9c3020;padding:10px;border-radius:8px}
#native-bots-panel .nb-scenario-preview{margin:12px 0;padding:15px;background:#e8f3ee;border-radius:12px}
#native-bots-panel .nb-scenario-preview button{display:block;margin:5px 0;pointer-events:none}
@media(max-width:760px){#native-bots-panel .nb-constructor{grid-template-columns:1fr}#native-bots-panel .nb-constructor-preview{position:static}#native-bots-panel .nb-workspace-heading{flex-wrap:wrap}}
#native-bots-panel .nb-scenario-constructor input[type=checkbox],#native-bots-panel .nb-recipient-row input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;appearance:auto!important;accent-color:#258d76;margin:0!important;flex:none}
#native-bots-panel .nb-scenario-constructor article{border:1px solid #d4e5dd;border-radius:12px;padding:12px;margin:10px 0}
#native-bots-panel .nb-scenario-preview .nb-chat-bubble{margin:8px 0 14px}
#native-bots-panel .nb-manual-recipients{padding:10px;border:1px solid #d5e7e0;border-radius:12px;margin:10px 0}
#native-bots-panel .nb-recipient-scroll{max-height:210px;overflow:auto}
#native-bots-panel .nb-recipient-row{display:flex;align-items:center;gap:8px;padding:6px;border-bottom:1px solid #e8f1ed}
#native-bots-panel .nb-recipient-row[hidden]{display:none}
#native-bots-panel .nb-scenario-constructor{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start}
#native-bots-panel .nb-scenario-constructor .nb-scenario-preview{position:sticky;top:0;margin:0}
#native-bots-panel .nb-scenario-fields{min-width:0}
@media(max-width:760px){#native-bots-panel .nb-scenario-constructor{grid-template-columns:1fr}#native-bots-panel .nb-scenario-constructor .nb-scenario-preview{position:static}}
#native-bots-panel nav [data-tab=gifts],#native-bots-panel nav [data-tab=sources]{display:none}
#native-bots-panel[data-active-tab=gifts] nav [data-tab=gifts],#native-bots-panel[data-active-tab=scenarios] nav [data-tab=gifts],#native-bots-panel[data-active-tab=forms] nav [data-tab=sources],#native-bots-panel[data-active-tab=sources] nav [data-tab=sources]{display:inline-flex}
#native-bots-panel nav [data-tab=gifts],#native-bots-panel nav [data-tab=sources]{display:inline-flex!important}
#native-bots-panel .nb-connection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
#native-bots-panel .nb-connection-grid>section{margin:0;padding:16px;min-width:0;border-radius:12px;align-self:start}
#native-bots-panel .nb-connection-grid>section p{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
#native-bots-panel .nb-connection-grid>section input,#native-bots-panel .nb-connection-grid>section select{min-height:36px;font-size:13px}
#native-bots-panel .nb-constructor-fields .nb-check,#native-bots-panel .nb-recipient-row{justify-content:flex-start!important;align-items:center!important;gap:10px!important}
#native-bots-panel .nb-constructor-fields input[type=checkbox],#native-bots-panel .nb-recipient-row input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;display:inline-grid!important;place-items:center!important;width:18px!important;height:18px!important;min-height:18px!important;border:1px solid #96b5aa!important;border-radius:5px!important;background:#fff!important;box-shadow:none!important;margin:0!important;padding:0!important;flex:0 0 18px!important}
#native-bots-panel .nb-constructor-fields input[type=checkbox]:checked,#native-bots-panel .nb-recipient-row input[type=checkbox]:checked{background:#1b826e!important;border-color:#1b826e!important}
#native-bots-panel .nb-constructor-fields input[type=checkbox]:checked:after,#native-bots-panel .nb-recipient-row input[type=checkbox]:checked:after{content:"";width:8px;height:4px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);margin:0!important}
#native-bots-panel .nb-constructor-fields input[type=checkbox]:focus-visible,#native-bots-panel .nb-recipient-row input[type=checkbox]:focus-visible{outline:2px solid #367e70;outline-offset:3px}
#native-bots-panel .nb-recipient-row{font-size:14px;min-height:34px}
#native-bots-panel .nb-recipient-row[hidden],#native-bots-panel .nb-campaign-grid label[hidden]{display:none!important}
#native-bots-panel .nb-only-date{grid-template-columns:1fr!important}
#native-bots-panel .nb-gift-rule-list{display:flex!important;flex-direction:column!important;gap:4px!important}
#native-bots-panel .nb-gift-rule-row{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;padding:9px 13px!important;border-radius:9px!important;cursor:pointer;min-height:44px!important;margin:0!important;box-shadow:none!important}
#native-bots-panel .nb-gift-rule-row h3,#native-bots-panel .nb-gift-rule-row h4{font-size:14px!important;margin:0!important}
#native-bots-panel .nb-gift-rule-row .nb-rule-hide{display:none!important}
#native-bots-panel .nb-gift-rule-row button{min-height:30px!important;padding:5px 10px!important;font-size:12px!important}
#native-bots-panel .nb-gift-rule-row[hidden]{display:none!important}
#native-bots-panel .nb-rule-filters{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
#native-bots-panel .nb-rule-filters button{min-height:30px;padding:5px 10px;font-size:12px;background:#edf7f3;border:1px solid #d5e7e0;border-radius:20px}
#native-bots-panel .nb-rule-filters button.active{background:#176b54;color:#fff}
#native-bots-panel .nb-rule-actions{font-size:12px;padding:0!important;margin:0!important;border:0!important}
#native-bots-panel .nb-rule-actions[open]{flex-basis:100%}
