#op-root{
  --op-night:#0c151c;--op-night-2:#121f29;--op-night-3:#192a36;--op-line:#24394a;
  --op-text:#d4dde4;--op-muted:#8796a3;--op-teal:#3ea8ae;--op-teal-d:#2c6e74;
  --op-clay:#cf6a3d;--op-gold:#d9a441;--op-gold-d:#9c7224;
  --op-sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --op-mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  --op-serif:'Newsreader',Georgia,serif;
  position:fixed;right:22px;bottom:22px;z-index:2147482000;font-family:var(--op-sans);
  color:var(--op-text);font-size:14px;line-height:1.45;letter-spacing:normal;text-align:left
}
:where(#op-root) *,:where(#op-root) *::before,:where(#op-root) *::after{box-sizing:border-box;margin:0;padding:0}
:where(#op-root) button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit;font-size:inherit;line-height:inherit}

.op-bubble{position:relative;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;
  background:radial-gradient(circle at 35% 30%,#2a2614 0%,var(--op-night) 72%);
  box-shadow:0 10px 30px rgba(0,0,0,.4),0 0 0 1px rgba(217,164,65,.3),0 0 26px rgba(217,164,65,.35);
  transition:transform .25s cubic-bezier(.2,.9,.3,1.3)}
.op-bubble::before{content:"";position:absolute;inset:-3px;border-radius:50%;padding:2px;
  background:conic-gradient(from var(--op-a,0deg),var(--op-gold),var(--op-teal),var(--op-clay),var(--op-gold));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;
  animation:op-spin 7s linear infinite}
.op-bubble:hover{transform:scale(1.07)}
.op-bubble:focus-visible{outline:2px solid var(--op-teal);outline-offset:4px}
.op-bubble svg{width:36px;height:36px;overflow:visible;filter:drop-shadow(0 0 6px rgba(217,164,65,.55))}
@property --op-a{syntax:'<angle>';initial-value:0deg;inherits:false}
@keyframes op-spin{to{--op-a:360deg}}
.op-strand{fill:none;stroke-width:2.2;stroke-linecap:round}
.op-strand.a{stroke:var(--op-gold)}
.op-strand.b{stroke:var(--op-teal)}
.op-rung{stroke:rgba(207,106,61,.75);stroke-width:1.4;stroke-linecap:round}

.op-hint{position:absolute;right:74px;bottom:13px;white-space:nowrap;padding:9px 14px;border-radius:20px;
  background:var(--op-night-2);border:1px solid rgba(217,164,65,.35);color:#f3e7cc;font-size:13px;font-weight:500;
  box-shadow:0 8px 24px rgba(0,0,0,.35);animation:op-in .4s ease-out;cursor:pointer}
.op-hint::after{content:"";position:absolute;right:-6px;top:50%;width:10px;height:10px;margin-top:-5px;transform:rotate(45deg);
  background:var(--op-night-2);border-right:1px solid rgba(217,164,65,.35);border-top:1px solid rgba(217,164,65,.35)}

.op-panel{position:absolute;right:0;bottom:78px;width:380px;height:580px;max-height:calc(100vh - 116px);
  display:flex;flex-direction:column;overflow:hidden;border-radius:16px;
  background:linear-gradient(180deg,var(--op-night-2),var(--op-night));border:1px solid var(--op-line);
  box-shadow:0 24px 60px rgba(0,0,0,.5),0 0 40px rgba(217,164,65,.10);
  transform-origin:bottom right;transition:opacity .2s,transform .22s cubic-bezier(.2,.9,.3,1.1)}
.op-panel[hidden]{display:flex;opacity:0;transform:translateY(12px) scale(.96);pointer-events:none;visibility:hidden}

.op-head{display:flex;align-items:center;gap:11px;padding:14px 12px 13px 16px;border-bottom:1px solid var(--op-line);
  background:linear-gradient(90deg,rgba(217,164,65,.12),rgba(62,168,174,.05))}
.op-av{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;
  font:600 15px/1 var(--op-serif);color:#1a1408;background:linear-gradient(135deg,#e7bd62,var(--op-gold-d));
  box-shadow:0 0 0 2px rgba(217,164,65,.25),0 0 14px rgba(217,164,65,.35)}
.op-head .op-t{flex:1;min-width:0}
.op-head h3{font:600 16px/1.2 var(--op-serif);color:#fff}
.op-head small{display:block;font:400 11px/1.3 var(--op-mono);color:var(--op-muted);margin-top:2px;letter-spacing:.04em}
.op-ico{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:var(--op-muted);transition:background .15s,color .15s}
.op-ico:hover{background:rgba(255,255,255,.06);color:#fff}
.op-ico svg{width:17px;height:17px}

.op-thread{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:10px}
.op-msg{max-width:86%;display:flex;flex-direction:column}
.op-msg .op-txt{padding:9px 13px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.op-msg.oak .op-txt{background:linear-gradient(135deg,#2a2314,#1f1b12);border:1px solid rgba(217,164,65,.28);color:#efe6d2;border-bottom-left-radius:4px}
.op-msg.me{align-self:flex-end;align-items:flex-end}
.op-msg.me .op-txt{background:linear-gradient(135deg,#1f5a5f,#22474e);border:1px solid rgba(62,168,174,.25);color:#eef6f6;border-bottom-right-radius:4px}
.op-txt a{color:#e7bd62;text-decoration:underline;text-underline-offset:2px}
.op-msg.me .op-txt a{color:#bff0f2}
.op-txt strong{color:#fff}
.op-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.op-chip{padding:7px 11px;border-radius:16px;border:1px solid rgba(217,164,65,.35)!important;color:#f0dca9!important;font-size:12.5px!important;
  background:rgba(217,164,65,.06)!important;transition:background .15s}
.op-chip:hover{background:rgba(217,164,65,.16)!important}
.op-typing{align-self:flex-start;display:flex;gap:4px;padding:11px 14px;border-radius:14px;background:#1f1b12;border:1px solid rgba(217,164,65,.25)}
.op-typing i{width:6px;height:6px;border-radius:50%;background:var(--op-gold);animation:op-bop 1s infinite}
.op-typing i:nth-child(2){animation-delay:.15s}.op-typing i:nth-child(3){animation-delay:.3s}
@keyframes op-bop{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@keyframes op-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

.op-compose{display:flex;align-items:flex-end;gap:7px;padding:10px;border-top:1px solid var(--op-line);background:rgba(0,0,0,.18)}
.op-compose textarea{flex:1;resize:none;min-height:40px;max-height:120px;padding:10px 12px;border-radius:12px;border:1px solid var(--op-line);
  background:var(--op-night);color:#fff;font:14px/1.4 var(--op-sans);outline:none}
.op-compose textarea:focus{border-color:var(--op-gold-d);box-shadow:0 0 0 3px rgba(217,164,65,.14)}
.op-send{flex:none;width:40px;height:40px;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,#e7bd62,var(--op-gold-d))!important;color:#1a1408!important}
.op-send:disabled{opacity:.45;cursor:default}
.op-send svg{width:18px;height:18px}
.op-foot{padding:0 14px 9px;font:400 10.5px/1.3 var(--op-mono);color:#5d6b77;background:rgba(0,0,0,.18)}
.op-err{padding:4px 14px 8px;color:#f0a58a;font-size:12px}

@media (max-width:480px){
  #op-root{right:14px;bottom:14px}
  .op-panel{position:fixed;left:8px;right:8px;bottom:86px;width:auto;height:calc(100vh - 106px)}
  .op-hint{display:none}
}
@media (prefers-reduced-motion:reduce){.op-bubble::before{animation:none}}
@media print{#op-root{display:none}}
