/* ============ ASK AXIOM — the website guide (Nov 30) ============
   A chat panel in the site's own style (surface cards, hairlines, pill buttons).
   It can scroll and highlight the page, and open the Mesa sandbox over it. */
.ag-btn{position:fixed;right:22px;bottom:22px;z-index:96;display:flex;align-items:center;gap:9px;height:48px;padding:0 20px 0 16px;border-radius:100px;
  background:#10141d;border:1px solid rgba(255,255,255,.15);color:#fff;font:500 14.5px/1 'Inter',system-ui,sans-serif;cursor:pointer;
  box-shadow:0 14px 34px rgba(0,0,0,.45);transition:transform .2s,border-color .2s,opacity .3s;}
.ag-btn:hover{transform:translateY(-2px);border-color:rgba(255,117,73,.6);}
.ag-btn b{color:#ff7549;font-size:17px;font-weight:400;}
.ag-btn.hide{opacity:0;pointer-events:none;}
.ag-btn{translate:0 var(--ag-lift,0px);}
.ag-btn:focus-visible,.ag button:focus-visible,.ag textarea:focus-visible{outline:2px solid #ff7549;outline-offset:3px;}

.ag{position:fixed;right:22px;bottom:22px;z-index:97;width:384px;height:min(600px,calc(100vh - 110px));height:min(600px,calc(100svh - 110px));
  display:flex;flex-direction:column;background:#0c0f16;border:1px solid rgba(255,255,255,.1);border-radius:20px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.6);font-family:'Inter',system-ui,sans-serif;color:#bfc6d4;
  opacity:0;transform:translateY(14px) scale(.98);transform-origin:100% 100%;pointer-events:none;transition:opacity .25s,transform .3s cubic-bezier(.2,.8,.2,1);}
.ag.on{opacity:1;transform:none;pointer-events:auto;}
.ag-h{display:flex;align-items:center;gap:10px;padding:14px 14px 12px 18px;border-bottom:1px solid rgba(255,255,255,.07);}
.ag-h .st{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:rgba(225,90,43,.14);color:#ff7549;font-size:15px;flex-shrink:0;}
.ag-h b{display:block;color:#fff;font-size:14.5px;font-weight:600;}
.ag-h small{display:block;font-size:12px;color:#79818f;}
.ag-h small i{font-style:normal;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#5c8cff;background:rgba(37,99,235,.13);border:1px solid rgba(37,99,235,.35);border-radius:100px;padding:1px 7px;margin-left:6px;}
.ag-h .ag-new{margin-left:auto;}
.ag-h button{width:34px;height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.1);background:none;color:#bfc6d4;font-size:17px;line-height:1;cursor:pointer;}
.ag-h button:hover{border-color:rgba(255,255,255,.3);color:#fff;}
.ag-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:16px 16px 6px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;scrollbar-color:#2a2f3a transparent;}
.ag-m{max-width:88%;font-size:14.5px;line-height:1.55;padding:9px 13px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;}
.ag-m.a{align-self:flex-start;background:#161b26;color:#e6e9ef;border-bottom-left-radius:5px;}
.ag-m.u{align-self:flex-end;background:rgba(225,90,43,.16);color:#ffe7de;border-bottom-right-radius:5px;}
.ag-m.n{align-self:center;max-width:100%;background:none;padding:2px 4px;font-size:12.5px;color:#79818f;text-align:center;}
.ag-m.e{align-self:center;background:rgba(255,117,73,.08);border:1px solid rgba(255,117,73,.3);color:#ffd3c4;font-size:13.5px;}
.ag-m.e button{display:block;margin:6px auto 0;background:none;border:0;color:#ff7549;font:inherit;font-weight:600;cursor:pointer;}
.ag-dots{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:#161b26;border-radius:14px;border-bottom-left-radius:5px;}
.ag-dots i{width:6px;height:6px;border-radius:50%;background:#79818f;animation:agDot 1.2s infinite ease-in-out;}
.ag-dots i:nth-child(2){animation-delay:.15s;} .ag-dots i:nth-child(3){animation-delay:.3s;}
@keyframes agDot{0%,60%,100%{opacity:.3;transform:none;}30%{opacity:1;transform:translateY(-3px);}}
.ag-chips{display:flex;flex-wrap:wrap;gap:6px;padding:4px 16px 10px;}
.ag-chips:empty{display:none;}
.ag-chips button{font:500 13px/1 'Inter',system-ui,sans-serif;color:#fff;background:none;border:1px solid rgba(255,255,255,.15);border-radius:100px;padding:8px 12px;cursor:pointer;transition:border-color .2s,background .2s;}
.ag-chips button:hover{border-color:rgba(255,117,73,.6);background:rgba(255,117,73,.06);}
.ag-f{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 8px;border-top:1px solid rgba(255,255,255,.07);}
.ag-f textarea{flex:1;resize:none;height:42px;max-height:110px;padding:11px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:#10141d;color:#fff;
  font:15px/1.35 'Inter',system-ui,sans-serif;outline:0;transition:border-color .2s;}
.ag-f textarea:focus{border-color:rgba(255,117,73,.55);}
.ag-f textarea::placeholder{color:#79818f;}
.ag-f button{width:42px;height:42px;flex-shrink:0;border-radius:50%;border:0;background:#e15a2b;color:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s,opacity .2s;}
.ag-f button:hover{background:#f06a38;}
.ag-f button:disabled{opacity:.4;cursor:default;}
.ag-f svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;}
.ag-note{padding:0 16px 10px;font-size:11.5px;color:#4e5563;}

/* the ring that points at things on the page */
.ag-ring{position:fixed;z-index:89;pointer-events:none;border-radius:16px;border:2px solid #ff7549;opacity:0;transition:opacity .35s;
  box-shadow:0 0 0 6px rgba(255,117,73,.16);}
.ag-ring.on{opacity:1;animation:agRing 1.6s ease-in-out 2;}
@keyframes agRing{0%,100%{box-shadow:0 0 0 6px rgba(255,117,73,.16);}50%{box-shadow:0 0 0 12px rgba(255,117,73,.05);}}

/* the Mesa sandbox over the page */
.ag-mesa{position:fixed;inset:0;z-index:95;background:rgba(5,6,10,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  opacity:0;visibility:hidden;transition:opacity .35s,visibility .35s;}
.ag-mesa.on{opacity:1;visibility:visible;}
.ag-mesa-frame{position:absolute;left:20px;top:68px;bottom:20px;right:20px;border-radius:20px;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:#05060a;box-shadow:0 30px 80px rgba(0,0,0,.6);}
.ag-mesa iframe{width:100%;height:100%;border:0;display:block;}
.ag-mesa-bar{position:absolute;left:20px;top:16px;right:20px;display:flex;align-items:center;gap:14px;font:13px/1.3 'Inter',system-ui,sans-serif;color:#79818f;}
.ag-mesa-x{display:flex;align-items:center;gap:7px;height:36px;padding:0 14px;border-radius:100px;
  background:rgba(16,20,29,.92);border:1px solid rgba(255,255,255,.15);color:#fff;font:500 13.5px/1 'Inter',system-ui,sans-serif;cursor:pointer;}
.ag-mesa-x:hover{border-color:rgba(255,255,255,.4);}
@media (min-width:1000px){
  body.ag-mesa-open .ag-mesa-frame{right:426px;}
  body.ag-mesa-open .ag-mesa-bar{right:426px;}
  body.ag-mesa-open .ag{top:20px;bottom:20px;height:auto;right:20px;width:386px;}
}

/* phones: the chat is a sheet; with Mesa open it tucks into a pill with a speech bubble */
.ag-say{position:fixed;right:22px;width:360px;bottom:84px;z-index:97;padding:11px 14px;border-radius:14px;background:#161b26;border:1px solid rgba(255,255,255,.12);
  color:#e6e9ef;font:14px/1.5 'Inter',system-ui,sans-serif;box-shadow:0 14px 34px rgba(0,0,0,.5);opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .3s,transform .3s;}
.ag-say.on{opacity:1;transform:none;pointer-events:auto;cursor:pointer;}
.ag-say b{color:#ff7549;font-weight:600;margin-right:6px;}
@media (max-width:620px){
  .ag-say{left:14px;right:14px;width:auto;bottom:74px;}
  .ag-btn{right:14px;bottom:14px;width:50px;height:50px;padding:0;justify-content:center;}
  .ag-btn span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
  .ag-btn b{font-size:20px;}
  .ag{left:0;right:0;bottom:0;width:auto;height:76vh;height:76svh;border-radius:20px 20px 0 0;border-bottom:0;}
  .ag-f{padding-bottom:calc(8px + env(safe-area-inset-bottom));}
  .ag-f textarea{font-size:16px;}
  .ag-mesa-frame{left:0;right:0;top:56px;bottom:0;border-radius:0;border:0;}
  .ag-mesa-bar{left:12px;right:12px;top:10px;}
  .ag-mesa-bar span{display:none;}
  body.ag-mesa-open .ag-btn{right:auto;left:14px;}
}
@media (prefers-reduced-motion:reduce){ .ag,.ag-btn,.ag-ring,.ag-say,.ag-mesa{transition:none;} .ag-ring.on,.ag-dots i{animation:none;} }
