/* Energy Mike AI on energymike.ai: floating hold-to-talk voice chat (port of the usa.solar Che-page launcher). Everything is scoped under .emv-* so no page style is touched.
   Palette follows the site: navy #0B1B2E, cyan #2CE7FF; Oswald display and Inter body via the layout's font variables. */
.emv-root{--emv-ink:#0b1b2e;--emv-ink2:#11283f;--emv-paper:#f5f8fb;--emv-cyan:#2ce7ff;--emv-line:rgba(245,248,251,.16);--emv-mut:rgba(245,248,251,.7);--emv-lv:0;font-family:var(--font-inter),Arial,sans-serif}
.emv-root *{box-sizing:border-box}
.emv-root [hidden]{display:none!important}

.emv-launch{position:fixed;right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));z-index:60;display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;padding:6px;border:0;border-radius:50%;background:var(--emv-ink);color:var(--emv-paper);font:700 13px/1.2 var(--font-inter),Arial,sans-serif;letter-spacing:.02em;cursor:pointer;box-shadow:0 18px 40px -12px rgba(11,27,46,.7),0 0 0 1px rgba(44,231,255,.45);transition:transform .18s ease,background-color .2s ease}
.emv-launch:hover{background:#11283f;transform:translateY(-2px)}
.emv-launch:active{transform:scale(.97)}
.emv-launch:focus-visible,.emv-mic:focus-visible,.emv-x:focus-visible,.emv-btn:focus-visible,.emv-link:focus-visible{outline:3px solid var(--emv-cyan);outline-offset:3px}
.emv-launch-ic{position:relative;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--emv-cyan);color:var(--emv-ink);flex:none}
.emv-launch-ic svg{width:20px;height:20px}
.emv-launch.is-open{display:none}
@media (prefers-reduced-motion:no-preference){.emv-launch-ic::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 rgba(44,231,255,.55);animation:emv-halo 2.8s ease-out infinite}}
@keyframes emv-halo{0%{box-shadow:0 0 0 0 rgba(44,231,255,.55)}70%,100%{box-shadow:0 0 0 16px rgba(44,231,255,0)}}
@media (max-width:520px){.emv-launch{right:calc(10px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));width:48px;height:48px;padding:4px}.emv-launch-ic{width:40px;height:40px}}

.emv-panel{position:fixed;z-index:70;right:calc(20px + env(safe-area-inset-right));bottom:calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden;width:min(410px,calc(100vw - 40px));height:min(640px,calc(100dvh - 40px));border-radius:14px;background:var(--emv-ink);color:var(--emv-paper);border:1px solid var(--emv-line);box-shadow:0 40px 100px -30px rgba(0,0,0,.75),0 0 0 1px rgba(44,231,255,.12);font-size:15px;line-height:1.5}
@media (prefers-reduced-motion:no-preference){.emv-panel{animation:emv-rise .28s ease-out}}
@keyframes emv-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media (max-width:520px){.emv-panel{inset:0;width:auto;height:auto;border-radius:0;border:0}}

.emv-head{flex:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:calc(18px + env(safe-area-inset-top)) 20px 16px;border-bottom:1px solid var(--emv-line);background:linear-gradient(180deg,#11283f,var(--emv-ink))}
@media (min-width:521px){.emv-head{padding-top:18px}}
.emv-eyebrow{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--emv-cyan)}
.emv-eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--emv-cyan);box-shadow:0 0 14px rgba(44,231,255,.7)}
.emv-title{margin:6px 0 0;font:500 30px/1.05 var(--font-oswald),Georgia,serif;letter-spacing:.01em;text-transform:uppercase;color:var(--emv-paper)}
.emv-sub{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--emv-mut)}
.emv-x{flex:none;width:44px;height:44px;margin:-8px -10px 0 0;border:0;border-radius:50%;background:transparent;color:var(--emv-mut);display:grid;place-items:center;cursor:pointer;transition:background-color .15s ease,color .15s ease}
.emv-x:hover{background:rgba(245,248,251,.1);color:var(--emv-paper)}
.emv-x svg{width:18px;height:18px}

.emv-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 18px 8px;display:flex;flex-direction:column;gap:12px;background:var(--emv-ink)}
.emv-line{display:flex}
.emv-line.is-you{justify-content:flex-end}
.emv-bubble{max-width:88%;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 14px;border-radius:16px 16px 16px 4px;background:var(--emv-ink2);border:1px solid var(--emv-line);color:var(--emv-paper);font-size:15px;line-height:1.5}
.emv-line.is-you .emv-bubble{border-radius:16px 16px 4px 16px;background:var(--emv-cyan);border-color:var(--emv-cyan);color:var(--emv-ink);font-weight:700}
.emv-note{max-width:92%;font-size:13px;line-height:1.5;color:var(--emv-mut)}
.emv-note a{color:var(--emv-cyan);text-decoration:underline;text-underline-offset:3px}
.emv-dots{display:inline-flex;gap:4px;padding:6px 2px}
.emv-dots span{width:6px;height:6px;border-radius:50%;background:var(--emv-mut)}
@media (prefers-reduced-motion:no-preference){.emv-dots span{animation:emv-dot 1s ease-in-out infinite}.emv-dots span:nth-child(2){animation-delay:.15s}.emv-dots span:nth-child(3){animation-delay:.3s}}
@keyframes emv-dot{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-4px);opacity:1}}

.emv-card{border:1px solid var(--emv-line);border-left:3px solid var(--emv-cyan);border-radius:12px;background:var(--emv-ink2);padding:14px 16px}
.emv-card h3{margin:0;font:400 20px/1.2 var(--font-oswald),Georgia,serif;letter-spacing:-.02em;color:var(--emv-paper)}
.emv-card p{margin:4px 0 0;font-size:13px;line-height:1.45;color:var(--emv-mut)}
.emv-fields{margin-top:12px;display:flex;flex-direction:column;gap:6px}
.emv-fields label{font-size:12px;color:var(--emv-mut)}
.emv-field{width:100%;min-height:44px;padding:10px 12px;border-radius:8px;border:1px solid var(--emv-line);background:var(--emv-ink);color:var(--emv-paper);font:inherit;font-size:16px}
.emv-field:focus{outline:none;border-color:var(--emv-cyan)}
.emv-field:disabled{opacity:.6}
textarea.emv-field{min-height:64px;resize:vertical}
.emv-btn{margin-top:12px;min-height:44px;padding:0 22px;border:0;border-radius:3px;background:var(--emv-cyan);color:var(--emv-ink);font:700 12px/1 var(--font-inter),Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer;transition:background-color .15s ease}
.emv-btn:hover:not(:disabled){background:#5ceeff}
.emv-btn:disabled{opacity:.5;cursor:default}
.emv-status{min-height:1.2em;margin-top:8px;font-size:13px}
.emv-ok{color:#7ee0a1;font-weight:700}
.emv-warn{color:#ff9d92}
.emv-dl{margin:10px 0 0;display:grid;grid-template-columns:auto 1fr;gap:6px 16px;font-size:14px}
.emv-dl dt{font-size:12px;color:var(--emv-mut)}
.emv-dl dd{margin:0;font-weight:700}
.emv-dl dd.is-none{font-weight:400;color:var(--emv-mut)}
.emv-comment{margin:12px 0 0;color:var(--emv-paper)!important;font-size:14px!important}
.emv-fine{margin-top:10px!important;font-size:11px!important}

.emv-err{flex:none;margin:0 16px;padding:8px 12px;border-radius:8px;border:1px solid rgba(255,157,146,.4);background:rgba(255,157,146,.08);color:#ffb3aa;font-size:13px;line-height:1.4}

.emv-foot{flex:none;padding:14px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--emv-line);background:var(--emv-ink)}
.emv-mic{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 22px 6px 6px;border:0;border-radius:999px;background:var(--emv-ink2);color:var(--emv-paper);box-shadow:inset 0 0 0 1px var(--emv-line),0 0 calc(var(--emv-lv) * 32px) rgba(44,231,255,calc(var(--emv-lv) * .9));font:700 15px/1.2 var(--font-inter),Arial,sans-serif;touch-action:none;user-select:none;-webkit-user-select:none;cursor:pointer;transition:background-color .2s ease,transform .12s ease}
.emv-mic-ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--emv-cyan);color:var(--emv-ink);margin-right:auto}
.emv-mic-ic svg{width:20px;height:20px}
.emv-mic span:last-child{margin-right:auto}
.emv-mic:active{transform:scale(.985)}
.emv-mic[data-state="listening"]{background:var(--emv-cyan);color:var(--emv-ink)}
.emv-mic[data-state="listening"] .emv-mic-ic{background:var(--emv-ink);color:var(--emv-cyan)}
.emv-mic[data-state="error"]{box-shadow:inset 0 0 0 1px rgba(255,157,146,.55)}
.emv-hint{margin:8px 4px 0;font-size:12px;line-height:1.4;color:var(--emv-mut);text-align:center}
.emv-desk{display:none}
@media (min-width:768px) and (hover:hover){.emv-touch{display:none}.emv-desk{display:inline}}
.emv-row{margin-top:10px;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;justify-content:center}
.emv-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px;border:0;background:none;color:var(--emv-paper);font:700 12px/1.2 var(--font-inter),Arial,sans-serif;letter-spacing:.04em;text-decoration:underline;text-decoration-color:rgba(44,231,255,.6);text-underline-offset:5px;cursor:pointer}
.emv-link:hover{color:var(--emv-cyan)}
.emv-disclose{margin:6px 0 0;text-align:center;font-size:11px;color:var(--emv-mut)}

.emv-num{display:inline}
@media (max-width:520px){.emv-num{display:none}.emv-row{margin-top:4px;gap:0 14px}.emv-link{font-size:12px}.emv-foot{padding-top:12px}.emv-sub{font-size:11px}.emv-title{font-size:26px}}

.emv-who{margin:0 0 4px 4px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--emv-mut)}
.emv-col{display:flex;flex-direction:column;max-width:88%}
.emv-line.is-you .emv-col{align-items:flex-end}
.emv-col .emv-bubble{max-width:100%}
