/* LotLogix orb pattern — Gemini Live voice + chat module (self-contained).
   Prefix: ipm-orb. No external dependencies. Palette vars can be
   overridden by the host page before this stylesheet loads. */
:root{
  --ipm-orb-blue:#FF6B1A;
  --ipm-orb-blue-dark:#E85A00;
  --ipm-orb-navy:#0A0B0D;
  --ipm-orb-ink:#14181D;
  --ipm-orb-muted:#5C636E;
  --ipm-orb-line:#E3E5E8;
  --ipm-orb-panel:#FFFFFF;
}
.ipm-orb-btn{
  position:fixed;right:22px;bottom:22px;z-index:9990;
  width:62px;height:62px;border-radius:50%;border:none;cursor:pointer;
  background:radial-gradient(circle at 32% 30%,#FFD9C2 0%,var(--ipm-orb-blue) 42%,var(--ipm-orb-blue-dark) 78%,var(--ipm-orb-navy) 130%);
  box-shadow:0 10px 28px rgba(10,11,13,.38),inset 0 0 0 2px rgba(255,255,255,.55);
  display:flex;align-items:center;justify-content:center;
  transition:transform .18s ease;
}
.ipm-orb-btn:hover{transform:scale(1.06)}
.ipm-orb-btn:focus-visible{outline:3px solid var(--ipm-orb-blue);outline-offset:3px}
.ipm-orb-btn svg{width:30px;height:30px;display:block}
.ipm-orb-btn::after{
  content:"";position:absolute;inset:-7px;border-radius:50%;
  border:2px solid rgba(232,90,0,.55);opacity:0;pointer-events:none;
  animation:ipm-orb-pulse 2.6s ease-out infinite;
}
.ipm-orb-btn.live::after{border-color:rgba(46,184,120,.65)}
@keyframes ipm-orb-pulse{
  0%{transform:scale(.82);opacity:.85}
  70%{transform:scale(1.12);opacity:0}
  100%{transform:scale(1.12);opacity:0}
}
.ipm-orb-label{
  position:fixed;right:96px;bottom:40px;z-index:9990;
  background:var(--ipm-orb-navy);color:#fff;font-size:13px;font-weight:600;
  padding:7px 12px;border-radius:999px;box-shadow:0 6px 18px rgba(10,11,13,.28);
  pointer-events:none;white-space:nowrap;
}
.ipm-orb-panel{
  position:fixed;right:22px;bottom:96px;z-index:9991;
  width:min(384px,calc(100vw - 32px));height:min(580px,calc(100dvh - 124px));
  background:var(--ipm-orb-panel);border:1px solid var(--ipm-orb-line);border-radius:20px;
  box-shadow:0 24px 60px rgba(10,11,13,.30);
  display:none;flex-direction:column;overflow:hidden;
  font-family:inherit;color:var(--ipm-orb-ink);
}
.ipm-orb-panel.open{display:flex}
.ipm-orb-head{
  display:flex;align-items:center;gap:10px;padding:14px 16px;
  background:linear-gradient(120deg,var(--ipm-orb-navy),#2A1200);
  color:#fff;flex:0 0 auto;
}
.ipm-orb-dot{width:10px;height:10px;border-radius:50%;background:#9AA1A9;flex:0 0 auto}
.ipm-orb-dot.connecting{background:#F5C15C}
.ipm-orb-dot.live{background:#2EB878}
.ipm-orb-dot.fallback{background:#E0655F}
.ipm-orb-title{font-weight:700;font-size:16px;line-height:1.2}
.ipm-orb-status{font-size:12px;color:#C9CED4;line-height:1.3}
.ipm-orb-close{
  margin-left:auto;background:rgba(255,255,255,.14);border:none;color:#fff;
  width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;flex:0 0 auto;
}
.ipm-orb-close:hover{background:rgba(255,255,255,.28)}
.ipm-orb-log{
  flex:1 1 auto;overflow-y:auto;padding:16px 14px;display:flex;flex-direction:column;gap:10px;
  background:#F7F7F8;
}
.ipm-orb-msg{max-width:86%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}
.ipm-orb-msg.agent{align-self:flex-start;background:#fff;border:1px solid var(--ipm-orb-line);border-bottom-left-radius:4px}
.ipm-orb-msg.user{align-self:flex-end;background:var(--ipm-orb-blue-dark);color:#fff;border-bottom-right-radius:4px}
.ipm-orb-msg a{color:var(--ipm-orb-blue-dark);font-weight:600}
.ipm-orb-msg.user a{color:#FFD9C2}
.ipm-orb-hint{font-size:13px;color:var(--ipm-orb-muted);text-align:center;padding:2px 8px}
/* Topic chips under the greeting: the opening menu as tappable pills,
   so the spoken greeting stays one short line. Dark pills with a red
   accent border, matching the panel head. Panel only, never the bar. */
.ipm-orb-chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:0 4px}
.ipm-orb-chip{
  background:var(--ipm-orb-navy);color:#fff;border:1.5px solid var(--ipm-orb-blue-dark);
  border-radius:999px;padding:8px 14px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;
  transition:background .15s ease,transform .15s ease;
}
.ipm-orb-chip:hover{background:#2A1200}
.ipm-orb-chip:active{transform:scale(.97)}
.ipm-orb-chip:focus-visible{outline:3px solid var(--ipm-orb-blue);outline-offset:2px}
.ipm-orb-fallback{
  margin:0 14px 12px;padding:14px;border:1px solid #F3D9C8;background:#FFF8F1;
  border-radius:14px;font-size:14px;line-height:1.55;color:var(--ipm-orb-ink);display:none;
}
.ipm-orb-fallback.show{display:block}
.ipm-orb-fallback .btnrow{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.ipm-orb-fallback a.fbtn{
  display:inline-block;background:var(--ipm-orb-blue-dark);color:#fff;text-decoration:none;
  font-weight:700;font-size:13.5px;padding:9px 16px;border-radius:999px;
}
.ipm-orb-fallback a.fbtn.ghost{background:#fff;color:var(--ipm-orb-blue-dark);border:1.5px solid var(--ipm-orb-blue-dark)}
.ipm-orb-composer{
  flex:0 0 auto;display:flex;gap:8px;align-items:center;padding:12px;
  border-top:1px solid var(--ipm-orb-line);background:#fff;
}
.ipm-orb-input{
  flex:1 1 auto;min-width:0;border:1.5px solid var(--ipm-orb-line);border-radius:999px;
  padding:11px 15px;font-size:14.5px;font-family:inherit;color:var(--ipm-orb-ink);background:#fff;
}
.ipm-orb-input:focus{outline:none;border-color:var(--ipm-orb-blue)}
.ipm-orb-mic,.ipm-orb-send{
  flex:0 0 auto;width:42px;height:42px;border-radius:50%;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.ipm-orb-mic{background:#FDECEC;color:var(--ipm-orb-blue-dark);border:1.5px solid var(--ipm-orb-line)}
.ipm-orb-mic.on{background:#D93B3B;color:#fff;border-color:#D93B3B}
.ipm-orb-mic svg,.ipm-orb-send svg{width:19px;height:19px;display:block}
.ipm-orb-send{background:var(--ipm-orb-blue-dark);color:#fff}
.ipm-orb-mic:disabled,.ipm-orb-send:disabled{opacity:.45;cursor:default}
.ipm-orb-foot{flex:0 0 auto;padding:0 14px 10px;font-size:11.5px;color:var(--ipm-orb-muted);background:#fff;text-align:center}
@media (max-width:480px){
  .ipm-orb-panel{right:12px;bottom:92px}
  .ipm-orb-btn{right:16px;bottom:16px}
  .ipm-orb-label{display:none}
}

.ipm-orb-avatar{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 auto;border:2px solid rgba(255,255,255,.35)}

/* ---------- minimize button (panel head) ---------- */
.ipm-orb-min{
  margin-left:auto;background:rgba(255,255,255,.14);border:none;color:#fff;
  width:30px;height:30px;border-radius:50%;cursor:pointer;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;
}
.ipm-orb-min:hover{background:rgba(255,255,255,.28)}
.ipm-orb-head .ipm-orb-close{margin-left:0}

/* ---------- compact voice bar (Round 7 pattern) ----------
   While a session is live the panel collapses into this slim bar so
   the page behind the conversation stays visible; on phones the full
   panel covered the show. The bar carries only the live line:
   status dot, one-line live caption, mic + end. */
.ipm-orb-bar{
  position:fixed;left:12px;right:12px;
  bottom:calc(12px + env(safe-area-inset-bottom, 0px));
  height:60px;z-index:9992;
  display:flex;align-items:center;gap:10px;
  padding:0 8px 0 14px;border-radius:999px;
  background:rgba(10,11,13,.94);color:#fff;
  box-shadow:0 16px 40px rgba(10,11,13,.42);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  font-family:inherit;
}
.ipm-orb-bar[hidden]{display:none}
/* The bar replaces the launcher for the duration of a collapsed session. */
body.ipm-voice-bar-on .ipm-orb-btn,
body.ipm-voice-bar-on .ipm-orb-label{display:none}
.ipm-orb-bar-dot{width:10px;height:10px;border-radius:50%;background:#9AA1A9;flex:0 0 auto}
.ipm-orb-bar-dot.is-connecting{background:#F5C15C}
.ipm-orb-bar-dot.is-live{background:#2EB878}
.ipm-orb-bar-dot.is-error{background:#E0655F}
.ipm-orb-bar-main{
  flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:6px;
  background:none;border:0;color:inherit;font:inherit;cursor:pointer;
  padding:6px 2px;text-align:left;
}
.ipm-orb-bar-cap{
  flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis;font-size:13.5px;font-weight:600;
}
.ipm-orb-bar-cap.from-user{color:#FFD9C2;font-weight:500}
.ipm-orb-bar-chev{flex:0 0 auto;opacity:.65;display:flex}
.ipm-orb-bar-btn{
  width:40px;height:40px;border-radius:50%;flex:0 0 auto;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.28);color:#fff;
}
.ipm-orb-bar-btn:active{transform:scale(.96)}
.ipm-orb-bar-btn .mic-off-icon{display:none}
.ipm-orb-bar-btn.is-muted{background:var(--ipm-orb-blue-dark);border-color:transparent}
.ipm-orb-bar-btn.is-muted .mic-icon{display:none}
.ipm-orb-bar-btn.is-muted .mic-off-icon{display:block}
.ipm-orb-bar-end{background:var(--ipm-orb-blue-dark);border-color:transparent}
/* Desktop: the minimized bar docks where the launcher sits. */
@media (min-width:701px){
  .ipm-orb-bar{left:auto;right:22px;width:min(380px,calc(100vw - 44px));bottom:22px}
}

/* ---------- short viewports (landscape phones) ----------
   Cap the panel to the viewport with the log scrolling internally,
   shrink the launcher, and keep fixed elements from overlapping. */
@media (max-height:500px){
  .ipm-orb-panel{bottom:76px;height:calc(100dvh - 88px)}
  .ipm-orb-btn{right:14px;bottom:14px;width:52px;height:52px}
  .ipm-orb-label{display:none}
  .ipm-orb-head{padding:10px 14px}
  .ipm-orb-composer{padding:8px}
  .ipm-orb-bar{bottom:calc(8px + env(safe-area-inset-bottom, 0px))}
}
