/* Assistant-only styles */
.assistant-fab{
  position:fixed;
  right:18px;
  bottom:calc(124px + var(--safe-b));
  width:72px;
  height:72px;
  padding:0;
  border:0;
  border-radius:999px;
  background:transparent;
  box-shadow:none;
  display:grid;
  place-items:center;
  cursor:grab;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
  z-index:45;
  isolation:isolate;
  transition:transform .2s ease, opacity .2s ease;
}
.assistant-fab::before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:999px;
  z-index:-1;
  background:
    radial-gradient(circle, rgba(129,87,214,.32) 0%, rgba(96,63,173,.18) 42%, rgba(0,0,0,0) 74%);
  filter:blur(8px);
  opacity:.78;
  transition:opacity .2s ease, transform .2s ease;
}
.assistant-fab:hover{
  transform:scale(1.04);
}
.assistant-fab:hover::before{
  opacity:.94;
  transform:scale(1.04);
}
.assistant-fab:active{
  cursor:grabbing;
  transform:scale(.98);
}
.assistant-fab:focus-visible{
  outline:3px solid rgba(181,107,255,.42);
  outline-offset:4px;
}
.assistant-fab.is-dragging{
  transition:none;
  cursor:grabbing;
}
.assistant-fab.is-dragging::before{
  opacity:1;
  transform:scale(1.08);
}
.assistant-fab__img{
  width:68px;
  height:68px;
  object-fit:contain;
  pointer-events:none;
  filter:
    drop-shadow(0 10px 18px rgba(20,12,38,.20))
    drop-shadow(0 3px 6px rgba(94,58,167,.14));
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

.modal#assistantModal:not([hidden]){
  display:grid;
  place-items:end center;
  justify-content:center;
  padding:calc(74px + var(--safe-t)) 10px calc(10px + var(--safe-b));
  z-index:70;
}
.assistant-modal__panel{
  position:relative;
  --assistant-compose-space:108px;
  width:min(100%, 720px);
  max-width:720px;
  height:min(calc(100dvh - 84px - var(--safe-t) - var(--safe-b)), 920px);
  max-height:min(calc(100dvh - 84px - var(--safe-t) - var(--safe-b)), 920px);
  display:flex;
  flex-direction:column;
  border:1px solid rgba(255,255,255,.16);
  border-radius:30px 30px 24px 24px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(85,121,255,.14), rgba(0,0,0,0) 36%),
    radial-gradient(120% 120% at 100% 0%, rgba(255,98,181,.12), rgba(0,0,0,0) 34%),
    linear-gradient(180deg, rgba(16,20,40,.985), rgba(10,13,28,.985));
  box-shadow:0 26px 70px rgba(3,5,17,.45), inset 0 1px 0 rgba(255,255,255,.04);
  padding:calc(8px + var(--safe-t)) 12px calc(12px + var(--safe-b));
  overflow:hidden;
}
.assistant-modal__panel::before,
.assistant-modal__panel::after{
  content:"";
  position:absolute;
  pointer-events:none;
  opacity:0;
  transition:opacity .35s ease, transform .45s ease;
}
.assistant-modal__panel::before{
  top:88px;
  left:50%;
  width:68%;
  height:180px;
  transform:translateX(-50%) scale(.92);
  border-radius:999px;
  filter:blur(32px);
  background:radial-gradient(circle, rgba(120,135,255,.30) 0%, rgba(255,102,194,.18) 34%, rgba(34,222,255,.14) 56%, rgba(0,0,0,0) 74%);
}
.assistant-modal__panel::after{
  left:-35%;
  right:-35%;
  top:180px;
  height:220px;
  transform:translate3d(-10%, 0, 0);
  filter:blur(18px);
  background:linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(87,124,255,.18) 22%, rgba(143,123,255,.34) 48%, rgba(255,110,188,.30) 62%, rgba(39,214,255,.16) 82%, rgba(0,0,0,0) 100%);
}
.modal#assistantModal.is-thinking .assistant-modal__panel::before{
  opacity:.95;
  transform:translateX(-50%) scale(1);
  animation:assistantThinkingHalo 2.8s ease-in-out infinite alternate;
}
.modal#assistantModal.is-thinking .assistant-modal__panel::after{
  opacity:.82;
  animation:thinking-sweep 3.1s linear infinite;
}
.modal#assistantModal.is-thinking .assistant-modal__panel{
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(96,128,255,.18), rgba(0,0,0,0) 36%),
    radial-gradient(120% 120% at 100% 0%, rgba(255,111,194,.16), rgba(0,0,0,0) 34%),
    linear-gradient(180deg, rgba(20,25,47,.90), rgba(14,18,36,.90));
}
.assistant-modal__panel .modal__header{
  align-items:flex-start;
  padding:2px 2px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  position:relative;
  z-index:3;
}
.assistant-modal__eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:6px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(187,200,255,.74);
}
.assistant-modal__eyebrow::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, #8cc7ff, #8f7bff 58%, #ff70be);
  box-shadow:0 0 0 6px rgba(143,123,255,.12);
}
.assistant-modal__body{
  display:flex;
  flex-direction:column;
  gap:0;
  flex:1 1 auto;
  max-height:none;
  height:auto;
  min-height:0;
  overflow:hidden;
  padding:10px 0 0;
  padding-right:0;
  position:relative;
  z-index:1;
  border-radius:26px;
  background:
    linear-gradient(180deg, rgba(51,58,103,.92), rgba(34,39,74,.90)),
    rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.assistant-quick{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  padding:4px 0 0;
  border-radius:0;
  border:none;
  background:transparent;
  box-shadow:none;
  flex:0 0 auto;
}
.assistant-quick--inline{
  margin-top:12px;
}
.assistant-quick__btn{
  min-height:82px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(255,255,255,.02);
  color:rgba(255,255,255,.96);
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:6px;
}
.assistant-quick__btn:focus-visible{outline:3px solid rgba(181,107,255,.35);outline-offset:3px}
.assistant-quick__btn:active{transform:scale(.99)}
.assistant-quick__btn:hover{
  border-color:rgba(255,255,255,.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    rgba(255,255,255,.03);
}
.assistant-quick__btn--panel{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.assistant-bubble .assistant-quick__btn{
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)),
    rgba(255,255,255,.02);
}
.assistant-quick__title{
  display:block;
  font-size:14px;
  font-weight:800;
  color:#fff;
}
.assistant-quick__desc{
  display:block;
  font-size:11px;
  line-height:1.35;
  color:rgba(255,255,255,.78);
}
.assistant-thread{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:0;
  flex:1 1 auto;
  height:100%;
  overflow:auto;
  padding:6px 6px calc(var(--assistant-compose-space) + 56px) 6px;
  border-radius:24px;
  background:transparent;
  border:none;
  scrollbar-width:none;
  -ms-overflow-style:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-y;
  scroll-padding-bottom:calc(var(--assistant-compose-space) + 62px);
  scroll-padding-top:12px;
}
.assistant-thread > [data-assistant-bubble-type="welcome"]{
  flex:0 0 auto;
}
.assistant-thread::-webkit-scrollbar{width:0;height:0;display:none}
.modal#assistantModal.is-thinking .assistant-thread{
  background:transparent;
}
.modal#assistantModal.is-thinking .assistant-modal__body{
  background:
    linear-gradient(180deg, rgba(62,69,120,.94), rgba(38,43,80,.92)),
    rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.12);
}
.assistant-bubble{
  max-width:min(92%, 560px);
  padding:15px 16px 14px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(44,50,88,.92), rgba(28,33,60,.90));
  box-shadow:0 10px 28px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.03);
  scroll-margin-top:12px;
}
.assistant-bubble--hero{
  min-height:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  overflow:visible;
}
.assistant-bubble--rich{
  width:min(100%, 640px);
  max-width:min(100%, 640px);
}
.assistant-bubble--user{
  align-self:flex-end;
  border-color:rgba(92,255,186,.22);
  background:linear-gradient(135deg, rgba(44,118,108,.95), rgba(49,88,132,.94), rgba(72,61,126,.94));
}
.assistant-bubble--assistant{
  align-self:flex-start;
}
.assistant-bubble--thinking{
  width:min(100%, 640px);
  max-width:min(100%, 640px);
  border-color:rgba(255,255,255,.12);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(96,140,255,.16), rgba(0,0,0,0) 40%),
    radial-gradient(120% 120% at 100% 0%, rgba(255,112,190,.12), rgba(0,0,0,0) 36%),
    linear-gradient(180deg, rgba(54,61,108,.97), rgba(31,37,71,.95));
  box-shadow:
    0 14px 36px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.05),
    inset 0 0 0 1px rgba(255,255,255,.02);
}
.assistant-bubble__label{
  margin-bottom:8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(212,220,255,.58);
}
.assistant-bubble__text{
  font-size:14px;
  line-height:1.6;
  color:#fff;
  white-space:pre-wrap;
}
.assistant-bubble__text--typing::after{
  content:"";
  display:inline-block;
  width:1.5px;
  height:1.05em;
  margin-left:3px;
  vertical-align:-0.12em;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(134,188,255,.95), rgba(191,117,255,.95), rgba(255,118,189,.92));
  box-shadow:0 0 10px rgba(164,127,255,.28);
  animation:assistantTypingCaret .82s steps(1) infinite;
}
.assistant-thinking{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
}
.assistant-thinking__dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(124,175,255,.95), rgba(197,116,255,.92), rgba(255,112,190,.92));
  box-shadow:0 0 16px rgba(164,127,255,.30);
  animation:assistantThinkingDot 1.15s ease-in-out infinite;
}
.assistant-thinking__dot:nth-child(2){animation-delay:.15s}
.assistant-thinking__dot:nth-child(3){animation-delay:.3s}
.assistant-thinking__bar{
  position:relative;
  margin-top:14px;
  height:6px;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 0 0 1px rgba(255,255,255,.03);
}
.assistant-thinking__bar::before{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-38%;
  width:42%;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(92,144,255,.0) 0%, rgba(92,144,255,.95) 18%, rgba(184,111,255,.98) 50%, rgba(255,110,188,.94) 76%, rgba(74,232,224,.86) 100%);
  box-shadow:0 0 18px rgba(148,124,255,.30);
  animation:assistantBusySweep 1.5s cubic-bezier(.45,.05,.35,1) infinite;
}
.assistant-thinking__bar::after{
  content:"";
  position:absolute;
  inset:1px;
  border-radius:inherit;
  background:
    radial-gradient(circle at 18% 50%, rgba(112,165,255,.16), rgba(0,0,0,0) 22%),
    radial-gradient(circle at 50% 50%, rgba(185,112,255,.14), rgba(0,0,0,0) 20%),
    radial-gradient(circle at 82% 50%, rgba(78,232,223,.12), rgba(0,0,0,0) 18%);
  opacity:.85;
}
.assistant-hero{
  display:grid;
  place-items:center;
  margin:-2px 0 14px;
}
.assistant-hero__spark{
  width:42px;
  height:42px;
  border-radius:12px;
  transform:rotate(45deg);
  background:conic-gradient(from 210deg, #52d4ff, #6e84ff, #a36fff, #ff7dbb, #ffd25d, #52d4ff);
  box-shadow:0 0 24px rgba(120,125,255,.30), 0 0 60px rgba(255,109,191,.16);
  animation:assistantSparkSpin 6.5s linear infinite, assistantSparkFloat 2.6s ease-in-out infinite;
}
.assistant-empty{
  display:grid;
  place-items:center;
  min-height:220px;
  padding:18px;
  border-radius:22px;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(255,255,255,.03);
  color:rgba(255,255,255,.62);
  text-align:center;
  line-height:1.55;
}
.assistant-results{
  display:grid;
  gap:8px;
  margin-top:12px;
}
.assistant-result{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 12px 12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg, rgba(36,41,76,.92), rgba(24,28,52,.90));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.assistant-result--song{
  display:grid;
  align-items:stretch;
  justify-content:stretch;
}
.assistant-result__identity{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:center;
  gap:12px;
}
.assistant-result__avatar{
  width:54px;
  height:54px;
  min-width:54px;
  border-radius:16px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(135deg, rgba(86,118,255,.88), rgba(181,107,255,.76), rgba(255,100,174,.74));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14);
}
.assistant-result__avatar-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.assistant-result__avatar-fallback{
  font-size:18px;
  font-weight:800;
  color:#fff;
}
.assistant-result__meta{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.assistant-result__meta--singer{
  justify-content:center;
}
.assistant-result__title{
  font-size:14px;
  font-weight:700;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.assistant-result__subtitle{
  font-size:12px;
  color:rgba(255,255,255,.76);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.assistant-result__subtitle:empty{display:none}
.assistant-result--singer .assistant-result__title{
  font-size:15px;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.assistant-result__action{
  flex:0 0 auto;
  min-width:86px;
  min-height:40px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(135deg, rgba(255,58,163,.26), rgba(181,107,255,.18), rgba(48,255,154,.12));
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.assistant-result__action:focus-visible{outline:3px solid rgba(48,255,154,.30);outline-offset:3px}
.assistant-result__action:active{transform:scale(.99)}
.assistant-result__controls{
  display:flex;
  align-items:center;
  gap:10px;
}
.assistant-result__ctrl{
  flex:0 0 auto;
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  font:inherit;
  font-size:12px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.assistant-result__ctrl svg{
  width:16px;
  height:16px;
}
.assistant-result__ctrl--primary{
  flex:1 1 auto;
  min-width:96px;
  background:linear-gradient(135deg, rgba(255,58,163,.26), rgba(181,107,255,.18), rgba(48,255,154,.12));
}
.assistant-result__ctrl--ghost{
  width:42px;
  padding:0;
}
.assistant-result__ctrl--in-queue{
  border-color:rgba(48,255,154,.34);
  background:rgba(48,255,154,.14);
  color:#dfffee;
}
.assistant-result__ctrl--favourite{
  border-color:rgba(255,95,168,.34);
  background:rgba(255,95,168,.14);
  color:#ffe3f0;
}
.assistant-result__ctrl:focus-visible{
  outline:3px solid rgba(48,255,154,.30);
  outline-offset:3px;
}
.assistant-result__ctrl:active{transform:scale(.99)}
.assistant-compose{
  position:absolute;
  left:12px;
  right:12px;
  bottom:calc(12px + var(--safe-b));
  z-index:4;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:28px;
  background:
    linear-gradient(180deg, rgba(26,30,56,.88), rgba(16,20,38,.92)),
    rgba(18,22,42,.74);
  box-shadow:0 18px 40px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.modal#assistantModal.is-thinking .assistant-compose{
  background:
    linear-gradient(180deg, rgba(28,34,62,.84), rgba(15,18,33,.88)),
    rgba(16,19,34,.64);
  border-color:rgba(255,255,255,.18);
  box-shadow:0 22px 54px rgba(0,0,0,.34), 0 0 0 1px rgba(131,127,255,.08), inset 0 1px 0 rgba(255,255,255,.06);
}
.modal#assistantModal.is-thinking .assistant-compose__input{
  background:rgba(255,255,255,.11);
  border-color:rgba(255,255,255,.16);
}
.modal#assistantModal.is-thinking .assistant-quick__btn,
.modal#assistantModal.is-thinking .assistant-result__action,
.modal#assistantModal.is-thinking .assistant-result__ctrl{
  pointer-events:none;
}
.assistant-compose__field{
  flex:1 1 auto;
  min-width:0;
}
.assistant-compose__hint{
  display:none;
}
.assistant-compose__input{
  width:100%;
  min-height:54px;
  padding:0 18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.08);
  color:#fff;
  font:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.assistant-compose__input::placeholder{color:rgba(255,255,255,.58)}
.assistant-compose__input:focus-visible{outline:3px solid rgba(181,107,255,.35);outline-offset:3px}
.assistant-compose__send{
  flex:0 0 auto;
  min-width:54px;
  width:54px;
  height:54px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(135deg, rgba(255,58,163,.42), rgba(181,107,255,.28), rgba(48,255,154,.18));
  color:#fff;
  font:inherit;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}
.assistant-compose__send span{display:none}
.assistant-compose__send svg{width:18px;height:18px}
.assistant-compose__send:focus-visible{outline:3px solid rgba(48,255,154,.30);outline-offset:3px}
.assistant-compose__send:disabled,
.assistant-result__action:disabled,
.assistant-result__ctrl:disabled{
  opacity:.56;
  cursor:wait;
}
@keyframes assistantSparkSpin{
  from{transform:rotate(45deg)}
  to{transform:rotate(405deg)}
}
@keyframes assistantSparkFloat{
  0%,100%{transform:rotate(45deg) scale(1)}
  50%{transform:rotate(45deg) scale(1.08)}
}
@keyframes assistantThinkingHalo{
  from{transform:translateX(-50%) scale(.96)}
  to{transform:translateX(-50%) scale(1.08)}
}
@keyframes assistantThinkingDot{
  0%, 80%, 100%{
    transform:translateY(0) scale(.9);
    opacity:.45;
  }
  40%{
    transform:translateY(-4px) scale(1);
    opacity:1;
  }
}
@keyframes assistantTypingCaret{
  0%, 48%{opacity:1}
  49%, 100%{opacity:0}
}
@keyframes assistantBusyBar{
  0%{
    clip-path:inset(0 100% 0 0 round 999px);
    opacity:.35;
  }
  20%{
    clip-path:inset(0 35% 0 0 round 999px);
    opacity:1;
  }
  55%{
    clip-path:inset(0 0 0 0 round 999px);
    opacity:1;
  }
  100%{
    clip-path:inset(0 0 0 100% round 999px);
    opacity:.4;
  }
}
@keyframes assistantBusySweep{
  0%{
    left:-38%;
    opacity:.25;
    transform:scaleX(.86);
  }
  20%{
    opacity:1;
  }
  50%{
    left:28%;
    opacity:1;
    transform:scaleX(1);
  }
  100%{
    left:102%;
    opacity:.2;
    transform:scaleX(.92);
  }
}
@media (min-width: 520px){
  :root{--pad:20px}
  .topbar__inner{padding:14px 16px}
  .menu-card{min-height:126px}
  .lang-options{grid-template-columns:repeat(3, minmax(0, 1fr))}
  .playlist-options{grid-template-columns:repeat(3, minmax(0, 1fr))}
}

@media (max-width: 560px){
  .modal#assistantModal:not([hidden]){
    place-items:end stretch;
    padding:calc(56px + var(--safe-t)) 8px calc(8px + var(--safe-b));
  }
  .assistant-modal__panel{
    width:calc(100vw - 16px);
    max-width:none;
    height:calc(100dvh - 64px - var(--safe-t) - var(--safe-b));
    max-height:calc(100dvh - 64px - var(--safe-t) - var(--safe-b));
    justify-self:stretch;
    align-self:end;
    border-radius:28px;
    padding:calc(8px + var(--safe-t)) 10px calc(10px + var(--safe-b));
  }
  .assistant-bubble,
  .assistant-bubble--rich,
  .assistant-bubble--thinking{
    width:100%;
    max-width:none;
  }
  .assistant-bubble--user{
    width:min(82%, 320px);
    max-width:min(82%, 320px);
  }
  .assistant-quick{
    grid-template-columns:1fr;
  }
  .assistant-thread{
    min-height:0;
    padding:6px 2px calc(var(--assistant-compose-space) + 20px) 2px;
  }
  .assistant-results{
    gap:10px;
  }
  .assistant-compose{
    left:10px;
    right:10px;
    bottom:calc(10px + var(--safe-b));
  }
  .assistant-result{
    align-items:flex-start;
    flex-direction:column;
    width:100%;
  }
  .assistant-result__controls{
    width:100%;
  }
  .assistant-result__identity{
    width:100%;
  }
  .assistant-result__meta{
    width:100%;
  }
  .assistant-result__title,
  .assistant-result__subtitle{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    word-break:break-word;
  }
  .assistant-result__action,
  .assistant-result__ctrl--primary{
    width:100%;
  }
}

@media (max-width: 460px) and (min-height: 820px){
  .assistant-modal__panel{
    --assistant-compose-space:76px;
    padding:calc(6px + var(--safe-t)) 8px calc(8px + var(--safe-b));
  }
  .assistant-modal__body{
    padding-top:8px;
  }
  .assistant-thread{
    padding-bottom:12px;
    scroll-padding-bottom:18px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"]{
    padding:12px 12px 10px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-bubble__text{
    font-size:13px;
    line-height:1.5;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-hero{
    margin:0 0 12px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-quick{
    gap:8px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-quick__btn{
    min-height:64px;
    padding:12px 13px;
    border-radius:18px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-quick__title{
    font-size:13px;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-quick__desc{
    font-size:10px;
    line-height:1.28;
  }
  .assistant-thread > [data-assistant-bubble-type="welcome"] .assistant-bubble__label{
    margin-bottom:6px;
  }
  .assistant-compose{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    margin:8px 8px 0;
    padding:8px;
    gap:8px;
    border-radius:22px;
  }
  .assistant-compose__input{
    min-height:48px;
    padding:0 16px;
    font-size:16px;
  }
  .assistant-compose__send{
    min-width:48px;
    width:48px;
    height:48px;
  }
}
