/* Typein edge light. One painted border band, no overlay/input interception. */
@property --typein-ray { syntax:"<angle>"; inherits:false; initial-value:28deg; }
@keyframes typein-edge-orbit { from{--typein-ray:28deg} to{--typein-ray:388deg} }
/* Preserve the large click-to-dismiss scrim: it is not a visible control.
   Native links styled as CTAs and native disclosure summaries ARE controls. */
html body :is(button:enabled:not(.navshade),a.action,summary){
  --edge-base:#403a4b;--edge-ink:#0b0a0e;--edge-top:#100e15;
  background-color:var(--edge-ink);color:#f6f1ff;
  background-image:linear-gradient(170deg,var(--edge-top),var(--edge-ink)),conic-gradient(from var(--typein-ray) at 50% 50%,var(--edge-base) 0deg 184deg,#685c80 201deg,#9373fc 220deg,#69a5ff 237deg,#74f5f7 251deg,#e0f8ff 263deg,#fff 271deg,#ffe9aa 278deg,#ffa355 291deg,#ff6dba 307deg,#aa70ef 323deg,var(--edge-base) 348deg 360deg);
  background-origin:border-box;background-clip:padding-box,border-box;
  border:1px solid transparent;border-radius:6px;
  box-shadow:0 0 0 1px #8470b114,0 0 8px #a57cff28,inset 0 0 5px #ad98ea09;
  animation:typein-edge-orbit 5s linear infinite;
}
html body :is(a.action,button.new-chat,button.send,form button[type="submit"]){--edge-base:#665977;--edge-top:#15101c;box-shadow:0 0 9px #a67aff35,0 2px 16px #5ab6ff12,inset 0 1px 4px #f4dcff0a}
html body .new-chat kbd{color:#c9b3e2;border-color:#51455d}
html body .action .action-tip{color:#e1c4ff;border-color:#51455d}
html body .thread-item.active,html body .model-option[aria-pressed="true"]{--edge-top:#34273f;--edge-ink:#17101e}
html body .account-menu>summary{padding:10px 6px;margin:4px 0 0}
html body button.composer-active{padding:2px 6px}
html body button.motion{border-radius:5px}
html body .thread-item{content-visibility:auto;contain-intrinsic-size:auto 36px}
@media (hover:hover) and (pointer:fine){
 html body :is(button:enabled:not(.navshade),a.action,summary):hover{--edge-top:#241b2d;--edge-ink:#100d15;box-shadow:0 0 11px #b08eff50,0 2px 16px #68c8e621}
}
html body :is(button:enabled:not(.navshade),a.action,summary):focus-visible{outline:2px solid #ead9ff;outline-offset:3px}
html:has(#motion[aria-pressed=true]) body :is(button:enabled:not(.navshade),a.action,summary){animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
 html body :is(button:enabled:not(.navshade),a.action,summary){animation:none;--typein-ray:40deg}
}
@media (forced-colors:active){
 html body :is(button:enabled:not(.navshade),a.action,summary){animation:none;background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none;forced-color-adjust:auto}
}
