.tpais-assist-overlay{
  position:fixed;
  inset:0;
  z-index:2147483000;
  pointer-events:none;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.tpais-assist-pip{
  position:absolute;
  width:24px;
  height:24px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:linear-gradient(180deg, rgba(60,60,60,.55), rgba(0,0,0,.58));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  cursor:pointer;
  pointer-events:auto;
  --tpais-assist-accent:rgba(90,210,255,.14);
  box-shadow:0 12px 34px rgba(0,0,0,.26), 0 0 0 1px rgba(255,255,255,.06) inset;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:.7;
  transform:translate(-50%,-50%) scale(1);
  transition:opacity .14s ease, transform .14s ease, box-shadow .14s ease;
}

.tpais-assist-pip[data-tpais-assist-kind="filters"]{ --tpais-assist-accent:rgba(90,210,255,.18); }
.tpais-assist-pip[data-tpais-assist-kind="list"]{ --tpais-assist-accent:rgba(170,150,255,.16); }
.tpais-assist-pip[data-tpais-assist-kind="world"]{ --tpais-assist-accent:rgba(170,150,255,.16); }
.tpais-assist-pip[data-tpais-assist-kind="photos"]{ --tpais-assist-accent:rgba(255,206,92,.18); }
.tpais-assist-pip[data-tpais-assist-kind="menu"]{ --tpais-assist-accent:rgba(255,150,90,.18); }
.tpais-assist-pip[data-tpais-assist-kind="hours"]{ --tpais-assist-accent:rgba(200,255,170,.16); }
.tpais-assist-pip[data-tpais-assist-kind="map"]{ --tpais-assist-accent:rgba(120,200,255,.18); }
.tpais-assist-pip[data-tpais-assist-kind="near"]{ --tpais-assist-accent:rgba(120,255,210,.16); }
.tpais-assist-pip[data-tpais-assist-kind="saved"]{ --tpais-assist-accent:rgba(255,200,240,.16); }
.tpais-assist-pip[data-tpais-assist-kind="study"]{ --tpais-assist-accent:rgba(255,220,120,.16); }
.tpais-assist-pip[data-tpais-assist-kind="tool"]{ --tpais-assist-accent:rgba(255,255,255,.14); }

.tpais-assist-pip__icon{
  width:14px;
  height:14px;
  display:block;
  opacity:.96;
}

.tpais-assist-pip--master{
  width:28px;
  height:28px;
  opacity:.88;
}

.tpais-assist-pip--master .tpais-assist-pip__icon{
  width:15px;
  height:15px;
}

.tpais-assist-pip--master[data-tpais-contextual="1"]{
  box-shadow:0 16px 46px rgba(0,0,0,.3), 0 0 0 2px var(--tpais-assist-accent), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.tpais-assist-pip--master[data-tpais-peek="1"]{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.12);
  box-shadow:0 18px 52px rgba(0,0,0,.36), 0 0 0 3px var(--tpais-assist-accent), 0 0 0 1px rgba(255,255,255,.1) inset;
}

[data-tpais-peek-target="1"]{
  position:relative;
  outline:2px solid rgba(90,210,255,.36);
  outline-offset:4px;
  box-shadow:0 0 0 6px rgba(90,210,255,.12), 0 12px 32px rgba(0,0,0,.12);
  border-radius:14px;
}

[data-tpais-peek-target="1"]::after{
  content:attr(data-tpais-peek-label);
  position:absolute;
  top:-11px;
  right:-2px;
  z-index:2147483001;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(8,16,20,.88);
  border:1px solid rgba(122,226,255,.35);
  color:rgba(244,250,255,.96);
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.01em;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(0,0,0,.2);
  pointer-events:none;
}

.tpais-assist-peekchip{
  position:absolute;
  z-index:2147483002;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  padding:5px 9px;
  background:rgba(10,16,20,.9);
  color:rgba(245,250,255,.96);
  font-size:11px;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  pointer-events:auto;
  box-shadow:0 12px 28px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.04) inset;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transform:translate(0,-50%);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.tpais-assist-peekchip[data-tpais-assist-kind="filters"]{ border-color:rgba(90,210,255,.34); }
.tpais-assist-peekchip[data-tpais-assist-kind="list"]{ border-color:rgba(170,150,255,.28); }
.tpais-assist-peekchip[data-tpais-assist-kind="photos"]{ border-color:rgba(255,206,92,.3); }
.tpais-assist-peekchip[data-tpais-assist-kind="menu"]{ border-color:rgba(255,150,90,.3); }
.tpais-assist-peekchip[data-tpais-assist-kind="hours"]{ border-color:rgba(200,255,170,.28); }
.tpais-assist-peekchip[data-tpais-assist-kind="map"]{ border-color:rgba(120,200,255,.32); }
.tpais-assist-peekchip[data-tpais-assist-kind="near"]{ border-color:rgba(120,255,210,.28); }
.tpais-assist-peekchip[data-tpais-assist-kind="saved"]{ border-color:rgba(255,200,240,.28); }
.tpais-assist-peekchip[data-tpais-assist-kind="study"]{ border-color:rgba(255,220,120,.3); }

.tpais-assist-peekchip:hover,
.tpais-assist-peekchip:focus{
  outline:none;
  transform:translate(0,-50%) translateY(-2px);
  box-shadow:0 16px 34px rgba(0,0,0,.28), 0 0 0 3px rgba(90,210,255,.14);
}

.tpais-assist-pip:hover,
.tpais-assist-pip:focus{
  opacity:1;
  outline:none;
  transform:translate(-50%,-50%) scale(1.06);
  box-shadow:0 16px 42px rgba(0,0,0,.32), 0 0 0 3px var(--tpais-assist-accent), 0 0 0 1px rgba(255,255,255,.08) inset;
}

.tpais-assist-stow{
  position:fixed;
  top:50%;
  right:10px;
  transform:translateY(-50%) translateX(12px);
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px 8px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(40,40,40,.62), rgba(0,0,0,.50));
  color:rgba(255,255,255,.92);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  pointer-events:auto;
  box-shadow:0 18px 55px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.05) inset;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  opacity:.82;
  transition:opacity .14s ease, transform .14s ease, box-shadow .14s ease;
}

.tpais-assist-stow[data-tpais-side="left"]{
  left:10px;
  right:auto;
  transform:translateY(-50%) translateX(-12px);
}

.tpais-assist-stow:hover,
.tpais-assist-stow:focus{
  outline:none;
  opacity:1;
  transform:translateY(calc(-50% - 2px)) translateX(0) scale(1.02);
  box-shadow:0 22px 70px rgba(0,0,0,.26), 0 0 0 3px rgba(90,210,255,.14);
}

.tpais-assist-stow--hint{
  opacity:1;
  transform:translateY(calc(-50% - 2px)) translateX(0) scale(1.02);
  box-shadow:0 22px 70px rgba(0,0,0,.26), 0 0 0 3px rgba(90,210,255,.14);
}

.tpais-assist-stow--hint .tpais-assist-stow__label{
  max-width:180px;
  opacity:1;
}

.tpais-assist-stow__icon{
  width:22px;
  height:22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  line-height:22px;
}

.tpais-assist-stow__label{
  max-width:0;
  overflow:hidden;
  white-space:nowrap;
  opacity:0;
  transition:max-width .18s ease, opacity .18s ease;
}

.tpais-assist-stow:hover .tpais-assist-stow__label,
.tpais-assist-stow:focus .tpais-assist-stow__label{
  max-width:180px;
  opacity:1;
}

@media (hover:none), (pointer:coarse){
  /* Mobile: tuck the helpers handle into the edge (peek only). Slide out on tap/focus/hint. */
  .tpais-assist-stow{
    right:0;
    transform:translateY(-50%) translateX(calc(100% - 34px));
    opacity:.72;
  }
  .tpais-assist-stow[data-tpais-side="left"]{
    left:0;
    right:auto;
    transform:translateY(-50%) translateX(calc(-100% + 34px));
  }
  .tpais-assist-stow:hover,
  .tpais-assist-stow:focus,
  .tpais-assist-stow:active,
  .tpais-assist-stow--hint{
    opacity:1;
    transform:translateY(calc(-50% - 2px)) translateX(0) scale(1.02);
  }
  .tpais-assist-stow__label{
    max-width:0;
    opacity:0;
  }
  .tpais-assist-stow:focus .tpais-assist-stow__label,
  .tpais-assist-stow:active .tpais-assist-stow__label,
  .tpais-assist-stow--hint .tpais-assist-stow__label{
    max-width:140px;
    opacity:1;
  }
}

.tpais-assist-bubble{
  position:absolute;
  min-width:220px;
  max-width:340px;
  padding:10px 10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(24,24,24,.74), rgba(10,10,10,.66));
  color:#fff;
  box-shadow:0 18px 55px rgba(0,0,0,.33), 0 0 0 1px rgba(255,255,255,.05) inset;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  pointer-events:auto;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .16s ease, transform .16s ease;
}

.tpais-assist-bubble--recording{
  border-color:rgba(255,96,96,.28);
  box-shadow:0 18px 55px rgba(0,0,0,.33), 0 0 0 1px rgba(255,96,96,.10) inset;
}

.tpais-assist-bubble--listening{
  border-color:rgba(90,210,255,.28);
  box-shadow:0 18px 55px rgba(0,0,0,.33), 0 0 0 1px rgba(90,210,255,.10) inset;
}

.tpais-assist-bubble--recording::after,
.tpais-assist-bubble--listening::after{
  content:"";
  position:absolute;
  top:10px;
  left:10px;
  width:8px;
  height:8px;
  border-radius:999px;
  pointer-events:none;
}

.tpais-assist-bubble--recording::after{
  background:rgba(255,96,96,.92);
  box-shadow:0 0 0 4px rgba(255,96,96,.14);
}

@keyframes tpaisAssistPulse{
  0%{ transform:scale(1); opacity:.92; }
  50%{ transform:scale(1.12); opacity:1; }
  100%{ transform:scale(1); opacity:.92; }
}

.tpais-assist-bubble--listening::after{
  background:rgba(90,210,255,.92);
  box-shadow:0 0 0 4px rgba(90,210,255,.14);
  animation:tpaisAssistPulse 1.1s ease-in-out infinite;
}

.tpais-assist-bubble.is-open{
  opacity:1;
  transform:translateY(0);
}

.tpais-assist-bubble__close{
  position:absolute;
  top:8px;
  right:8px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  font-size:12px;
  line-height:20px;
  text-align:center;
  transition:background .14s ease, transform .14s ease, border-color .14s ease;
}

.tpais-assist-bubble__close:hover,
.tpais-assist-bubble__close:focus{
  outline:none;
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.22);
  transform:translateY(-1px);
}

.tpais-assist-bubble__text{
  font-size:13px;
  line-height:1.25;
  padding-right:26px;
  margin-bottom:8px;
  color:rgba(255,255,255,.96);
}

.tpais-assist-bubble__chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}

.tpais-assist-bubble__utility{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,.08);
}

.tpais-assist-bubble__utility:empty{
  display:none;
}

.tpais-assist-chip{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.92);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  line-height:1;
  cursor:pointer;
  transition:background .14s ease, transform .14s ease, border-color .14s ease;
}

.tpais-assist-chip:hover,
.tpais-assist-chip:focus{
  outline:none;
  background:rgba(255,255,255,.12);
  transform:translateY(-1px);
}

.tpais-assist-chip--primary{
  background:rgba(90,210,255,.18);
  border-color:rgba(90,210,255,.28);
}

.tpais-assist-chip--utility{
  padding:5px 9px;
  font-size:11px;
  color:rgba(255,255,255,.78);
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.10);
}

.tpais-assist-chip--utility:hover,
.tpais-assist-chip--utility:focus{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.16);
}

.tpais-assist-chip--macro{
  background:rgba(255,206,92,.14);
  border-color:rgba(255,206,92,.26);
}

.tpais-assist-chip--macro:hover{
  background:rgba(255,206,92,.2);
}

.tpais-assist-chip--record{
  background:rgba(255,96,96,.14);
  border-color:rgba(255,96,96,.26);
}

.tpais-assist-chip--record:hover,
.tpais-assist-chip--record:focus{
  background:rgba(255,96,96,.2);
  border-color:rgba(255,96,96,.32);
}

.tpais-assist-chip--record::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  display:inline-block;
  margin-right:7px;
  background:rgba(255,96,96,.92);
  box-shadow:0 0 0 4px rgba(255,96,96,.14);
  transform:translateY(-.5px);
}

.tpais-assist-bubble__toggleRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:6px;
  border-top:1px solid rgba(255,255,255,.12);
}

.tpais-assist-toggle{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:12px;
  color:rgba(255,255,255,.86);
  user-select:none;
}

.tpais-assist-toggle input{
  width:14px;
  height:14px;
}

.tpais-assist-highlight{
  outline:2px solid rgba(90,210,255,.55);
  outline-offset:3px;
  box-shadow:0 0 0 6px rgba(90,210,255,.12);
  border-radius:10px;
}

@media (prefers-reduced-motion: reduce){
  .tpais-assist-bubble,
  .tpais-assist-pip,
  .tpais-assist-stow,
  .tpais-assist-stow__label,
  .tpais-assist-chip,
  .tpais-assist-bubble__close{
    transition:none !important;
  }

  .tpais-assist-bubble--listening::after{
    animation:none !important;
  }
}
