/* A quiet, tactile voice presence. Loaded after floating.css; scoped to this demo. */
.olmi-float {
  --orb-size: 100px;
  --orb-ink: #314126;
  --orb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23808875' filter='url(%23n)' opacity='.8' d='M0 0h150v150H0z'/%3E%3C/svg%3E");
  width: 286px;
  right: -9px;
  bottom: 16px;
}
.olmi-float .assistant-launcher {
  display: grid;
  grid-template-columns: minmax(0,1fr) var(--orb-size);
  gap: 0;
  align-items: center;
  min-height: 123px;
  height: auto;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}
.olmi-float #talk-button {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  flex: none;
  position: relative;
  width: var(--orb-size);
  height: var(--orb-size);
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.olmi-float #talk-button::after {
  content: '';
  position: absolute;
  width: 52%;
  height: 8%;
  left: 24%;
  bottom: 1%;
  border-radius: 50%;
  background: #354c292b;
  filter: blur(7px);
  z-index: -1;
  animation: orb-shadow 7.6s ease-in-out infinite;
}
.olmi-float #talk-button:hover .demo-orb {
  box-shadow: inset 2px 3px 10px #f5fadb99, inset -5px -8px 12px #2d482540, 0 0 0 5px #eaf0de80, 0 12px 25px #41532b12;
}
.olmi-float #talk-button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 5px;
}
.olmi-float #voice-mark.voice-mark-wrap {
  position: relative;
  display: block;
  width: var(--orb-size);
  height: var(--orb-size);
  margin: 0;
  filter: none;
  transform: none;
  animation: orb-levitate 7.6s ease-in-out infinite;
}
.olmi-float .demo-orb {
  display: block;
  position: absolute;
  inset: 7%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 35% 15%, #e5f4bd 0, #e5f4bd00 33%),
    radial-gradient(ellipse at 79% 49%, #d5edd9 0, #a0c6aa96 24%, #a0c6aa00 60%),
    radial-gradient(ellipse at 29% 79%, #4c7855 0, #4c785500 62%),
    linear-gradient(130deg, #739347, #527345 46%, #a4c9b4 71%, #405e40);
  box-shadow: inset 2px 3px 10px #f5fadb80, inset -5px -8px 12px #2d48254d, 0 0 0 .5px #72896224;
  transform: scale(calc(1 + var(--in,0) * .055 + var(--out,0) * .045));
  transition: box-shadow .7s ease, transform .24s ease;
}
.olmi-float .demo-orb::before {
  content: '';
  position: absolute;
  inset: -35%;
  border-radius: 45%;
  background:
    radial-gradient(ellipse at 33% 58%, #f7f5cae8 0 10%, #f6f3c800 35%),
    radial-gradient(ellipse at 69% 41%, #d7efdcce 0 11%, #c8e8d600 33%),
    radial-gradient(ellipse at 63% 73%, #3d6c4580 0 13%, #48643a00 40%);
  filter: blur(10px);
  mix-blend-mode: soft-light;
  opacity: .7;
  animation: orb-light-drift 17s ease-in-out infinite alternate;
}
.olmi-float .demo-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset -4px -7px 12px #344c3c35, inset 1px 2px 5px #f7fbd540;
  pointer-events: none;
  z-index: 4;
}
.olmi-float .demo-orb-light {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 64% 22%, #fffed09c, #fffed000 32%), radial-gradient(ellipse at 82% 64%, #edf8e176, #edf8e100 40%);
  filter: blur(4px);
  transform-origin: 50% 50%;
  animation: orb-soft-orbit 22s linear infinite;
}
.olmi-float .demo-orb-grain {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--orb-grain);
  background-size: 112px 112px;
  opacity: .58;
  mix-blend-mode: overlay;
  z-index: 3;
  pointer-events: none;
}
.olmi-float #voice-mark[data-state='listening'] .demo-orb,
.olmi-float #voice-mark[data-state='hearing'] .demo-orb {
  box-shadow: inset 2px 3px 10px #f5fadb99, inset -5px -8px 12px #2d482535, 0 0 0 calc(3px + var(--in,0) * 8px) #afc99f30;
}
.olmi-float #voice-mark[data-state='thinking'] .demo-orb-light,
.olmi-float #voice-mark[data-state='connecting'] .demo-orb-light { animation-duration: 5s; }
.olmi-float #voice-mark[data-state='speaking'] .demo-orb {
  box-shadow: inset 2px 3px 10px #f5fadb99, inset -5px -8px 12px #2d482535, 0 0 calc(6px + var(--out,0) * 18px) #b9cf9770;
}
.olmi-float .orb-launcher-tools {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 0 8px 10px 0;
}
.olmi-float .orb-launcher-tools button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #d6deca;
  border-radius: 50%;
  color: #617251;
  background: #fcfdf9e8;
  box-shadow: 0 2px 8px #28382108;
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.olmi-float .orb-launcher-tools button:hover { color: var(--text-strong); border-color: #a8b69a; background: #fff; }
.olmi-float .orb-launcher-tools button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.olmi-float .orb-launcher-tools button .icon,
.olmi-float .orb-launcher-tools button svg { display: block; width: 13px; height: 13px; }
.olmi-float .orb-launcher-tools .orb-play-symbol { display: none; }
.olmi-float[data-orb-paused='true'] .orb-launcher-tools .orb-pause-symbol { display: none; }
.olmi-float[data-orb-paused='true'] .orb-launcher-tools .orb-play-symbol { display: block; }
.olmi-float .orb-launcher-hint {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: end;
  margin: 3px 2px 0 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -.01em;
}
.olmi-float[data-call-active='true'] .orb-launcher-hint { display: none; }
.olmi-float .call-controls {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: end;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  margin: 9px 0 0;
  padding: 5px 6px 5px 12px;
  background: #fcfdf9f0;
  border: 1px solid #dce3d5;
  border-radius: 24px;
  box-shadow: 0 4px 14px #3140260a;
  backdrop-filter: blur(18px);
}
.olmi-float #voice-title { font-size: 10px; padding-right: 4px; }
.olmi-float #end-call { background: #51683e; }
.olmi-float .assistant-content { margin-bottom: 2px; padding: 7px 0 5px; }
.olmi-float .assistant-caption { padding: 0 3px 8px; font-size: 10px; }
.olmi-float .assistant-caption > span { background: #f9fbf4e8; border-radius: 20px; padding: 5px 9px; }
.olmi-float .empty-actions { gap: 7px; padding-top: 0; }
.olmi-float .empty-actions > button,
.olmi-float .heard-request,
.olmi-float .approval-card,
.olmi-float .working-card,
.olmi-float .action-receipt,
.olmi-float .voice-response {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fcfdf9f4;
  border: 1px solid #dce3d1;
  border-radius: 17px;
  box-shadow: 0 9px 28px #28371e0e, inset 0 1px 0 #ffffffd9;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  color: var(--orb-ink);
}
.olmi-float .empty-actions > button::before,
.olmi-float .heard-request::before,
.olmi-float .approval-card::before,
.olmi-float .working-card::before,
.olmi-float .action-receipt::before,
.olmi-float .voice-response::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orb-grain);
  background-size: 130px 130px;
  opacity: .065;
  pointer-events: none;
  z-index: -1;
}
.olmi-float .empty-actions > button::after,
.olmi-float .approval-card::after {
  content: '';
  position: absolute;
  z-index: -2;
  pointer-events: none;
  width: 120px;
  height: 95px;
  right: -40px;
  top: -55px;
  background: #b8cd9261;
  border-radius: 50%;
  filter: blur(25px);
}
.olmi-float .empty-actions > button { min-height: 58px; padding: 12px 13px; gap: 10px; text-align: left; }
.olmi-float .empty-actions > button:hover { transform: translateX(-3px); border-color: #bdcaa9; background: #fdfff9; box-shadow: 0 10px 25px #28371e17; }
.olmi-float .empty-actions > button > span { font-size: 11px; font-weight: 500; line-height: 1.4; }
.olmi-float .empty-actions small { font-size: 9px; line-height: 1.35; margin-top: 3px; color: #738065; font-weight: 400; }
.olmi-float .empty-actions > button > .icon:first-child { height: 17px; width: 17px; padding: 0; flex-shrink: 0; color: #718750; }
.olmi-float .empty-actions > button > .icon:last-child { height: 12px; width: 12px; color: #82916e; }
.olmi-float .heard-request { padding: 11px 14px; margin-bottom: 8px; background: #eff4e9f5; border-color: #dce5d0; }
.olmi-float .heard-request > span { color: #74815f; font-size: 8px; }
.olmi-float .heard-request p { color: #465337; font-size: 11px; margin-top: 5px; line-height: 1.5; }
.olmi-float .approval-card { padding: 17px; border-color: #b9caa4; background: #fbfdf7f7; box-shadow: 0 13px 35px #29371e1c, inset 0 1px 0 #fff; }
.olmi-float .approval-card::after { width: 190px; height: 150px; right: -70px; top: -95px; opacity: .72; }
.olmi-float .approval-icon { width: 30px; height: 30px; border: 1px solid #d5e0c7; border-radius: 50%; background: #f2f7e9; }
.olmi-float .approval-icon .icon { width: 15px; height: 15px; }
.olmi-float .approval-heading { gap: 10px; }
.olmi-float .approval-heading small { font-size: 7px; letter-spacing: .09em; color: #7b8968; }
.olmi-float .approval-heading h4 { font-size: 13px; line-height: 1.35; letter-spacing: -.025em; }
.olmi-float .approval-card ul { padding: 0; margin: 14px 0; }
.olmi-float .approval-card li { padding: 7px 0 7px 16px; font-size: 11px; line-height: 1.45; color: #566548; }
.olmi-float .approval-card li + li { border-top: 1px solid #e6ebdf; }
.olmi-float .approval-card li::before { width: 4px; height: 4px; left: 1px; top: 13px; background: #a2b989; border: 0; border-radius: 50%; }
.olmi-float .approval-actions { gap: 14px; }
.olmi-float .approval-actions .button { min-height: 34px; padding: 0 12px; border-radius: 20px; font-size: 10px; }
.olmi-float .decline-button { font-size: 10px; }
.olmi-float .working-card { padding: 17px; }
.olmi-float .working-ring { width: 18px; height: 18px; flex-shrink: 0; border-width: 1.5px; }
.olmi-float .action-receipt { padding: 14px; border-color: #d0ddc1; background: #f5f9eff7; border-radius: 16px; gap: 10px; }
.olmi-float .receipt-check { width: 29px; height: 29px; color: #536f38; background: #e4eed8; }
.olmi-float .action-receipt strong { font-size: 12px; }
.olmi-float .action-receipt p { font-size: 10px; line-height: 1.5; color: #6d7b5f; }
.olmi-float .action-receipt button { font-size: 10px; }
.olmi-float .voice-response { padding: 13px 15px; font-size: 11px; }
.olmi-float .next-suggestions { border-radius: 20px; padding: 8px 11px; background: #fbfdf8f2; border-color: #dce5d2; box-shadow: 0 3px 12px #29371e06; }
.olmi-float[data-orb-motion='paused'] #voice-mark,
.olmi-float[data-orb-motion='paused'] #talk-button::after,
.olmi-float[data-orb-motion='paused'] .demo-orb::before,
.olmi-float[data-orb-motion='paused'] .demo-orb-light { animation-play-state: paused !important; }
@keyframes orb-levitate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes orb-shadow { 0%,100% { opacity: .65; transform: scaleX(1); } 50% { opacity: .36; transform: scaleX(.85); } }
@keyframes orb-light-drift { 0% { transform: translate(-7%,-3%) rotate(-12deg); } 100% { transform: translate(9%,7%) rotate(55deg); } }
@keyframes orb-soft-orbit { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .olmi-float { right: -5px; width: 269px; --orb-size: 94px; }
}
@media (max-width: 700px) {
  .olmi-float { --orb-size: 86px; right: 0; bottom: 9px; width: min(280px,100%); }
  .olmi-float .assistant-launcher { min-height: 109px; padding-right: 2px; }
  .olmi-float .assistant-content { max-height: 328px; overflow-y: auto; overflow-x: hidden; padding: 5px 3px; margin-inline: -3px; scrollbar-width: thin; overscroll-behavior: contain; }
  .olmi-float .orb-launcher-tools { gap: 7px; margin-bottom: 8px; }
  .olmi-float .orb-launcher-tools button { width: 31px; height: 31px; }
  .olmi-float .orb-launcher-hint { font-size: 9px; margin-top: 5px; }
  .olmi-float .empty-actions > button { min-height: 54px; }
  .olmi-float .approval-actions .button { min-height: 36px; }
  .olmi-float .next-suggestions { min-height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .olmi-float #voice-mark,
  .olmi-float #talk-button::after,
  .olmi-float .demo-orb::before,
  .olmi-float .demo-orb-light { animation: none !important; }
  .olmi-float .demo-orb { transform: none !important; transition: none !important; }
  .olmi-float .empty-actions > button:hover { transform: none; }
}

/* Keep workspace controls clear of the hovering presence. */
.program-footer { justify-content:flex-start; gap:16px; }
.iv-order > footer { justify-content:flex-start; gap:18px; }

.program-footer #reset-demo { margin-left:0; }
@media (max-width:900px) {
  /* Smaller screens put the floating conversation just below the canvas. */
  .program-stage { padding-bottom:10px; }
  .olmi-float { position:relative; right:auto; bottom:auto; margin:20px 0 0 auto; }
  .olmi-float .assistant-content { max-height:none; overflow:visible; }
}
