/* Preview-only styles: integration map + stand-in chat. Remove the <link> (or set preview:false) at launch; harmless either way. */
:root{--sys-cortico:#0E7490;--sys-pf:#15803D;--sys-ghl:#7C3AED;--sys-todo:#B45309;--pv-bottom:20px}
@media(max-width:760px){:root{--pv-bottom:84px}}
.pv-toggle{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(var(--pv-bottom) + env(safe-area-inset-bottom,0px));z-index:90;display:flex;align-items:center;gap:8px;padding:9px 14px 9px 10px;border-radius:999px;border:1px solid rgba(124,58,237,.35);background:#fff;color:#0F1A2E;font:600 13px/1 system-ui,-apple-system,Segoe UI,sans-serif;box-shadow:0 6px 24px rgba(15,26,46,.18);cursor:pointer}
.pv-toggle i{width:30px;height:18px;border-radius:999px;background:#CBD5E1;position:relative;transition:background .2s}
.pv-toggle i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .2s}
body.pv-on .pv-toggle i{background:var(--sys-ghl)}
body.pv-on .pv-toggle i::after{transform:translateX(12px)}
.pv-legend{display:none;position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(var(--pv-bottom) + 48px + env(safe-area-inset-bottom,0px));z-index:90;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:#fff;box-shadow:0 6px 24px rgba(15,26,46,.18);font:600 12px/1.2 system-ui,-apple-system,sans-serif;color:#0F1A2E}
body.pv-on .pv-legend{display:flex}
.pv-legend b{display:flex;align-items:center;gap:8px;font-weight:600}
.pv-legend b::before{content:"";width:12px;height:12px;border-radius:3px}
.pv-legend .lc::before{background:var(--sys-cortico)}.pv-legend .lp::before{background:var(--sys-pf)}.pv-legend .lg::before{background:var(--sys-ghl)}.pv-legend .lt::before{background:var(--sys-todo)}
body.pv-on [data-int]{outline:2px dashed var(--sys-ghl)!important;outline-offset:3px;position:relative}
body.pv-on [data-int]::before{content:attr(data-int);position:absolute;z-index:60;top:-12px;left:8px;padding:3px 8px;border-radius:6px;background:var(--sys-ghl);color:#fff;font:700 10.5px/1.2 system-ui,-apple-system,sans-serif;white-space:nowrap;pointer-events:none;text-transform:none;letter-spacing:0}
body.pv-on [data-int^="Cortico"]{outline-color:var(--sys-cortico)!important}
body.pv-on [data-int^="Cortico"]::before{background:var(--sys-cortico)}
body.pv-on [data-int^="Practice Fusion"]{outline-color:var(--sys-pf)!important}
body.pv-on [data-int^="Practice Fusion"]::before{background:var(--sys-pf)}
body.pv-on [data-todo]{outline:2px dashed var(--sys-todo)!important;outline-offset:3px;position:relative}
body.pv-on [data-todo]::before{content:"Needed from FMC · " attr(data-todo);position:absolute;z-index:60;top:-12px;left:8px;padding:3px 8px;border-radius:6px;background:var(--sys-todo);color:#fff;font:700 10.5px/1.2 system-ui,-apple-system,sans-serif;white-space:nowrap;pointer-events:none;text-transform:none;letter-spacing:0}

.pv-chat-btn{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(var(--pv-bottom) + env(safe-area-inset-bottom,0px));z-index:90;width:56px;height:56px;border-radius:50%;border:0;background:#0870B8;color:#fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(15,26,46,.28);cursor:pointer}
.pv-chat-btn svg{width:26px;height:26px}
.pv-chat{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(var(--pv-bottom) + 70px + env(safe-area-inset-bottom,0px));z-index:91;width:min(340px,calc(100vw - 32px));background:#fff;color:#0F1A2E;border-radius:16px;box-shadow:0 20px 50px rgba(15,26,46,.3);overflow:hidden;font:400 14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
.pv-chat header{background:#0870B8;color:#fff;padding:14px 16px;display:flex;gap:10px;align-items:center}
.pv-chat header img{width:34px;height:34px;border-radius:50%;background:#fff;object-fit:contain;padding:3px}
.pv-chat header strong{display:block;font-size:14px}.pv-chat header span{font-size:12px;opacity:.85}
.pv-chat .body{padding:14px 16px;background:#F6F8FB}
.pv-chat .msg{background:#fff;border:1px solid #E3E8EF;border-radius:12px 12px 12px 4px;padding:10px 12px;max-width:88%}
.pv-chat form{display:grid;gap:8px;padding:12px 16px 16px}
.pv-chat input{font:inherit;padding:10px 12px;border:1px solid #D5DCE6;border-radius:10px;width:100%}
.pv-chat button[type=submit]{font:600 14px/1 system-ui,sans-serif;padding:11px;border:0;border-radius:10px;background:#0870B8;color:#fff;cursor:pointer}
.pv-chat .note{font-size:11.5px;color:#5B6576;padding:0 16px 14px}
