html[data-crm-ui="v2"] .crm-v2-ai .apw { --apw-line:var(--border-color,#dce2eb); --apw-surface:var(--bg-card,#fff); --apw-muted:var(--text-secondary,#667085); color:var(--text-primary,#182230); min-width:0; }
html[data-crm-ui="v2"] .crm-v2-ai .apw *, html[data-crm-ui="v2"] .apw-overlay * { box-sizing:border-box; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-head { display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw h2 { margin:0 0 6px;font-size:23px;letter-spacing:-.4px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw h3 { margin:22px 0 12px;font-size:17px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw p { line-height:1.6;overflow-wrap:anywhere; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-head p, html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-help { margin:4px 0 14px;color:var(--apw-muted);font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw button,html[data-crm-ui="v2"] .apw-overlay button { min-height:44px;border:1px solid var(--apw-line,#dce2eb);border-radius:9px;padding:10px 15px;background:var(--apw-surface,#fff);color:inherit;font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:normal;overflow-wrap:anywhere; }
html[data-crm-ui="v2"] .crm-v2-ai .apw button.primary,html[data-crm-ui="v2"] .apw-overlay button.primary { background:var(--primary,#00707F);border-color:var(--primary,#00707F);color:var(--brand-on-accent,#fff); }
html[data-crm-ui="v2"] .crm-v2-ai .apw button:disabled { opacity:.55;cursor:not-allowed; }
html[data-crm-ui="v2"] .crm-v2-ai .apw button:focus-visible,html[data-crm-ui="v2"] .crm-v2-ai .apw input:focus-visible,html[data-crm-ui="v2"] .crm-v2-ai .apw textarea:focus-visible,html[data-crm-ui="v2"] .crm-v2-ai .apw select:focus-visible,html[data-crm-ui="v2"] .apw-overlay button:focus-visible { outline:3px solid var(--border-focus,var(--brand-link,#00707F));outline-offset:2px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master-detail { display:grid;grid-template-columns:minmax(180px,250px) minmax(0,1fr);gap:22px;align-items:start; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master { display:flex;flex-direction:column;gap:9px;min-width:0; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master button { text-align:left;padding:15px;min-width:0; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master strong,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master small { display:block;overflow-wrap:anywhere; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master small { color:var(--apw-muted);font-weight:400;margin-top:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master [aria-current="true"] { border-color:var(--brand-link,#00707F);background:color-mix(in srgb,var(--brand-link,#00707F) 7%,var(--apw-surface,var(--bg-card,#fff))); }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-detail,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-wizard,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-rule-preview,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-test-config,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-response,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-explanation,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-feedback:not(:empty) { background:var(--apw-surface);border:1px solid var(--apw-line);border-radius:13px;padding:22px;min-width:0; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-field { display:flex;flex-direction:column;gap:7px;margin-bottom:17px;min-width:0;font-size:13px;font-weight:600; }
html[data-crm-ui="v2"] .crm-v2-ai .apw input:not([type="checkbox"]),html[data-crm-ui="v2"] .crm-v2-ai .apw select,html[data-crm-ui="v2"] .crm-v2-ai .apw textarea { display:block;width:100%;max-width:100%;min-width:0;min-height:44px;padding:11px 12px;border:1px solid var(--apw-line);border-radius:8px;background:var(--apw-surface);color:inherit;font:inherit;font-weight:400; }
html[data-crm-ui="v2"] .crm-v2-ai .apw textarea { min-height:90px;resize:vertical;line-height:1.6; }
html[data-crm-ui="v2"] .crm-v2-ai .apw fieldset { min-width:0;margin:14px 0 20px;padding:17px;border:1px solid var(--apw-line);border-radius:10px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw legend { font-weight:600;padding:0 6px;font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-check { display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;overflow-wrap:anywhere; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-check input { width:17px;height:17px;flex-shrink:0;accent-color:var(--primary,#00707F); }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-channels { display:flex;flex-wrap:wrap;gap:4px 20px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:18px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-notice { background:color-mix(in srgb,var(--brand-link,#00707F) 9%,var(--apw-surface,var(--bg-card,#fff)));border-left:3px solid var(--brand-link,#00707F);border-radius:6px;padding:12px 15px;font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-steps { display:flex;gap:24px;flex-wrap:wrap;padding:15px 22px 15px 40px;background:color-mix(in srgb,var(--brand-link,#00707F) 6%,var(--apw-surface,var(--bg-card,#fff)));border-radius:10px;margin-bottom:22px;font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-drafts { margin-top:24px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw [data-apw-drafts] { display:flex;flex-wrap:wrap;gap:9px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-rule-preview { margin-top:25px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-match { padding:12px 0;border-top:1px solid var(--apw-line);font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-match span { font-weight:700;color:var(--brand-link,#00707F); }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-test-result { display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:18px;margin-top:20px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-response p { white-space:pre-wrap; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-feedback { grid-column:1 / -1; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-explanation { font-size:13px; }
html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-explanation summary { cursor:pointer;font-weight:700; }
html[data-crm-ui="v2"] .crm-v2-ai .apw li { overflow-wrap:anywhere; }
html[data-crm-ui="v2"] .crm-v2-ai .apw pre { white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px; }
html[data-crm-ui="v2"] .apw-overlay { position:fixed;inset:0;z-index:13000;background:rgba(15,23,42,.5);display:flex;align-items:center;justify-content:center;padding:20px;color:var(--text-primary,#182230); }
html[data-crm-ui="v2"] .apw-dialog { width:min(100%,440px);max-height:90vh;overflow:auto;background:var(--bg-card,#fff);border:1px solid var(--border-color,#dce2eb);border-radius:14px;padding:25px;box-shadow:0 24px 80px rgba(0,0,0,.2); }
html[data-crm-ui="v2"] .apw-dialog .apw-actions { display:flex;justify-content:flex-end;gap:10px;margin-top:20px; }
html[data-crm-ui="v2"][data-theme="dark"] .crm-v2-ai .apw,html[data-crm-ui="v2"] [data-theme="dark"] .crm-v2-ai .apw { --apw-line:#344054;--apw-surface:#1d2939;--apw-muted:#b1bdcf;color:#eef2f6; }
@media(max-width:900px) { html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master-detail { grid-template-columns:180px minmax(0,1fr);gap:14px; } }
@media(max-width:650px) { html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-head { flex-direction:column;gap:10px; } html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master-detail,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-grid,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-test-result { grid-template-columns:minmax(0,1fr); } html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master { flex-direction:row;overflow-x:auto;padding-bottom:6px; } html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-master button { min-width:150px;max-width:210px; } html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-detail,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-wizard,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-rule-preview,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-test-config,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-response,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-explanation,html[data-crm-ui="v2"] .crm-v2-ai .apw .apw-feedback:not(:empty) { padding:16px; } }
