/* Hyra — HYRA Connect AI assistant widget (modern, responsive, dark glass). Scoped under .hy-* so it never touches the site. */
.hy-root,.hy-root *{box-sizing:border-box}
.hy-root{--hy-bg:#061633;--hy-bg2:#0a2148;--hy-line:rgba(255,255,255,.12);--hy-text:#e8effb;--hy-muted:#93a4bd;--hy-blue:#056CF2;--hy-teal:#04BFBF;
  font-family:"DM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--hy-text)}

/* Launcher */
.hy-fab{position:fixed;right:22px;bottom:22px;z-index:2147483000;display:flex;align-items:center;gap:10px;height:56px;padding:0 20px 0 8px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(135deg,#056CF2 0%,#04BFBF 100%);color:#fff;font:600 15px/1 inherit;box-shadow:0 14px 34px -10px rgba(5,108,242,.7),0 0 0 1px rgba(255,255,255,.18) inset;transition:transform .18s ease,box-shadow .18s ease}
.hy-fab:hover{transform:translateY(-2px);box-shadow:0 18px 40px -10px rgba(5,108,242,.85),0 0 0 1px rgba(255,255,255,.28) inset}
.hy-fab .hy-orb{width:40px;height:40px}
.hy-fab::after{content:"";position:absolute;inset:-4px;border-radius:999px;border:2px solid rgba(4,191,191,.55);animation:hyping 2.6s ease-out infinite;pointer-events:none}
@keyframes hyping{0%{transform:scale(.96);opacity:.9}80%,100%{transform:scale(1.14);opacity:0}}
.hy-fab.hy-open::after{display:none}
.hy-fab:focus-visible,.hy-root button:focus-visible,.hy-root a:focus-visible{outline:3px solid #7ff0f0;outline-offset:2px}

/* Avatar orb */
.hy-orb{position:relative;flex:none;width:36px;height:36px;border-radius:50%;background:radial-gradient(circle at 30% 28%,#7ff0f0 0%,#04BFBF 28%,#056CF2 62%,#0a2d63 100%);
  box-shadow:0 0 0 2px rgba(255,255,255,.14),0 6px 16px -4px rgba(4,191,191,.65);display:grid;place-items:center;color:#fff;font:700 15px/1 inherit;letter-spacing:.02em}
.hy-orb::before{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,rgba(255,255,255,0),rgba(255,255,255,.35),rgba(255,255,255,0) 40%);animation:hyspin 6s linear infinite}
@keyframes hyspin{to{transform:rotate(360deg)}}
.hy-orb span{position:relative}

/* Panel */
.hy-panel{position:fixed;right:22px;bottom:90px;z-index:2147483001;width:min(408px,calc(100vw - 24px));height:min(640px,calc(100dvh - 116px));display:none;flex-direction:column;overflow:hidden;
  background:linear-gradient(180deg,var(--hy-bg2) 0%,var(--hy-bg) 46%);border:1px solid var(--hy-line);border-radius:22px;box-shadow:0 30px 80px -20px rgba(0,0,0,.65)}
.hy-panel.hy-open{display:flex;animation:hyrise .22s cubic-bezier(.2,.8,.2,1)}
@keyframes hyrise{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}

.hy-head{display:flex;align-items:center;gap:12px;padding:14px 14px 12px 16px;border-bottom:1px solid var(--hy-line);background:rgba(255,255,255,.03)}
.hy-head .hy-orb{width:42px;height:42px;font-size:17px}
.hy-title{flex:1;min-width:0}
.hy-title strong{display:block;font-size:17px;font-weight:700;letter-spacing:.01em}
.hy-title small{display:flex;align-items:center;gap:6px;color:var(--hy-muted);font-size:12.5px}
.hy-dot{width:8px;height:8px;border-radius:50%;background:#3ddc97;box-shadow:0 0 0 3px rgba(61,220,151,.2)}
.hy-icon{border:0;background:rgba(255,255,255,.07);color:#fff;width:34px;height:34px;border-radius:10px;cursor:pointer;display:grid;place-items:center;font-size:18px;line-height:1}
.hy-icon:hover{background:rgba(255,255,255,.16)}

/* Log */
.hy-log{flex:1;overflow-y:auto;padding:16px 14px 6px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;overscroll-behavior:contain}
.hy-log::-webkit-scrollbar{width:6px}.hy-log::-webkit-scrollbar-thumb{background:rgba(255,255,255,.18);border-radius:6px}
.hy-row{display:flex;gap:9px;align-items:flex-end;max-width:100%}
.hy-row.me{justify-content:flex-end}
.hy-row .hy-orb{width:28px;height:28px;font-size:12px}
.hy-bub{max-width:82%;padding:10px 14px;border-radius:18px;font-size:14.5px;line-height:1.55;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.hy-row.bot .hy-bub{background:rgba(255,255,255,.08);border:1px solid var(--hy-line);border-bottom-left-radius:6px}
.hy-row.me .hy-bub{background:linear-gradient(135deg,#056CF2,#0a86e8);color:#fff;border-bottom-right-radius:6px}
.hy-bub a{color:#7ff0f0;text-decoration:underline;text-underline-offset:2px}
.hy-row.me .hy-bub a{color:#fff}
.hy-bub b{font-weight:700}

.hy-typing{display:inline-flex;gap:5px;padding:13px 15px}
.hy-typing i{width:7px;height:7px;border-radius:50%;background:#93a4bd;animation:hybounce 1.2s infinite ease-in-out}
.hy-typing i:nth-child(2){animation-delay:.15s}.hy-typing i:nth-child(3){animation-delay:.3s}
@keyframes hybounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}

/* Suggestion chips and action cards */
.hy-chips{display:flex;flex-wrap:wrap;gap:8px;padding-left:37px}
.hy-chip{border:1px solid rgba(127,240,240,.45);background:rgba(4,191,191,.08);color:#d7fbfb;border-radius:999px;padding:8px 13px;font:500 13.5px/1.2 inherit;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:background .15s,transform .15s}
.hy-chip:hover{background:rgba(4,191,191,.2);transform:translateY(-1px)}
.hy-chip.hy-primary{background:linear-gradient(135deg,#056CF2,#04BFBF);border-color:transparent;color:#fff;font-weight:600}
.hy-card{margin-left:37px;padding:14px;border-radius:16px;border:1px solid var(--hy-line);background:rgba(255,255,255,.06)}
.hy-card h4{margin:0 0 4px;font-size:15px}
.hy-card p{margin:0 0 10px;color:var(--hy-muted);font-size:13px}
.hy-card label{display:block;font-size:12px;color:var(--hy-muted);margin:8px 0 4px}
.hy-card input,.hy-card textarea{width:100%;border:1px solid rgba(255,255,255,.2);border-radius:11px;background:rgba(255,255,255,.08);color:#fff;padding:10px 12px;font:inherit;font-size:14px;outline:none}
.hy-card input:focus,.hy-card textarea:focus{border-color:#7ff0f0;box-shadow:0 0 0 3px rgba(127,240,240,.18)}
.hy-card textarea{min-height:74px;resize:vertical}
.hy-card .hy-err{color:#ff9d96;font-size:12.5px;min-height:16px;margin-top:6px}
.hy-card .hy-row2{display:flex;gap:8px;margin-top:10px}
.hy-btn{border:0;border-radius:11px;padding:10px 14px;font:600 14px/1 inherit;cursor:pointer;color:#fff;background:linear-gradient(135deg,#056CF2,#04BFBF)}
.hy-btn.hy-ghost{background:rgba(255,255,255,.09)}
.hy-btn:disabled{opacity:.55;cursor:default}
.hy-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}

/* Composer */
.hy-foot{padding:10px 12px 12px;border-top:1px solid var(--hy-line);background:rgba(3,10,26,.55)}
.hy-form{display:flex;align-items:flex-end;gap:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:6px 6px 6px 14px;transition:border-color .15s,box-shadow .15s}
.hy-form:focus-within{border-color:#7ff0f0;box-shadow:0 0 0 3px rgba(127,240,240,.16)}
.hy-form input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:#fff!important;font:inherit;font-size:15px;padding:9px 0;box-shadow:none!important}
.hy-form input::placeholder{color:#8ea0bb}
.hy-send{flex:none;width:40px;height:40px;border:0;border-radius:12px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#056CF2,#04BFBF);display:grid;place-items:center}
.hy-send:disabled{opacity:.45;cursor:default}
.hy-send svg{width:18px;height:18px}
.hy-note{margin:8px 4px 0;text-align:center;color:#7d8fab;font-size:11.5px}

/* Mobile: full-height sheet */
@media (max-width:560px){
  .hy-fab{right:14px;bottom:14px;padding:0;width:56px;justify-content:center}
  .hy-fab .hy-label{display:none}
  .hy-fab .hy-orb{width:44px;height:44px}
  .hy-panel{right:0;left:0;bottom:0;top:auto;width:100%;height:min(92dvh,100dvh);border-radius:22px 22px 0 0;border-left:0;border-right:0;border-bottom:0}
  .hy-bub{max-width:86%}
  .hy-input-safe{padding-bottom:env(safe-area-inset-bottom)}
}
@media (prefers-reduced-motion:reduce){.hy-orb::before,.hy-fab::after,.hy-typing i,.hy-panel.hy-open{animation:none}.hy-log{scroll-behavior:auto}}
