/* Simon — StatementVerified assistant widget.
   Brand: deep green #0B3D2E, emerald #10B981, cream #FAF7F0 / #F1EAD8.
   Self-contained: no dependency on page CSS variables (pages vary). */
.simon-btn{position:fixed;right:20px;bottom:20px;z-index:200;display:inline-flex;
  align-items:center;gap:9px;background:#0B3D2E;color:#fff;border:1px solid #0B3D2E;
  border-radius:999px;padding:10px 18px 10px 11px;font:650 15px/1.2 'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  cursor:pointer;box-shadow:0 12px 30px rgba(3,32,22,.28);transition:background .18s ease,transform .12s ease}
.simon-btn:hover{background:#0E5A41}
.simon-btn:active{transform:scale(.98)}
.simon-btn:focus-visible{outline:2px solid #10B981;outline-offset:2px}
.simon-btn .simon-mark{flex:none;display:block}
.simon-btn[hidden]{display:none!important}

/* Scroll lock while the panel is open: simon.js pins <body> with
   position:fixed at the pre-open scroll offset (inline top) and
   restores it exactly on close, so the page behind cannot move.
   overscroll-behavior:none stops any residual chaining/rubber-band. */
html.simon-locked{overscroll-behavior:none}
body.simon-locked{position:fixed;left:0;right:0;width:100%;overflow:hidden;
  overscroll-behavior:none}

.simon-panel{position:fixed;right:20px;bottom:90px;z-index:200;width:380px;max-width:calc(100vw - 24px);
  height:min(560px,calc(100vh - 130px));height:min(560px,calc(100dvh - 130px));
  overscroll-behavior:contain;display:flex;flex-direction:column;background:#FAF7F0;
  border:1px solid #C9D8CD;border-radius:18px;box-shadow:0 28px 64px rgba(3,32,22,.35),0 4px 16px rgba(3,32,22,.20);
  overflow:hidden;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#122A20}
.simon-panel[hidden]{display:none!important}
.simon-head{display:flex;align-items:center;gap:10px;background:#0B3D2E;color:#EAF5EF;
  padding:13px 16px;flex:none}
.simon-head .simon-mark{flex:none;display:block}
.simon-head-txt{flex:1;min-width:0}
.simon-head-name{font-weight:800;font-size:16.5px;letter-spacing:-.01em;line-height:1.15}
.simon-head-sub{font-size:12.5px;color:#9AD8BC;line-height:1.2}
.simon-close{background:transparent;border:0;color:#EAF5EF;font-size:22px;line-height:1;
  cursor:pointer;padding:6px 8px;border-radius:8px;flex:none}
.simon-close:hover{background:rgba(255,255,255,.12)}
.simon-close:focus-visible{outline:2px solid #10B981;outline-offset:1px}
.simon-msgs{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
/* Panel chrome never scrolls: gestures starting there go nowhere
   (the page behind is locked; nothing should rubber-band). */
.simon-head,.simon-chips,.simon-form,.simon-note{touch-action:none}
.simon-msg{max-width:88%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.5;
  overflow-wrap:anywhere;white-space:pre-wrap}
.simon-msg.bot{background:#fff;border:1px solid #DFE7DF;border-bottom-left-radius:5px;align-self:flex-start}
.simon-msg.user{background:#0B3D2E;color:#fff;border-bottom-right-radius:5px;align-self:flex-end}
.simon-msg.typing{color:#68796F;font-style:italic}
.simon-link{display:inline-block;margin-top:9px;background:#F1EAD8;color:#0B3D2E;font-weight:650;
  font-size:13.5px;text-decoration:none;border:1px solid rgba(11,61,46,.28);border-radius:9px;
  padding:8px 13px;min-height:36px}
.simon-link:hover{background:#EADFC4}
.simon-chips{display:flex;flex-wrap:wrap;gap:7px;padding:2px 14px 10px;flex:none}
.simon-chip{background:#EAF2EC;border:1px solid #C9D8CD;color:#0B3D2E;border-radius:999px;
  font:600 12.5px/1.25 'Inter',system-ui,sans-serif;padding:8px 12px;cursor:pointer;text-align:left}
.simon-chip:hover{background:#DDEAE0;border-color:#0E7A55}
.simon-chip:focus-visible{outline:2px solid #10B981;outline-offset:1px}
.simon-form{display:flex;gap:8px;padding:11px 12px calc(11px + env(safe-area-inset-bottom));
  background:#fff;border-top:1px solid #DFE7DF;flex:none}
.simon-input{flex:1;min-width:0;border:1px solid #C9D8CD;border-radius:11px;padding:11px 12px;
  font:400 16px/1.35 'Inter',system-ui,sans-serif;color:#122A20;background:#fff}
.simon-input:focus{outline:2px solid #10B981;outline-offset:0;border-color:#10B981}
.simon-send{flex:none;background:#0B3D2E;color:#fff;border:1px solid #0B3D2E;border-radius:11px;
  padding:11px 17px;font:650 15px/1.35 'Inter',system-ui,sans-serif;cursor:pointer;min-height:44px}
.simon-send:hover{background:#0E5A41}
.simon-send:disabled{opacity:.45;cursor:default}
.simon-note{flex:none;padding:0 14px 9px;background:#fff;font-size:11.5px;color:#68796F;line-height:1.35}

@media (max-width:680px){
  .simon-btn{right:14px;bottom:calc(86px + env(safe-area-inset-bottom));padding:9px 15px 9px 10px;font-size:14.5px}
  .simon-panel{left:12px;right:12px;width:auto;max-width:none;
    bottom:calc(152px + env(safe-area-inset-bottom));
    height:min(500px,calc(100vh - 210px));height:min(500px,calc(100dvh - 210px))}
}
