:root{--malc-bordeaux:#842d4e;--malc-bordeaux-dark:#6d213e;--malc-bg:#f8f3ea;--malc-card:#fffdfa;--malc-text:#302b28;--malc-muted:#746b64;--malc-border:#e2d8cb;--malc-gold:#9a7a3f;--malc-soft:#f2ebe2}
.malc-az-pilot{margin:0 0 12px;padding:15px 15px 14px;border:1px solid rgba(132,45,78,.14);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(255,248,240,.72));box-shadow:0 5px 18px rgba(47,36,24,.035);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.malc-az-pilot-top{display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;align-items:center}.malc-az-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:13px;background:rgba(132,45,78,.08);color:var(--malc-bordeaux);font-size:19px}.malc-az-pilot h3{margin:0;color:var(--malc-text);font-size:14px;line-height:1.25}.malc-az-pilot p{margin:4px 0 0;color:var(--malc-muted);font-size:12.3px;line-height:1.46}.malc-az-open{appearance:none;width:100%;min-height:44px;margin-top:12px;border:0;border-radius:999px;background:var(--malc-bordeaux);color:#fff;font-size:12.4px;font-weight:850;cursor:pointer;box-shadow:0 5px 14px rgba(132,45,78,.12)}.malc-az-privacy{margin-top:9px!important;font-size:10.4px!important;line-height:1.45!important;color:#8a8179!important}.malc-az-privacy a{color:var(--malc-bordeaux);text-decoration:underline;text-underline-offset:2px}

.malc-az-inline{margin:14px 0 1px;padding:11px 12px 12px;border-top:1px solid rgba(154,122,63,.16);background:rgba(255,248,240,.42);border-radius:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.malc-az-inline-copy strong{display:block;margin:0;color:var(--malc-text);font-size:11.7px;line-height:1.3}.malc-az-inline-copy span{display:block;margin-top:2px;color:var(--malc-muted);font-size:10.7px;line-height:1.42}.malc-az-inline-open{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:8px;padding:7px 11px;border:1px solid rgba(132,45,78,.17);border-radius:999px;background:rgba(132,45,78,.07);color:var(--malc-bordeaux);font:inherit;font-size:10.7px;font-weight:850;cursor:pointer}.malc-az-inline-open:hover,.malc-az-inline-open:focus-visible{border-color:rgba(132,45,78,.34);background:rgba(132,45,78,.11)}
html.mga-readable .malc-az-inline-copy strong{font-size:13px}html.mga-readable .malc-az-inline-copy span{font-size:12px}html.mga-readable .malc-az-inline-open{min-height:38px;font-size:12px}
html.mga-readable .malc-az-pilot h3{font-size:15.5px}html.mga-readable .malc-az-pilot p{font-size:13.6px}html.mga-readable .malc-az-open{min-height:49px;font-size:13.8px}html.mga-readable .malc-az-privacy{font-size:11.8px!important}
.malc-overlay{position:fixed;inset:0;z-index:2147483000;display:flex;justify-content:center;align-items:stretch;background:rgba(25,19,16,.22);backdrop-filter:blur(2px)}.malc-chat{position:relative;display:flex;flex-direction:column;width:min(100%,520px);height:100dvh;max-height:100dvh;background:var(--malc-bg);color:var(--malc-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 0 45px rgba(28,20,17,.18)}
.malc-head{display:flex;align-items:center;gap:11px;min-height:68px;padding:10px 12px 10px 15px;border-bottom:1px solid var(--malc-border);background:rgba(255,253,250,.96);backdrop-filter:blur(10px)}.malc-head-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:13px;background:var(--malc-bordeaux);color:#fff;font:700 17px/1 Georgia,serif}.malc-head-copy{flex:1;min-width:0}.malc-head-copy strong{display:block;font:600 17px/1.15 Georgia,serif}.malc-head-copy small{display:flex;align-items:center;gap:5px;margin-top:3px;color:var(--malc-muted);font-size:10.5px}.malc-head-copy small:before{content:'';width:6px;height:6px;border-radius:50%;background:#3d8a58}.malc-head-btn{appearance:none;border:0;background:transparent;color:var(--malc-bordeaux);font-size:12px;font-weight:800;cursor:pointer;padding:8px}.malc-close{font-size:25px;line-height:1;padding:5px 7px}
.malc-messages{flex:1;min-height:0;overflow:auto;padding:17px 13px 12px;scroll-behavior:smooth}.malc-msg{display:flex;margin:0 0 12px}.malc-msg.is-user{justify-content:flex-end}.malc-bubble{max-width:88%;padding:11px 13px;border-radius:16px;background:#fff;border:1px solid rgba(154,122,63,.13);font-size:13.1px;line-height:1.52;box-shadow:0 3px 11px rgba(47,36,24,.025)}.malc-msg.is-user .malc-bubble{background:var(--malc-bordeaux);border-color:var(--malc-bordeaux);color:#fff;border-bottom-right-radius:5px}.malc-msg.is-assistant .malc-bubble{border-bottom-left-radius:5px}.malc-bubble p{margin:0 0 8px}.malc-bubble p:last-child{margin-bottom:0}.malc-bubble strong{font-weight:800}.malc-bubble ul{margin:6px 0 0;padding-left:18px}.malc-bubble li{margin:3px 0}.malc-meta-links{display:grid;gap:7px;margin:7px 0 13px 0}.malc-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid rgba(132,45,78,.17);border-radius:13px;background:rgba(255,255,255,.62);color:var(--malc-bordeaux);font-size:11.5px;font-weight:850;text-decoration:none}.malc-link.is-tip{border-style:dashed;background:transparent}.malc-sources{display:flex;flex-wrap:wrap;gap:4px 8px;margin:-4px 2px 13px;color:#8a817a;font-size:9.8px;line-height:1.4}.malc-sources a{color:#81776e;text-decoration:none}.malc-feedback{display:flex;align-items:center;gap:5px;margin:-5px 0 13px 3px;color:#918880;font-size:9.7px}.malc-feedback button{appearance:none;border:1px solid #e4dbd0;background:#fff;border-radius:999px;padding:4px 7px;cursor:pointer;font-size:11px}.malc-feedback button.is-active{border-color:var(--malc-bordeaux);color:var(--malc-bordeaux)}
.malc-starters{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:4px 0 14px}.malc-starters button{appearance:none;min-height:40px;padding:8px 9px;border:1px solid rgba(132,45,78,.14);border-radius:12px;background:rgba(255,255,255,.60);color:var(--malc-bordeaux);font-size:10.7px;line-height:1.25;font-weight:800;cursor:pointer}.malc-intro-note{margin:0 0 14px;padding:11px 12px;border-radius:13px;background:rgba(154,122,63,.07);color:#786d61;font-size:10.4px;line-height:1.45}.malc-intro-note a{color:var(--malc-bordeaux);font-weight:800}
.malc-compose{padding:9px 11px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--malc-border);background:rgba(255,253,250,.98)}.malc-compose-row{display:grid;grid-template-columns:minmax(0,1fr) 43px;gap:7px;align-items:end}.malc-input{box-sizing:border-box;width:100%;max-height:115px;min-height:43px;resize:none;padding:11px 12px;border:1px solid #d8cfc5;border-radius:15px;background:#fff;color:var(--malc-text);font:13px/1.4 inherit;outline:none}.malc-input:focus{border-color:rgba(132,45,78,.55);box-shadow:0 0 0 3px rgba(132,45,78,.06)}.malc-send{appearance:none;width:43px;height:43px;border:0;border-radius:14px;background:var(--malc-bordeaux);color:#fff;font-size:18px;font-weight:900;cursor:pointer}.malc-send:disabled{opacity:.45;cursor:default}.malc-compose-foot{display:flex;justify-content:space-between;gap:8px;margin:6px 3px 0;color:#958d86;font-size:8.8px}.malc-compose-foot button{appearance:none;border:0;background:transparent;color:#8e746f;text-decoration:underline;cursor:pointer;font:inherit;padding:0}.malc-typing{display:inline-flex;gap:4px;align-items:center}.malc-typing i{width:5px;height:5px;border-radius:50%;background:#aa9f96;animation:malc-pulse 1s infinite}.malc-typing i:nth-child(2){animation-delay:.15s}.malc-typing i:nth-child(3){animation-delay:.3s}@keyframes malc-pulse{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
.malc-handoff{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;background:rgba(30,23,20,.30)}.malc-handoff-card{width:100%;max-height:92%;overflow:auto;padding:18px 15px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fffdfa;box-shadow:0 -12px 32px rgba(20,15,13,.15)}.malc-handoff-card h3{margin:0 0 7px;font:600 20px/1.2 Georgia,serif}.malc-handoff-card p{margin:0 0 13px;color:var(--malc-muted);font-size:12px;line-height:1.5}.malc-handoff-card label{display:block;margin:9px 0;color:#5e554e;font-size:10px;font-weight:800}.malc-handoff-card input,.malc-handoff-card textarea{box-sizing:border-box;width:100%;margin-top:4px;padding:10px 11px;border:1px solid #ddd3c8;border-radius:11px;background:#fff;font:13px/1.4 inherit}.malc-handoff-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.malc-handoff-actions button{min-height:42px;border:1px solid rgba(132,45,78,.18);border-radius:999px;background:#fff;color:var(--malc-bordeaux);font-size:11.4px;font-weight:850;cursor:pointer}.malc-handoff-actions .is-primary{background:var(--malc-bordeaux);color:#fff;border-color:var(--malc-bordeaux)}
.malc-preview-page{margin:0;background:#ded9d2;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.malc-preview-wrap{min-height:100vh;display:grid;place-items:center;padding:28px}.malc-preview-note{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:20;display:flex;gap:10px;align-items:center;padding:7px 11px;border-radius:999px;background:#211c19;color:#fff;font-size:10px;box-shadow:0 4px 14px rgba(0,0,0,.18)}.malc-preview-note span{color:#d7cec6}.malc-preview-wrap #malc-preview-root{width:min(100%,520px);height:min(820px,calc(100vh - 80px));min-height:620px}.malc-preview-wrap .malc-chat{position:relative;height:100%;max-height:none;border-radius:21px;overflow:hidden}.malc-preview-wrap .malc-overlay{position:relative;inset:auto;width:100%;height:100%;background:transparent;backdrop-filter:none}.malc-preview-wrap .malc-close{display:none}
@media(max-width:560px){.malc-preview-wrap{padding:0}.malc-preview-note{top:5px;max-width:90%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.malc-preview-wrap #malc-preview-root{width:100%;height:100dvh;min-height:0}.malc-preview-wrap .malc-chat{border-radius:0}}
/* Unified v0.16.0: app consent + desktop website launcher/panel */
.malc-consent-gate{position:absolute;inset:0;z-index:8;display:flex;align-items:flex-end;background:rgba(30,23,20,.34);backdrop-filter:blur(2px)}
.malc-consent-card{width:100%;padding:20px 16px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:#fffdfa;box-shadow:0 -12px 32px rgba(20,15,13,.17)}
.malc-consent-card h3{margin:0 0 8px;font:600 20px/1.2 Georgia,serif;color:var(--malc-text)}
.malc-consent-card p{margin:0 0 11px;color:var(--malc-muted);font-size:12px;line-height:1.55}.malc-consent-card a{color:var(--malc-bordeaux);font-weight:800}
.malc-consent-card button{appearance:none;width:100%;min-height:44px;border:0;border-radius:999px;background:var(--malc-bordeaux);color:#fff;font-size:12.5px;font-weight:850;cursor:pointer}
.malc-launcher{position:fixed;right:20px;bottom:var(--malc-launcher-bottom,88px);z-index:2147482500;width:66px;height:66px;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--malc-bordeaux),var(--malc-bordeaux-dark));color:#fff;box-shadow:0 14px 36px rgba(55,28,39,.28);cursor:pointer}
.malc-launcher svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.malc-launcher>span{position:absolute;right:3px;top:3px;display:grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:999px;background:#f0dfba;color:var(--malc-bordeaux-dark);font-size:8px;font-weight:900;border:2px solid var(--malc-bordeaux)}
.malc-overlay.is-website{inset:auto;right:20px;bottom:calc(var(--malc-launcher-bottom,88px) + 80px);width:446px;height:min(700px,calc(100vh - 120px));background:transparent;backdrop-filter:none;justify-content:stretch;align-items:stretch;pointer-events:none}
.malc-overlay.is-website .malc-chat{width:100%;height:100%;max-height:none;border-radius:22px;overflow:hidden;box-shadow:0 26px 70px rgba(35,20,27,.25);border:1px solid rgba(80,48,60,.12);pointer-events:auto}
.malc-overlay.is-website .malc-close{display:block}
@media(max-width:720px){
  .malc-launcher{right:15px;bottom:var(--malc-launcher-bottom,88px);width:60px;height:60px}
  .malc-overlay.is-website{position:fixed;inset:0;width:auto;height:auto;background:rgba(25,19,16,.22);backdrop-filter:blur(2px);pointer-events:auto}
  .malc-overlay.is-website .malc-chat{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
}
