/* 沉浸模式 prototype. Auxiliary labels stay 1-2 sizes below body text (16px). */
:root { --sl-cyan: #29f0ff; --sl-pink: #ff3fd8; --sl-violet: #8a5cff; }
html.sl-lock, html.sl-lock body { overflow: hidden; }

/* Header entry: findable but quiet — dim, no glow, no pulse. Icon a bit larger, label 12px. */
.sl-btn {
  flex: none; display: inline-flex; align-items: center; gap: 3px;
  height: 26px; padding: 0 5px 0 2px; margin-left: 0; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10); background: rgba(255, 255, 255, 0.03);
  color: #8d8a84; font-size: 12px; font-weight: 600; letter-spacing: 0.4px; line-height: 1;
  cursor: pointer; white-space: nowrap; opacity: 0.85;
}
.sl-btn-icon { display: inline-flex; width: 16px; height: 16px; opacity: 0.9; overflow: visible; border-radius: 0; }
.sl-btn-icon svg { width: 16px; height: 16px; display: block; }
.sl-btn-icon img { width: 16px; height: 16px; object-fit: cover; display: block; }
.sl-btn:active { opacity: 1; }

.sl-confirm { position: fixed; inset: 0; z-index: 9000; display: none; align-items: center; justify-content: center; background: rgba(4, 4, 10, 0.72); backdrop-filter: blur(4px); padding: 24px; }
.sl-confirm.show { display: flex; animation: sl-fade 0.2s ease-out; }
.sl-card { width: min(340px, 100%); padding: 26px 22px 20px; border-radius: 20px; text-align: center; background: #0f0f1c; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 28px rgba(228, 197, 114, 0.22), 0 0 50px rgba(244, 239, 228, 0.10); }
.sl-card-orb { width: 60px; height: 60px; margin: 0 auto 14px; filter: drop-shadow(0 0 10px rgba(240, 190, 40, 0.4)); }
.sl-card-orb img, .sl-card-orb svg { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; display: block; }
.sl-card-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #f2f4fa; }
.sl-card-note { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.5; color: #e6ecf6; }
.sl-card-sub { margin: 0 0 20px; font-size: 13px; line-height: 1.5; color: #8f9ab0; }
.sl-card-btns { display: flex; gap: 12px; }
.sl-card-btns button { flex: 1; min-height: 48px; border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.sl-cancel { background: transparent; color: #c8c4bc; border: 1px solid rgba(237, 237, 237, 0.22); }
.sl-go { border: none; color: #fff; background: linear-gradient(90deg, #d8243f, #2e5bdc); box-shadow: 0 0 16px rgba(120, 90, 255, 0.45); }

.sl-screen { position: fixed; inset: 0; z-index: 9100; display: none; flex-direction: column; overflow: hidden; color: #eaffff;
  background: radial-gradient(ellipse at 50% 28%, #1a1030 0%, #08070f 60%, #030308 100%); }
.sl-screen.show { display: flex; }
.sl-grid { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 45%; pointer-events: none; opacity: 0.32;
  background-image: linear-gradient(rgba(255, 63, 216, 0.55) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 240, 255, 0.45) 1px, transparent 1px);
  background-size: 44px 44px; transform: perspective(320px) rotateX(62deg); transform-origin: 50% 0; animation: sl-grid 3s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 40%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); }
@keyframes sl-grid { to { background-position: 0 44px, 0 0; } }
.sl-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px); }
.sl-exit { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 10px); right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 10, 24, 0.6); color: #eef; font-size: 26px; line-height: 1; cursor: pointer; }

.sl-count { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; z-index: 2;
  font-size: 140px; font-weight: 900; color: #fff; text-shadow: 0 0 20px var(--sl-cyan), 0 0 50px var(--sl-pink), 0 0 90px var(--sl-violet); }
.sl-screen.counting .sl-count { display: flex; }
.sl-controls { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; min-height: 44px; }
.sl-hint { margin: 0; font-size: 14px; color: #ffcf7a; text-align: center; min-height: 0; }
.sl-hint:empty { display: none; }
.sl-hold { display: none; width: min(300px, 80vw); height: 64px; border-radius: 32px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(90deg, rgba(255, 40, 80, 0.28), rgba(40, 90, 255, 0.28)); color: #fff; font-size: 20px; font-weight: 800; letter-spacing: 3px;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.sl-screen.ptt .sl-hold { display: block; }
.sl-screen.holding .sl-hold { background: linear-gradient(90deg, rgba(255, 40, 80, 0.65), rgba(40, 90, 255, 0.65)); transform: scale(0.97); box-shadow: 0 0 24px rgba(140, 120, 255, 0.55); }
.sl-ptt { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 10, 24, 0.55); color: #aeb6c8; font-size: 13px; font-weight: 600; cursor: pointer; }
.sl-ptt-dot { width: 22px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.18); position: relative; transition: background 0.2s; }
.sl-ptt-dot::after { content: ''; position: absolute; top: 2px; left: 2px; width: 8px; height: 8px; border-radius: 50%; background: #cfd3dc; transition: left 0.2s; }
.sl-ptt[aria-pressed="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.sl-ptt[aria-pressed="true"] .sl-ptt-dot { background: #4a6bff; }
.sl-ptt[aria-pressed="true"] .sl-ptt-dot::after { left: 12px; background: #fff; }
.sl-ptt.nudge { border-color: #ffcf7a; color: #ffcf7a; }
.sl-screen.counting .sl-controls, .sl-screen.counting .sl-stage, .sl-screen.counting .sl-footer, .sl-screen.counting .sl-top { opacity: 0; }
.sl-count.pop { animation: sl-pop 0.8s ease-out; }
@keyframes sl-pop { 0% { transform: scale(2.2); opacity: 0; filter: blur(8px); } 30% { transform: scale(1); opacity: 1; filter: none; } 100% { transform: scale(0.85); opacity: 0.2; } }
.sl-screen.warp::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle, #fff 0, var(--sl-cyan) 12%, var(--sl-pink) 30%, transparent 60%); animation: sl-warp 0.65s ease-in forwards; }
@keyframes sl-warp { 0% { transform: scale(0.05); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(4); opacity: 0; } }
.sl-screen.live .sl-stage { animation: sl-glitch-in 0.5s steps(6) both; }
@keyframes sl-glitch-in { 0% { opacity: 0; transform: translateX(-8px) skewX(8deg); } 50% { opacity: 1; transform: translateX(6px) skewX(-4deg); } 100% { transform: none; } }

.sl-stage { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; padding: calc(env(safe-area-inset-top, 0px) + 58px) 22px 6px; min-height: 0; }
.sl-status { font-size: 14px; letter-spacing: 2px; color: #cfd8ea; text-shadow: 0 0 8px rgba(120, 150, 255, 0.6); min-height: 22px; }
.sl-orb { position: relative; width: min(330px, 86vw); height: min(330px, 86vw); margin: 0 0 2px; border: none; background: transparent; padding: 0; cursor: pointer; flex: none; -webkit-tap-highlight-color: transparent; }
.sl-orb-canvas { display: block; width: 100%; height: 100%; }
.sl-you { max-width: 100%; font-size: 15px; line-height: 1.5; color: #9fb0c8; text-align: center; min-height: 22px; }
.sl-you:not(:empty)::before { content: '“'; } .sl-you:not(:empty)::after { content: '”'; }
.sl-subs { width: 100%; margin-top: 12px; text-align: center; overflow: hidden; }
.sl-trans { width: 100%; margin-top: 8px; min-height: 20px; font-size: 14px; line-height: 1.45; color: rgba(201, 214, 232, 0.85); text-align: center; }
.sl-trans:empty { min-height: 0; margin-top: 0; }
.sl-line { font-weight: 800; line-height: 1.45; }
.sl-line.prev { font-size: 18px; color: rgba(234, 255, 255, 0.45); margin-bottom: 8px; }
.sl-line.cur { font-size: 26px; color: #fff; text-shadow: 0 0 10px rgba(90, 130, 255, 0.8), 0 0 26px rgba(255, 50, 90, 0.4); animation: sl-line-in 0.35s ease-out; }
.sl-subs:not(:has(.sl-line)) { font-size: 18px; color: #c9d6e8; }
@keyframes sl-line-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.sl-footer { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 14px); }
.sl-footer-name { font-size: 15px; font-weight: 800; letter-spacing: 4px; color: #ffd27a; text-shadow: 0 0 10px rgba(229, 169, 60, 0.8); }
.sl-footer-url { font-size: 13px; letter-spacing: 1px; color: rgba(41, 240, 255, 0.85); }
.sl-toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); z-index: 9200; max-width: 86vw; padding: 10px 14px; border-radius: 12px; background: #1c1c24; color: #ededed; font-size: 14px; display: none; }
.sl-toast.show { display: block; }
@keyframes sl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sl-float { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .sl-grid, .sl-card-orb { animation: none; } }

/* ---- 自定义: tiny, dim, top right next to ×; only for swapping in your own picture ---- */
.sl-custom {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 16px); right: 60px; z-index: 3;
  height: 26px; padding: 0 7px 0 5px; border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08); background: transparent;
  color: rgba(190, 196, 208, 0.42); font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; opacity: 0.72;
}
.sl-custom-ico { width: 13px; height: 13px; display: block; opacity: 0.75; }
.sl-custom:active { opacity: 1; color: rgba(220, 224, 232, 0.7); }
.sl-sheet { position: absolute; inset: 0; z-index: 6; display: none; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, 0.45); }
.sl-screen.sheet-open .sl-sheet { display: flex; animation: sl-fade 0.2s ease-out; }
.sl-sheet-card { width: 100%; max-width: 480px; padding: 20px 20px calc(env(safe-area-inset-bottom, 0px) + 18px); border-radius: 22px 22px 0 0; background: #12121e; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.sl-sheet-title { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: #f2f4fa; text-align: center; }
.sl-sheet-label { font-size: 14px; color: #aeb6c8; margin-bottom: 8px; }
.sl-sat { width: 100%; height: 30px; -webkit-appearance: none; appearance: none; background: transparent; margin: 0;
  --sl-pa: #E0BC62; --sl-pb: #F4EFE4; }
.sl-sat::-webkit-slider-runnable-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--sl-pa), var(--sl-pb) 45%, #8a8a8a 80%, #ededed); }
.sl-sat::-moz-range-track { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--sl-pa), var(--sl-pb) 45%, #8a8a8a 80%, #ededed); }
.sl-sat::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -8px; border-radius: 50%; background: #fff; border: 2px solid #12121e; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
.sl-sat::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #12121e; }
.sl-sat-ends { display: flex; justify-content: space-between; font-size: 13px; color: #8f9ab0; margin: 2px 0 16px; }
.sl-pick, .sl-reset, .sl-done { display: block; width: 100%; min-height: 50px; margin-top: 10px; border-radius: 14px; font-size: 17px; font-weight: 700; cursor: pointer; }
.sl-pick { border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #f2f4fa; }
.sl-reset { border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: #c8c4bc; }
.sl-reset[hidden] { display: none; }
.sl-done { border: none; color: #fff; background: linear-gradient(90deg, #d8243f, #2e5bdc); }
.sl-sheet-note { margin: 10px 0 0; font-size: 13px; color: #8f9ab0; text-align: center; }


/* ---- palette and mist chips ---- */
.sl-pals, .sl-mists { display: flex; gap: 8px; margin: 0 0 14px; }
.sl-pal, .sl-mist { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 64px; padding: 8px 4px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04);
  color: #cfd3dc; font-size: 13px; font-weight: 700; cursor: pointer; }
.sl-mist { min-height: 56px; }
.sl-pal[aria-pressed="true"], .sl-mist[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.10); color: #fff; }
.sl-pal-swatch, .sl-mist-swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.sl-pal[data-pal="jadegold"] .sl-pal-swatch { background: linear-gradient(90deg, #E0BC62 50%, #F4EFE4 50%); }
.sl-pal[data-pal="moyu"] .sl-pal-swatch { background: linear-gradient(90deg, #0F1A17 50%, #EEECE6 50%); }
.sl-pal[data-pal="nightblue"] .sl-pal-swatch { background: linear-gradient(90deg, #16233F 50%, #EEECE6 50%); }
.sl-pal[data-pal="brown"] .sl-pal-swatch { background: linear-gradient(90deg, #5C3A22 50%, #EDDDB8 50%); }
.sl-pal[data-pal="gray"] .sl-pal-swatch { background: linear-gradient(90deg, #3A3D44 50%, #E6E0D2 50%); }
.sl-pal[data-pal="redblue"] .sl-pal-swatch { background: linear-gradient(90deg, #3A5290 50%, #A84450 50%); }
.sl-pals-more { margin-top: -4px; }
.sl-pals-more .sl-pal { min-height: 54px; font-size: 12px; opacity: 0.88; }
.sl-mist[data-mist="white"] .sl-mist-swatch { background: #f3eee6; }
.sl-mist[data-mist="gold"] .sl-mist-swatch { background: #eddbad; }
.sl-mist[data-mist="cyanviolet"] .sl-mist-swatch { background: linear-gradient(135deg, #c2e4ef, #d8ccec); }
.sl-mist[data-mist="rainbow"] .sl-mist-swatch { background: conic-gradient(from 0deg, #e8d4c8, #d9e4d0, #cfe0ea, #ddd0e8, #e8d4c8); }
.sl-sheet-label + .sl-pals { margin-top: 2px; }
.sl-sheet-label.sub { margin-top: 2px; }

/* ---- default: circular site logo with breath, voice bounce, soft gold glow; canvas keeps mist/rings ---- */
.sl-orb { --lvl: 0; --sx: 0px; --sy: 0px; --rot: 0deg; }
.sl-orb-glow, .sl-orb-art { display: none; }
.sl-orb.logo .sl-orb-glow, .sl-orb.custom .sl-orb-glow {
  display: block; position: absolute; inset: 16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 220, 120, 0.38) 0%, rgba(228, 180, 50, 0.2) 45%, transparent 70%);
  filter: blur(16px); opacity: calc(0.18 + var(--lvl) * 0.42); transform: scale(calc(1 + var(--lvl) * 0.18));
}
.sl-orb.logo .sl-orb-art, .sl-orb.custom .sl-orb-art {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  animation: sl-breath 4.8s ease-in-out infinite; pointer-events: none;
}
.sl-orb.logo .sl-orb-img, .sl-orb.custom .sl-orb-img {
  width: 54%; height: 54%; border-radius: 50%; object-fit: cover; object-position: center;
  /* 1.04 clips the logo's hairline black margin; --lvl is the voice bounce */
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot)) scale(calc(1.04 + var(--lvl) * 0.07));
  box-shadow: 0 0 calc(8px + var(--lvl) * 20px) rgba(240, 190, 40, 0.32);
}
@keyframes sl-breath { 0%, 100% { transform: scale(0.985); } 50% { transform: scale(1.022); } }
@media (prefers-reduced-motion: reduce) {
  .sl-orb.logo .sl-orb-art, .sl-orb.custom .sl-orb-art { animation: none; }
}

/* ---- bottom-left camera / keyboard, typing bar ---- */
.sl-left { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.sl-cam, .sl-kbd { width: 40px; height: 40px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(10, 10, 24, 0.55); color: #aeb6c8; cursor: pointer; }
.sl-screen.typing .sl-kbd { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(70, 100, 255, 0.35); }
.sl-cam-menu { position: absolute; left: 12px; bottom: calc(100% + 4px); display: none; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: #1a1a28; border: 1px solid rgba(255, 255, 255, 0.14); }
.sl-screen.cam-open .sl-cam-menu { display: flex; }
.sl-cam-menu button { min-width: 140px; min-height: 44px; border-radius: 10px; border: none; background: rgba(255, 255, 255, 0.06); color: #f2f4fa; font-size: 16px; font-weight: 600; text-align: left; padding: 0 14px; cursor: pointer; }
.sl-type { position: relative; z-index: 2; display: none; gap: 8px; padding: 8px 12px 0; }
.sl-screen.typing .sl-type { display: flex; }
.sl-type-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 23px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(10, 10, 24, 0.75); color: #fff; font-size: 16px; }
.sl-type-send { flex: none; height: 46px; padding: 0 18px; border-radius: 23px; border: none; background: linear-gradient(90deg, #d8243f, #2e5bdc); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
.sl-you-photo { display: block; max-width: 120px; max-height: 90px; margin: 0 auto 4px; border-radius: 10px; object-fit: contain; }
.sl-you:has(img)::before, .sl-you:has(img)::after { content: none; }
.sl-screen input[type="file"] { display: none !important; }

/* Hidden-passphrase entry in the home chat, and hands-on (type / hold) layout. */
.bubble.bot.sl-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sl-offer-note { margin: 0; font-size: 15px; line-height: 1.45; }
.sl-offer-btn { appearance: none; border: 0; cursor: pointer; height: 42px; padding: 0 16px; border-radius: 21px;
  background: linear-gradient(90deg, #d8243f, #2e5bdc); color: #fff; font-size: 15px; font-weight: 700; }
.sl-screen.sl-hands .sl-ptt { display: none; }
.sl-screen.sl-hands .sl-kbd { display: none; }
.sl-tts { display: none; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  height: 34px; padding: 0 12px; border-radius: 17px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 10, 24, 0.55); color: #f2f4fa; font-size: 13px; font-weight: 650; cursor: pointer; }
.sl-screen.sl-hands .sl-tts { display: inline-flex; align-items: center; }
.sl-tts[aria-pressed="false"] { color: #aeb6c8; }
.sl-screen.sl-hands .sl-controls { padding-bottom: 4px; }
.sl-screen.sl-hands .sl-hold { width: min(300px, 80vw); height: 56px; }

/* Text under the orb never overlaps the controls: the stage clips, the question is
   clamped to two lines, and the answer scrolls inside the free space. */
.sl-stage { overflow: hidden; }
.sl-status { flex: none; max-width: 100%; padding: 0 44px; text-align: center; line-height: 1.4; }
.sl-orb { width: min(330px, 86vw, 36dvh); height: min(330px, 86vw, 36dvh); }
.sl-you { flex: none; font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.sl-you:has(img) { display: block; -webkit-line-clamp: unset; }
.sl-you:has(img) span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.sl-subs { flex: 0 1 auto; min-height: 0; margin-top: 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sl-line.cur { font-size: 22px; }
.sl-line.all { font-size: 18px; font-weight: 700; color: #f4f6fb; text-align: left; line-height: 1.55; }
.sl-trans { flex: none; font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sl-trans:empty { display: none; }
.sl-controls { flex: none; }
.sl-screen.sl-busy .sl-hint[data-default="1"] { display: none; }
@media (max-height: 700px) {
  .sl-stage { padding-top: calc(env(safe-area-inset-top, 0px) + 52px); }
  .sl-orb { width: min(330px, 86vw, 30dvh); height: min(330px, 86vw, 30dvh); }
  .sl-line.cur { font-size: 20px; }
  .sl-line.prev { font-size: 15px; margin-bottom: 4px; }
  .sl-line.all { font-size: 16px; }
}
@media (max-height: 600px) {
  .sl-orb { width: min(330px, 86vw, 24dvh); height: min(330px, 86vw, 24dvh); }
  .sl-you { -webkit-line-clamp: 1; line-clamp: 1; font-size: 13px; }
  .sl-status { font-size: 13px; letter-spacing: 1px; }
}
/* Mode picker: small dropdown label in the top-left corner */
.sl-speed { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); left: 12px; z-index: 4; }
.sl-speed-btn {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; gap: 1px;
  margin: 0; padding: 4px 2px; border: 0; background: transparent;
  color: rgba(240, 242, 248, 0.92); font-size: 14px; font-weight: 650; line-height: 1.2;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.sl-speed-caret { font-size: 12px; opacity: 0.7; line-height: 1; transform: translateY(1px); }
.sl-speed-btn[aria-expanded="true"] .sl-speed-caret { transform: translateY(-1px) rotate(180deg); }
.sl-speed-menu {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 5;
  min-width: 216px; max-width: min(320px, calc(100vw - 24px));
  padding: 6px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 28, 0.96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 2px;
}
.sl-speed-menu.hidden { display: none; }
.sl-speed-option {
  appearance: none; -webkit-appearance: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin: 0; padding: 9px 12px; border: 0; border-radius: 12px;
  background: transparent; color: rgba(240, 242, 248, 0.95); text-align: left; cursor: pointer;
}
.sl-speed-option:hover, .sl-speed-option:focus-visible { background: rgba(255, 255, 255, 0.08); }
.sl-speed-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sl-speed-name { font-size: 15px; font-weight: 650; line-height: 1.25; }
.sl-speed-sub { font-size: 11px; font-weight: 500; line-height: 1.3; color: rgba(190, 196, 208, 0.62); }
.sl-speed-check { flex: none; width: 1.1em; color: var(--text); font-size: 0.95rem; font-weight: 700; opacity: 0; }
.sl-speed-option[aria-selected="true"] .sl-speed-check { opacity: 1; }
/* While answering, the orb steps back so the running transcript has room. */
.sl-orb { transition: width 0.35s ease, height 0.35s ease; }
.sl-screen.sl-busy .sl-orb { width: min(330px, 70vw, 24dvh); height: min(330px, 70vw, 24dvh); }
.sl-subs { min-height: 3.2em; }
.sl-line.prev { font-size: 16px; margin-bottom: 6px; }
