/* Sally chat widget. Clinic navy #1c3e7b. */
.sally-launch{position:fixed;right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:9999;display:block;width:210px;background:none;border:0;padding:0;cursor:pointer;filter:drop-shadow(0 4px 10px rgba(0,0,0,.22));transition:transform .15s}
.sally-launch img{display:block;width:100%;height:auto}
.sally-launch:hover{transform:scale(1.04)}.sally-launch:focus-visible{outline:3px solid #1c3e7b;outline-offset:4px;border-radius:12px}
.sally-launch[aria-expanded="true"]{display:none}
.sally-panel{position:fixed;right:calc(20px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px));z-index:9999;width:360px;max-width:calc(100vw - 32px);height:520px;max-height:calc(100vh - 120px);display:flex;flex-direction:column;background:#fff;color:#16223a;border:1px solid #d5dce7;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.25);overflow:hidden;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.sally-panel[hidden]{display:none}
.sally-inline .sally-panel{position:static;width:100%;max-width:420px;height:560px;max-height:none;box-shadow:none}
.sally-head{background:#1c3e7b;color:#fff;padding:12px 14px;display:flex;align-items:center;gap:10px}
.sally-head .sally-av{width:40px;height:40px;border-radius:50%;background:#fff;border:2px solid #fff;flex:none}
.sally-head b{display:block}.sally-head small{opacity:.85}
.sally-head .sally-close{margin-left:auto;background:none;border:0;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}
.sally-msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:#f6f8fb}
.sally-msg{max-width:88%;padding:8px 11px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere}
.sally-msg.bot{background:#fff;border:1px solid #e1e7ef;align-self:flex-start;border-bottom-left-radius:4px}
.sally-msg.me{background:#1c3e7b;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.sally-msg a{color:#1c3e7b;font-weight:600;text-decoration:underline}
.sally-note{font-size:11.5px;color:#5b6780;padding:6px 12px;border-top:1px solid #e1e7ef}
.sally-form{display:flex;gap:6px;padding:8px;border-top:1px solid #e1e7ef}
.sally-form input{flex:1;min-width:0;padding:9px 10px;border:1px solid #cfd7e3;border-radius:8px;font:inherit;color:#16223a;background:#fff}
.sally-form button{background:#1c3e7b;color:#fff;border:0;border-radius:8px;padding:0 14px;font:600 14px system-ui,sans-serif;cursor:pointer}
.sally-form button:disabled{opacity:.5}
.sally-person{display:block;text-align:center;font-size:13px;padding:0 12px 8px}
.sally-person a{color:#1c3e7b;font-weight:600}
/* test bench */
.sally-bench{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:24px;align-items:start}
@media (max-width:980px){.sally-bench{grid-template-columns:1fr}}
.sally-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}
.sally-bar .pill{padding:3px 10px;border-radius:999px;font-weight:600;font-size:13px}
.pill.pass{background:#e3f3ea;color:#1f7a4d}.pill.fail{background:#fde8e6;color:#b42318}.pill.todo{background:#e6edf8;color:#1c3e7b}
.sally-t{border:1px solid #d5dce7;border-radius:10px;padding:12px;margin-bottom:10px}
.sally-t.pass{border-left:5px solid #1f7a4d}.sally-t.fail{border-left:5px solid #b42318}
.sally-t .g{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#5b6780}
.sally-t .q{font-weight:600}.sally-t .e{font-size:13px;color:#5b6780}
.sally-t .a{background:#f6f8fb;border-radius:8px;padding:8px 10px;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.sally-t .chk{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;margin:0 4px 4px 0}
.chk.ok{background:#e3f3ea;color:#1f7a4d}.chk.no{background:#fde8e6;color:#b42318}
.sally-t .row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sally-t textarea{flex:1 1 200px;min-height:32px;font:inherit;font-size:13px;padding:4px 8px}
.sally-t button.on.p{background:#1f7a4d;color:#fff}.sally-t button.on.f{background:#b42318;color:#fff}
@media (max-width:600px){.sally-launch{width:150px}}
