/* Isolated assistant preview; inherits the Working Coast palette and fonts. */
.msai-launch{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:20;display:flex;align-items:center;gap:12px;max-width:calc(100% - 32px);min-height:52px;padding:12px 20px;border:1px solid var(--ink);border-radius:30px;background:var(--ink);color:#fff;font:600 16px/1.4 Inter,Arial,sans-serif;box-shadow:0 5px 20px #12303b33}
.msai-launch[hidden]{display:none}
.msai-launch small{font-size:12px;color:#bde1d9;font-weight:500}
.msai-dialog{position:fixed;inset:auto 24px 24px auto;margin:0;width:440px;max-width:calc(100% - 32px);height:720px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #71918c;border-radius:12px;background:var(--paper);color:var(--ink);box-shadow:0 12px 48px #102d3c55;overflow:hidden;font:16px/1.6 Inter,Arial,sans-serif}
.msai-dialog[open]{display:flex;flex-direction:column}
.msai-dialog::backdrop{background:#102d3c55}
.msai-head{display:flex;align-items:center;gap:12px;padding:16px;background:var(--ink);color:white;flex:none}
.msai-head img{width:38px;height:34px;object-fit:contain}
.msai-head h2{font-size:21px;letter-spacing:-.4px;line-height:1.3}
.msai-head small{display:block;color:#c0e0d8;font-size:13px;margin-top:4px}
.msai-close{margin-left:auto;background:transparent;color:white;border:1px solid #9dbeb8;border-radius:5px;min-height:44px;padding:8px 12px;font-size:14px}
.msai-notice{font-size:14px;line-height:1.55;background:#e5ede7;padding:12px 18px;margin:0;flex:none}
.msai-chat,.msai-review{min-height:0;display:flex;flex-direction:column;flex:1;overflow:hidden}
.msai-dialog [hidden]{display:none!important}
.msai-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px;scroll-behavior:auto}
.msai-message{padding:12px 14px;border:1px solid #d0ddd3;border-radius:8px;background:#fffdf6;margin-bottom:14px;overflow-wrap:anywhere;white-space:pre-wrap}
.msai-message[data-role=user]{background:#e0eeea;margin-left:22px}
.msai-message strong{display:block;font-size:13px;color:#345b5e;margin-bottom:6px}
.msai-message p{font-size:16px;line-height:1.6}
.msai-quick{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.msai-quick button,.msai-secondary{min-height:44px;border:1px solid #8caaa1;border-radius:6px;background:transparent;color:var(--ink);font:600 14px/1.4 Inter,Arial,sans-serif;padding:9px 12px}
.msai-compose{padding:12px 18px;border-top:1px solid var(--line);flex:none;margin:0}
.msai-compose label,.msai-review label{font-size:16px;font-weight:600;margin:0}
.msai-compose textarea,.msai-review textarea,.msai-review select{font:400 16px/1.5 Inter,Arial,sans-serif;margin:6px 0 10px;width:100%;min-width:0;resize:none;background:#fafaf5;color:var(--ink);border:1px solid #9db6a9;padding:10px 12px;border-radius:5px}
.msai-compose textarea{height:76px}
.msai-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.msai-dialog .msai-primary{background:var(--coral);border:1px solid transparent;border-radius:28px;min-height:48px;padding:10px 20px;color:var(--ink);font:650 16px/1.5 Inter,Arial,sans-serif;max-width:100%}
.msai-next{margin:0 18px 14px;flex:none}
.msai-review{overflow-y:auto;padding:18px;gap:12px}
.msai-review h3{font-size:23px}
.msai-review p{font-size:14px;line-height:1.6}
.msai-review textarea{min-height:180px;resize:vertical}
.msai-review select{min-height:48px}
.msai-status{font-size:14px;color:#80391f;margin:0;overflow-wrap:anywhere}
.msai-inline{display:block;min-height:48px;margin:0 0 22px;padding:10px 16px;border:1px solid #71918c;border-radius:5px;background:#e0eeea;color:var(--ink);font:600 16px/1.5 Inter,Arial,sans-serif}
.msai-draft-note{font-size:14px;padding:12px;border-left:3px solid var(--teal);background:#e0eeea;margin-bottom:18px}
@media(max-width:600px){.msai-launch{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.msai-dialog{inset:max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom));width:calc(100% - 16px);max-width:none;height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:none}.msai-head{padding:12px}.msai-head img{width:30px}.msai-head h2{font-size:20px}.msai-compose{padding:10px 14px}.msai-messages{padding:14px}.msai-next{margin:0 14px 12px}}
@media(max-height:600px){.msai-notice{display:none}.msai-head{padding:8px 12px}.msai-compose{padding:8px 12px}.msai-compose textarea{height:56px}.msai-compose label{font-size:14px}.msai-next{margin-bottom:8px}.msai-dialog .msai-primary,.msai-secondary{min-height:44px}}
