.bas-wrap{max-width:1360px;margin:0 auto;padding:32px 24px 80px;color:#172433}.bas-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.bas-header h1{font-size:clamp(25px,3vw,36px);margin:5px 0}.bas-header p,.bas-card-title p{color:#6b7682;margin:6px 0 0}.bas-eyebrow,.bas-card-title span:first-child{font-size:11px;letter-spacing:.11em;font-weight:800;color:#d76d28}.bas-channels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0}.bas-channels>*{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:18px 10px;background:#fff;border:1px solid #e7e9ed;border-radius:16px;color:#2d3743;text-decoration:none;cursor:pointer;font:inherit}.bas-channels>*.is-active{border:2px solid #e9762d;background:#fff8f3;padding:17px 9px}.bas-channels span{font-size:22px;font-weight:700}.bas-channels small{font-size:11px;color:#73808c}.bas-channels .bas-upcoming{cursor:default;background:#f4f5f7;color:#87909c}.bas-status{padding:12px 15px;background:#fff4e8;border:1px solid #f2dbc4;border-radius:12px;color:#805020;margin-bottom:18px;font-size:13px}.bas-status.is-error{background:#fff0f0;border-color:#e8bebe;color:#963c3c}.bas-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);gap:18px}.bas-main,.bas-aside{display:flex;flex-direction:column;gap:18px;min-width:0}.bas-card{background:white;border:1px solid #e6eaf0;border-radius:18px;padding:24px;box-shadow:0 3px 15px rgba(14,35,58,.03)}.bas-card h2{font-size:20px;margin:5px 0 13px}.bas-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:18px}.bas-pill{border:1px solid #e3e6eb;border-radius:20px;padding:7px 11px;font-size:12px;white-space:nowrap;color:#6b7280}.bas-connect-note{background:#f3f5f7;border-radius:12px;padding:14px;color:#556274;font-size:13px;margin-bottom:16px;line-height:1.5}.bas-switches label{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #eef0f2;padding:13px 0;cursor:pointer}.bas-switches label b{display:block;font-size:14px}.bas-switches label small{display:block;color:#6d7882;margin-top:3px;font-size:12px}.bas-switches input{height:19px;width:19px;accent-color:#e8752c;flex-shrink:0}.bas-field{font-size:13px;font-weight:700;display:flex;flex-direction:column;gap:7px;margin:14px 0}.bas-field input,.bas-field textarea,.bas-field select{width:100%;border:1px solid #cfd7e0;border-radius:10px;padding:11px 12px;font:inherit;font-size:14px;color:#172433;background:#fff}.bas-field textarea{resize:vertical;line-height:1.5}.bas-hint{font-size:12px;color:#697782;line-height:1.6}.bas-hint code{background:#f4f5f6;padding:1px 4px;border-radius:4px}.bas-primary,.bas-outline{border-radius:10px;padding:11px 17px;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.bas-primary{color:#fff;background:#e97831;border:1px solid #e97831}.bas-outline{color:#33475b;background:#fff;border:1px solid #cbd5df}.bas-two{display:grid;grid-template-columns:1fr 1fr;gap:13px}.bas-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.bas-rule{padding:12px 0;border-bottom:1px solid #eef0f2}.bas-rule b{font-size:13px}.bas-rule small{display:block;color:#73808c;margin:6px 0}.bas-rule button{border:0;background:#fff2e9;border-radius:8px;padding:7px 10px;color:#a64b12;cursor:pointer;margin-right:6px}.bas-steps{padding-left:23px;color:#445264;font-size:14px;line-height:1.9}.bas-steps li::marker{color:#e8752c;font-weight:700}[hidden]{display:none!important}@media(max-width:900px){.bas-grid{grid-template-columns:1fr}.bas-wrap{padding:20px 14px 60px}}@media(max-width:560px){.bas-header{flex-direction:column;align-items:flex-start}.bas-channels{grid-template-columns:repeat(2,1fr)}.bas-card{padding:18px}.bas-two{grid-template-columns:1fr}.bas-card-title{flex-wrap:wrap}}
/* v2: selettore canali e wizard Semplice / Media / Avanzata */
.bas-v2 .bas-back{display:inline-block;text-decoration:none;color:#567187;font-size:12px;font-weight:750;margin-bottom:15px}.bas-v2 .bas-header h1{font-size:clamp(26px,3vw,34px)}.bas-v2 .bas-channels>a,.bas-v2 .bas-channels>button,.bas-v2 .bas-channels>span{gap:6px;min-height:128px}.bas-v2 .bas-channels img{width:34px;height:34px;object-fit:contain}.bas-v2 .bas-channels a:first-child img{width:90px;height:auto;max-height:36px}.bas-v2 .bas-channels>b{font-size:14px}.bas-v2 .bas-channels button{border:1px solid #e3e9ee}.bas-v2 .bas-connect-button{gap:8px;margin:1px 0 11px;background:#f7fafc;color:#658097;cursor:not-allowed}.bas-v2 .bas-connect-button small{font-size:10px;color:#8795a2}.bas-v2 .bas-switches-compact label{padding:12px 0}.bas-v2 .bas-switches-compact input{cursor:pointer}.bas-v2 .bas-extra-settings{display:none}.bas-v2 .bas-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.bas-v2 .bas-levels button{font-family:inherit;border:1px solid #dce4eb;background:#fff;color:#2b3d51;border-radius:13px;padding:16px 11px;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:5px}.bas-v2 .bas-levels strong{font-size:14px}.bas-v2 .bas-levels small{font-size:11px;color:#708090}.bas-v2 .bas-levels button.is-selected{border:2px solid #e97831;background:#fff7f1;padding:15px 10px}.bas-v2 .bas-levels button:focus-visible,.bas-v2 button:focus-visible,.bas-v2 a:focus-visible{outline:3px solid #f5ba8f;outline-offset:2px}.bas-v2 .bas-flow-step{display:flex;gap:13px;margin:13px 0 18px;align-items:flex-start}.bas-v2 .bas-flow-step>span{background:#fff0e5;border-radius:50%;font-size:13px;font-weight:800;color:#cf6a29;min-width:29px;height:29px;display:grid;place-items:center}.bas-v2 .bas-flow-step strong{display:block;color:#263e50;font-size:14px}.bas-v2 .bas-flow-step small{display:block;color:#728292;font-size:12px;line-height:1.55;margin-top:3px}.bas-v2 .bas-field small{font-size:11px;font-weight:400;color:#7b8896}.bas-v2 .bas-preview{background:#f6f9fb;border:1px solid #e1e9f0;border-radius:13px;padding:16px;margin-top:23px}.bas-v2 .bas-preview strong{display:block;margin-bottom:8px;font-size:14px}.bas-v2 .bas-preview p{background:#fff;border:1px solid #e5edf2;border-radius:9px;padding:10px;margin:8px 0;font-size:13px;line-height:1.6}.bas-v2 .bas-preview small{color:#7c8b98;font-size:11px}.bas-v2 .bas-property-optional{background:#f9fafb;border:1px solid #edf0f2;border-radius:13px;padding:14px;margin-top:16px}.bas-v2 .bas-optional{font-size:10px;color:#7b8995;font-weight:400}.bas-v2 .bas-property-optional input{margin-top:5px}.bas-v2 .bas-media-placeholder{background:#f8fafc;border:1px dashed #bdcbd8;border-radius:12px;display:flex;align-items:center;gap:13px;padding:16px}.bas-v2 .bas-media-placeholder>span{font-size:27px;color:#9eafbd}.bas-v2 .bas-media-placeholder strong{display:block;font-size:13px}.bas-v2 .bas-media-placeholder small{font-size:12px;line-height:1.5;color:#778896;display:block;margin-top:4px}.bas-v2 .bas-rule{line-height:1.4}.bas-v2 .bas-flow-card li{margin:4px 0}@media(max-width:560px){.bas-v2 .bas-channels>a,.bas-v2 .bas-channels>button,.bas-v2 .bas-channels>span{min-height:115px}.bas-v2 .bas-levels{grid-template-columns:1fr}.bas-v2 .bas-levels button{padding:12px}.bas-v2 .bas-levels button.is-selected{padding:11px}.bas-v2 .bas-wrap{padding:20px 12px 60px}}

/* V4 – stessa larghezza dei contenuti Bilocale.it e titoli chiari */
.bas-v2.bas-wrap{box-sizing:border-box;width:calc(100% - 40px);max-width:1460px;margin-left:auto;margin-right:auto;padding-top:23px}
.bas-v2 .bas-settings-title{font-size:clamp(26px,2.4vw,36px);line-height:1.18;letter-spacing:-.025em;color:#173047;margin:24px 0 14px;font-weight:800}
.bas-v2 .bas-setup .bas-card-title{margin-bottom:15px}
.bas-v2 .bas-preferences .bas-card-title{margin-bottom:7px}
.bas-v2 .bas-connect-button:disabled{opacity:.7;cursor:not-allowed}.bas-v2 .bas-connect-button:not(:disabled){cursor:pointer;background:#fff7f0;color:#aa521e;border-color:#edb68b}
@media(max-width:760px){.bas-v2.bas-wrap{width:100%;padding:18px 13px 70px}.bas-v2 .bas-settings-title{font-size:27px}.bas-v2 .bas-channels{gap:8px}}

/* V4.3 — iPad/tablet landscape: allinea la pagina all'area utile a destra della sidebar.
   La barra privata ha larghezza 82px da 900px in su (app.css).
   Prima il main era centrato nel viewport completo e finiva sotto la sidebar. */
@media (min-width:900px) {
  body.assistant-social-body main.bas-v2.bas-wrap {
    box-sizing: border-box;
    width: calc(100% - 82px);
    max-width: none;
    min-width: 0;
    margin: 0 0 0 82px;
    padding: 24px clamp(18px, 3vw, 46px) 80px;
  }
  body.assistant-social-body .bas-v2.bas-wrap > .bas-header,
  body.assistant-social-body .bas-v2.bas-wrap > .bas-channels,
  body.assistant-social-body .bas-v2.bas-wrap > .bas-settings-title,
  body.assistant-social-body .bas-v2.bas-wrap > .bas-status,
  body.assistant-social-body .bas-v2.bas-wrap > .bas-grid {
    max-width: 1460px;
    margin-left: auto;
    margin-right: auto;
  }
  body.assistant-social-body .bas-v2 .bas-channels,
  body.assistant-social-body .bas-v2 .bas-grid {
    min-width: 0;
  }
}
@media (min-width:900px) and (max-width:1120px) {
  /* In tablet stretti evitiamo colonne troppo piccole o scroll orizzontale. */
  body.assistant-social-body .bas-v2 .bas-grid { grid-template-columns: minmax(0, 1fr); }
  body.assistant-social-body .bas-v2 .bas-aside { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start; }
}
@media (max-width:899px) {
  /* Quando sparisce la sidebar la pagina torna a occupare l'intero viewport. */
  body.assistant-social-body main.bas-v2.bas-wrap {
    box-sizing:border-box;
    width:100%;max-width:none;
    min-width:0;margin:0;
    padding:20px 16px 80px;
  }
}
@media (max-width:600px) {
  body.assistant-social-body main.bas-v2.bas-wrap { padding:16px 12px 80px; }
  body.assistant-social-body .bas-v2 .bas-header { flex-wrap:wrap; }
  body.assistant-social-body .bas-v2 .bas-channels { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* V4.4 – profilo Instagram realmente collegato */
.bas-v2 .bas-connected-profile{display:flex;align-items:center;gap:16px;border:1px solid #bde9ce;background:#f4fbf6;border-radius:15px;padding:18px;margin:16px 0}
.bas-v2 .bas-connected-avatar{height:68px;width:68px;min-width:68px;border-radius:50%;background:#fff;border:1px solid #d3e7dd;display:flex;align-items:center;justify-content:center;overflow:hidden}
.bas-v2 .bas-connected-avatar img{width:100%;height:100%;object-fit:cover}
.bas-v2 .bas-connected-avatar img[data-social-profile-fallback]{height:39px;width:39px;object-fit:contain}
.bas-v2 .bas-connected-details{display:flex;flex-direction:column;min-width:0;gap:5px}
.bas-v2 .bas-connected-tag{font-size:12px;font-weight:750;color:#147442}
.bas-v2 .bas-connected-details strong{font-size:21px;font-weight:800;color:#173047;overflow-wrap:anywhere}
.bas-v2 .bas-connected-details>span[data-social-profile-name]{font-size:13px;font-weight:600;color:#52667b}
.bas-v2 .bas-connected-details small{font-size:12px;color:#5b6a78;line-height:1.5}
.bas-v2 .bas-connected-details>a{font-size:13px;font-weight:700;text-decoration:none;color:#075aa0;align-self:flex-start}
@media(max-width:560px){.bas-v2 .bas-connected-profile{gap:12px;padding:13px}.bas-v2 .bas-connected-avatar{height:54px;width:54px;min-width:54px}.bas-v2 .bas-connected-details strong{font-size:18px}}

/* V4.6: accesso all'addestramento e conferma modifica */
.bas-header-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.bas-edit-notice{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4e82;border-radius:10px;padding:12px 14px;font-size:14px}
@media(max-width:768px){.bas-header-actions{justify-content:flex-start}}

/* V4.7 - personalizzazione immediata in tutte le modalità */
.bas-v2 .bas-editable-templates{margin-top:14px;padding:15px;border:1px solid #dce5ee;border-radius:13px;background:#fbfcfe}
.bas-v2 .bas-text-head strong{display:block;font-size:15px;color:#18364f}.bas-v2 .bas-text-head small{display:block;font-size:12px;line-height:1.5;color:#63768a;margin-top:4px}
.bas-v2 .bas-editable-templates .bas-field textarea{background:white;min-height:78px}

/* V4.8 – percorso guidato in stile automazioni rapide, integrato nei componenti Bilocale.it */
.bas-v2 .bas-start{background:#fff;border:1px solid #e5eaf0;border-radius:20px;padding:24px;margin:0 auto 20px;box-shadow:0 4px 24px rgba(18,50,77,.035)}
.bas-v2 .bas-start-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
.bas-v2 .bas-start-head h2{font-size:clamp(23px,2.1vw,30px);letter-spacing:-.03em;margin:5px 0;color:#183247}
.bas-v2 .bas-start-head p{font-size:13px;line-height:1.5;color:#64788b;margin:4px 0 0}
.bas-v2 .bas-start-safe{flex:0 0 auto;border:1px solid #c9e8d7;background:#f2fbf6;color:#20754c;border-radius:40px;padding:9px 12px;font-size:12px;font-weight:700}
.bas-v2 .bas-trigger-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bas-v2 .bas-trigger-card{border:1px solid #dce5ed;background:#fff;min-width:0;min-height:174px;border-radius:16px;padding:18px 14px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px;cursor:pointer;font:inherit;color:#23394c;transition:border-color .15s,background .15s,box-shadow .15s}
.bas-v2 .bas-trigger-card:hover:not(.bas-trigger-unavailable){border-color:#ec945a;box-shadow:0 5px 18px rgba(209,114,55,.08)}
.bas-v2 .bas-trigger-card.is-active{border:2px solid #ea782e;background:#fff8f2;padding:17px 13px}
.bas-v2 .bas-trigger-card strong{font-size:15px;line-height:1.25}
.bas-v2 .bas-trigger-card small{font-size:12px;line-height:1.45;color:#63788b}
.bas-v2 .bas-trigger-ico{width:37px;height:37px;border-radius:11px;background:#f3f5f8;display:grid;place-items:center;font-size:19px}
.bas-v2 .bas-trigger-card.is-active .bas-trigger-ico{background:#ffeadb}
.bas-v2 .bas-trigger-tag{font-size:11px;margin-top:auto;background:#fef2e8;color:#b35d23;border-radius:7px;padding:5px 8px;font-weight:800}
.bas-v2 .bas-trigger-unavailable{background:#f6f7f9;border-style:dashed;opacity:.78;cursor:default}
.bas-v2 .bas-trigger-tag-muted{background:#e8edf1;color:#556778}
.bas-v2 .bas-limits-note{font-size:12px;color:#697c89;line-height:1.55;margin:14px 0 0}
.bas-v2 .bas-automation,.bas-v2 .bas-dm-panel{scroll-margin-top:18px}
.bas-v2 .bas-automation .bas-card-title{margin-bottom:12px}
.bas-v2 .bas-wizard-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:21px}
.bas-v2 .bas-wizard-nav button{display:flex;align-items:center;gap:8px;padding:11px;border:1px solid #dfe7ee;border-radius:11px;background:#fafbfd;color:#637485;cursor:pointer;font:inherit;font-size:12px;font-weight:700;text-align:left}
.bas-v2 .bas-wizard-nav button span{width:24px;height:24px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:#e6ecf2;color:#4d6070;font-weight:800}
.bas-v2 .bas-wizard-nav button.is-current{border-color:#ee9b67;background:#fff7f0;color:#9b4b1b}
.bas-v2 .bas-wizard-nav button.is-current span{background:#e97831;color:white}
.bas-v2 .bas-wizard-page{padding:3px 0 10px;min-height:200px}
.bas-v2 .bas-wizard-page h3{font-size:19px;margin:3px 0 7px;color:#1b3349;letter-spacing:-.015em}
.bas-v2 .bas-wizard-page>.bas-hint{margin:0 0 18px}
.bas-v2 .bas-wizard-footer{display:flex;justify-content:flex-end;align-items:center;gap:13px;border-top:1px solid #e8eef2;margin-top:18px;padding-top:17px}
.bas-v2 .bas-wizard-footer [data-social-progress]{font-size:12px;color:#687f8d;margin-right:auto}
.bas-v2 .bas-sim-result{background:#f5f7fa;border:1px solid #e4eaf0;border-radius:9px;padding:10px 12px;font-size:13px;color:#586a77;margin:12px 0}
.bas-v2 .bas-sim-result.is-match{background:#edf9f2;border-color:#cbead7;color:#176b42}
.bas-v2 .bas-dm-panel{display:flex;flex-direction:column;align-items:flex-start;gap:13px}
.bas-v2 .bas-dm-panel h2{margin:2px 0}
.bas-v2 .bas-dm-steps{display:grid;gap:13px;width:100%;margin:9px 0}
.bas-v2 .bas-dm-steps>div{border:1px solid #e5ebf0;background:#fafbfc;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.bas-v2 .bas-dm-steps>div>span{color:#d97732;font-size:11px;font-weight:800}
.bas-v2 .bas-dm-steps strong{font-size:14px;color:#1f3548}
.bas-v2 .bas-dm-steps small{font-size:12px;color:#698090;line-height:1.5}
.bas-v2 .bas-phone-card{position:sticky;top:15px;align-self:stretch}
.bas-v2 .bas-phone-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.bas-v2 .bas-phone-header h2{font-size:18px;line-height:1.2;margin:4px 0}
.bas-v2 .bas-phone-header>span{background:#edf5fc;color:#386389;padding:6px 8px;border-radius:8px;font-size:10px;font-weight:800}
.bas-v2 .bas-phone{background:#12151d;color:#fff;border-radius:34px;padding:16px 12px 17px;max-width:320px;margin:auto;border:6px solid #242b34;box-shadow:0 10px 28px rgba(8,31,54,.15);font-family:system-ui,sans-serif}
.bas-v2 .bas-phone-top{display:flex;justify-content:space-between;font-size:10px;padding:0 8px 12px;font-weight:700}
.bas-v2 .bas-phone-title{display:flex;align-items:center;gap:7px;padding:5px 7px 14px;border-bottom:1px solid #2b303b}
.bas-v2 .bas-phone-title strong{flex:1;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bas-v2 .bas-phone-avatar{display:grid;place-items:center;background:#fd8550;color:#fff;width:31px;height:31px;border-radius:50%;font-size:18px}
.bas-v2 .bas-phone-post{margin:12px 0;border-radius:9px;overflow:hidden}
.bas-v2 .bas-phone-post-graphic{min-height:132px;background:linear-gradient(135deg,#4d7187,#dba87e);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;text-align:center;color:white}
.bas-v2 .bas-phone-post-graphic span{font-size:32px}.bas-v2 .bas-phone-post-graphic strong{font-size:13px}.bas-v2 .bas-phone-post-graphic small{font-size:10px}
.bas-v2 .bas-phone-discussion{display:flex;flex-direction:column;gap:6px;margin:8px 2px}
.bas-v2 .bas-phone-label{font-size:9px;color:#93a3b9;letter-spacing:.03em;margin:7px 0 0}
.bas-v2 .bas-bubble{font-size:11px;line-height:1.46;padding:10px 11px;border-radius:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.bas-v2 .bas-bubble-client{background:#5636be;align-self:flex-end;max-width:90%}
.bas-v2 .bas-bubble-bot{background:#303741;align-self:flex-start;max-width:95%}
.bas-v2 .bas-phone-compose{border:1px solid #414854;border-radius:25px;margin-top:18px;color:#98a3b2;font-size:11px;padding:9px 12px;display:flex;justify-content:space-between}
.bas-v2 .bas-phone-card>.bas-hint{margin-top:16px}
.bas-v2 .bas-phone-card.is-dm-mode .bas-phone-post,.bas-v2 .bas-phone-card.is-dm-mode .bas-phone-discussion>.bas-phone-label:nth-of-type(1),.bas-v2 .bas-phone-card.is-dm-mode [data-social-phone-keyword],.bas-v2 .bas-phone-card.is-dm-mode .bas-phone-discussion>.bas-phone-label:nth-of-type(2),.bas-v2 .bas-phone-card.is-dm-mode [data-social-phone-public]{display:none}
.bas-v2 .bas-phone-card.is-dm-mode [data-social-phone-private]{margin-top:10px}
@media(max-width:1180px){.bas-v2 .bas-trigger-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bas-v2 .bas-phone-card{position:static}}
@media(max-width:900px){.bas-v2 .bas-trigger-card{min-height:155px}.bas-v2 .bas-start-safe{display:none}}
@media(max-width:600px){.bas-v2 .bas-start{padding:16px}.bas-v2 .bas-start-head{display:block}.bas-v2 .bas-start-head h2{font-size:23px}.bas-v2 .bas-trigger-grid{gap:8px}.bas-v2 .bas-trigger-card{min-height:150px;padding:13px 10px;gap:6px}.bas-v2 .bas-trigger-card.is-active{padding:12px 9px}.bas-v2 .bas-trigger-card strong{font-size:13px}.bas-v2 .bas-trigger-card small{font-size:11px}.bas-v2 .bas-wizard-nav button{font-size:11px;padding:7px 6px;gap:5px}.bas-v2 .bas-wizard-nav button span{width:21px;height:21px}.bas-v2 .bas-phone-card{display:none}}

/* V4.9 — nuova area per modelli e editor commenti, senza sovrapporre le impostazioni. */
body.assistant-social-body .bas-v49 .bas-channels{margin-bottom:20px;align-items:stretch}
.bas-v49 .bas-channel-container{background:#fff;border:1px solid #e0e7ef;border-radius:17px;display:flex;flex-direction:column;min-width:0;align-items:stretch;justify-content:center;overflow:hidden}
.bas-v49 .bas-channel-container.is-selected{border:2px solid #e97831;background:#fff8f3}
.bas-v49 .bas-channel-container>button[data-social-tab]{border:0;background:transparent;min-height:98px;padding:14px 8px 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;color:#28394e;cursor:pointer;font:inherit}
.bas-v49 .bas-channel-container img[data-social-channel-avatar]{border-radius:50%;object-fit:cover;width:35px;height:35px}
.bas-v49 .bas-channel-container .bas-channel-manage{font-size:11px;line-height:1.4;text-align:center;border:0;background:transparent;color:#ae5d25;font-weight:700;padding:5px 4px 12px;cursor:pointer}
.bas-v49 .bas-channel-container small{font-size:11px;color:#687c8d}
.bas-v49 .bas-account-drawer{border-radius:17px;padding:18px 20px;background:#fff;border:1px solid #d4e5d9;box-shadow:0 10px 26px rgba(14,49,65,.06);margin:0 0 22px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px}
.bas-v49 .bas-account-identity{display:flex;align-items:center;gap:13px}
.bas-v49 .bas-account-pic{height:64px;width:64px;min-width:64px;border:1px solid #dde6ef;overflow:hidden;border-radius:50%;display:grid;place-items:center}
.bas-v49 .bas-account-pic img{width:100%;height:100%;object-fit:cover}
.bas-v49 .bas-account-pic img[data-social-profile-fallback]{width:34px;height:34px;object-fit:contain}
.bas-v49 .bas-account-identity>div:last-child{display:flex;flex-direction:column;gap:4px}
.bas-v49 .bas-account-identity small{font-size:11px;color:#29804e;font-weight:750}
.bas-v49 .bas-account-identity strong{font-size:19px;color:#172e41}
.bas-v49 .bas-account-identity span{font-size:12px;color:#667587}
.bas-v49 .bas-account-identity a{font-size:12px;color:#1564ae;text-decoration:none;font-weight:700}
.bas-v49 .bas-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.bas-v49 .bas-danger{color:#b12d31;border-color:#f1c4c5}
.bas-v49 .bas-account-drawer>p{grid-column:1/-1;margin:0;font-size:12px;color:#758493}
.bas-v49 .bas-start-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 17px}
.bas-v49 .bas-start-title h2{margin:0;color:#1b3148;font-size:25px;letter-spacing:-.035em}
.bas-v49 .bas-start-title p{font-size:13px;color:#718190;margin:5px 0 0}
.bas-v49 .bas-text-link{color:#0867c0;border:0;background:transparent;font:inherit;cursor:pointer;font-weight:700;font-size:13px;padding:8px}
.bas-v49 .bas-home-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bas-v49 .bas-home-tile{border:1px solid #e4eaf0;border-radius:15px;background:#fff;padding:19px;min-height:186px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;color:#203548;cursor:pointer;font:inherit;transition:box-shadow .16s,border-color .16s}
.bas-v49 button.bas-home-tile:hover{border-color:#e97831;box-shadow:0 9px 22px rgba(40,58,78,.08)}
.bas-v49 .bas-home-tile-icon{height:40px;width:40px;border-radius:12px;background:#f8efe9;font-size:19px;display:grid;place-items:center}
.bas-v49 .bas-home-tile b{font-size:16px;line-height:1.36}
.bas-v49 .bas-home-tile small{font-size:12px;color:#6e8190;line-height:1.5}
.bas-v49 .bas-home-tag{font-size:11px;color:#bd6029;font-weight:800;margin-top:auto;background:#fff0e6;border-radius:8px;padding:6px 9px}
.bas-v49 .bas-home-tile.is-unavailable{cursor:default;opacity:.68;background:#f7f8fa}
.bas-v49 .bas-saved-home{border-radius:19px;background:#fff;border:1px solid #e4eaf1;padding:23px;margin:25px 0}
.bas-v49 .bas-muted{font-size:12px;color:#778697}
.bas-v49 .bas-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.bas-v49 .bas-rule{border:1px solid #e6ebf1;border-radius:13px;padding:15px;background:#fafbfc}
.bas-v49 .bas-rule b{display:block;overflow-wrap:anywhere}
.bas-v49 .bas-flow{background:transparent}
.bas-v49 .bas-flow-bar{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.bas-v49 .bas-flow-bar>div{flex:1}
.bas-v49 .bas-flow-bar h2{font-size:27px;margin:3px 0;color:#1a2f43;letter-spacing:-.025em}
.bas-v49 .bas-flow-bar small{color:#d16d31;font-weight:800;font-size:11px;letter-spacing:.05em}
.bas-v49 .bas-safe-pill{border:1px solid #b7e0c4;background:#ebfbf1;color:#277348;border-radius:30px;padding:9px 13px;font-size:12px;font-weight:750}
.bas-v49 .bas-flow-columns{display:grid;grid-template-columns:minmax(360px,480px) minmax(0,1fr);gap:18px;align-items:start}
.bas-v49 .bas-flow-editor,.bas-v49 .bas-flow-preview{background:#fff;border:1px solid #e2e8ef;border-radius:18px;padding:22px;min-width:0}
.bas-v49 .bas-flow-editor{max-height:calc(100vh - 110px);overflow:auto;scrollbar-gutter:stable}
.bas-v49 .bas-flow-progress{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 20px}
.bas-v49 .bas-flow-progress button{border:1px solid #dce4ec;background:#f8fafb;border-radius:9px;padding:9px 4px;font:inherit;color:#51677b;font-size:11px;cursor:pointer}
.bas-v49 .bas-flow-progress button.is-current{background:#fff2e8;border-color:#e97831;color:#ac521a;font-weight:800}
.bas-v49 .bas-flow-page h3{font-size:23px;line-height:1.2;margin:8px 0;color:#183248}
.bas-v49 .bas-flow-page>p{font-size:13px;color:#697988;line-height:1.5;margin:10px 0 20px}
.bas-v49 .bas-select-options{display:grid;gap:9px;margin:15px 0}
.bas-v49 .bas-select-options label{display:flex;align-items:flex-start;gap:10px;border:1px solid #e0e7ef;border-radius:13px;padding:14px 13px;cursor:pointer}
.bas-v49 .bas-select-options label:has(input:checked){background:#fff6ee;border-color:#e98846}
.bas-v49 .bas-select-options label input{width:18px;height:18px;accent-color:#e97831;margin:1px 0 0;flex-shrink:0}
.bas-v49 .bas-select-options b{font-size:13px;color:#1d3449;display:block}
.bas-v49 .bas-select-options small{font-size:12px;color:#657b8a;display:block;line-height:1.45;margin-top:5px}
.bas-v49 .bas-media-picker{padding:15px;border-radius:14px;background:#f7f9fb;border:1px solid #e7edf3;margin:15px 0}
.bas-v49 .bas-media-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.bas-v49 .bas-media-head b{font-size:13px}
.bas-v49 .bas-real-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.bas-v49 .bas-media-item{border:1px solid #d9e3ec;background:#fff;padding:6px;min-width:0;text-align:left;border-radius:10px;cursor:pointer;overflow:hidden;display:flex;flex-direction:column;gap:6px}
.bas-v49 .bas-media-item.is-selected{outline:2px solid #ec7d31;border-color:#ec7d31;background:#fff8f2}
.bas-v49 .bas-media-item img,.bas-v49 .bas-no-thumbnail{height:92px;width:100%;object-fit:cover;background:#e2e6ec;border-radius:6px}
.bas-v49 .bas-no-thumbnail{display:grid;place-items:center;font-size:10px;color:#718296;text-align:center}
.bas-v49 .bas-media-item-caption{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.3;color:#243c52}
.bas-v49 .bas-media-item small{font-size:10px;color:#a35e2f}
.bas-v49 .bas-step-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:21px;border-top:1px solid #edf0f4;padding-top:18px}
.bas-v49 .bas-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;font-weight:750;color:#203549;padding:12px 0}
.bas-v49 .bas-toggle-row input{accent-color:#e97831;width:20px;height:20px}
.bas-v49 .bas-final-summary{background:#f4f9fd;border:1px solid #dae7f0;border-radius:13px;padding:14px;font-size:12px;line-height:1.6;display:flex;flex-direction:column;gap:7px;color:#436074}
.bas-v49 .bas-final-summary b{font-size:14px;color:#1a354c}
.bas-v49 .bas-final-summary p{margin:0;font-size:11px}
.bas-v49 .bas-flow-preview{position:sticky;top:15px;background:#f5f7f9;display:flex;flex-direction:column;align-items:center;min-height:690px}
.bas-v49 .bas-preview-heading{align-self:stretch;margin-bottom:19px;display:flex;flex-direction:column;gap:4px}
.bas-v49 .bas-preview-heading span{font-size:11px;letter-spacing:.1em;color:#748394}
.bas-v49 .bas-preview-heading b{font-size:19px;color:#263b4b}
.bas-v49 .bas-real-phone{height:565px;width:290px;max-width:100%;border:9px solid #202731;border-radius:42px;background:#101114;color:#fff;padding:14px 11px 16px;box-shadow:0 16px 30px rgba(17,28,37,.18);display:flex;flex-direction:column;font-family:Arial,system-ui,sans-serif;overflow:hidden}
.bas-v49 .bas-real-phone-top{font-size:11px;display:flex;justify-content:space-between;padding:3px 10px 11px;font-weight:750}
.bas-v49 .bas-real-phone-profile{display:flex;gap:7px;align-items:center;border-bottom:1px solid #292b32;padding:7px 0 12px;font-size:15px}
.bas-v49 .bas-real-phone-profile b{font-size:12px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bas-v49 .bas-real-phone-profile>img,.bas-v49 .bas-phone-initial{width:28px;height:28px;border-radius:50%;object-fit:cover}
.bas-v49 .bas-phone-initial{display:grid;place-items:center;background:#f08e53}
.bas-v49 .bas-real-phone-post{overflow:auto}
.bas-v49 .bas-phone-photo{height:260px;background:#222d3b;display:grid;place-items:center;overflow:hidden;text-align:center;color:#b1bac9;font-size:12px}
.bas-v49 .bas-phone-photo>img{width:100%;height:100%;object-fit:cover}
.bas-v49 .bas-phone-toolbar{font-size:19px;padding:11px 5px}
.bas-v49 .bas-phone-caption{font-size:11px;padding:4px 7px;line-height:1.5;max-height:112px;overflow:hidden}
.bas-v49 .bas-phone-comments{background:#242529;flex:1;margin:12px -11px;border-radius:26px 26px 0 0;padding:12px;overflow:auto}
.bas-v49 .bas-phone-comments h4{font-size:14px;text-align:center;padding:5px 0 12px;border-bottom:1px solid #494a4c;margin:0 0 12px}
.bas-v49 .bas-phone-comments div{padding:10px 4px;font-size:11px;line-height:1.5}
.bas-v49 .bas-phone-comments div b{color:#e4e7ea;font-size:10px}
.bas-v49 .bas-phone-chat{flex:1;padding:25px 4px 10px;overflow:auto}
.bas-v49 .bas-chat-bubble{background:#292b31;color:#fff;border-radius:15px;font-size:12px;line-height:1.55;padding:12px;margin-bottom:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.bas-v49 .bas-chat-button{background:#393b43;padding:11px;border-radius:8px;font-size:11px;font-weight:700;text-align:center}
.bas-v49 .bas-phone-compose{margin-top:auto;font-size:11px;border:1px solid #494d54;border-radius:30px;padding:9px 10px;color:#9da4b0;display:flex;justify-content:space-between}
.bas-v49 .bas-phone-views{display:flex;gap:4px;padding:4px;background:#e2e6e9;border-radius:30px;margin-top:14px}
.bas-v49 .bas-phone-views button{border:0;background:transparent;color:#657382;border-radius:26px;padding:8px 14px;font-size:11px;font-weight:750;cursor:pointer}
.bas-v49 .bas-phone-views button.is-current{background:#fff;color:#263c50}
.bas-v49 .bas-flow-preview>.bas-hint{max-width:400px;text-align:center;margin-top:16px}
.bas-v49 .bas-channel-settings{margin:18px 0 50px;font-size:13px;color:#567184}
.bas-v49 .bas-channel-settings details{background:#fff;border:1px solid #e7edf3;border-radius:14px;padding:15px 20px}
.bas-v49 .bas-channel-settings summary{cursor:pointer;font-weight:750}
.bas-v49 .bas-channel-settings summary span{color:#8a98a5;font-weight:400}
.bas-v49 .bas-dm-steps{display:grid;gap:10px;margin:20px 0}
.bas-v49 .bas-dm-steps>div{background:#f8fafc;border:1px solid #e9edf2;border-radius:11px;padding:13px}
.bas-v49 .bas-dm-steps b,.bas-v49 .bas-dm-steps small{display:block}
.bas-v49 .bas-dm-steps small{color:#718697;margin-top:5px}
@media(min-width:1500px){.bas-v49 .bas-home-choices{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1130px){.bas-v49 .bas-flow-columns{grid-template-columns:minmax(300px,1fr) minmax(300px,.9fr)}.bas-v49 .bas-home-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:940px){.bas-v49 .bas-flow-columns{grid-template-columns:1fr}.bas-v49 .bas-flow-editor{max-height:none;overflow:visible}.bas-v49 .bas-flow-preview{position:static;min-height:0}.bas-v49 .bas-real-phone{height:535px}}
@media(max-width:690px){.bas-v49 .bas-account-drawer{grid-template-columns:1fr}.bas-v49 .bas-account-actions{justify-content:flex-start}.bas-v49 .bas-flow-bar{flex-wrap:wrap}.bas-v49 .bas-flow-bar h2{font-size:23px}.bas-v49 .bas-safe-pill{margin-left:auto}.bas-v49 .bas-flow-editor,.bas-v49 .bas-flow-preview{padding:15px}.bas-v49 .bas-home-choices,.bas-v49 .bas-rules{grid-template-columns:1fr}.bas-v49 .bas-home-tile{min-height:130px}.bas-v49 .bas-start-title{align-items:start;flex-wrap:wrap}.bas-v49 .bas-real-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bas-v49 .bas-media-item img{height:115px}}

/* V4.10 — navigazione pulita, profilo integrato e automazione verticale. */
.bas-v49 .bas-channel-container{padding:0}
.bas-v49 .bas-channel-container>button[data-social-tab]{padding:16px 8px;min-height:112px}
.bas-v49 .bas-account-strip{border:1px solid #d1e6d9;background:#fff;border-radius:16px;padding:13px 18px;margin:0 0 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}
.bas-v49 .bas-account-strip .bas-account-identity{min-width:0}
.bas-v49 .bas-account-strip .bas-account-pic{height:53px;width:53px;min-width:53px;background:#f6f8fa}
.bas-v49 .bas-account-strip .bas-account-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.bas-v49 .bas-account-strip .bas-account-copy small{font-size:11px;font-weight:800;color:#23804d}
.bas-v49 .bas-account-strip .bas-account-copy strong{font-size:17px;color:#183248}
.bas-v49 .bas-account-strip .bas-account-copy span{font-size:12px;color:#677c8d}
.bas-v49 .bas-account-strip .bas-account-copy a{font-size:12px;color:#0e6aba;text-decoration:none;font-weight:700}
.bas-v49 .bas-account-strip .bas-account-actions{margin-left:auto;flex-shrink:0}
.bas-v49 .bas-home-tile{min-height:164px;gap:12px}
.bas-v49 .bas-home-tile b{margin-top:2px}
.bas-v49.is-flow-open>.bas-header,.bas-v49.is-flow-open>.bas-channels,.bas-v49.is-flow-open>.bas-account-strip,.bas-v49.is-flow-open>.bas-settings-title,.bas-v49.is-flow-open>.bas-status:not(.is-error),.bas-v49.is-flow-open>.bas-home,.bas-v49.is-flow-open>.bas-channel-settings{display:none!important}
.bas-v49.is-flow-open{padding-top:28px}
.bas-v49.is-flow-open>.bas-flow{max-width:1460px;margin:0 auto}
.bas-v49.is-flow-open>.bas-status.is-error{max-width:1460px;margin:0 auto 12px}
.bas-v49 .bas-flow-bar{align-items:center;gap:15px;margin-bottom:22px}
.bas-v49 .bas-flow-bar h2{font-size:clamp(23px,2.2vw,31px);margin-top:2px}
.bas-v49 .bas-flow-columns{grid-template-columns:minmax(0,490px) minmax(0,1fr);gap:18px}
.bas-v49 .bas-flow-editor{max-height:none;overflow:visible;scrollbar-gutter:auto;padding:23px}
.bas-v49 .bas-flow-section{padding:0 0 26px;margin-bottom:25px;border-bottom:1px solid #e8edf2;scroll-margin-top:20px}
.bas-v49 .bas-flow-section:last-child{padding-bottom:0;border:0;margin:0}
.bas-v49 .bas-flow-section h3{font-size:21px;letter-spacing:-.02em;margin:0 0 16px;color:#1d344a}
.bas-v49 .bas-flow-section>p{font-size:12px;color:#768696;margin:-6px 0 16px}
.bas-v49 .bas-flow-section .bas-select-options{margin:0 0 14px;gap:9px}
.bas-v49 .bas-flow-section .bas-select-options .bas-option-line{display:flex;gap:11px;align-items:flex-start;padding:14px 13px;margin:0;border:1px solid #e0e7ee;background:#fff;border-radius:12px;cursor:pointer}
.bas-v49 .bas-flow-section .bas-select-options .bas-option-line:has(input:checked){border-color:#e97831;background:#fff7f1}
.bas-v49 .bas-flow-section .bas-select-options .bas-option-line b{font-size:13px;color:#20374d}
.bas-v49 .bas-flow-section .bas-select-options .bas-option-line small{margin:4px 0 0}
.bas-v49 .bas-specific-block,.bas-v49 .bas-keyword-block{border:1px solid #e0e7ee;background:white;border-radius:12px;overflow:hidden}
.bas-v49 .bas-specific-block:has(input:checked),.bas-v49 .bas-keyword-block:has(input:checked){border-color:#e97831}
.bas-v49 .bas-specific-block>.bas-option-line,.bas-v49 .bas-keyword-block>.bas-option-line{border:0!important;border-radius:0!important}
.bas-v49 .bas-specific-block:has(input:checked)>.bas-option-line,.bas-v49 .bas-keyword-block:has(input:checked)>.bas-option-line{background:#fff7f1}
.bas-v49 .bas-media-picker{margin:0;padding:7px 13px 13px;border:0;border-radius:0;background:#fff}
.bas-v49 .bas-media-head{font-size:12px;color:#455d70}
.bas-v49 .bas-media-head button{font-size:11px}
.bas-v49 .bas-real-media-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 4px}
.bas-v49 .bas-media-item{padding:3px;gap:4px;border-radius:9px}
.bas-v49 .bas-media-item img,.bas-v49 .bas-no-thumbnail{height:89px;border-radius:6px}
.bas-v49 .bas-media-item-caption{font-size:10px;min-height:24px}
.bas-v49 .bas-media-item small{font-size:9px;color:#63788b;line-height:1.4}
.bas-v49 .bas-media-picker>.bas-hint{margin:5px 0;font-size:11px}
.bas-v49 .bas-show-all{display:block;text-align:center;margin:7px auto 1px;padding:6px 10px}
.bas-v49 .bas-keyword-inner{padding:3px 13px 11px}
.bas-v49 .bas-keyword-inner .bas-field{margin:5px 0 0}
.bas-v49 .bas-flow-section .bas-test-comment{background:#f7f9fb;border-radius:12px;padding:13px}
.bas-v49 .bas-flow-section .bas-test-comment small{font-weight:700}
.bas-v49 .bas-public-replies{padding:15px 15px 5px;border:1px solid #e3e9ef;border-radius:12px;margin:18px 0}
.bas-v49 .bas-toggle-row{padding:0 0 14px;margin-bottom:8px}
.bas-v49 .bas-toggle-row b{font-size:13px;display:block}
.bas-v49 .bas-toggle-row small{display:block;font-size:11px;color:#6a7b89;font-weight:400;margin-top:4px;line-height:1.45}
.bas-v49 .bas-flow-section .bas-field{font-size:12px}
.bas-v49 .bas-flow-section .bas-field textarea{font-size:13px;line-height:1.5;min-height:54px}
.bas-v49 .bas-step-actions{border:0;padding:0;margin:20px 0 0}
.bas-v49 .bas-flow-preview{top:12px;min-height:760px}
.bas-v49 .bas-real-phone{height:615px;width:318px;padding:12px 10px 15px}
.bas-v49 .bas-real-phone-profile{padding:7px 0 10px}
.bas-v49 .bas-real-phone-profile .bas-phone-back-arrow{font-size:25px;font-weight:200}
.bas-v49 .bas-real-phone-profile .bas-phone-header-more{font-size:22px;line-height:1}
.bas-v49 .bas-real-phone-post{flex:1;overflow:auto}
.bas-v49 .bas-phone-photo{height:280px}
.bas-v49 .bas-phone-toolbar{display:flex;gap:13px;font-size:24px;padding:8px 4px 3px}
.bas-v49 .bas-phone-save-icon{margin-left:auto}
.bas-v49 .bas-phone-view-comments{font-size:10px;color:#9da5ae;padding:5px 7px 12px}
.bas-v49 .bas-phone-comments{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;margin:0 -10px -16px;background:#101115}
.bas-v49 .bas-phone-post-underlay{height:105px;min-height:105px;background:#19222b;overflow:hidden}
.bas-v49 .bas-phone-post-underlay img{width:100%;height:100%;object-fit:cover;opacity:.52}
.bas-v49 .bas-phone-comments-sheet{margin-top:-15px;position:relative;flex:1;min-height:0;background:#232427;border-radius:22px 22px 0 0;display:flex;flex-direction:column;padding:9px 12px 13px}
.bas-v49 .bas-sheet-handle{width:37px;height:4px;border-radius:5px;background:#7d7f82;margin:0 auto 9px}
.bas-v49 .bas-phone-comments-sheet h4{font-size:13px;display:flex;justify-content:center;align-items:center;position:relative;margin:0;padding:0 0 12px;border-bottom:1px solid #44454a;color:white}
.bas-v49 .bas-phone-comments-sheet h4 span{position:absolute;right:1px;font-size:18px;font-weight:400}
.bas-v49 .bas-comment-thread{flex:1;overflow:auto;padding:14px 0}
.bas-v49 .bas-comment-thread>div{display:flex;align-items:flex-start;gap:9px;font-size:11px;line-height:1.45}
.bas-v49 .bas-comment-avatar{width:26px;height:26px;min-width:26px;border-radius:50%;background:#dcdee1;display:grid;place-items:center;font-size:15px;color:#a6a8aa;overflow:hidden}
.bas-v49 .bas-comment-avatar img{width:100%;height:100%;object-fit:cover}
.bas-v49 .bas-phone-bot-reply{display:flex;align-items:flex-start;gap:7px;padding-top:13px!important}
.bas-v49 .bas-comment-body{flex:1;min-width:0}
.bas-v49 .bas-comment-body b{font-size:11px;color:#fff;margin-right:4px}
.bas-v49 .bas-comment-body small{display:block;color:#92969e;font-size:10px;margin-top:5px}
.bas-v49 .bas-phone-heart{color:#b6b8c0;font-size:16px;padding-top:3px}
.bas-v49 .bas-phone-comments-bottom{padding-top:8px;border-top:1px solid #3a3b41;margin-top:auto}
.bas-v49 .bas-emoji-row{white-space:nowrap;text-align:center;font-size:16px;letter-spacing:-1px;margin:7px -4px 12px}
.bas-v49 .bas-ig-compose{border:1px solid #4a4b50;border-radius:25px;padding:8px;display:flex;gap:7px;align-items:center;color:#81858f;font-size:10px;line-height:1.35}
.bas-v49 .bas-ig-compose span:nth-child(2){flex:1}
.bas-v49 .bas-ig-compose-avatar{display:grid;place-items:center;border-radius:50%;background:#99abc4;color:#eee;min-width:22px;height:22px}
.bas-v49 .bas-real-phone .bas-phone-compose{flex-shrink:0}
.bas-v49 .bas-flow-preview>.bas-hint{max-width:340px}
body.bas-modal-open{overflow:hidden}
.bas-v49 .bas-media-modal{position:fixed;z-index:100000;inset:0;display:flex;align-items:center;justify-content:center;padding:18px}
.bas-v49 .bas-media-modal-shade{position:absolute;inset:0;background:rgba(8,18,32,.64)}
.bas-v49 .bas-media-modal-window{position:relative;display:flex;flex-direction:column;background:#fff;border-radius:17px;width:min(900px,100%);max-height:90vh;overflow:hidden;box-shadow:0 20px 65px #08132350}
.bas-v49 .bas-media-modal-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:21px 24px;border-bottom:1px solid #e5edf2}
.bas-v49 .bas-media-modal-top h2{font-size:23px;margin:0 0 4px;color:#20354a}
.bas-v49 .bas-media-modal-top p{margin:0;color:#657887;font-size:12px}
.bas-v49 .bas-media-modal-x{border:0;background:transparent;font-size:28px;cursor:pointer;color:#556b80;line-height:1}
.bas-v49 .bas-media-modal-scroll{overflow:auto;padding:22px 24px}
.bas-v49 .bas-modal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.bas-v49 .bas-modal-grid .bas-media-item img,.bas-v49 .bas-modal-grid .bas-no-thumbnail{height:160px}
.bas-v49 .bas-modal-grid .bas-media-item-caption{font-size:12px;min-height:30px}
.bas-v49 .bas-modal-grid .bas-media-item small{font-size:11px}
@media(max-width:1100px){.bas-v49 .bas-flow-columns{grid-template-columns:minmax(0,1fr) minmax(320px,.92fr)}.bas-v49 .bas-modal-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:940px){.bas-v49 .bas-flow-columns{grid-template-columns:1fr}.bas-v49 .bas-flow-preview{position:static;min-height:0}.bas-v49 .bas-flow-editor{overflow:visible}.bas-v49 .bas-real-phone{height:580px}}
@media(max-width:690px){.bas-v49 .bas-account-strip{padding:12px;align-items:center}.bas-v49 .bas-account-strip .bas-account-pic{width:42px;height:42px;min-width:42px}.bas-v49 .bas-account-strip .bas-account-copy strong{font-size:14px}.bas-v49 .bas-account-strip .bas-account-actions button{padding:9px 11px}.bas-v49 .bas-media-modal{padding:8px}.bas-v49 .bas-modal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bas-v49 .bas-modal-grid .bas-media-item img{height:125px}.bas-v49 .bas-media-modal-top,.bas-v49 .bas-media-modal-scroll{padding:15px}.bas-v49 .bas-real-media-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bas-v49 .bas-media-item img{height:78px}.bas-v49 .bas-flow-preview{padding:18px}.bas-v49 .bas-home-tile{min-height:140px}.bas-v49 .bas-real-phone{width:300px;height:565px}}
.bas-v49 .bas-keyword-inner .bas-field input[name="keywords"]{display:block;width:100%;height:auto;flex:auto;margin:0;accent-color:auto;padding:11px 12px;border:1px solid #cfd7e0;border-radius:10px;font-size:14px;line-height:1.4;background:#fff}
.bas-v49 .bas-field input,.bas-v49 .bas-field textarea,.bas-v49 .bas-field select{font-weight:400}
.bas-v49 .bas-comment-row{display:flex;gap:8px;align-items:flex-start}
.bas-v49 .bas-phone-bot-reply{display:flex!important}
.bas-v49 .bas-phone-bot-reply[hidden]{display:none!important}

/* V4.11 — due schermate, suggerimenti e simulatore Instagram più leggibile. */
.bas-v49 .bas-editor-screen[hidden]{display:none!important}
.bas-v49 .bas-two-page-actions{display:flex;justify-content:flex-end;margin-top:19px;border-top:1px solid #e9eef3;padding-top:18px}
.bas-v49 .bas-media-head{justify-content:flex-end}
.bas-v49 .bas-media-picker>.bas-hint:empty{display:none}
.bas-v49 .bas-keyword-inner>input[name="keywords"]{display:block;width:100%;box-sizing:border-box;background:#fff;border:1px solid #cfd7e0;border-radius:10px;font-size:13px;padding:12px;margin:0 0 13px;color:#1f3447}
.bas-v49 .bas-keyword-inner>input[name="keywords"]::placeholder{color:#8092a0;font-weight:400}
.bas-v49 .bas-suggestions-title,.bas-v49 .bas-reply-suggestions>span{display:block;font-size:12px;color:#365068;font-weight:750;margin-bottom:8px}
.bas-v49 .bas-keyword-suggestions,.bas-v49 .bas-reply-suggestions>div{display:flex;gap:7px;flex-wrap:wrap}
.bas-v49 .bas-keyword-suggestions button,.bas-v49 .bas-reply-suggestions button{border:1px solid #dce6ee;background:#f8fafc;color:#36556f;border-radius:23px;padding:7px 11px;font-size:12px;font-weight:650;cursor:pointer}
.bas-v49 .bas-keyword-suggestions button[aria-pressed="true"]{background:#fff1e7;border-color:#e97831;color:#b3541f}
.bas-v49 .bas-keyword-inner>.bas-hint{display:block;margin-top:10px}
.bas-v49 .bas-reply-suggestions{margin:8px 0 15px;border-top:1px solid #edf0f3;padding-top:12px}
.bas-v49 .bas-reply-suggestions button:hover,.bas-v49 .bas-keyword-suggestions button:hover{border-color:#e97831}
.bas-v49 .bas-step-actions{flex-wrap:wrap}
/* ManyChat's device dimensions are a useful reference, but the markup is our own. */
.bas-v49 .bas-real-phone{box-sizing:border-box;position:relative;width:304px;height:632px;max-width:100%;border:12px solid rgb(24,30,40);border-radius:42px;padding:10px 0 0;background:#101114;color:#fafafa;box-shadow:rgba(0,0,0,.08) 0 8px 30px,rgba(0,0,0,.05) 0 4px 12px,rgba(0,0,0,.03) 0 1px 3px;overflow:hidden;display:flex;flex-direction:column}
.bas-v49 .bas-real-phone-top{height:27px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 13px 6px;font-size:11px;color:#fff}
.bas-v49 .bas-real-phone-profile{height:51px;min-height:51px;padding:7px 11px 9px;gap:8px;box-sizing:border-box;flex-shrink:0;border-bottom:1px solid #292a2f}
.bas-v49 .bas-real-phone-profile>img,.bas-v49 .bas-phone-initial{box-sizing:border-box;display:block;width:27px;height:27px;min-width:27px;border-radius:50%;background:#fff;object-fit:contain;padding:2px;overflow:hidden}
.bas-v49 .bas-real-phone-profile>img[data-social-preview-avatar]{padding:0;object-fit:cover}
.bas-v49 .bas-real-phone-profile img[hidden]{display:none!important}
.bas-v49 .bas-phone-photo{height:276px;min-height:276px}
.bas-v49 .bas-phone-comments{display:flex;flex:1;min-height:0;flex-direction:column;padding:0;margin:0;background:#111216;border-radius:0;overflow:hidden}
.bas-v49 .bas-phone-post-underlay{height:95px;min-height:95px}
.bas-v49 .bas-phone-comments-sheet{margin-top:-12px;padding:9px 10px 9px;min-height:0;flex:1;border-radius:24px 24px 0 0}
.bas-v49 .bas-phone-comments .bas-comment-thread{flex:1;min-height:0;overflow-y:auto;padding:14px 0 6px;scrollbar-width:thin}
.bas-v49 .bas-phone-comments .bas-comment-row{display:flex;align-items:flex-start;gap:9px;padding:0!important;margin-bottom:16px;font-size:10px;line-height:1.4;color:#f5f5f5}
.bas-v49 .bas-phone-comments .bas-comment-row.bas-phone-bot-reply{padding:0 0 0 16px!important;display:flex!important}
.bas-v49 .bas-phone-comments .bas-comment-row.bas-phone-bot-reply[hidden]{display:none!important}
.bas-v49 .bas-phone-comments .bas-comment-avatar{box-sizing:border-box;flex:0 0 23px;min-width:23px;width:23px;height:23px;padding:0!important;border-radius:50%;position:relative;overflow:hidden;display:grid;place-items:center}
.bas-v49 .bas-phone-comments .bas-client-avatar{background:#cfd2d5}
.bas-v49 .bas-phone-comments .bas-client-avatar:before{content:'';position:absolute;top:4px;left:8px;width:7px;height:7px;background:#fff;border-radius:50%}
.bas-v49 .bas-phone-comments .bas-client-avatar:after{content:'';position:absolute;bottom:3px;left:5px;width:13px;height:8px;background:#fff;border-radius:80% 80% 40% 40%}
.bas-v49 .bas-phone-comments .bas-agency-avatar{background:#fff}
.bas-v49 .bas-phone-comments .bas-agency-avatar img{display:block;width:100%;height:100%;object-fit:contain;padding:1px;border-radius:50%;background:white;box-sizing:border-box}
.bas-v49 .bas-phone-comments .bas-agency-avatar img[data-social-comment-avatar]{object-fit:cover;padding:0}
.bas-v49 .bas-phone-comments .bas-agency-avatar img[hidden]{display:none!important}
.bas-v49 .bas-phone-comments .bas-comment-row>.bas-comment-body{padding:0!important;flex:1;min-width:0;overflow-wrap:anywhere;color:#f5f5f5}
.bas-v49 .bas-phone-comments .bas-comment-body p{padding:0!important;margin:0;font-size:10px;line-height:1.45;font-weight:400;overflow-wrap:anywhere}
.bas-v49 .bas-phone-comments .bas-comment-body b{font-size:10px;color:#fff;font-weight:750;margin-right:4px}
.bas-v49 .bas-phone-comments .bas-comment-body small{display:block;font-size:9px;color:#a8a9ad;margin:5px 0 0;padding:0!important;line-height:1.35}
.bas-v49 .bas-phone-comments .bas-phone-heart{font-size:15px;flex:0 0 12px;padding:0!important;color:#afb1b5;margin-left:auto}
.bas-v49 .bas-phone-comments .bas-phone-comments-bottom{flex:0 0 auto;padding:9px 0 0!important;border-top:1px solid rgba(255,255,255,.14);background:#232427}
.bas-v49 .bas-phone-comments .bas-emoji-row{padding:0!important;margin:0 0 10px;font-size:15px;letter-spacing:-1.1px;overflow:hidden;white-space:nowrap;text-align:center}
.bas-v49 .bas-phone-comments .bas-ig-compose{box-sizing:border-box;display:flex;align-items:center;gap:8px;border:1px solid #48494e;border-radius:24px;min-height:38px;padding:6px!important;font-size:10px;color:#8c8f97;overflow:hidden}
.bas-v49 .bas-phone-comments .bas-ig-compose .bas-client-avatar{min-width:22px;flex-basis:22px}
.bas-v49 .bas-phone-comments .bas-ig-compose>span:nth-child(2){padding:0!important;min-width:0;flex:1}
.bas-v49 .bas-phone-comments .bas-compose-icon{padding:0!important;flex-shrink:0;color:#d9dadd;font-size:15px}
.bas-v49 .bas-phone-comments-sheet h4{height:35px;min-height:35px;box-sizing:border-box;padding-bottom:11px;margin:0;display:flex;align-items:center;justify-content:center;position:relative;font-size:13px}
.bas-v49 .bas-phone-comments-sheet h4 span{position:absolute;right:0;display:flex;align-items:center;justify-content:center;color:#fff}
.bas-v49 .bas-sheet-handle{width:38px;height:4px;min-height:4px;margin:0 auto 6px}
.bas-v49 .bas-phone-views{margin-top:12px}
.bas-v49 .bas-real-phone .bas-real-phone-post{min-height:0}
.bas-v49 .bas-real-phone .bas-phone-compose{margin:8px 7px 8px;flex:0 0 auto}
@media(max-width:940px){.bas-v49 .bas-real-phone{width:304px;height:632px}}
@media(max-width:690px){.bas-v49 .bas-real-phone{width:min(304px,100%);height:620px}.bas-v49 .bas-step-actions{justify-content:stretch}.bas-v49 .bas-step-actions button{flex:1}.bas-v49 .bas-two-page-actions button{width:100%}}
/* Neutralizza la vecchia regola generica sui div del simulatore: causava avatar e maniglia deformati. */
.bas-v49 .bas-phone-comments .bas-phone-post-underlay{padding:0!important;overflow:hidden}
.bas-v49 .bas-phone-comments .bas-phone-comments-sheet{box-sizing:border-box;padding:9px 11px 10px!important}
.bas-v49 .bas-phone-comments .bas-sheet-handle{box-sizing:border-box;padding:0!important;width:38px;height:4px;min-height:4px;background:#828387;border-radius:6px;margin:0 auto 7px}
.bas-v49 .bas-phone-comments .bas-comment-thread{padding:13px 0 4px!important}
.bas-v49 .bas-phone-comments .bas-comment-body{padding:0!important}
.bas-v49 .bas-phone-comments .bas-comment-body p{font-size:11px;line-height:1.4}
.bas-v49 .bas-phone-comments .bas-comment-body b{font-size:11px}
.bas-v49 .bas-phone-comments .bas-comment-body small{font-size:9.5px}

/* V4.12 — canale collegato riconoscibile e barra stabile durante la configurazione */
.bas-v49 .bas-linked-icons{display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
.bas-v49 .bas-linked-icons img{width:32px;height:32px;min-width:32px;max-width:32px;border-radius:50%;object-fit:contain}
.bas-v49 .bas-linked-icons img[data-social-channel-avatar]{object-fit:cover;background:#fff}
.bas-v49 .bas-linked-icons img[data-social-linked-fallback]{object-fit:cover;background:#fff;border:1px solid #d9e4ef}
.bas-v49 .bas-linked-icons img[hidden],.bas-v49 .bas-linked-icons span[hidden]{display:none!important}
.bas-v49 .bas-two-arrows{font-size:20px;font-weight:800;color:#36845e;line-height:1}
.bas-v49 .bas-channel-container>button[data-social-tab]{min-height:108px;padding:11px 8px;gap:5px}
.bas-v49 .bas-channel-container small{min-height:15px}
body.assistant-social-body.bas-has-flow .site-header{position:sticky;top:0;z-index:110;background:#fff}
.bas-v49.is-flow-open .bas-flow-bar{position:sticky;top:70px;z-index:100;background:#f7f9fb;border:1px solid #e3eaf1;border-radius:12px;box-shadow:0 7px 16px rgba(16,33,49,.05);padding:12px 16px;margin:0 0 15px}
.bas-v49.is-flow-open .bas-flow-bar h2{font-size:clamp(18px,1.8vw,23px);line-height:1.2;max-width:840px}
.bas-v49 .bas-editor-screen [data-social-page="2"]{border-bottom:0;padding-bottom:0;margin-bottom:0}
.bas-v49 .bas-reveal-dm{margin:16px 0 4px;padding:24px 0 0;border-top:1px solid #e6edf2}
.bas-v49 .bas-reveal-dm h3{font-size:22px;margin:0 0 14px}
.bas-v49 .bas-public-replies .bas-field{margin:14px 0}
.bas-v49 .bas-phone-photo{width:100%;height:258px;min-height:258px;display:flex;align-items:center;justify-content:center;background:#050505;overflow:hidden}
.bas-v49 .bas-phone-photo>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center center;background:#050505}
.bas-v49 .bas-real-phone-post{min-height:0;overflow-y:auto;scrollbar-width:thin;background:#101114}
.bas-v49 .bas-phone-toolbar{display:flex;align-items:center;gap:9px;font-size:12px;padding:9px 9px 6px;flex:0 0 auto}
.bas-v49 .bas-phone-toolbar>span{display:inline-flex;align-items:center;gap:4px;color:#fafafa}
.bas-v49 .bas-phone-toolbar svg{width:19px;height:19px;stroke:#fafafa;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;fill:none;flex-shrink:0}
.bas-v49 .bas-phone-toolbar .bas-phone-save-icon{margin-left:auto}
.bas-v49 .bas-phone-toolbar small{font-size:10px;line-height:1;font-weight:600;color:#fafafa}
.bas-v49 .bas-phone-caption{max-height:110px;overflow-y:auto;font-size:10px;line-height:1.47;padding:2px 9px 5px;color:#fafafa;overflow-wrap:anywhere}
.bas-v49 .bas-phone-caption b{font-weight:750;margin-right:3px}
.bas-v49 .bas-phone-view-comments{font-size:10px;color:#a7aab2;padding:6px 9px 5px}
.bas-v49 .bas-phone-post-date{padding:0 9px 12px;color:#90929b;font-size:9px}
.bas-v49 .bas-draft-dialog{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px}
.bas-v49 .bas-draft-dialog[hidden]{display:none!important}
.bas-v49 .bas-draft-shade{position:absolute;inset:0;background:#0715258c}
.bas-v49 .bas-draft-dialog-box{position:relative;max-width:530px;width:100%;background:#fff;border-radius:16px;box-shadow:0 14px 70px #15253635;padding:27px;color:#172e42}
.bas-v49 .bas-draft-dialog-box h2{margin:0 0 12px;font-size:24px}
.bas-v49 .bas-draft-dialog-box p{line-height:1.5;color:#576b7a;font-size:14px}
.bas-v49 .bas-draft-dialog-actions{margin-top:23px;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:690px){.bas-v49.is-flow-open .bas-flow-bar{top:58px;gap:8px;padding:9px 11px}.bas-v49.is-flow-open .bas-flow-bar h2{font-size:18px}.bas-v49 .bas-draft-dialog-actions button{width:100%}.bas-v49 .bas-linked-icons img{width:25px;height:25px;min-width:25px;max-width:25px}.bas-v49 .bas-two-arrows{font-size:15px}}

/* V4.13 — editor a metà pagina, header e anteprima che non si sovrappongono */
@media(min-width:941px){
 .bas-v49.is-flow-open .bas-flow-bar{display:grid;grid-template-columns: minmax(0,1fr) minmax(0,1fr);gap:10px;position:sticky;top:70px;min-height:70px;z-index:100;align-items:center;}
 .bas-v49.is-flow-open .bas-flow-bar>div{grid-column:1;min-width:0}
 .bas-v49.is-flow-open .bas-flow-bar>button{grid-column:1;grid-row:1;justify-self:start}
 .bas-v49.is-flow-open .bas-flow-bar>div{padding-left:150px;grid-row:1}
 .bas-v49.is-flow-open .bas-flow-bar h2{font-size:clamp(16px,1.3vw,21px);max-width:100%;}
 .bas-v49 .bas-flow-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;}
 .bas-v49.is-flow-open .bas-flow-preview{position:sticky;top:166px;max-height:calc(100vh - 180px);min-height:0;overflow:auto;scrollbar-width:thin;}
 .bas-v49.is-flow-open .bas-flow-preview .bas-real-phone{height:min(632px,calc(100vh - 280px));min-height:390px;}
}
.bas-v49 .bas-new-block,.bas-v49 .bas-extra-toggles,.bas-v49 .bas-follow-sequence{margin-top:18px;padding-top:16px;border-top:1px solid #e4eaf0}
.bas-v49 .bas-follow-sequence h3{margin:3px 0 18px;font-size:22px}
.bas-v49 .bas-subtitle{font-weight:750;color:#182b3b;font-size:13px;margin:0 0 10px}
.bas-v49 .bas-link-buttons,.bas-v49 .bas-links-list{display:flex;flex-direction:column;gap:9px;margin-bottom:10px}
.bas-v49 .bas-editable-item{display:flex;gap:7px;align-items:center}
.bas-v49 .bas-editable-item input,.bas-v49 .bas-link-edit input{min-width:0;flex:1;border:1px solid #cddae6;border-radius:9px;padding:11px;font:inherit;font-size:13px;background:#fff;color:#182b3b}
.bas-v49 .bas-editable-item button,.bas-v49 .bas-link-edit button{border:1px solid #e2e8ed;border-radius:8px;background:#fff;color:#ac3c35;font-weight:bold;font-size:20px;padding:5px 10px;cursor:pointer}
.bas-v49 .bas-editable-item button:disabled{opacity:.35;cursor:not-allowed}
.bas-v49 .bas-link-edit{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.8fr) auto;gap:6px}
.bas-v49 .bas-mini-btn{margin-bottom:10px;font-size:12px}
.bas-v49 .bas-extra-toggles .bas-toggle-row,.bas-v49 .bas-follow-sequence .bas-toggle-row{margin:12px 0}
.bas-v49 .bas-phone-chat{padding:10px 6px!important;overflow:auto!important;display:flex;flex-direction:column;gap:10px;align-items:stretch}
.bas-v49 .bas-phone-chat[hidden]{display:none!important}
.bas-v49 .bas-dm-incoming{display:flex;gap:7px;align-items:flex-end;flex:0 0 auto}
.bas-v49 .bas-dm-avatar{width:21px;height:21px;min-width:21px;flex:0 0 21px;border-radius:50%;overflow:hidden;background:#fff;display:flex;align-items:center;justify-content:center}
.bas-v49 .bas-dm-avatar img{width:100%;height:100%;object-fit:cover}
.bas-v49 .bas-dm-avatar img[hidden]{display:none!important}
.bas-v49 .bas-dm-message{max-width:calc(100% - 34px);flex:1;min-width:0}
.bas-v49 .bas-dm-message .bas-chat-bubble{border-radius:12px 12px 12px 4px;margin:0;padding:11px;line-height:1.4}
.bas-v49 .bas-chat-quick{display:flex;flex-direction:column;gap:4px;background:#292b31;padding:3px 7px 7px;border-radius:0 0 12px 12px}
.bas-v49 .bas-chat-quick div{border-radius:7px;padding:9px 5px;background:#3b3c41;color:#fafafa;font-weight:600;text-align:center;font-size:11px;overflow-wrap:anywhere}
.bas-v49 .bas-chat-quick:empty{display:none}
.bas-v49 .bas-chat-outgoing{margin-left:auto;background:#7d3dec;border-radius:14px;padding:9px 11px;font-size:11px;color:#fff;max-width:75%;overflow-wrap:anywhere}
.bas-v49 .bas-phone-compose{align-items:center;gap:8px}
.bas-v49 .bas-phone-compose .bas-phone-camera{border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;background:#168cff;color:#fff;font-size:12px}
.bas-v49 .bas-phone-compose .bas-compose-actions{margin-left:auto;color:#fff;font-size:16px;white-space:nowrap}
@media(max-width:940px){.bas-v49.is-flow-open .bas-flow-preview{position:static;max-height:none;overflow:visible}.bas-v49.is-flow-open .bas-flow-bar{top:60px}.bas-v49 .bas-flow-columns{grid-template-columns:1fr}}
@media(max-width:690px){.bas-v49 .bas-link-edit{grid-template-columns:1fr auto}.bas-v49 .bas-link-edit input:nth-child(2){grid-column:1;grid-row:2}.bas-v49 .bas-link-edit button{grid-column:2;grid-row:1/3}.bas-v49.is-flow-open .bas-flow-bar>div{padding:0}}

/* V4.15 — schede, testata solo sull'editor, phone preview e conversazioni per pulsante */
.bas-v49 .bas-home-tags{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:auto}
.bas-v49 .bas-home-tags .bas-home-tag{margin:0;display:inline-block;border-radius:5px;padding:5px 7px}
.bas-v49 .bas-home-tags .bas-tag-muted{color:#687a8b;background:#edf1f4;font-size:11px;letter-spacing:.01em}
.bas-v49 .bas-home-tags .bas-tag-popular{color:#a84b0a;background:#ffdbbb;font-size:10px;letter-spacing:.055em}
.bas-v49.is-flow-open .bas-flow-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;min-height:0;margin:-22px -22px 20px;padding:15px 20px;position:sticky;top:72px;z-index:24;background:#f7f9fb;border:0;border-bottom:1px solid #e0e8ef;border-radius:17px 17px 0 0;box-shadow:0 5px 11px #2333440b}
.bas-v49.is-flow-open .bas-flow-bar>button{flex:0 0 auto;font-size:12px;padding:9px 12px}
.bas-v49.is-flow-open .bas-flow-bar>div{flex:1;min-width:190px;padding:0!important}
.bas-v49.is-flow-open .bas-flow-bar small{font-size:10px;letter-spacing:.075em}
.bas-v49.is-flow-open .bas-flow-bar h2{font-size:clamp(16px,1.4vw,20px);margin:2px 0 0;max-width:none;line-height:1.2}
.bas-v49 .bas-flow-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:18px}
.bas-v49 .bas-flow-editor{max-height:none;overflow:visible}
.bas-v49 .bas-specific-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff6ef}
.bas-v49 .bas-specific-head .bas-option-line{flex:1;min-width:0;border:0!important;margin:0!important;border-radius:0!important;background:transparent!important}
.bas-v49 .bas-specific-head>[data-social-refresh-media]{margin:0 13px 0 auto;padding:7px;font-size:12px;white-space:nowrap}
.bas-v49 .bas-specific-head:has(input:checked){background:#fff6ef}
.bas-v49 .bas-real-media-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.bas-v49 .bas-real-media-grid .bas-media-item{padding:4px;border-radius:9px;gap:5px}
.bas-v49 .bas-real-media-grid .bas-media-item img,.bas-v49 .bas-real-media-grid .bas-no-thumbnail{width:100%;height:auto;aspect-ratio:3/4;min-height:0;max-height:none;object-fit:cover;object-position:center;border-radius:6px;display:block}
.bas-v49 .bas-real-media-grid .bas-media-item-caption{font-size:10px;line-height:1.3;min-height:0}
.bas-v49 .bas-real-media-grid .bas-media-item small{font-size:9px}
.bas-v49 .bas-quick-settings>.bas-toggle-row{margin-bottom:8px}
.bas-v49 .bas-response-cards{display:flex;flex-direction:column;gap:14px}
.bas-v49 .bas-response-card{padding:17px;background:#f7fafc;border:1px solid #e0e8ef;border-radius:13px}
.bas-v49 .bas-response-card h4{font-size:15px;line-height:1.4;margin:0 0 10px;color:#243c52;overflow-wrap:anywhere}
.bas-v49 .bas-response-card .bas-field{margin:12px 0}
.bas-v49 .bas-response-link-heading{font-size:12px;font-weight:750;margin:12px 0;color:#53697b}
.bas-v49 .bas-response-card .bas-link-edit{grid-template-columns:minmax(0,.8fr) minmax(0,1.7fr) auto}
.bas-v49 .bas-response-card .bas-outline{margin:7px 0 0}
.bas-v49 .bas-reminder-section{padding-top:8px;margin-top:12px}
.bas-v49 .bas-flow-preview{background:#f5f7f9}
.bas-v49.is-flow-open .bas-flow-preview{position:sticky;top:80px;max-height:calc(100dvh - 94px);min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.bas-v49.is-flow-open .bas-flow-preview .bas-real-phone{box-sizing:border-box;flex:none;width:304px;height:632px;min-height:632px;max-width:100%;border:12px solid #181e28;border-radius:42px;padding:10px 0 0;box-shadow:0 9px 30px #14243421;background:#101114}
.bas-v49 .bas-sim-quick{display:block;width:100%;border:0;border-radius:6px;padding:9px 5px;background:#3b3c41;color:#fafafa;text-align:center;font-size:11px;font-weight:600;cursor:pointer}
.bas-v49 .bas-sim-quick.is-preview-selected{outline:1px solid #a17bed;background:#434048}
.bas-v49 .bas-chat-quick button:hover{background:#4c4d53}
.bas-v49 .bas-real-phone .bas-dm-incoming[hidden],.bas-v49 .bas-real-phone .bas-chat-outgoing[hidden]{display:none!important}
@media (min-width:941px){
 .bas-v49.is-flow-open .bas-flow-bar{display:flex;grid-template-columns:none}
 .bas-v49.is-flow-open .bas-flow-bar>div,.bas-v49.is-flow-open .bas-flow-bar>button{grid-column:auto;grid-row:auto}
 .bas-v49.is-flow-open .bas-flow-preview{top:80px;max-height:calc(100dvh - 94px)}
}
@media (max-width:1100px) and (min-width:941px){
 .bas-v49 .bas-real-media-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .bas-v49 .bas-real-media-grid .bas-media-item img{aspect-ratio:3/4}
 .bas-v49 .bas-media-item-caption{font-size:9px}
}
@media(max-width:940px){
 .bas-v49 .bas-flow-columns{grid-template-columns:1fr}
 .bas-v49.is-flow-open .bas-flow-bar{position:sticky;top:63px;margin:-18px -18px 18px;padding:11px 15px}
 .bas-v49.is-flow-open .bas-flow-preview{position:static;max-height:none;overflow:visible}
 .bas-v49.is-flow-open .bas-flow-preview .bas-real-phone{height:632px;min-height:632px}
}
@media(max-width:690px){
 .bas-v49.is-flow-open .bas-flow-bar{top:57px}
 .bas-v49 .bas-real-media-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .bas-v49 .bas-real-media-grid .bas-media-item img{height:auto;aspect-ratio:3/4}
 .bas-v49 .bas-response-card{padding:12px}
 .bas-v49 .bas-response-card .bas-link-edit{grid-template-columns:1fr auto}
 .bas-v49 .bas-response-card .bas-link-edit input:nth-child(2){grid-column:1;grid-row:2}
 .bas-v49 .bas-response-card .bas-link-edit button{grid-column:2;grid-row:1/3}
 .bas-v49.is-flow-open .bas-flow-bar>div{min-width:0}
}


/* V4.16 — navbar superiore sempre visibile e lista automazioni prima dei suggerimenti */
body.assistant-social-body > .site-header,
body.assistant-social-body .site-header{
  position:sticky!important; top:0!important; z-index:950!important;
  background:#fff; border-bottom:1px solid #e8eef3;
  box-shadow:0 2px 12px rgba(21,48,71,.035);
}
body.assistant-social-body .bas-v49 .bas-saved-home{
  margin:22px 0 28px;padding:25px 27px;background:#fff;
  border:1px solid #dfe7ee;border-radius:18px;
  box-shadow:0 5px 22px rgba(18,48,70,.035);
}
body.assistant-social-body .bas-v49 .bas-automation-head{align-items:center;margin-bottom:19px}
body.assistant-social-body .bas-v49 .bas-automation-head p{color:#7b8a97;margin:6px 0 0}
body.assistant-social-body .bas-v49 .bas-create-automation{
 background:#0868c4;border-color:#0868c4;color:#fff;white-space:nowrap;
 gap:9px;padding:11px 16px;box-shadow:0 4px 10px rgba(8,104,196,.11);
}
body.assistant-social-body .bas-v49 .bas-create-automation:hover{background:#075aaa}
body.assistant-social-body .bas-v49 .bas-create-automation span{font-size:22px;line-height:14px;font-weight:400}
body.assistant-social-body .bas-v49 .bas-automation-filters{
 display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:19px;
}
body.assistant-social-body .bas-v49 .bas-filter-search{position:relative;flex:1 1 270px;max-width:440px}
body.assistant-social-body .bas-v49 .bas-filter-search>span{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#718499;font-size:24px;line-height:1;pointer-events:none}
body.assistant-social-body .bas-v49 .bas-filter-search input,
body.assistant-social-body .bas-v49 .bas-filter-select select{
 width:100%;min-height:43px;border-radius:11px;border:1px solid #dbe4ed;
 background:#fff;color:#21394c;font-size:13px;font-family:inherit;outline:none;
}
body.assistant-social-body .bas-v49 .bas-filter-search input{padding:9px 12px 9px 37px}
body.assistant-social-body .bas-v49 .bas-filter-select{flex:0 1 235px;min-width:185px}
body.assistant-social-body .bas-v49 .bas-filter-select select{padding:9px 13px}
body.assistant-social-body .bas-v49 .bas-filter-search input:focus,
body.assistant-social-body .bas-v49 .bas-filter-select select:focus{border-color:#e97831;box-shadow:0 0 0 3px #e9783121}
body.assistant-social-body .bas-v49 .bas-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.assistant-social-body .bas-v49 .bas-rules{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
body.assistant-social-body .bas-v49 .bas-automation-card{background:#fafbfc;border:1px solid #e4eaf1;padding:17px 18px;border-radius:14px;min-width:0;transition:border-color .15s,box-shadow .15s}
body.assistant-social-body .bas-v49 .bas-automation-card:hover{border-color:#cbdbe8;box-shadow:0 3px 13px rgba(0,39,73,.05)}
body.assistant-social-body .bas-v49 .bas-automation-card-top{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:6px 12px}
body.assistant-social-body .bas-v49 .bas-rule-type{color:#657b8f;font-size:11px;font-weight:750;letter-spacing:.025em}
body.assistant-social-body .bas-v49 .bas-rule-draft{color:#865821;font-size:10px;font-weight:750;background:#fff3dd;border:1px solid #ffe5b7;border-radius:100px;padding:4px 8px}
body.assistant-social-body .bas-v49 .bas-automation-card h3{margin:13px 0 7px;font-size:18px;line-height:1.35;color:#1c334a;overflow-wrap:anywhere}
body.assistant-social-body .bas-v49 .bas-automation-card p{margin:0 0 16px;font-size:12px;line-height:1.5;color:#728394}
body.assistant-social-body .bas-v49 .bas-rule-buttons{display:flex;gap:7px;flex-wrap:wrap}
body.assistant-social-body .bas-v49 .bas-rule-buttons button{font-size:12px;font-weight:750;margin:0;padding:8px 12px}
body.assistant-social-body .bas-v49 .bas-rule-buttons button:first-child{background:#fff1e6;color:#a85316}
body.assistant-social-body .bas-v49 .bas-rule-buttons button:last-child{background:transparent;color:#b15048;border:1px solid #f0d6d1}
body.assistant-social-body .bas-v49 .bas-rules-empty{grid-column:1/-1;display:flex;align-items:center;gap:17px;border:1px dashed #cfdce7;background:#f9fbfd;border-radius:14px;padding:23px}
body.assistant-social-body .bas-v49 .bas-rules-empty>span{font-size:27px;color:#2d80c8}
body.assistant-social-body .bas-v49 .bas-rules-empty b{color:#23394f;font-size:14px}
body.assistant-social-body .bas-v49 .bas-rules-empty p{font-size:12px;color:#6e8090;margin:5px 0 0}
body.assistant-social-body .bas-v49 .bas-rules-no-results{grid-column:1/-1;padding:24px;color:#667d8e;text-align:center;background:#fafbfc;border-radius:12px}
body.assistant-social-body .bas-v49 .bas-recommendation-header{margin:0 0 18px;scroll-margin-top:95px}
body.assistant-social-body .bas-v49 .bas-next-icon{height:40px;width:40px;display:grid;place-items:center;border-radius:12px;background:#fff3e9;color:#d5692b;font-size:21px;font-weight:800}
body.assistant-social-body .bas-v49 .bas-next-choices{grid-template-columns:repeat(3,minmax(0,1fr))}
body.assistant-social-body .bas-v49 .bas-next-choices .bas-home-tile{min-height:170px}
@media(max-width:1080px){body.assistant-social-body .bas-v49 .bas-rules{grid-template-columns:1fr}body.assistant-social-body .bas-v49 .bas-next-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){
 body.assistant-social-body .bas-v49 .bas-saved-home{padding:17px;margin:16px 0 24px}
 body.assistant-social-body .bas-v49 .bas-automation-head{align-items:flex-start}
 body.assistant-social-body .bas-v49 .bas-create-automation{width:100%}
 body.assistant-social-body .bas-v49 .bas-filter-search{max-width:none}
 body.assistant-social-body .bas-v49 .bas-filter-select{flex:1 1 100%}
 body.assistant-social-body .bas-v49 .bas-next-choices{grid-template-columns:1fr}
 body.assistant-social-body .bas-v49 .bas-automation-card h3{font-size:16px}
}

/* V4.21 – Risposte Direct configurabili e modello benvenuto follower (limite Meta) */
body.assistant-social-body .bas-v49 .bas-home-choices .bas-home-tile{position:relative;align-items:flex-start;text-align:left}
body.assistant-social-body .bas-v49 .bas-home-limited{background:#fafbfc;border-color:#e4e9ee}
body.assistant-social-body .bas-v49 .bas-home-limited:hover{background:#f8fafc;border-color:#d3dde6}
body.assistant-social-body .bas-v49 .bas-home-limited .bas-next-icon{background:#edf1f5;color:#607182}
body.assistant-social-body .bas-v49 .bas-home-choices .bas-home-tile small{line-height:1.48}
body.assistant-social-body .bas-v49 .bas-dm-wizard{min-width:0;padding:0 2px}
body.assistant-social-body .bas-v49 .bas-dm-guide{display:flex;gap:14px;align-items:flex-start;background:#eef6ff;border:1px solid #d6e8fb;border-radius:15px;padding:18px;margin:0 0 28px}
body.assistant-social-body .bas-v49 .bas-dm-guide .bas-guide-icon{font-size:23px;border-radius:12px;background:#fff;color:#3076c5;display:grid;place-items:center;height:44px;min-width:44px}
body.assistant-social-body .bas-v49 .bas-dm-guide strong{display:block;color:#173f68;font-size:15px;margin:0 0 7px}
body.assistant-social-body .bas-v49 .bas-dm-guide p{font-size:12px;line-height:1.6;color:#526f8d;margin:0}
body.assistant-social-body .bas-v49 .bas-dm-wizard .bas-flow-section{padding-bottom:22px;margin-bottom:24px}
body.assistant-social-body .bas-v49 .bas-dm-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
body.assistant-social-body .bas-v49 .bas-dm-method{display:flex;gap:10px;align-items:flex-start;border:1px solid #dce5ed;border-radius:14px;padding:16px 12px;background:#fff;cursor:pointer;min-width:0}
body.assistant-social-body .bas-v49 .bas-dm-method:has(input:checked){border-color:#e98c50;background:#fff6ef;box-shadow:0 0 0 2px #f3b88f22}
body.assistant-social-body .bas-v49 .bas-dm-method input{accent-color:#e97429;margin:3px 0;min-width:15px}
body.assistant-social-body .bas-v49 .bas-dm-method span{min-width:0}
body.assistant-social-body .bas-v49 .bas-dm-method b{font-size:13px;color:#19394f;display:block;margin-bottom:6px}
body.assistant-social-body .bas-v49 .bas-dm-method small{font-size:11px;color:#667c8b;display:block;line-height:1.5}
body.assistant-social-body .bas-v49 .bas-ai-context{background:#f8f5ff;border:1px solid #e7dff9;border-radius:14px;padding:15px;margin-top:15px}
body.assistant-social-body .bas-v49 .bas-ai-context b{font-size:14px;color:#5e4391}
body.assistant-social-body .bas-v49 .bas-ai-context p{font-size:12px;line-height:1.6;color:#70618b}
body.assistant-social-body .bas-v49 .bas-ai-context .bas-outline{font-size:12px}
body.assistant-social-body .bas-v49 .bas-dm-wizard .bas-field{color:#2d4a5c;line-height:1.4}
body.assistant-social-body .bas-v49 .bas-dm-wizard .bas-field textarea{min-height:85px;font-size:13px;line-height:1.5}
body.assistant-social-body .bas-v49 .bas-dm-wizard .bas-field input{font-size:12px}
body.assistant-social-body .bas-v49 .bas-dm-wizard .bas-toggle-row{margin:13px 0;font-size:12px}
body.assistant-social-body .bas-v49 .bas-dm-save{display:flex;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #e7edf2;margin-top:15px;padding-top:21px}
body.assistant-social-body .bas-v49 .bas-dm-save span{font-size:11px;color:#83919b;line-height:1.45;max-width:260px}
body.assistant-social-body .bas-v49 .bas-follower-limit{padding:20px 5px 26px}
body.assistant-social-body .bas-v49 .bas-follower-illustration{display:grid;place-items:center;width:62px;height:62px;border-radius:17px;background:#fff2e6;margin:3px 0 20px;font-size:31px}
body.assistant-social-body .bas-v49 .bas-follower-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:#b86a2a}
body.assistant-social-body .bas-v49 .bas-follower-limit h3{font-size:25px;line-height:1.2;margin:8px 0 14px;color:#253f55}
body.assistant-social-body .bas-v49 .bas-follower-limit>p{font-size:13px;line-height:1.7;color:#667789}
body.assistant-social-body .bas-v49 .bas-follower-alternative{border:1px solid #d4e7f5;background:#f3f8fe;border-radius:15px;padding:19px;margin:19px 0}
body.assistant-social-body .bas-v49 .bas-follower-alternative>b{font-size:14px;color:#276ba4}
body.assistant-social-body .bas-v49 .bas-follower-alternative p{font-size:12px;line-height:1.6;color:#657f95;margin:9px 0 17px}
body.assistant-social-body .bas-v49 .bas-follower-alternative .bas-primary{font-size:12px}
body.assistant-social-body .bas-v49.is-direct-open .bas-phone-views [data-social-phone-view]:not([data-social-phone-view="direct"]){display:none}
body.assistant-social-body .bas-v49:not(.is-direct-open) .bas-phone-views [data-social-phone-view="direct"]{display:none}
body.assistant-social-body .bas-v49 .bas-direct-chat-preview{padding:20px 10px;gap:14px;align-content:start}
body.assistant-social-body .bas-v49 .bas-direct-chat-label{font-size:10px;text-align:center;color:#8e97a5;margin-bottom:4px}
body.assistant-social-body .bas-v49 .bas-direct-chat-preview .bas-direct-customer{background:#5876f5;color:#fff;align-self:end;max-width:82%;padding:10px 12px;border-radius:14px 14px 4px 14px;font-size:12px;line-height:1.5;flex:none}
body.assistant-social-body .bas-v49 .bas-direct-chat-preview .bas-dm-incoming{align-items:flex-end}
body.assistant-social-body .bas-v49 .bas-direct-chat-preview .bas-chat-bubble{font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}
body.assistant-social-body .bas-v49 .bas-direct-chat-separator{text-align:center;font-size:10px;color:#9da7b1;margin:2px 0}
body.assistant-social-body .bas-v49 .bas-direct-chat-disclaimer{font-size:10px;color:#acb6c2;text-align:center;margin-top:9px}
@media(max-width:700px){
 body.assistant-social-body .bas-v49 .bas-dm-methods{grid-template-columns:1fr}
 body.assistant-social-body .bas-v49 .bas-dm-guide{padding:14px}
 body.assistant-social-body .bas-v49 .bas-dm-guide .bas-guide-icon{min-width:36px;height:36px}
 body.assistant-social-body .bas-v49 .bas-dm-save .bas-primary{width:100%}
}


/* V4.22 – Lista automazioni su una riga, layout stile gestione campagne */
body.assistant-social-body .bas-v49 .bas-rules.bas-rules-list{
 display:flex!important;flex-direction:column!important;gap:11px!important;
}
body.assistant-social-body .bas-v49 .bas-bulk-toolbar{
 min-height:40px;display:flex;align-items:center;flex-wrap:wrap;gap:12px;
 padding:0 1px 13px;margin-top:-2px;
}
body.assistant-social-body .bas-v49 .bas-check-all{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:12px;font-weight:700;color:#425870}
body.assistant-social-body .bas-v49 .bas-check-all input,
body.assistant-social-body .bas-v49 .bas-automation-check input{width:17px;height:17px;accent-color:#0e70c8;cursor:pointer}
body.assistant-social-body .bas-v49 .bas-selection-count{font-size:12px;color:#7e8d9a}
body.assistant-social-body .bas-v49 .bas-bulk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-left:auto}
body.assistant-social-body .bas-v49 .bas-bulk-actions button{
 appearance:none;padding:8px 12px;border:1px solid #d6e2ed;border-radius:9px;font-size:12px;font-weight:750;
 background:#fff;color:#23435a;cursor:pointer;font-family:inherit;
}
body.assistant-social-body .bas-v49 .bas-bulk-actions .bas-bulk-enable{background:#eaf8f0;color:#147647;border-color:#b9e9cd}
body.assistant-social-body .bas-v49 .bas-bulk-actions .bas-bulk-delete{color:#aa4545;border-color:#f1cccc}
body.assistant-social-body .bas-v49 .bas-bulk-toolbar.is-busy{opacity:.65;pointer-events:none}
body.assistant-social-body .bas-v49 .bas-bulk-disclaimer{font-size:11px;line-height:1.5;color:#8293a2;margin:0 0 14px}
body.assistant-social-body .bas-v49 .bas-automation-row{
 display:grid;grid-template-columns:27px 114px minmax(0,1fr) auto;gap:14px;
 align-items:center;min-height:104px;padding:15px 17px;border:1px solid #e4eaf0;border-radius:13px;
 background:#fff;box-shadow:0 2px 7px rgba(31,55,78,.035);transition:border-color .15s,background .15s;
}
body.assistant-social-body .bas-v49 .bas-automation-row.is-checked{border-color:#a9cdee;background:#f8fbff}
body.assistant-social-body .bas-v49 .bas-automation-row.is-paused{background:#f9fafb;border-color:#e8ebee}
body.assistant-social-body .bas-v49 .bas-automation-row:hover{border-color:#cadbeb}
body.assistant-social-body .bas-v49 .bas-automation-check{display:grid;place-items:center;cursor:pointer}
body.assistant-social-body .bas-v49 .bas-automation-state{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
body.assistant-social-body .bas-v49 .bas-state-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:6px;font-weight:750;font-size:11px;white-space:nowrap}
body.assistant-social-body .bas-v49 .bas-state-pill i{width:7px;height:7px;border-radius:50%;background:currentColor}
body.assistant-social-body .bas-v49 .bas-state-pill.is-enabled{background:#e8f7ee;color:#17824b}
body.assistant-social-body .bas-v49 .bas-state-pill.is-paused{background:#ebedf0;color:#747d88}
body.assistant-social-body .bas-v49 .bas-automation-state small{font-size:10px;color:#a0aab4}
body.assistant-social-body .bas-v49 .bas-automation-info{min-width:0}
body.assistant-social-body .bas-v49 .bas-automation-info h3{font-size:15px;line-height:1.4;margin:0 0 10px;color:#1a3045;font-weight:780;letter-spacing:-.01em}
body.assistant-social-body .bas-v49 .bas-automation-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;color:#738496;line-height:1.4}
body.assistant-social-body .bas-v49 .bas-automation-platform{width:17px;height:17px;object-fit:contain;flex:0 0 17px}
body.assistant-social-body .bas-v49 .bas-autom-thumb{display:inline-flex;vertical-align:middle}
body.assistant-social-body .bas-v49 .bas-autom-thumb img,
body.assistant-social-body .bas-v49 .bas-autom-thumb-empty{width:33px;height:33px;object-fit:cover;border-radius:6px;border:1px solid #e0e7ec}
body.assistant-social-body .bas-v49 .bas-autom-thumb-empty{background:#eef2f5;color:#91a0ad;display:inline-grid;place-items:center;font-size:17px}
body.assistant-social-body .bas-v49 .bas-automation-meta-tail{color:#8495a5}
body.assistant-social-body .bas-v49 .bas-automation-keywords{font-size:11px;color:#8694a0;margin-top:6px}
body.assistant-social-body .bas-v49 .bas-automation-keywords b{color:#637c90}
body.assistant-social-body .bas-v49 .bas-automation-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
body.assistant-social-body .bas-v49 .bas-automation-row-actions button{
 appearance:none;margin:0;border-radius:8px;padding:8px 11px;border:1px solid #dbe3ea;
 background:#fff;color:#38536b;font-family:inherit;font-size:11px;font-weight:750;cursor:pointer;
}
body.assistant-social-body .bas-v49 .bas-automation-row-actions .bas-row-edit{color:#b65b19;background:#fff3eb;border-color:#ffe5d5}
body.assistant-social-body .bas-v49 .bas-automation-row-actions button:hover{filter:brightness(.97)}
@media(max-width:900px){
 body.assistant-social-body .bas-v49 .bas-automation-row{grid-template-columns:25px 100px minmax(0,1fr);gap:10px;padding:14px}
 body.assistant-social-body .bas-v49 .bas-automation-row-actions{grid-column:3;justify-content:flex-start}
}
@media(max-width:560px){
 body.assistant-social-body .bas-v49 .bas-automation-row{grid-template-columns:23px minmax(0,1fr);gap:9px;align-items:start}
 body.assistant-social-body .bas-v49 .bas-automation-state{grid-column:2;grid-row:1;flex-direction:row;align-items:center}
 body.assistant-social-body .bas-v49 .bas-automation-info{grid-column:2}
 body.assistant-social-body .bas-v49 .bas-automation-row-actions{grid-column:2}
 body.assistant-social-body .bas-v49 .bas-automation-info h3{font-size:14px}
 body.assistant-social-body .bas-v49 .bas-bulk-actions{margin-left:0;width:100%}
}

/* V4.23 · Benvenuto follower: wizard configurabile, nessun trigger Send API attivo. */
body.assistant-social-body .bas-v423.is-flow-open .bas-flow-bar{
 position:sticky!important;top:72px!important;z-index:90!important;
 background:#f8fafc;box-shadow:0 5px 17px #18344c13;
}
body.assistant-social-body .bas-v423 .bas-follower-wizard{min-width:0;padding:0 2px 26px}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-flow-section{margin:0 0 26px;padding:0 0 24px;border-bottom:1px solid #e7edf2}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-flow-section h3{font-size:18px;letter-spacing:-.01em;margin:0 0 15px;color:#203b53}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-flow-section>.bas-hint{color:#667e90;font-size:12px;line-height:1.6;margin:4px 0 16px}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-field{font-size:12px;line-height:1.4;color:#36556b;font-weight:700}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-field input,
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-field textarea,
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-field select{font-size:13px;line-height:1.5;min-height:42px}
body.assistant-social-body .bas-v423 .bas-follower-wizard .bas-field textarea{min-height:90px;resize:vertical}
body.assistant-social-body .bas-v423 .bas-follower-delay-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.assistant-social-body .bas-v423 .bas-follower-delay-options label{display:flex;align-items:center;gap:11px;padding:17px 15px;border-radius:13px;border:1px solid #dbe5ed;cursor:pointer;background:#fff}
body.assistant-social-body .bas-v423 .bas-follower-delay-options label:has(input:checked){background:#fff5ec;border-color:#e8803a;box-shadow:0 0 0 2px #f4a36a24}
body.assistant-social-body .bas-v423 .bas-follower-delay-options input{accent-color:#e97627;width:18px;height:18px;flex:none}
body.assistant-social-body .bas-v423 .bas-follower-delay-options span{display:grid;gap:5px;min-width:0}
body.assistant-social-body .bas-v423 .bas-follower-delay-options b{font-size:13px;color:#1e3a50}
body.assistant-social-body .bas-v423 .bas-follower-delay-options small{font-size:11px;color:#8a98a5}
body.assistant-social-body .bas-v423 .bas-follower-quick-heading{display:flex;gap:10px;justify-content:space-between;align-items:center;margin:23px 0 12px}
body.assistant-social-body .bas-v423 .bas-follower-quick-heading b{font-size:14px;color:#1f3f57}
body.assistant-social-body .bas-v423 .bas-follower-quick-heading span{font-size:11px;color:#758897}
body.assistant-social-body .bas-v423 .bas-follower-buttons,
body.assistant-social-body .bas-v423 .bas-follower-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.assistant-social-body .bas-v423 .bas-follower-response-card{background:#fcfdfe;border:1px solid #dde8ef;border-radius:15px;margin:12px 0;padding:17px}
body.assistant-social-body .bas-v423 .bas-follower-response-card h4{font-size:14px;line-height:1.35;margin:0 0 14px;color:#1f4057}
body.assistant-social-body .bas-v423 .bas-follower-response-card .bas-follower-links{margin-top:14px}
body.assistant-social-body .bas-v423 .bas-follower-restriction{border:1px solid #cfe4f4;background:#f3f8fe;padding:17px;border-radius:14px;margin:13px 0 20px}
body.assistant-social-body .bas-v423 .bas-follower-restriction b{font-size:13px;color:#23649b}
body.assistant-social-body .bas-v423 .bas-follower-restriction p{font-size:12px;color:#557389;line-height:1.65}
body.assistant-social-body .bas-v423 .bas-follower-restriction button{margin-top:4px;font-size:12px}
body.assistant-social-body .bas-v423 .bas-follower-constraint{margin:8px 0 0;background:#fffaf2;border:1px solid #f1dfbf;padding:13px 15px;border-radius:10px}
body.assistant-social-body .bas-v423 .bas-follower-constraint b{font-size:12px;color:#896124}
body.assistant-social-body .bas-v423 .bas-follower-constraint p{font-size:11px;color:#806d52;line-height:1.55;margin:8px 0 0}
body.assistant-social-body .bas-v423 .bas-follower-save-row{border-top:1px solid #e6edf3;padding-top:18px;display:flex;gap:15px;align-items:center;justify-content:space-between;flex-wrap:wrap}
body.assistant-social-body .bas-v423 [data-social-follower-save-status]{font-size:11px;line-height:1.6;color:#60819c;flex:1 1 230px}
body.assistant-social-body .bas-v423 [data-social-follower-save-status].is-error{color:#ad5c3d}
body.assistant-social-body .bas-v423.is-follower-open .bas-phone-views [data-social-phone-view]:not([data-social-phone-view="follower"]){display:none!important}
body.assistant-social-body .bas-v423:not(.is-follower-open) .bas-phone-views [data-social-phone-view="follower"]{display:none!important}
body.assistant-social-body .bas-v423 .bas-follower-preview-options{margin-top:7px;display:flex;flex-direction:column;gap:5px}
body.assistant-social-body .bas-v423 .bas-follower-preview-options button{background:#2a2b31;border:1px solid #393c44;border-radius:8px;color:#fff;cursor:pointer;font-size:11px;font-family:inherit;padding:8px 10px}
body.assistant-social-body .bas-v423 .bas-follower-preview-options button.is-preview-selected{background:#333c62;border-color:#6a80fa}
body.assistant-social-body .bas-v423 .bas-follower-sim-link{display:block;color:#8ab0ff;font-size:11px;background:#292d3a;border:1px solid #475170;border-radius:8px;padding:8px;margin-top:6px}
body.assistant-social-body .bas-v423 .bas-follower-chat-preview .bas-chat-bubble{white-space:pre-wrap;overflow-wrap:anywhere}
body.assistant-social-body .bas-v423 .bas-follower-chat-preview .bas-dm-incoming{flex:none}
@media(max-width:940px){body.assistant-social-body .bas-v423.is-flow-open .bas-flow-bar{top:61px!important}}
@media(max-width:700px){
 body.assistant-social-body .bas-v423.is-flow-open .bas-flow-bar{top:57px!important}
 body.assistant-social-body .bas-v423 .bas-follower-delay-options{grid-template-columns:1fr}
 body.assistant-social-body .bas-v423 .bas-follower-buttons,
 body.assistant-social-body .bas-v423 .bas-follower-links{grid-template-columns:1fr}
 body.assistant-social-body .bas-v423 .bas-follower-save-row .bas-primary{width:100%}
}


/* V4.24 — Workspace a due pannelli: lo scroll interessa l'editor, non il telefono.
   Altezza testata misurata dal JS, phone sempre nel viewport senza finire sotto la navbar. */
@media (min-width:941px) {
 body.assistant-social-body.bas-has-flow{height:100dvh;overflow:hidden!important}
 body.assistant-social-body main.bas-v424.is-flow-open{
  box-sizing:border-box;height:calc(100dvh - var(--bas-header-h,70px));
  max-height:calc(100dvh - var(--bas-header-h,70px));overflow:hidden;
  padding-top:12px!important;padding-bottom:0!important;
 }
 body.assistant-social-body .bas-v424.is-flow-open>.bas-flow{height:100%;min-height:0;overflow:hidden}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-columns{height:100%;min-height:0;align-items:stretch;overflow:hidden}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-editor{
  box-sizing:border-box;height:100%;min-height:0;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain;scrollbar-gutter:stable;
 }
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-bar{
  position:sticky!important;top:-23px!important;z-index:75!important;
  margin:-23px -23px 20px!important;border-radius:17px 17px 0 0;
 }
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview{
  box-sizing:border-box;position:relative!important;top:auto!important;
  align-self:stretch;height:100%;min-height:0!important;max-height:none!important;
  overflow:hidden!important;overscroll-behavior:contain;
 }
 body.assistant-social-body .bas-v424.is-flow-open .bas-preview-heading{margin-bottom:9px;gap:2px}
 body.assistant-social-body .bas-v424.is-flow-open .bas-preview-heading b{font-size:16px}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview .bas-real-phone{
  height:clamp(340px,calc(100dvh - var(--bas-header-h,70px) - 220px),632px)!important;
  min-height:0!important;max-height:none!important;
 }
 body.assistant-social-body .bas-v424.is-flow-open .bas-phone-views{margin-top:8px}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview>.bas-hint{margin-top:7px;font-size:10px}
}
@media (min-width:941px) and (max-height:700px){
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview>.bas-hint{display:none}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview{padding:12px}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview .bas-real-phone{height:clamp(320px,calc(100dvh - var(--bas-header-h,70px) - 175px),540px)!important}
}
/* Nei layout a colonna il documento scorre normalmente e la preview resta sotto l'editor. */
@media (max-width:940px){
 body.assistant-social-body.bas-has-flow{height:auto;overflow:visible!important}
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-preview{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important}
}
body.assistant-social-body .bas-v424 .bas-follower-action{margin:12px 0 5px}
body.assistant-social-body .bas-v424 .bas-follower-action>.bas-field{max-width:350px}
body.assistant-social-body .bas-v424 .bas-follower-action-hint{display:block;font-size:11px;color:#647f92;line-height:1.5;margin:1px 0 12px}
body.assistant-social-body .bas-v424 .bas-follower-sim-contact{color:#e0e8fd;background:#32343b;border-color:#555a68;overflow-wrap:anywhere}
/* Sui telefoni il titolo del wizard rimane immediatamente sotto la testata reale. */
@media(max-width:940px){
 body.assistant-social-body .bas-v424.is-flow-open .bas-flow-bar{top:var(--bas-header-h,70px)!important}
}

/* V4.25 — BETA è lo stato del canale, non un invio attivo. */
body.assistant-social-body .bas-v425 .bas-automation-beta .bas-state-pill.is-beta{
 background:#fff1e6;color:#bb5b16;border:1px solid #ffdfc5;
}
body.assistant-social-body .bas-v425 .bas-automation-beta.is-enabled{border-color:#eedac9}
body.assistant-social-body .bas-v425 .bas-automation-row-actions .bas-row-preview{
 border-color:#cee2f3;background:#eff7ff;color:#1361a3;
}
body.assistant-social-body .bas-v425 .bas-automation-row-actions .bas-row-preview:hover{background:#e3f0fd}

/* V4.27: test reale isolato, non confondere con l'elenco di automazioni pubbliche. */
.bas-v427 .bas-ig427{background:#fff;border:1px solid #d9e5ee;border-radius:18px;padding:20px 22px;margin:14px 0 27px;box-shadow:0 5px 18px rgba(17,42,66,.045)}
.bas-v427 .bas-ig427[hidden]{display:none!important}
.bas-v427 .bas-ig427-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.bas-v427 .bas-ig427-label{font-size:10px;letter-spacing:.08em;color:#b75c20;font-weight:800}
.bas-v427 .bas-ig427 h2{font-size:19px;color:#183247;margin:4px 0 8px;line-height:1.3}
.bas-v427 .bas-ig427 p{font-size:13px;color:#617588;line-height:1.55;margin:4px 0}
.bas-v427 .bas-ig427-state{white-space:nowrap;border:1px solid #dde4eb;border-radius:18px;background:#f2f5f7;padding:5px 10px;font-size:11px;font-weight:800;color:#687d8e}
.bas-v427 .bas-ig427-state.is-armed{border-color:#a3d9b6;color:#116b3e;background:#eefaf2}
.bas-v427 .bas-ig427-controls{display:flex;flex-wrap:wrap;gap:10px;margin:17px 0 13px;align-items:center}
.bas-v427 .bas-ig427-controls .bas-outline,.bas-v427 .bas-ig427-controls .bas-primary{padding:10px 14px;min-height:38px;font-size:12px;text-decoration:none}
.bas-v427 .bas-ig427 button:disabled{opacity:.5;cursor:not-allowed}
.bas-v427 .bas-ig427-outcome{font-size:13px;font-weight:650;border-radius:10px;background:#f5f8fb;color:#23445e;padding:13px 15px;line-height:1.55;overflow-wrap:anywhere}
.bas-v427 .bas-ig427 .bas-ig427-hint{font-size:11px;color:#738596;margin-top:12px}
.bas-v427 .bas-ig427 .bas-ig427-checks{font-size:12px;color:#526e82;margin:8px 2px 0;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:650px){.bas-v427 .bas-ig427{padding:16px 14px}.bas-v427 .bas-ig427-heading{flex-direction:column;gap:8px}.bas-v427 .bas-ig427 h2{font-size:17px}.bas-v427 .bas-ig427-controls{gap:8px}}

/* V4.30 — catalogo modale accessibile */
body.bas-model-open{overflow:hidden}
.bas-v49 .bas-catalog-invite{display:flex;gap:18px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e2e9f1;border-radius:18px;padding:22px 26px;margin:22px 0}
.bas-v49 .bas-catalog-invite h2{font-size:20px;color:#213a51;margin:0 0 5px}.bas-v49 .bas-catalog-invite p{margin:0;color:#687d90;font-size:13px}
.bas-v49 .bas-model-modal[hidden]{display:none!important}.bas-v49 .bas-model-modal{position:fixed;inset:0;z-index:10050;display:flex;align-items:center;justify-content:center;padding:18px}
.bas-v49 .bas-model-overlay{position:absolute;inset:0;background:rgba(19,30,43,.6)}
.bas-v49 .bas-model-window{position:relative;z-index:1;width:min(1020px,100%);max-height:min(90vh,900px);display:flex;flex-direction:column;background:#fff;border-radius:18px;box-shadow:0 25px 90px #0003;outline:0;overflow:hidden}
.bas-v49 .bas-model-head{display:flex;align-items:start;justify-content:space-between;padding:22px 25px;border-bottom:1px solid #e5eaf0;gap:12px}
.bas-v49 .bas-model-head h2{margin:0;color:#172d43;font-size:22px}.bas-v49 .bas-model-head p{margin:5px 0 0;color:#667b8d;font-size:13px}
.bas-v49 .bas-model-close{font-size:26px;border:0;background:#f1f4f8;border-radius:10px;width:38px;height:38px;cursor:pointer}
.bas-v49 .bas-model-body{overflow-y:auto;padding:22px 25px 30px}
.bas-v49 .bas-model-search{display:flex;align-items:center;gap:10px;border:1px solid #d7dfe8;border-radius:11px;padding:10px 13px;margin-bottom:20px}
.bas-v49 .bas-model-search input{width:100%;border:0;outline:0;font:inherit}
.bas-v49 .bas-model-detail{background:#f8fafc;border-radius:12px;padding:24px;margin-top:15px}.bas-v49 .bas-model-detail h3{margin:0 0 10px}.bas-v49 .bas-model-warning{color:#925322;font-weight:600;font-size:13px}
.bas-v49 .bas-model-body .bas-home-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.bas-v49 .bas-model-body .bas-home-tile{min-height:165px}
.bas-v49 .bas-model-body .bas-home-tile[hidden]{display:none!important}
@media(max-width:800px){.bas-v49 .bas-model-body .bas-home-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.bas-v49 .bas-model-body .bas-home-choices{grid-template-columns:1fr}.bas-v49 .bas-model-modal{padding:6px}.bas-v49 .bas-catalog-invite{align-items:start;flex-direction:column;padding:17px}.bas-v49 .bas-model-head{padding:16px}.bas-v49 .bas-model-body{padding:16px}}


/* V4.31 — Comandi play/pausa a sinistra, catalogo essenziale stile modelli */
body.assistant-social-body .bas-v431 .bas-automation-row{grid-template-columns:27px 166px minmax(0,1fr) auto;column-gap:14px}
body.assistant-social-body .bas-v431 .bas-automation-state{display:flex;flex-wrap:wrap;align-items:center;gap:7px}
body.assistant-social-body .bas-v431 .bas-automation-state small{flex-basis:100%;padding-left:0;color:#7f8e9c;font-size:10px}
body.assistant-social-body .bas-v431 .bas-play-control{border:1px solid #d9e1e8;background:#fff;color:#456175;border-radius:9px;min-width:35px;height:35px;line-height:1;cursor:pointer;font-size:17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;transition:background .12s,border-color .12s}
body.assistant-social-body .bas-v431 .bas-play-control.is-playing{color:#b35f26;border-color:#f0d4c0;background:#fff7f0}
body.assistant-social-body .bas-v431 .bas-play-control.is-stopped{color:#0c6f41;border-color:#cae6d6;background:#f4fbf6}
body.assistant-social-body .bas-v431 .bas-play-control:focus-visible{outline:2px solid #237ec6;outline-offset:2px}
body.assistant-social-body .bas-v431 .bas-automation-row-actions .bas-row-test{background:#f0f7ff;border-color:#cbdff1;color:#22659f}
body.assistant-social-body .bas-v431 .bas-bulk-disclaimer{background:#fff9f2;border:1px solid #f0ddc6;color:#855b32;padding:11px 14px;border-radius:9px;line-height:1.5}
/* Interfaccia del catalogo: sidebar sobria, nessuna icona decorativa */
.bas-v431 .bas-model-window{width:min(1160px,100%);border-radius:12px;max-height:min(88dvh,850px)}
.bas-v431 .bas-model-head{padding:17px 23px;align-items:center}
.bas-v431 .bas-model-head h2{font-size:22px}
.bas-v431 .bas-model-head p{font-size:12px}
.bas-v431 .bas-model-header-actions{display:flex;align-items:center;gap:10px}
.bas-v431 .bas-model-start-blank{border:1px solid #d7dce2;background:#fff;padding:10px 13px;border-radius:7px;color:#2f3945;font-size:12px;font-weight:650;cursor:pointer}
.bas-v431 .bas-model-close{background:#fff;border-radius:6px;border:0;font-size:25px}
.bas-v431 .bas-model-body{padding:18px 21px 22px}
.bas-v431 .bas-model-search{border-radius:6px;padding:9px 12px;margin-bottom:18px}
.bas-v431 .bas-model-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:26px;align-items:start}
.bas-v431 .bas-model-sidebar{display:flex;flex-direction:column;gap:4px;position:sticky;top:0}
.bas-v431 .bas-model-sidebar small{font-size:12px;color:#78848e;font-weight:700;padding:18px 11px 7px}
.bas-v431 .bas-model-sidebar button{display:block;width:100%;text-align:left;border:0;border-radius:6px;background:none;font:inherit;padding:10px 12px;font-size:13px;color:#414a53;cursor:pointer}
.bas-v431 .bas-model-sidebar button.is-current{background:#e7e8eb;color:#262e37;font-weight:750}
.bas-v431 .bas-model-section-title{font-size:17px;color:#252f39;margin:3px 0 14px}
.bas-v431 .bas-model-body .bas-home-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px!important}
.bas-v431 .bas-model-body .bas-home-tile{position:relative;min-height:192px;border:1px solid #dadddf;background:#fff;box-shadow:none;border-radius:8px;padding:17px 16px;display:flex;flex-direction:column;gap:10px;text-align:left;align-items:stretch;justify-content:flex-start}
.bas-v431 .bas-model-body .bas-home-tile:hover{border-color:#afb6be;box-shadow:0 3px 14px #0000000c}
.bas-v431 .bas-model-body .bas-home-tile .bas-next-icon{display:none!important}
.bas-v431 .bas-model-body .bas-home-tile b{font-size:16px;color:#242a31;font-weight:750;line-height:1.35}
.bas-v431 .bas-model-body .bas-home-tile small{font-size:12px;color:#6a747c;line-height:1.5;flex:1}
.bas-v431 .bas-model-body .bas-home-tile .bas-home-tag{background:transparent!important;border:none!important;color:#697783!important;padding:0!important;font-size:11px;font-weight:650;box-shadow:none;margin-top:auto}
.bas-v431 .bas-model-body .bas-home-tile .bas-tag-popular{color:#a75a21!important}
.bas-v431 .bas-model-body .bas-home-tile .bas-home-tags{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px}
.bas-v431 .bas-model-current{display:block;position:absolute;right:10px;top:10px;background:#eaf7ee;color:#177544;font-weight:750;font-size:10px;padding:5px 7px;border-radius:5px}
.bas-v431 .bas-model-body .bas-home-tile:has(.bas-model-current){padding-top:37px}
@media(max-width:1020px){body.assistant-social-body .bas-v431 .bas-automation-row{grid-template-columns:25px 155px minmax(0,1fr)}body.assistant-social-body .bas-v431 .bas-automation-row-actions{grid-column:3;justify-content:flex-start}.bas-v431 .bas-model-body .bas-home-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.bas-v431 .bas-model-layout{grid-template-columns:1fr;gap:14px}.bas-v431 .bas-model-sidebar{position:static;flex-direction:row;flex-wrap:wrap}.bas-v431 .bas-model-sidebar small{display:none}.bas-v431 .bas-model-sidebar button{width:auto;border:1px solid #e1e5e9;font-size:12px;padding:8px 10px}body.assistant-social-body .bas-v431 .bas-automation-row{grid-template-columns:24px minmax(0,1fr);gap:9px}body.assistant-social-body .bas-v431 .bas-automation-state{grid-column:2;grid-row:1}body.assistant-social-body .bas-v431 .bas-automation-info{grid-column:2}body.assistant-social-body .bas-v431 .bas-automation-row-actions{grid-column:2}}
@media(max-width:560px){.bas-v431 .bas-model-body .bas-home-choices{grid-template-columns:1fr}.bas-v431 .bas-model-body .bas-home-tile{min-height:135px}.bas-v431 .bas-model-start-blank{font-size:11px;padding:8px}.bas-v431 .bas-model-head p{display:none}}

/* V4.32 — pannello canale compatto, switch rotondo, menu per bot. Nessuna modifica al motore Meta. */
body.assistant-social-body .bas-v432 .bas-settings-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;margin:22px 0 14px}
body.assistant-social-body .bas-v432 .bas-settings-heading .bas-settings-title{margin:0;min-width:0}
body.assistant-social-body .bas-v432 .bas-profile-settings{position:relative;flex:0 0 auto;margin-left:auto}
body.assistant-social-body .bas-v432 .bas-gear-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;border:1px solid #d7e1eb;border-radius:12px;color:#294259;cursor:pointer;transition:background .16s,border-color .16s}
body.assistant-social-body .bas-v432 .bas-gear-button:hover,body.assistant-social-body .bas-v432 .bas-gear-button[aria-expanded="true"]{background:#f6f9fb;border-color:#9ab4ca}
body.assistant-social-body .bas-v432 .bas-gear-button:focus-visible{outline:3px solid #70a9e7;outline-offset:2px}
body.assistant-social-body .bas-v432 .bas-settings-heading .bas-account-strip{position:absolute;z-index:200;right:0;top:calc(100% + 9px);margin:0;width:min(425px,calc(100vw - 32px));box-sizing:border-box;background:#fff;border:1px solid #dde6ef;border-radius:14px;box-shadow:0 16px 52px #1e324628;padding:17px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}
body.assistant-social-body .bas-v432 .bas-settings-heading .bas-account-strip[hidden]{display:none!important}
body.assistant-social-body .bas-v432 .bas-settings-heading .bas-account-actions{margin-left:auto}
body.assistant-social-body .bas-v432 .bas-connection-state{background:#fff;border:1px solid #e0e9f1;border-radius:18px;min-height:265px;padding:32px 20px;margin:19px 0 28px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px}
body.assistant-social-body .bas-v432 .bas-connection-state[hidden]{display:none!important}
body.assistant-social-body .bas-v432 .bas-connection-graphic{width:56px;height:56px;display:grid;place-items:center;background:#f5f8fb;border:1px solid #e5edf3;border-radius:16px}
body.assistant-social-body .bas-v432 .bas-connection-graphic img{width:29px;height:29px;object-fit:contain}
body.assistant-social-body .bas-v432 .bas-connection-state h3{font-size:21px;font-weight:800;color:#193149;margin:5px 0 0}
body.assistant-social-body .bas-v432 .bas-connection-state p{font-size:13px;line-height:1.65;color:#607488;margin:0;max-width:480px}
body.assistant-social-body .bas-v432 .bas-connection-state small{font-size:11px;line-height:1.5;color:#8493a1}
body.assistant-social-body .bas-v432 .bas-connection-state button:disabled{background:#f1f3f6;border-color:#e1e6ea;color:#8b99a5;cursor:not-allowed}
body.assistant-social-body .bas-v432 .bas-channels [data-social-tab="whatsapp"]{cursor:pointer}
/* Facebook e Instagram: il bordo di selezione appartiene solo alla card esterna. */
body.assistant-social-body .bas-v432 .bas-channels [data-social-tab="whatsapp"].is-selected{border:2px solid #e97831;background:#fff8f3}
body.assistant-social-body .bas-v432.is-flow-open>.bas-settings-heading{display:none!important}
body.assistant-social-body .bas-v432 .bas-automation-row{grid-template-columns:28px 65px minmax(0,1fr) auto;gap:12px;overflow:visible}
body.assistant-social-body .bas-v432 .bas-automation-state{display:flex;align-items:center;justify-content:center;padding:0;gap:0}
body.assistant-social-body .bas-v432 .bas-toggle-switch{position:relative;display:inline-flex;align-items:center;width:48px;min-width:48px;height:28px;border:0;border-radius:99px;padding:3px;background:#d95a5a;cursor:pointer;box-shadow:inset 0 1px 2px #00000018;transition:background .15s}
body.assistant-social-body .bas-v432 .bas-toggle-switch.is-on{background:#19a46b}
body.assistant-social-body .bas-v432 .bas-toggle-switch span{display:block;flex:0 0 22px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002;transform:translateX(0);transition:transform .16s}
body.assistant-social-body .bas-v432 .bas-toggle-switch.is-on span{transform:translateX(20px)}
body.assistant-social-body .bas-v432 .bas-toggle-switch:focus-visible{outline:3px solid #2678c9;outline-offset:3px}
body.assistant-social-body .bas-v432 .bas-automation-row-actions{flex-wrap:nowrap;gap:7px;position:relative}
body.assistant-social-body .bas-v432 .bas-bot-menu{position:relative;z-index:3;display:block}
body.assistant-social-body .bas-v432 .bas-bot-menu[open]{z-index:40}
body.assistant-social-body .bas-v432 .bas-bot-menu>summary{display:grid;place-items:center;width:34px;height:35px;box-sizing:border-box;border:1px solid #dce4ec;background:#fff;border-radius:9px;color:#456177;font-size:25px;line-height:1;cursor:pointer;list-style:none;user-select:none}
body.assistant-social-body .bas-v432 .bas-bot-menu>summary::-webkit-details-marker{display:none}
body.assistant-social-body .bas-v432 .bas-bot-menu>summary::marker{content:''}
body.assistant-social-body .bas-v432 .bas-bot-menu>summary:hover,body.assistant-social-body .bas-v432 .bas-bot-menu[open]>summary{background:#f1f7fb;border-color:#b7ccde}
body.assistant-social-body .bas-v432 .bas-bot-menu>summary:focus-visible{outline:3px solid #7ab2ed;outline-offset:2px}
body.assistant-social-body .bas-v432 .bas-bot-menu-list{position:absolute;z-index:50;right:0;top:calc(100% + 7px);width:202px;display:flex;flex-direction:column;gap:0;background:#fff;border:1px solid #e0e7ed;border-radius:12px;overflow:hidden;box-shadow:0 14px 36px #23364a25;padding:5px}
body.assistant-social-body .bas-v432 .bas-automation-row-actions .bas-bot-menu-list button{display:block;width:100%;text-align:left;background:#fff;border:0;padding:12px 10px;border-radius:7px;color:#2a3a49;font-size:12px;font-weight:600}
body.assistant-social-body .bas-v432 .bas-automation-row-actions .bas-bot-menu-list button:hover:not(:disabled){background:#f1f6fa;filter:none}
body.assistant-social-body .bas-v432 .bas-automation-row-actions .bas-bot-menu-list button.is-destructive{color:#bd4141}
body.assistant-social-body .bas-v432 .bas-automation-row-actions .bas-bot-menu-list button:disabled{color:#aeb7bf;cursor:not-allowed;background:transparent}
@media(max-width:1000px){body.assistant-social-body .bas-v432 .bas-automation-row{grid-template-columns:26px 62px minmax(0,1fr);gap:10px}body.assistant-social-body .bas-v432 .bas-automation-row-actions{grid-column:3;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:650px){body.assistant-social-body .bas-v432 .bas-settings-heading{gap:10px}body.assistant-social-body .bas-v432 .bas-settings-heading .bas-settings-title{font-size:22px}body.assistant-social-body .bas-v432 .bas-automation-row{grid-template-columns:24px 54px minmax(0,1fr);padding:14px 10px}body.assistant-social-body .bas-v432 .bas-automation-check{grid-column:1;grid-row:1}body.assistant-social-body .bas-v432 .bas-automation-state{grid-column:2;grid-row:1}body.assistant-social-body .bas-v432 .bas-automation-info{grid-column:3;grid-row:1}body.assistant-social-body .bas-v432 .bas-automation-row-actions{grid-column:3;grid-row:2}body.assistant-social-body .bas-v432 .bas-toggle-switch{width:44px;min-width:44px;height:26px;padding:3px}body.assistant-social-body .bas-v432 .bas-toggle-switch span{width:20px;height:20px;flex-basis:20px}body.assistant-social-body .bas-v432 .bas-toggle-switch.is-on span{transform:translateX(18px)}body.assistant-social-body .bas-v432 .bas-bot-menu-list{right:auto;left:0}}

/* V4.33 — impostazioni connessione direttamente nella card Instagram */
body.assistant-social-body .bas-v433 .bas-channels{position:relative;z-index:20;overflow:visible}
body.assistant-social-body .bas-v433 .bas-channel-container[data-social-channel-wrap="instagram"]{position:relative;overflow:visible}
body.assistant-social-body .bas-v433 .bas-channel-container[data-social-channel-wrap="instagram"]>button[data-social-tab="instagram"]{width:100%;min-height:112px;box-sizing:border-box}
body.assistant-social-body .bas-v433 .bas-channel-container .bas-profile-settings{position:absolute;z-index:30;top:9px;right:9px;margin:0;display:block}
body.assistant-social-body .bas-v433 .bas-channel-container .bas-gear-button{width:32px;height:32px;min-width:32px;border-radius:9px;padding:0;border:1px solid #e3e9f0;background:#fff;color:#63788a;box-shadow:none}
body.assistant-social-body .bas-v433 .bas-channel-container .bas-gear-button:hover,body.assistant-social-body .bas-v433 .bas-channel-container .bas-gear-button[aria-expanded="true"]{color:#174f78;border-color:#bdd1e2;background:#f4f8fb}
body.assistant-social-body .bas-v433 .bas-channel-container .bas-account-strip{display:flex;position:absolute;z-index:90;right:0;top:calc(100% + 8px);width:min(420px,calc(100vw - 35px));box-sizing:border-box;background:white;border:1px solid #dae4ed;border-radius:12px;box-shadow:0 14px 36px #172c4127;margin:0;padding:14px;align-items:center;flex-wrap:wrap;gap:13px;cursor:default}
body.assistant-social-body .bas-v433 .bas-channel-container .bas-account-strip[hidden]{display:none!important}
body.assistant-social-body .bas-v433 .bas-automation-row-actions{justify-content:flex-end}
body.assistant-social-body .bas-v433 .bas-comment-like-unavailable{opacity:.68;cursor:not-allowed;background:#f7f8fa;border:1px solid #e5eaf0;padding:13px 16px;border-radius:10px;margin-top:15px}
body.assistant-social-body .bas-v433 .bas-comment-like-unavailable input{cursor:not-allowed;flex:0 0 auto}
body.assistant-social-body .bas-v433 .bas-comment-like-unavailable small{display:block;font-weight:400;line-height:1.45;margin-top:5px}
@media(max-width:650px){body.assistant-social-body .bas-v433 .bas-channel-container .bas-profile-settings{top:7px;right:7px}body.assistant-social-body .bas-v433 .bas-channel-container .bas-gear-button{width:29px;height:29px;min-width:29px}body.assistant-social-body .bas-v433 .bas-channel-container .bas-account-strip{right:-8px}}

/* V4.35 – Ingranaggio discreto nella card Instagram e allineamento centrale dell'intera pagina.
   Sidebar privata: 82px su desktop. Larghezza coerente per intestazione, canali,
   messaggi di stato, lista automazioni, collaudo e modale di configurazione.
   Nessuna regola influisce sui toggle o sull'invio Meta. */
body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button{
  width:34px;height:34px;min-width:34px;display:grid;place-items:center;
  padding:0;border:1px solid #dce5ed;border-radius:10px;
  background:#fff;color:#45647c;box-shadow:0 1px 3px rgba(15,42,66,.04);
}
body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button svg{
  width:18px;height:18px;display:block;pointer-events:none;
}
body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button:hover,
body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button[aria-expanded="true"]{
  color:#0b74ae;border-color:#99c6e1;background:#f1f8fc;
}
@media (min-width:900px){
  body.assistant-social-body main.bas-v435.bas-wrap{
    box-sizing:border-box;width:calc(100% - 82px);max-width:none;
    min-width:0;margin:0 0 0 82px;
    padding:24px clamp(18px,2.8vw,44px) 80px;
  }
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-header,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-channels,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-settings-heading,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-connection-state,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-status,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-home,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-flow,
  body.assistant-social-body main.bas-v435.bas-wrap > .bas-channel-settings{
    box-sizing:border-box;width:100%;max-width:1400px;
    min-width:0;margin-left:auto;margin-right:auto;
  }
}
@media (max-width:899px){
  body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button{
    width:31px;height:31px;min-width:31px;
  }
}

/* IG Direct V4.40 - selectable goals, quick replies, error fallback */
.bas-v49 [data-social-dm-template-only][hidden],.bas-v49 [data-social-dm-ai-only][hidden],.bas-v49 [data-social-dm-legacy][hidden],.bas-v49 [data-social-dm-ai-fields][hidden]{display:none!important}
.bas-v49 .bas-dm-goals{display:grid;gap:10px;margin:15px 0}
.bas-v49 .bas-dm-goals label{display:flex;gap:12px;align-items:flex-start;border:1px solid #dbe4ee;padding:12px;background:#fff;border-radius:11px;cursor:pointer}
.bas-v49 .bas-dm-goals input{margin:4px 0 0;accent-color:#f47929;flex:none}
.bas-v49 .bas-dm-goals b{font-size:13px;display:block;color:#183b54}
.bas-v49 .bas-dm-goals small{font-size:12px;color:#617484;display:block;line-height:1.5;margin-top:4px}
.bas-v49 .bas-dm-custom-buttons{display:grid;gap:10px;margin-top:10px}
.bas-v49 .bas-dm-custom-button{border:1px solid #e1e8ed;border-radius:11px;padding:13px;background:#fbfcfd}
.bas-v49 .bas-dm-custom-button .bas-field{margin:0 0 8px}
.bas-v49 .bas-dm-failure-fallback{margin:15px 0;border:1px solid #e7eaf0;border-radius:12px;background:#f8fafc;padding:12px}

/* FB V1.4: stessi comandi del canale Instagram. */
.bas-home-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.bas-channel-container[data-social-channel-wrap="facebook"] .bas-gear-button{font-size:15px}
@media(max-width:720px){.bas-home-actions{width:100%;justify-content:stretch}.bas-home-actions button{flex:1}}

/* Facebook: il menu di collegamento non deve essere tagliato dalle card. */
.bas-v433 .bas-channel-container[data-social-channel-wrap="facebook"]{position:relative;overflow:visible}

/* FB V1.5: niente doppio riquadro quando la scheda Facebook è selezionata.
   Tiene il bordo arancione esterno senza aggiungerlo al pulsante interno. */
body.assistant-social-body .bas-v49 .bas-channels
.bas-channel-container[data-social-channel-wrap="facebook"]>button[data-social-tab="facebook"].is-selected {
  box-sizing:border-box; border:0; box-shadow:none; outline:0; background:transparent;
}
body.assistant-social-body .bas-v432 .bas-connection-state .bas-connection-hint-needs-setup {
  color:#9a551d; font-weight:650; max-width:640px;
}


/* V1.7: scheda e simulazione Facebook/Messenger, senza modificare Instagram. */
.bas-v49 [data-social-fb-connected-arrows][hidden],.bas-v49 [data-social-fb-avatar][hidden],.bas-v49 [data-social-fb-linked-fallback][hidden],.bas-v49 [data-social-fb-profile-picture][hidden],.bas-v49 [data-social-fb-profile-fallback][hidden]{display:none!important}
.bas-v49 .bas-linked-icons img[data-social-fb-avatar]{border-radius:50%;object-fit:cover;background:white}
.bas-v49 .bas-linked-icons img[data-social-fb-linked-fallback]{border-radius:50%;object-fit:cover;background:#fff;border:1px solid #d9e4ef}
.bas-v49 .bas-account-pic img[data-social-fb-profile-fallback]{width:34px;height:34px;object-fit:contain}
.bas-v49.is-facebook .bas-real-phone{background:#f7f9fc!important;color:#182638!important}
.bas-v49.is-facebook .bas-real-phone-top{background:#fff;color:#222d43;border-bottom:1px solid #e0e5ef}
.bas-v49.is-facebook .bas-real-phone-profile{background:#fff;border-bottom:1px solid #e2e9f0;color:#203451}
.bas-v49.is-facebook .bas-real-phone-profile b,.bas-v49.is-facebook .bas-phone-back-arrow{color:#1b65b7}
.bas-v49.is-facebook .bas-real-phone-post{background:#fff;color:#172738!important}
.bas-v49.is-facebook .bas-phone-photo{background:#ecf2f8;color:#45617b}
.bas-v49.is-facebook .bas-phone-caption,.bas-v49.is-facebook .bas-phone-view-comments,.bas-v49.is-facebook .bas-phone-post-date{color:#263c55}
.bas-v49.is-facebook .bas-phone-toolbar{color:#2472c6}
.bas-v49.is-facebook .bas-phone-comments{background:#f8fafd!important;color:#172738!important}
.bas-v49.is-facebook .bas-phone-comments h4{border-color:#dae5f0;color:#1f344b}
.bas-v49.is-facebook .bas-phone-comments .bas-comment-body p,.bas-v49.is-facebook .bas-phone-comments .bas-comment-body b{color:#263c55}
.bas-v49.is-facebook .bas-phone-comments .bas-ig-compose{background:#fff;border-color:#dce5ee;color:#728294}
.bas-v49.is-facebook .bas-real-phone .bas-phone-compose{background:#fff;border-color:#dce5ee;color:#6f7d91}
.bas-v49.is-facebook .bas-chat-bubble{background:#fff;color:#23354a;border:1px solid #e1e9f0}
.bas-v49.is-facebook .bas-chat-outgoing{background:#1674d1;color:#fff}
.bas-v49.is-facebook .bas-phone-chat{background:#f4f8ff;color:#203451}
.bas-v49.is-facebook .bas-real-phone-profile>img{background:#fff}
.bas-v49 .bas-fb-preview-notice{margin:12px 0 0;padding:11px 14px;border:1px solid #d8e7f6;border-radius:10px;background:#f5faff;color:#335e85;font-size:12px;line-height:1.55}
.bas-v49 .bas-fb-preview-notice[hidden]{display:none!important}

.bas-v49 .bas-fb-action-row[hidden]{display:none!important}
.bas-v49 .bas-fb-action-row{display:flex;justify-content:space-around;gap:6px;padding:9px 5px;color:#4267a3;background:#fff;font-size:10px;font-weight:750;border-top:1px solid #edf0f4;border-bottom:1px solid #e2e6ed}
.bas-v49.is-facebook .bas-real-phone-post .bas-phone-toolbar{padding:7px 7px 3px;min-height:0}
.bas-v49.is-facebook .bas-real-phone-post .bas-phone-toolbar>span:nth-child(n+3){display:none}
.bas-v49.is-facebook .bas-phone-comments .bas-phone-heart{color:#3167b6}

/* Facebook V1.8: il campo immobile non è un radio button. */
.bas-v49 .bas-flow-section .bas-select-options label.bas-post-property-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:14px;margin:0;background:#fbfcfe;border:0;border-top:1px solid #e7edf3;border-radius:0;cursor:text;font-size:12px;font-weight:700;color:#20374d}
.bas-v49 .bas-flow-section .bas-select-options label.bas-post-property-field input[name="immobile_reference"]{display:block;box-sizing:border-box;width:100%;max-width:100%;height:42px;flex:0 0 auto;margin:0;padding:10px 12px;border:1px solid #cfd7e0;border-radius:9px;background:#fff;color:#183249;font-size:13px;font-weight:400}
.bas-v49 .bas-flow-section .bas-select-options label.bas-post-property-field small{display:block;color:#6b7f90;font-size:11px;font-weight:400;line-height:1.55;margin:0}

/* V1.9 · Ricerca immobili proprietaria per Facebook e Instagram, senza URL manuali */
.bas-v49 .bas-post-property-field{display:flex;flex-direction:column;gap:9px;padding:14px;margin:0;background:#fbfcfe;border-top:1px solid #e7edf3;color:#20374d}
.bas-v49 .bas-post-property-field>label{font-weight:750;font-size:12px;cursor:default}
.bas-v49 .bas-post-property-field .bas-property-help{margin:0;color:#627b8c;font-size:11.5px;line-height:1.6}
.bas-v49 .bas-post-property-field input[data-social-property-search]{width:100%;box-sizing:border-box;border:1px solid #cfdbe8;border-radius:9px;background:white;padding:11px 13px;font:inherit;font-size:13px;min-height:43px;outline-color:#1772bf}
.bas-v49 .bas-property-results{max-height:290px;overflow-y:auto;background:white;border:1px solid #dce6f1;border-radius:11px;box-shadow:0 9px 25px rgba(26,51,76,.08)}
.bas-v49 .bas-property-results[hidden],.bas-v49 .bas-property-selected[hidden]{display:none!important}
.bas-v49 .bas-property-result{display:flex;align-items:center;gap:11px;width:100%;border:0;border-bottom:1px solid #edf1f6;background:white;color:#173247;padding:10px;text-align:left;cursor:pointer;font:inherit}
.bas-v49 .bas-property-result:hover,.bas-v49 .bas-property-result:focus-visible{background:#f3f8fe}
.bas-v49 .bas-property-result:last-child{border-bottom:0}
.bas-v49 .bas-property-result img,.bas-v49 .bas-property-no-image{width:72px;height:59px;flex:0 0 72px;border-radius:7px;object-fit:cover;background:#e9f0f6}
.bas-v49 .bas-property-result strong,.bas-v49 .bas-property-result small{display:block;line-height:1.35}
.bas-v49 .bas-property-result strong{font-size:12px;margin-bottom:3px}
.bas-v49 .bas-property-result small{font-size:11px;color:#627b8c;font-weight:400}
.bas-v49 .bas-property-empty{padding:12px;color:#657b8c;font-size:12px}
.bas-v49 .bas-property-selected{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:9px;border:1px solid #b7dfc8;background:#f0fff6;font-size:12px}
.bas-v49 .bas-property-selected button{flex:0 0 auto;background:white;border:1px solid #cbdde7;border-radius:7px;color:#1a537b;padding:7px 9px;cursor:pointer}

/* V2.0 — Schede dei quattro assistenti uniformi al catalogo Inbox canali. */
body.assistant-social-body .bas-v49 .bas-channels{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
body.assistant-social-body .bas-v49 .bas-channels>a,
body.assistant-social-body .bas-v49 .bas-channels>.bas-upcoming,
body.assistant-social-body .bas-v49 .bas-channels>.bas-channel-container{box-sizing:border-box;min-width:0;min-height:146px;border-radius:13px;border:1px solid #d9dfe5;box-shadow:none;overflow:visible}
body.assistant-social-body .bas-v49 .bas-channels>a:first-child{background:linear-gradient(137deg,#fff 52%,#eaf6fd 100%)}
body.assistant-social-body .bas-v49 .bas-channel-container[data-social-channel-wrap="instagram"]{background:linear-gradient(137deg,#fff 52%,#fcf0f8 100%)}
body.assistant-social-body .bas-v49 .bas-channel-container[data-social-channel-wrap="facebook"]{background:linear-gradient(137deg,#fff 52%,#eaf5ff 100%)}
body.assistant-social-body .bas-v49 .bas-channels>.bas-upcoming{background:linear-gradient(137deg,#fff 52%,#ecfaf0 100%);opacity:.82}
body.assistant-social-body .bas-v49 .bas-channels>.is-selected,
body.assistant-social-body .bas-v49 .bas-channel-container.is-selected{border:2px solid #ed792f;background:#fff8f3}
body.assistant-social-body .bas-v49 .bas-channel-container>button[data-social-tab]{min-height:142px;box-sizing:border-box;padding:22px 14px 16px;gap:7px}
body.assistant-social-body .bas-v49 .bas-channels>a:first-child img{display:block;width:118px;height:44px;max-width:100%;max-height:44px;object-fit:contain}
body.assistant-social-body .bas-v49 .bas-channels>a:first-child{padding:16px 12px;gap:7px}
body.assistant-social-body .bas-v49 .bas-channels .bas-upcoming{padding:16px 12px}
body.assistant-social-body .bas-v49 .bas-channels b{font-size:14px;color:#203e56}
body.assistant-social-body .bas-v49 .bas-channels small{font-size:11px;color:#688298;text-align:center}
body.assistant-social-body .bas-v49 .bas-channel-container .bas-profile-settings{top:9px;right:9px}
body.assistant-social-body .bas-v49 .bas-channel-container .bas-gear-button,
body.assistant-social-body .bas-v435 .bas-channel-container .bas-gear-button{width:auto;min-width:0;height:30px;padding:0 10px;font-size:11px;font-weight:750;line-height:1;background:#fff;color:#275575;border:1px solid #d3e0ec;border-radius:8px;white-space:nowrap;box-shadow:none;display:inline-flex;align-items:center;justify-content:center}
body.assistant-social-body .bas-v49 .bas-channel-container .bas-gear-button:hover,
body.assistant-social-body .bas-v49 .bas-channel-container .bas-gear-button[aria-expanded="true"]{background:#f0f8ff;border-color:#89b9d7;color:#126da5}
body.assistant-social-body .bas-v49 .bas-linked-icons{gap:5px;min-height:38px}
body.assistant-social-body .bas-v49 .bas-linked-icons img{width:32px;height:32px;min-width:32px;max-width:32px}
body.assistant-social-body .bas-v49 .bas-linked-icons img[data-social-fb-avatar]:not([hidden])~img[data-social-fb-linked-fallback]{display:none!important}
body.assistant-social-body .bas-v49 .bas-linked-icons img[data-social-channel-avatar]:not([hidden])~img[data-social-linked-fallback]{display:none!important}
body.assistant-social-body .bas-v49 .bas-flow-section .bas-post-property-field{padding:14px 13px;gap:10px}
body.assistant-social-body .bas-v49 .bas-post-property-field .bas-property-checkline{display:flex;flex-direction:row;align-items:center;gap:11px;margin:0;padding:0;font-size:12px;font-weight:750;cursor:pointer;line-height:1.45;color:#21394e}
body.assistant-social-body .bas-v49 .bas-post-property-field .bas-property-checkline input[type=checkbox]{flex:0 0 18px;min-width:18px;width:18px;height:18px;margin:0;accent-color:#e8752c;cursor:pointer}
body.assistant-social-body .bas-v49 .bas-property-checkline small{font-size:11px;color:#708397;font-weight:400;margin-left:4px}
body.assistant-social-body .bas-v49 [data-social-property-panel]{display:flex;flex-direction:column;gap:9px;padding-top:5px}
body.assistant-social-body .bas-v49 [data-social-property-panel][hidden]{display:none!important}
@media(max-width:750px){body.assistant-social-body .bas-v49 .bas-channels{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}body.assistant-social-body .bas-v49 .bas-channels>a,body.assistant-social-body .bas-v49 .bas-channels>.bas-upcoming,body.assistant-social-body .bas-v49 .bas-channels>.bas-channel-container{min-height:127px}body.assistant-social-body .bas-v49 .bas-channel-container>button[data-social-tab]{min-height:123px;padding:23px 10px 12px}body.assistant-social-body .bas-v49 .bas-channels>a:first-child img{width:104px;height:39px}body.assistant-social-body .bas-v49 .bas-channel-container .bas-profile-settings{top:6px;right:6px}body.assistant-social-body .bas-v49 .bas-channel-container .bas-gear-button{height:27px;padding:0 7px;font-size:10px}}


/* Bilocale Facebook V3.7: anteprima commenti CHIARA, anche senza foto/post.
   Sovrascrive soltanto gli stili Facebook; simulatore Instagram invariato. */
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-post-underlay {
  background: #e6eef8;
  color: #466280;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:11px;
  font-weight:600;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-post-underlay:empty::after {
  content:'Anteprima grafica · Seleziona un post per vedere la foto';
  display:block;
  max-width:180px;
  padding:8px;
  line-height:1.45;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-post-underlay img {
  opacity:.72;
  max-width:100%;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-comments-sheet {
  background:#fff;
  color:#1d2c40;
  border:1px solid #e2e9f2;
  border-bottom:0;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-sheet-handle {
  background:#b2c0ce;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-comments-sheet h4 {
  color:#263b53;
  border-bottom:1px solid #e6ecf3;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-comment-row>.bas-comment-body,
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-comment-row>.bas-comment-body p,
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-comment-row>.bas-comment-body b {
  color:#20374f;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-comment-row>.bas-comment-body small {
  color:#697b8d;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-phone-comments-bottom {
  background:#fff;
  border-top:1px solid #e5edf4;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-ig-compose {
  background:#fff;
  color:#6f8194;
  border-color:#dce5ee;
}
body.assistant-social-body .bas-v49.is-facebook .bas-phone-comments .bas-emoji-row {
  color:#304962;
}
