/* Magia Smart 1.4.75 (magic.js) */
.mg-panel{display:flex;flex-direction:column;gap:14px}
.mg-intro{margin:0;padding:12px 14px;border-radius:12px;background:linear-gradient(135deg,#fdf2f8,#f5f3ff);font-size:13px;color:#4b4360;line-height:1.55}
.mg-toolbar{display:flex;justify-content:flex-end}
.mg-run-button{background:linear-gradient(135deg,#ec4899,#8b5cf6)!important;border:0!important;color:#fff!important}
.mg-runs{display:flex;flex-direction:column;gap:12px}
.mg-run{border:1px solid #ece6f6;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.mg-run.latest{border-color:#c4b5fd;box-shadow:0 10px 24px -14px #8b5cf6}
.mg-run header{display:flex;gap:10px;align-items:center}.mg-run header small{display:block;color:#8a7e9e;font-size:11.5px}
.mg-spark{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:linear-gradient(135deg,#ec4899,#8b5cf6);color:#fff;font-size:15px}
.mg-numbers{display:flex;flex-wrap:wrap;gap:8px}.mg-numbers span{padding:4px 10px;border-radius:99px;background:#f5f2fb;font-size:12px;color:#5f5674}.mg-numbers b{color:#2a1d40;margin-left:4px}
.mg-summary{margin:0;font-size:14px;color:#2a1d40;line-height:1.55}
.mg-alerts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.mg-alerts li{display:flex;gap:8px;align-items:baseline;font-size:13px;color:#3d3352;padding:8px 10px;border-radius:10px;background:#faf8fd}
.mg-alerts li span{padding:1px 8px;border-radius:99px;font-size:11px;font-weight:800}
.mg-alerts li.bad span{background:#fdecec;color:#991b1b}.mg-alerts li.warn span{background:#fff6e5;color:#92400e}.mg-alerts li.info span{background:#eaf3fb;color:#0e5f8f}
.mg-alerts em{font-style:normal;color:#8a7e9e}
.mg-run h4{margin:4px 0 0;font-size:13px;color:#2a1d40}
.mg-actions{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.mg-actions li{border:1px solid #ece6f6;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.mg-actions li.sent{background:#f3fbf6}.mg-actions li.discarded{opacity:.7}
.mg-action-head{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.mg-actions small{color:#8a7e9e;font-size:11.5px}
.mg-status{padding:1px 8px;border-radius:99px;font-size:11px;font-weight:800;background:#f2f0f6;color:#5f5674}.mg-status.sent{background:#e9f8ef;color:#166534}.mg-status.suggested{background:#f3e8ff;color:#6b21a8}
.mg-actions textarea{width:100%;border:1px solid #ddd5ec;border-radius:10px;padding:8px 10px;font:inherit;font-size:13px;resize:vertical}
.mg-action-buttons{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.mg-sent{margin:0;font-size:13px;color:#2a1d40}
.mg-hint{margin:0;font-size:12.5px;color:#8a7e9e}
.mg-error{margin:0;padding:8px 12px;border-radius:10px;background:#fff1f0;color:#9f1d14;font-size:13px}
.mg-settings{padding:20px;display:flex;flex-direction:column;gap:14px;max-width:820px}
.mg-switch{display:flex!important;flex-direction:row!important;gap:10px;align-items:flex-start;cursor:pointer}.mg-switch input{margin-top:3px;accent-color:#8b5cf6;width:16px;height:16px}
.mg-switch small{display:block;color:#8a7e9e;font-size:11.5px;margin-top:2px}
.mg-settings textarea{width:100%}.mg-settings .cp-button{align-self:flex-start}
/* 1.4.77: Configurar minha Magia inside the panel */
.mg-toolbar{gap:8px;flex-wrap:wrap}
.mg-mine{border:1px solid #ece6f8;border-radius:14px;background:#fcfbff;margin-top:10px}
.mg-mine[hidden]{display:none}
.mg-mine .mg-settings{padding:16px;max-width:none}
.mg-mine h4{margin:0;font-size:15px;color:#25136c}
.mg-mine label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#2c166e;font-weight:600}
.mg-mine textarea{border:1px solid #dcd5f1;border-radius:9px;padding:9px 10px;font:inherit;font-weight:400;box-sizing:border-box}
.mg-settings-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mg-settings-actions .cp-button{align-self:auto}
.mg-inherited{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:6px 10px;color:#78350f}
@media (max-width:650px){.mg-toolbar .cp-button,.mg-settings-actions .cp-button{flex:1 1 auto;justify-content:center}}
