/* Dual Subtitles: visual escuro de streaming. Carrega depois do style.css e só sobrescreve.
   A lógica nova está em stream.js; aqui é só aparência. Cortes do MVP no bloco 2. */

/* ============ 1. Tokens (tema único escuro) ============ */
/* :root triplo: ganha do landing.css, que troca as cores quando o sistema está no tema claro */
:root:root:root {
  --bg: #0b0b0f;
  --panel: #141419;
  --panel2: #1c1c22;
  --panel3: #24242c;
  --border: #26262e;
  --border2: #34343e;
  --input-bg: #16161c;
  --text: #f5f5f7;
  --muted: #a3a3ad;
  --accent: #d6001c;          /* botões: texto branco 5.4:1 */
  --accent-hi: #ef1c33;
  --accent-text: #ff5a5f;     /* acento usado como texto no fundo escuro: 6.4:1 */
  --active: #46d38a;
  --note: #ffd166;
  --sub-tr: #ffd166;          /* linha da tradução na legenda */
  --ds-radius: 10px;
  --ds-ease: cubic-bezier(.2, .8, .2, 1);
  --ds-top: 64px;
  --ds-gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
html.ds-stream { background: var(--bg); }
html.ds-stream body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html.ds-stream ::selection { background: rgba(214, 0, 28, .45); color: #fff; }
html.ds-stream :focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
html.ds-stream input, html.ds-stream select, html.ds-stream textarea { color-scheme: dark; }

/* ============ 2. Fora do MVP (some da tela; nada apagado). Ver tudo: /?full=1 ============ */
html:not(.ds-full) :is(
  #login-btn, #account-chip, #yt-account, #sp-account, .connect-row,
  #theme-toggle, #music-toggle-btn, #nav-help, .nav-sep,
  [data-view="shorts"], [data-view="youtube"], [data-view="spotify"], [data-view="account"],
  [data-view="admin"], [data-view="dictionary"],
  [data-menu="youtube"], [data-menu="spotify"], [data-menu="theme"], #menu-clear-cache,
  #quota-modal, #login-modal,
  .landing-tiles, .landing-logo, .l-marketing-host,
  #lib-import, .lib-empty-connect, .lib-filters-row .filter-buttons,
  #trn-retranscribe, #is-search, #is-ytsp,
  .set-row:has(#set-whisper-model), .set-row:has(#set-theme), .set-back-link
) { display: none !important; }

/* ============ 3. Botões e campos base ============ */
html.ds-stream .save-btn, html.ds-stream .landing-go, html.ds-stream .mvp-submit, html.ds-stream .treinar-cta {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  font-weight: 700; letter-spacing: .01em; min-height: 44px;
  transition: background .18s var(--ds-ease), transform .12s var(--ds-ease), box-shadow .18s var(--ds-ease);
}
html.ds-stream .save-btn:hover, html.ds-stream .landing-go:hover, html.ds-stream .mvp-submit:hover, html.ds-stream .treinar-cta:hover {
  background: var(--accent-hi); filter: none;
}
html.ds-stream .save-btn:active, html.ds-stream .landing-go:active, html.ds-stream .mvp-submit:active, html.ds-stream .treinar-cta:active { transform: scale(.97); }
html.ds-stream .treinar-cta, html.ds-stream .treinar-cta * { color: #fff !important; }
html.ds-stream .treinar-cta .tc-count { background: rgba(0,0,0,.28); color: #fff; }
html.ds-stream .link-btn { color: var(--muted); }
html.ds-stream .link-btn:hover { color: var(--text); }
html.ds-stream .icon-btn {
  background: var(--panel2); border: 1px solid transparent; color: var(--text);
  border-radius: 8px; min-width: 44px; min-height: 44px;
  transition: background .15s var(--ds-ease), transform .12s var(--ds-ease);
}
html.ds-stream .icon-btn:hover { background: var(--panel3); }
html.ds-stream .icon-btn:active { transform: scale(.94); }
html.ds-stream .icon-btn.active { background: var(--accent); color: #fff; }
html.ds-stream input[type="search"], html.ds-stream input[type="text"], html.ds-stream input[type="url"],
html.ds-stream input[type="number"], html.ds-stream select.cards-lang, html.ds-stream .speed {
  background: var(--input-bg); color: var(--text); border-color: var(--border2);
}

/* ============ 4. Topo ============ */
html.ds-stream .topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--ds-top); z-index: 70;
  padding: 0 var(--ds-gutter); gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,0) 100%);
  border-bottom: 0; backdrop-filter: none;
  transition: background .3s var(--ds-ease);
}
html.ds-stream.ds-scrolled .topbar { background: rgba(11, 11, 15, .96); box-shadow: 0 1px 0 rgba(255,255,255,.04); }
html.ds-stream .topbar .logo { width: 32px; height: 32px; border-radius: 8px; }
html.ds-stream .topbar-title { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
html.ds-stream .topbar-center { justify-content: flex-end; margin-left: auto; flex: 0 1 auto; }
html.ds-stream .topbar-search {
  width: 300px; max-width: 30vw; height: 40px; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.22); border-radius: 6px;
}
html.ds-stream .topbar-search:focus-within { border-color: #fff; background: rgba(0,0,0,.8); }
html.ds-stream .topbar-search input { color: var(--text); font-size: 14px; background: transparent; border: 0; box-shadow: none; }
html.ds-stream .topbar-search .yt-ico { display: none; }
html.ds-stream .topbar-search-btn { background: transparent; color: var(--text); }
html.ds-stream .lang-picker .lang-flag, html.ds-stream .landing-lang .lang-flag {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
  min-width: 44px; min-height: 44px;
}
html.ds-stream .lang-picker .lang-flag:hover, html.ds-stream .landing-lang .lang-flag:hover { background: rgba(255,255,255,.16); }
html.ds-stream #menu-btn { background: transparent; }
html.ds-stream #menu-btn:hover { background: rgba(255,255,255,.12); }
html.ds-stream main { max-width: none; padding: var(--ds-top) 0 64px; }
html.ds-stream .workspace { margin-top: 0; display: block; }
html.ds-stream .main-area { min-height: calc(100vh - var(--ds-top)); }

/* links de navegação dentro do topo (desktop e tablet) */
@media (min-width: 641px) {
  html.ds-stream .nav-sidebar {
    position: fixed; top: 0; left: calc(var(--ds-gutter) + 210px); z-index: 71;
    height: var(--ds-top); width: auto !important; padding: 0;
    flex-direction: row !important; align-items: center; gap: 2px;
    background: none; border: 0; border-radius: 0; overflow: visible;
  }
  html.ds-stream .nav-logo, html.ds-stream .nav-spacer { display: none; }
  html.ds-stream .nav-item {
    flex-direction: row; width: auto; height: 40px; padding: 0 12px; gap: 0;
    color: #d4d4da; border-radius: 6px; background: none;
  }
  html.ds-stream .nav-item .nav-ico { display: none; }
  html.ds-stream .nav-item .nav-label { font-size: 14px; font-weight: 500; white-space: nowrap; }
  html.ds-stream .nav-item:hover { color: #fff; background: none; }
  html.ds-stream .nav-item:hover .nav-label { color: #fff; }
  html.ds-stream .nav-item.active { color: #fff; }
  html.ds-stream .nav-item.active .nav-label { font-weight: 800; }
  html.ds-stream .nav-item.active::before {
    left: 12px; right: 12px; top: auto; bottom: 2px; width: auto; height: 2px; border-radius: 2px; background: var(--accent-text);
  }
  html.ds-stream .nav-item .due-badge { position: static; margin-left: 6px; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  html.ds-stream .topbar-search { display: none; }
  html.ds-stream .topbar-title { display: none; }
  html.ds-stream .nav-sidebar { left: calc(var(--ds-gutter) + 48px); }
}

/* celular: topo enxuto, navegação na barra de baixo */
@media (max-width: 640px) {
  :root:root:root { --ds-top: 56px; }
  html.ds-stream .topbar { padding: 0 16px; }
  html.ds-stream .topbar-center .topbar-search { display: none; }
  html.ds-stream .topbar-title { font-size: 18px; }
  html.ds-stream .bottom-nav {
    height: calc(64px + env(safe-area-inset-bottom)); padding: 4px 6px env(safe-area-inset-bottom);
    background: rgba(11, 11, 15, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,.06); align-items: center;
  }
  html.ds-stream .bottom-nav .bn-item { color: #9a9aa4; font-size: 11px; min-width: 56px; min-height: 52px; }
  html.ds-stream .bottom-nav .bn-item.active { color: #fff; }
  html.ds-stream .bottom-nav .bn-item.active::before { background: var(--accent-text); width: 22px; }
  html.ds-stream .bottom-nav .bn-fab {
    margin-top: -22px; width: 56px; height: 56px; background: var(--accent);
    box-shadow: 0 6px 20px rgba(214, 0, 28, .45), 0 0 0 4px var(--bg);
  }
  html.ds-stream .main-area { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ============ 5. Início: hero + fileiras ============ */
html.ds-stream #view-landing { position: relative; max-width: none; isolation: isolate; }
html.ds-stream .ds-hero-bg {
  position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--ds-top) - 40px);
  height: calc(min(88vh, 760px) + 40px); overflow: hidden;
  background: radial-gradient(1200px 520px at 78% 18%, rgba(214, 0, 28, .38), transparent 60%),
              radial-gradient(900px 480px at 10% 0%, rgba(110, 40, 160, .28), transparent 65%), var(--bg);
  background-size: cover; background-position: center 30%;
}
html.ds-stream .ds-hero-bg.has-art { filter: saturate(1.15); }
html.ds-stream .ds-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,11,15,.94) 0%, rgba(11,11,15,.72) 38%, rgba(11,11,15,.18) 75%, rgba(11,11,15,.35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(11,11,15,.55) 30%, rgba(11,11,15,0) 60%, rgba(11,11,15,.55) 100%);
}
html.ds-stream .ds-hero-bg.has-art { background-size: cover; background-repeat: no-repeat; }
html.ds-stream .landing-inner {
  width: 100%; max-width: none; margin: 0; padding: 0; align-items: stretch; gap: 0;
}
html.ds-stream .landing-hero {
  align-items: flex-start; text-align: left; gap: 14px;
  padding: clamp(56px, 16vh, 170px) var(--ds-gutter) 18px; max-width: 860px;
  animation: ds-rise .6s var(--ds-ease) both;
}
html.ds-stream .landing-title {
  font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; font-weight: 900; letter-spacing: -.035em;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); margin: 0; max-width: 14ch;
}
html.ds-stream .landing-sub {
  font-size: clamp(16px, 1.45vw, 20px); line-height: 1.5; color: #e2e2e8; max-width: 46ch;
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
html.ds-stream .landing-search-form {
  padding: 8px var(--ds-gutter) 0; max-width: calc(720px + 2 * var(--ds-gutter)); gap: 14px;
  animation: ds-rise .6s .08s var(--ds-ease) both;
}
html.ds-stream .landing-search-row {
  height: 62px; padding: 0 6px 0 16px; border-radius: 8px;
  background: rgba(10,10,14,.78); border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}
html.ds-stream .landing-search-row:focus-within { border-color: #fff; }
html.ds-stream .landing-search-row input { font-size: 17px; color: #fff; background: none; }
html.ds-stream .landing-search-row input::placeholder { color: #b9b9c2; }
html.ds-stream .landing-go { height: 50px; padding: 0 22px; font-size: 16px; border-radius: 6px; }
html.ds-stream .landing-controls { justify-content: flex-start; gap: 10px; }
html.ds-stream .landing-music {
  min-height: 44px; border-radius: 999px; padding: 0 16px; font-weight: 600;
  background: rgba(255,255,255,.08); color: #e8e8ee; border: 1px solid rgba(255,255,255,.18);
}
html.ds-stream .landing-music.active { background: #fff; color: #111; border-color: #fff; }
html.ds-stream .landing-music.active .icon { color: #111; }

html.ds-stream .ds-rows { padding: clamp(28px, 6vh, 64px) 0 24px; display: flex; flex-direction: column; gap: clamp(22px, 3.4vh, 38px); }
html.ds-stream .ds-row { animation: ds-rise .55s var(--ds-ease) both; }
html.ds-stream .ds-row:nth-child(2) { animation-delay: .06s; }
html.ds-stream .ds-row:nth-child(3) { animation-delay: .12s; }
.ds-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--ds-gutter); margin-bottom: 10px; }
.ds-row-title { margin: 0; font-size: clamp(18px, 1.6vw, 24px); font-weight: 800; letter-spacing: -.01em; color: #fff; }
.ds-row-more {
  background: none; border: 0; color: #c9c9d1; font: inherit; font-size: 14px; font-weight: 600;
  min-height: 44px; padding: 0 4px; cursor: pointer;
}
.ds-row-more:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ds-row-track { position: relative; }
.ds-row-scroller {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--ds-gutter);
  padding: 8px var(--ds-gutter) 18px; scrollbar-width: none;
}
.ds-row-scroller::-webkit-scrollbar { display: none; }
.ds-card-wrap { flex: 0 0 auto; scroll-snap-align: start; }
.ds-card {
  display: flex; flex-direction: column; gap: 8px; width: clamp(230px, 19vw, 320px);
  padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer;
  font: inherit; border-radius: var(--ds-radius);
  transition: transform .28s var(--ds-ease);
}
.ds-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--ds-radius); overflow: hidden;
  background: var(--panel2); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: box-shadow .28s var(--ds-ease);
}
.ds-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ds-ease); }
.ds-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%); }
.ds-pair { position: absolute; z-index: 1; left: 8px; bottom: 8px; display: inline-flex; gap: 4px; }
.ds-flag { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); vertical-align: -3px; object-fit: cover; }
.ds-play {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.95); opacity: 0; transform: scale(.8);
  transition: opacity .2s var(--ds-ease), transform .2s var(--ds-ease);
}
.ds-play::before {
  content: ""; position: absolute; left: 15px; top: 11px;
  border-left: 14px solid #111; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.ds-progress { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.ds-progress span { display: block; height: 100%; background: var(--accent); }
.ds-card-title {
  font-size: 15px; font-weight: 700; line-height: 1.3; color: #f2f2f5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ds-card-meta { font-size: 13px; color: var(--muted); margin-top: -4px; }
.ds-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .ds-card:hover { transform: translateY(-6px) scale(1.04); z-index: 2; }
  .ds-card:hover .ds-thumb { box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.9); }
  .ds-card:hover .ds-thumb img { transform: scale(1.05); }
  .ds-card:hover .ds-play, .ds-card:focus-visible .ds-play { opacity: 1; transform: none; }
}
.ds-card:focus-visible { outline: none; }
.ds-card:focus-visible .ds-thumb, .ds-card:focus-visible .ds-pair-art { box-shadow: 0 0 0 3px #fff; }
.ds-row-arrow {
  position: absolute; z-index: 3; top: 8px; bottom: 18px; width: var(--ds-gutter); min-width: 40px;
  border: 0; color: #fff; font-size: 44px; line-height: 1; cursor: pointer; opacity: 0;
  background: linear-gradient(90deg, rgba(11,11,15,.85), rgba(11,11,15,0));
  transition: opacity .2s var(--ds-ease);
}
.ds-row-arrow.prev { left: 0; }
.ds-row-arrow.next { right: 0; background: linear-gradient(270deg, rgba(11,11,15,.85), rgba(11,11,15,0)); }
.ds-row-arrow.off { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .ds-row:hover .ds-row-arrow { opacity: 1; } }
@media (hover: none) { .ds-row-arrow { display: none; } }

/* cartão de par de idiomas */
.ds-pair-card { width: clamp(180px, 14vw, 230px); }
.ds-pair-art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  aspect-ratio: 4 / 3; border-radius: var(--ds-radius); overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, hsl(var(--ds-hue) 85% 46% / .95), transparent 60%),
    radial-gradient(120% 90% at 100% 100%, hsl(calc(var(--ds-hue) + 40) 70% 28% / .9), transparent 65%), #17171d;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: box-shadow .28s var(--ds-ease);
}
.ds-code { font-size: clamp(30px, 2.6vw, 40px); font-weight: 900; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.ds-code-dst { color: rgba(255,255,255,.78); }
.ds-arrow { font-size: 22px; color: rgba(255,255,255,.8); }
@media (hover: hover) and (pointer: fine) {
  .ds-pair-card:hover .ds-pair-art { box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.9); }
}
.ds-pair-card .ds-card-title { font-size: 14px; font-weight: 600; display: block; }
.ds-rows-empty { margin: 0; padding: 0 var(--ds-gutter); color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  html.ds-stream .ds-hero-bg { height: 74vh; background-position: 62% center; }
  html.ds-stream .ds-hero-bg::after {
    background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,15,.82) 38%, rgba(11,11,15,.55) 70%, rgba(11,11,15,.75) 100%);
  }
  html.ds-stream .landing-hero { padding-top: 64px; }
  html.ds-stream .landing-title { font-size: clamp(32px, 10vw, 44px); }
  html.ds-stream .landing-sub { font-size: 16px; }
  html.ds-stream .landing-search-row { height: auto; flex-wrap: wrap; padding: 8px; gap: 8px; }
  html.ds-stream .landing-search-row .landing-search-ico { display: none; }
  html.ds-stream .landing-search-row input { flex: 1 1 100%; height: 48px; padding: 0 8px; font-size: 16px; }
  html.ds-stream .landing-go { flex: 1 1 100%; height: 52px; font-size: 17px; }
  .ds-card { width: 72vw; }
  .ds-pair-card { width: 40vw; }
  .ds-row-scroller { gap: 10px; }
}

/* ============ 6. Player ============ */
html.ds-stream .player-view, html.ds-stream .view-panel, html.ds-stream .player-upnext, html.ds-stream .pun-list { min-width: 0; max-width: 100%; }
html.ds-stream .player-view:not(.no-video) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 20px; padding: 18px var(--ds-gutter) 0; width: 100%; max-width: 1760px; margin: 0 auto; box-sizing: border-box;
}
html.ds-stream .player-view:not(.no-video) .library-col { display: none; }
html.ds-stream #player-wrap {
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
}
html.ds-stream .video-meta { padding: 16px 2px 4px; }
html.ds-stream #video-title { font-size: clamp(20px, 2vw, 30px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
html.ds-stream .video-sub { color: var(--muted); font-size: 14px; }

/* legenda dual estilo streaming: original em cima, tradução embaixo, sombra limpa, tamanho ajustável */
html.ds-stream .subs { bottom: 9%; left: 4%; right: 4%; }
html.ds-stream .subs .seg {
  background: none; padding: 0; max-width: 100%; border-radius: 0;
  display: inline-flex; flex-direction: column; align-items: center; gap: .18em;
}
html.ds-stream .subs .orig, html.ds-stream .subs .tr, html.ds-stream .subs .trn {
  display: inline-block; padding: .06em .32em; border-radius: 4px;
  background: rgba(0, 0, 0, .38);
  text-shadow: 0 0 2px #000, 0 0 4px #000, 0 2px 6px rgba(0,0,0,.9);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
html.ds-stream .subs .orig {
  color: #fff; font-weight: 700; letter-spacing: .005em; line-height: 1.22;
  font-size: calc(clamp(15px, 2.1vw, 30px) * var(--ds-sub-scale, 1));
}
html.ds-stream .subs .tr {
  color: var(--sub-tr); font-weight: 600; line-height: 1.22; margin-top: 0;
  font-size: calc(clamp(14px, 1.8vw, 26px) * var(--ds-sub-scale, 1));
}
html.ds-stream .subs .trn {
  color: #d5dcea; font-style: italic; font-weight: 500;
  font-size: calc(clamp(11px, 1.3vw, 19px) * var(--ds-sub-scale, 1));
}
html.ds-stream #player-wrap:fullscreen .subs .orig, html.ds-stream #player-wrap:-webkit-full-screen .subs .orig { font-size: calc(clamp(26px, 3vw, 46px) * var(--ds-sub-scale, 1)); }
html.ds-stream #player-wrap:fullscreen .subs .tr, html.ds-stream #player-wrap:-webkit-full-screen .subs .tr { font-size: calc(clamp(22px, 2.6vw, 40px) * var(--ds-sub-scale, 1)); }
html.ds-stream #player-wrap:fullscreen .subs .trn, html.ds-stream #player-wrap:-webkit-full-screen .subs .trn { font-size: calc(clamp(17px, 1.8vw, 28px) * var(--ds-sub-scale, 1)); }
html.ds-stream body.mini-on #player-wrap .subs .orig { font-size: 14px; }
html.ds-stream body.mini-on #player-wrap .subs .tr { font-size: 13px; }
html.ds-stream .pip-body { background: #000; }

/* controles */
html.ds-stream .player-bar { gap: 8px; margin-top: 8px; padding: 10px; background: var(--panel); border-radius: 12px; border: 1px solid var(--border); }
html.ds-stream .transport { background: var(--panel2); border: 0; border-radius: 999px; }
html.ds-stream .transport .icon-btn { background: none; }
html.ds-stream .play-btn { background: #fff !important; color: #111 !important; border-radius: 50% !important; min-width: 48px; min-height: 48px; }
html.ds-stream .play-btn .icon { color: #111; }
html.ds-stream .ab-btn { background: var(--panel2); border-color: transparent; color: var(--text); min-width: 44px; min-height: 44px; border-radius: 8px; }
html.ds-stream .sync-group { background: var(--panel2); border-color: transparent; border-radius: 10px; }
html.ds-stream .sync-label { color: var(--muted); }
html.ds-stream .offset-val { color: var(--note); }
html.ds-stream .time-display { color: #d4d4da; font-variant-numeric: tabular-nums; }
.ds-sub-size { display: inline-flex; align-items: center; gap: 2px; background: var(--panel2); border-radius: 10px; padding: 2px; }
.ds-sub-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px;
  min-width: 44px; min-height: 44px; border: 0; border-radius: 8px; background: none; color: var(--text);
  font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
}
.ds-sub-btn.big { font-size: 18px; }
.ds-sub-btn .ds-sub-sign { font-size: .8em; font-weight: 700; }
.ds-sub-btn:hover { background: var(--panel3); }
.ds-sub-btn:active { transform: scale(.94); }
.ds-sub-val { min-width: 42px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* transcrição */
html.ds-stream .transcript-col { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
html.ds-stream .transcript-head { border-bottom-color: var(--border); }
html.ds-stream .trn-title { font-size: 16px; font-weight: 800; }
html.ds-stream .trn-paste-btn { color: var(--accent-text); }
html.ds-stream .transcript .line { border-radius: 8px; transition: background .2s var(--ds-ease); }
html.ds-stream .transcript .line.active { background: rgba(255,255,255,.06); box-shadow: inset 3px 0 0 var(--accent-text); }
html.ds-stream .transcript .line .tr { color: #c9c9d1; }
html.ds-stream .transcript .line.active .tr { color: var(--sub-tr); }

/* "a seguir": fileira horizontal sob o player em todas as larguras */
html.ds-stream .player-view:not(.no-video) .player-upnext:not([hidden]) { display: block; grid-column: 1 / -1; padding: 8px 0 24px; }
html.ds-stream .pun-head { padding: 0 0 10px; }
html.ds-stream .pun-title { font-size: 20px; font-weight: 800; }
html.ds-stream .pun-list { flex-direction: row; overflow-x: auto; gap: 12px; padding: 4px 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
html.ds-stream .pun-list::-webkit-scrollbar { display: none; }
html.ds-stream .pun-item {
  flex: 0 0 auto; width: clamp(220px, 18vw, 280px); flex-direction: column; align-items: stretch;
  background: none; border: 0; padding: 0; gap: 8px; scroll-snap-align: start; text-align: left;
  transition: transform .25s var(--ds-ease);
}
html.ds-stream .pun-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--ds-radius); }
@media (hover: hover) and (pointer: fine) { html.ds-stream .pun-item:hover { transform: translateY(-4px); } }

@media (max-width: 640px) {
  html.ds-stream .player-view:not(.no-video) { padding: 0; gap: 0; display: block; }
  html.ds-stream #player-wrap { border-radius: 0; box-shadow: none; }
  html.ds-stream .video-meta { padding: 12px 16px 2px; }
  html.ds-stream #video-title { font-size: 19px; }
  html.ds-stream .player-bar { margin: 8px 12px 0; padding: 8px; border-radius: 12px; justify-content: center; }
  html.ds-stream #help-btn { display: none; }
  html.ds-stream .sync-group .sync-label { display: none; }
  html.ds-stream .transcript-col { margin: 12px 12px 0; }
  html.ds-stream .player-upnext { padding: 8px 16px 24px !important; }
  html.ds-stream .pun-item { width: 64vw; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  html.ds-stream .player-view:not(.no-video) { grid-template-columns: 1fr; }
}

/* ============ 7. Biblioteca ============ */
html.ds-stream .player-view.no-video { height: auto; min-height: 0; max-width: none; padding: 28px var(--ds-gutter) 24px; }
html.ds-stream .player-view.no-video .library-col { background: none; border: 0; padding: 0; }
html.ds-stream .lib-head h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em; margin: 0; }
html.ds-stream .lib-search-wrap { background: var(--input-bg); border-color: var(--border2); border-radius: 8px; }
html.ds-stream .player-view.no-video .library-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px 14px;
  overflow: visible; padding: 8px 0 24px;
}
html.ds-stream .player-view.no-video .lib-card {
  max-width: none; background: none; border: 0; padding: 0; border-radius: var(--ds-radius);
  transition: transform .28s var(--ds-ease);
}
html.ds-stream .player-view.no-video .lib-card:hover { background: none; }
html.ds-stream .player-view.no-video .lib-thumb {
  border-radius: var(--ds-radius); box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: box-shadow .28s var(--ds-ease);
}
html.ds-stream .player-view.no-video .lib-meta { padding: 8px 2px 0; }
html.ds-stream .lib-title { font-weight: 700; color: #f2f2f5; }
html.ds-stream .lib-sub { color: var(--muted); }
html.ds-stream .player-view.no-video .lib-card:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  html.ds-stream .player-view.no-video .lib-card:hover { transform: translateY(-5px) scale(1.03); }
  html.ds-stream .player-view.no-video .lib-card:hover .lib-thumb { box-shadow: 0 18px 40px rgba(0,0,0,.6), 0 0 0 2px rgba(255,255,255,.9); }
}
html.ds-stream .lib-star { background: rgba(0,0,0,.6); border-radius: 50%; min-width: 36px; min-height: 36px; }
html.ds-stream .dict-lang-cards .lib-lang-card, html.ds-stream .lib-lang-cards > * { border-radius: 10px; }
html.ds-stream .chip-toggle, html.ds-stream .fav-filter { border-radius: 999px; }
@media (max-width: 640px) {
  html.ds-stream .player-view.no-video { padding: 18px 16px 24px; }
  html.ds-stream .player-view.no-video .library-grid { grid-template-columns: 1fr 1fr; gap: 18px 10px; }
  html.ds-stream .lib-title { font-size: 14px; }
}

/* ============ 8. Treinar, dicionário, configurações ============ */
html.ds-stream .view-panel:not(#view-landing) { padding: 28px var(--ds-gutter) 24px; }
html.ds-stream .view-head h2, html.ds-stream .settings-card h2, html.ds-stream .dict-head h2, html.ds-stream .admin-head h2 {
  font-size: clamp(26px, 3vw, 40px); font-weight: 900; letter-spacing: -.03em;
}
html.ds-stream .view-intro { color: #c4c4cc; font-size: 15px; max-width: 70ch; }
html.ds-stream .settings-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; max-width: 760px; }
html.ds-stream .set-row { border-color: var(--border); }
html.ds-stream .set-desc { color: var(--muted); }
html.ds-stream .card-item, html.ds-stream .dict-item, html.ds-stream .flashcard {
  background: var(--panel); border-color: var(--border); border-radius: 12px;
}
html.ds-stream .cards-search-row { background: var(--input-bg); border-color: var(--border2); border-radius: 8px; }
html.ds-stream .tag-chip { border-radius: 999px; }

/* ============ 9. Painéis e janelas ============ */
html.ds-stream .confirm-card, html.ds-stream .wizard-card, html.ds-stream .shortcuts-card,
html.ds-stream .lang-dropdown, html.ds-stream .import-sheet, html.ds-stream .embedded-review, html.ds-stream .note-col {
  background: var(--panel); border-color: var(--border2); color: var(--text);
}
html.ds-stream .confirm-card, html.ds-stream .shortcuts-card { border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
html.ds-stream .onboarding { background: rgba(0,0,0,.8); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.ds-stream .wizard-card { border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
html.ds-stream .onboarding.mobile .wizard-card { border-radius: 0; background: var(--bg); }
html.ds-stream .wizard-progressbar { background: var(--panel3); height: 4px; border-radius: 4px; }
html.ds-stream .wizard-progressbar #wizard-fill { background: var(--accent); }
html.ds-stream .wizard-counter { color: var(--muted); }
html.ds-stream .wizard-body h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; letter-spacing: -.02em; }
html.ds-stream .wiz-lang-card, html.ds-stream .wiz-level, html.ds-stream .wiz-pace, html.ds-stream .wiz-habit-card {
  background: var(--panel2); border-color: transparent; border-radius: 12px;
  transition: transform .18s var(--ds-ease), background .18s var(--ds-ease), box-shadow .18s var(--ds-ease);
}
html.ds-stream .wiz-lang-card:hover, html.ds-stream .wiz-level:hover, html.ds-stream .wiz-pace:hover, html.ds-stream .wiz-habit-card:hover { background: var(--panel3); }
html.ds-stream :is(.wiz-lang-card, .wiz-level, .wiz-pace, .wiz-habit-card):is(.selected, .active, [aria-pressed="true"], [aria-checked="true"]) {
  background: rgba(214, 0, 28, .16); box-shadow: inset 0 0 0 2px var(--accent-text);
}
html.ds-stream .wiz-lang-card:active, html.ds-stream .wiz-level:active { transform: scale(.97); }
html.ds-stream .modal-x { min-width: 44px; min-height: 44px; border-radius: 50%; background: transparent; color: var(--muted); border: 0; }
html.ds-stream .modal-x:hover { background: var(--panel3); color: var(--text); }

html.ds-stream .menu-drawer { z-index: 900; }
html.ds-stream .menu-scrim { z-index: 890; }
@media (hover: none) { html:not(.ds-full) [data-menu="help"] { display: none !important; } }
html.ds-stream .menu-drawer { background: var(--panel); border-left: 1px solid var(--border); box-shadow: -30px 0 80px rgba(0,0,0,.5); }
html.ds-stream .menu-item { min-height: 52px; border-radius: 10px; font-size: 16px; }
html.ds-stream .menu-item:hover { background: var(--panel2); }
html.ds-stream .menu-scrim, html.ds-stream .er-scrim { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html.ds-stream .mini-bar { background: rgba(20,20,25,.96); }
html.ds-stream body.mini-on #player-wrap { border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08); }
html.ds-stream .install-banner { background: var(--panel); border-color: var(--border2); }
html.ds-stream .ib-btn { background: var(--accent); color: #fff; }

/* cadastro e consentimento (mvp-gate.js) no mesmo visual */
html.ds-stream .mvp-scrim { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: ds-fade .2s var(--ds-ease) both; }
html.ds-stream .mvp-card {
  max-width: 440px; padding: 28px 28px 24px; border-radius: 16px; background: #121217; border: 1px solid #2c2c35;
  box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: ds-pop .28s var(--ds-ease) both;
}
html.ds-stream .mvp-card h2 { font-size: 26px; font-weight: 900; letter-spacing: -.025em; }
html.ds-stream .mvp-head img { width: 36px; height: 36px; }
html.ds-stream .mvp-lead { color: #c4c4cc; font-size: 15px; margin-bottom: 20px; }
html.ds-stream .mvp-field > span { font-size: 13px; color: #d9d9df; letter-spacing: .01em; }
html.ds-stream .mvp-field input {
  height: 50px; border-radius: 8px; background: #1b1b21; border: 1px solid #3a3a45; color: #fff; padding: 0 14px;
}
html.ds-stream .mvp-field input::placeholder { color: #8a8a95; }
html.ds-stream .mvp-field input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
html.ds-stream .mvp-field input[aria-invalid="true"] { border-color: var(--accent-text); }
html.ds-stream .mvp-err { color: #ff8a8e; font-size: 13px; }
html.ds-stream .mvp-or { color: #9a9aa4; }
html.ds-stream .mvp-consent {
  padding: 12px; margin-top: 10px; border-radius: 10px; background: #18181e; border: 1px solid #2a2a33; color: #c4c4cc; font-size: 14px;
}
html.ds-stream .mvp-consent:has(input:checked) { border-color: rgba(255,90,95,.6); background: rgba(214, 0, 28, .08); }
html.ds-stream .mvp-consent input { width: 22px; height: 22px; accent-color: var(--accent); }
html.ds-stream .mvp-consent b { color: #fff; }
html.ds-stream .mvp-consent a { color: #fff; text-underline-offset: 2px; }
html.ds-stream .mvp-submit { height: 54px; border-radius: 8px; font-size: 17px; margin-top: 18px; }
html.ds-stream .mvp-close { color: #a3a3ad; min-width: 44px; min-height: 44px; }
html.ds-stream .mvp-msg { color: #e2e2e8; }
@media (max-width: 520px) {
  html.ds-stream .mvp-card { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; animation: ds-sheet .3s var(--ds-ease) both; }
  html.ds-stream .mvp-card h2 { font-size: 23px; }
}

/* ============ 10. Aviso (toast): estilo completo aqui, sem depender de outra folha ============ */
html.ds-stream #toast.toast {
  position: fixed; z-index: 9999; top: calc(var(--ds-top) + 10px); right: 16px; left: auto; bottom: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  width: 380px; max-width: calc(100vw - 32px); box-sizing: border-box;
  padding: 14px 44px 14px 16px; margin: 0;
  background: rgba(24, 24, 30, .97); color: #f5f5f7;
  border: 1px solid #34343e; border-left: 4px solid #a3a3ad; border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: ds-toast .26s var(--ds-ease) both;
}
html.ds-stream #toast.toast[hidden] { display: none !important; }
html.ds-stream #toast.toast.done { border-left-color: #46d38a; }
html.ds-stream #toast.toast.error { border-left-color: var(--accent-text); background: rgba(40, 14, 18, .97); border-color: #5a2430; }
html.ds-stream #toast.toast.working, html.ds-stream #toast.toast.opening { border-left-color: #fff; }
html.ds-stream #toast .toast-ico { display: inline-flex; flex: 0 0 auto; width: 22px; height: 22px; }
html.ds-stream #toast .toast-ico svg, html.ds-stream #toast .toast-ico .icon { width: 22px; height: 22px; }
html.ds-stream #toast.done .toast-ico { color: #46d38a; }
html.ds-stream #toast.error .toast-ico { color: var(--accent-text); }
html.ds-stream #toast.working .toast-ico, html.ds-stream #toast.opening .toast-ico { color: #fff; animation: ds-spin 1s linear infinite; }
html.ds-stream #toast .toast-text { flex: 1 1 auto; min-width: 0; color: inherit; }
html.ds-stream #toast .toast-link {
  flex: 0 0 auto; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none;
  padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
}
html.ds-stream #toast .toast-close {
  position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; border-radius: 50%; color: #a3a3ad; cursor: pointer; padding: 0;
}
html.ds-stream #toast .toast-close:hover { background: rgba(255,255,255,.08); color: #fff; }
html.ds-stream #toast .toast-close svg { width: 18px; height: 18px; }
html.ds-stream #toast .toast-bar-wrap { flex: 0 0 100%; height: 4px; margin-top: 4px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; }
html.ds-stream #toast .toast-bar { height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 640px) {
  html.ds-stream #toast.toast {
    top: auto; left: 12px; right: 12px; width: auto; max-width: none;
    bottom: calc(80px + env(safe-area-inset-bottom));
    animation-name: ds-toast-up;
  }
}

/* ============ 11. Movimento ============ */
@keyframes ds-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ds-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ds-sheet { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes ds-toast { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ds-toast-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ds-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html.ds-stream *, html.ds-stream *::before, html.ds-stream *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ds-card:hover, html.ds-stream .player-view.no-video .lib-card:hover { transform: none !important; }
}

/* ============ 12. Navegação principal (stream-nav.js) ============ */
html:not(.ds-full) :is(.nav-sidebar, #bottom-nav, #menu-btn) { display: none !important; }
html.ds-full :is(#ds-tabbar, #ds-topnav, #ds-add-top) { display: none !important; }
.ds-ico { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.ds-ico svg { grid-area: 1 / 1; transition: opacity .18s var(--ds-ease), transform .25s var(--ds-ease); }
.ds-ico svg.on { opacity: 0; transform: scale(.7); }
.active > .ds-ico svg.on { opacity: 1; transform: none; }
.active > .ds-ico svg.off { opacity: 0; transform: scale(1.2); }
.ds-badge {
  position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font: 700 11px/18px -apple-system, BlinkMacSystemFont, sans-serif; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.ds-badge[hidden] { display: none; }
.ds-pressed { animation: ds-press .32s var(--ds-ease); }
@keyframes ds-press { 0% { transform: scale(1); } 35% { transform: scale(.88); } 100% { transform: scale(1); } }

/* barra de cima no computador */
.ds-topnav { display: none; }
.ds-add-top { display: none; }
@media (min-width: 641px) {
  .ds-topnav {
    position: relative; display: flex; align-items: center; gap: 2px; margin-left: 18px; height: var(--ds-top);
  }
  .ds-toplink {
    display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 0; border-radius: 8px;
    background: none; color: #c9c9d1; font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer;
    transition: color .15s var(--ds-ease), background .15s var(--ds-ease);
  }
  .ds-toplink .ds-ico { width: 20px; height: 20px; }
  .ds-toplink .ds-ico svg { width: 20px; height: 20px; }
  .ds-toplink:hover { color: #fff; background: rgba(255,255,255,.06); }
  .ds-toplink.active { color: #fff; }
  .ds-topnav-ink {
    position: absolute; left: 0; bottom: 6px; height: 3px; width: 0; border-radius: 3px; background: var(--accent-text);
    transition: transform .35s var(--ds-ease), width .35s var(--ds-ease), opacity .2s; opacity: 0; pointer-events: none;
  }
  html.ds-stream .topbar-center { gap: 10px; }
  html.ds-stream .topbar-search { display: flex !important; width: clamp(220px, 26vw, 380px); max-width: none; height: 44px; }
  html.ds-stream .topbar-title { display: inline !important; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  html.ds-stream .topbar-title { display: none !important; }
  .ds-toplink .ds-lbl { font-size: 13px; }
}
@media (min-width: 641px) and (max-width: 979px) {
  html.ds-stream .topbar-search { display: none !important; }
  .ds-add-top {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; border: 0; border-radius: 22px;
    background: var(--accent); color: #fff; font: 700 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
  }
  .ds-add-top svg { width: 20px; height: 20px; }
  .ds-toplink .ds-ico { display: none; }
}

/* barra de baixo no celular: pílula flutuante, + no centro sem bater nos rótulos */
.ds-tabbar { display: none; }
@media (max-width: 640px) {
  .ds-tabbar {
    position: fixed; z-index: 85; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1fr 72px 1fr 1fr; align-items: center;
    height: 66px; padding: 0 4px; border-radius: 22px;
    background: rgba(22, 22, 28, .9); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 36px rgba(0,0,0,.55);
  }
  .ds-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-width: 44px; height: 58px; padding: 0; border: 0; background: none; color: #a3a3ad; cursor: pointer;
    font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent; transition: color .2s var(--ds-ease);
  }
  .ds-tab .ds-ico { width: 56px; height: 30px; border-radius: 15px; transition: background .25s var(--ds-ease); }
  .ds-tab.active { color: #fff; }
  .ds-tab.active .ds-ico { background: rgba(255, 90, 95, .2); }
  .ds-tab.active .ds-ico svg { color: #ff8a8e; }
  .ds-tab .ds-badge { top: -2px; right: 6px; }
  .ds-fab {
    justify-self: center; width: 58px; height: 58px; margin-top: -26px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: #fff;
    background: radial-gradient(circle at 30% 25%, #ff3b4f, var(--accent) 60%);
    box-shadow: 0 10px 24px rgba(214, 0, 28, .5), 0 0 0 5px var(--bg);
    transition: transform .2s var(--ds-ease), box-shadow .2s var(--ds-ease);
  }
  .ds-fab:active { transform: scale(.9); }
  html.ds-stream .main-area { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  html.ds-stream #toast.toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  html.ds-stream body.mini-on #player-wrap[data-mini-corner^="b"] { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  html.ds-stream .topbar-right { display: none; }
}
.landing-search-row.ds-flash { animation: ds-flash .9s var(--ds-ease); }
@keyframes ds-flash { 0%, 100% { box-shadow: 0 18px 50px rgba(0,0,0,.45); } 30% { box-shadow: 0 0 0 4px rgba(255,90,95,.55), 0 18px 50px rgba(0,0,0,.45); } }

/* Perfil */
.ds-profile {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 760px; width: 100%; margin: 0 auto 16px;
  padding: 18px; border-radius: 14px; background: linear-gradient(135deg, rgba(214,0,28,.22), rgba(20,20,25,.9) 60%); border: 1px solid var(--border);
}
.ds-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; }
.ds-avatar svg { width: 30px; height: 30px; }
.ds-profile-txt { flex: 1 1 160px; }
.ds-profile-txt h2 { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ds-profile-txt p { margin: 2px 0 0; color: #c4c4cc; font-size: 14px; }
.ds-profile-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: rgba(255,255,255,.1); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none;
}
.ds-profile-link:hover { background: rgba(255,255,255,.18); }
html.ds-stream #view-settings .settings-card { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .ds-pressed { animation: none; } }

/* ============ 13. Onboarding do convite (stream-onboarding.js) ============ */
html.ds-stream .mvp-card.ds-ob {
  max-width: 420px; padding: 0; overflow: hidden; display: flex; flex-direction: column;
  height: min(720px, calc(100dvh - 32px)); max-height: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(214,0,28,.25), transparent 60%), #0f0f14;
}
html.ds-stream .ds-ob .mvp-close { z-index: 5; top: 12px; right: 12px; background: rgba(0,0,0,.4); }
.ds-ob-stage { position: relative; flex: 1 1 auto; min-height: 0; perspective: 1100px; touch-action: pan-y; }
.ds-ob-panel {
  position: absolute; inset: 0; overflow-y: auto; padding: 28px 24px 12px;
  transition: transform .55s var(--ds-ease), opacity .4s var(--ds-ease); backface-visibility: hidden; transform-style: preserve-3d;
}
.ds-ob-panel[data-pos="cur"] { transform: none; opacity: 1; }
.ds-ob-panel[data-pos="prev"] { transform: translateX(-70%) rotateY(38deg) translateZ(-160px); opacity: 0; pointer-events: none; }
.ds-ob-panel[data-pos="next"] { transform: translateX(70%) rotateY(-38deg) translateZ(-160px); opacity: 0; pointer-events: none; }
.ds-ob-formpanel[data-pos="next"] { transform: rotateY(-100deg) translateZ(-80px); }
.ds-ob-slide { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding-top: 36px; }
/* cenas: cartões reais da interface flutuando em 3D, sem moldura */
.ds-ob-scene { position: relative; width: 100%; height: min(340px, 42dvh); perspective: 900px; }
.ds-ob-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -14deg)); transition: transform .5s var(--ds-ease);
}
.ds-ob-scene::before {
  content: ""; position: absolute; inset: 10% 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214,0,28,.45), rgba(110,40,160,.18) 60%, transparent); filter: blur(28px);
}
.ds-fc {
  position: absolute; left: 50%; top: 50%; transform-style: preserve-3d;
  transform: translate(-50%, -50%) translateZ(var(--z, 0)) rotateZ(var(--r, 0deg));
  border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), 0 12px 24px -12px rgba(0,0,0,.6);
  animation: ds-bob 6s var(--d, 0s) ease-in-out infinite; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: left;
}
@keyframes ds-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.ds-fc-player { width: 250px; margin-top: -10px; background: #18181e; padding: 8px; border: 1px solid rgba(255,255,255,.08); }
.ds-fc-frame, .ds-fc-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #1b2440 0%, #3b2a4a 45%, #10131c 100%);
}
.ds-fc-frame i, .ds-fc-thumb i { position: absolute; border-radius: 50%; filter: blur(6px); }
.ds-fc-frame .l1, .ds-fc-thumb .l1 { left: 12%; top: 22%; width: 26px; height: 26px; background: #ffb347; opacity: .8; }
.ds-fc-frame .l2, .ds-fc-thumb .l2 { right: 18%; top: 14%; width: 18px; height: 18px; background: #ff5a5f; opacity: .7; }
.ds-fc-frame .l3 { left: 45%; top: 38%; width: 40px; height: 14px; background: #7aa2ff; opacity: .45; }
.ds-fc-subs { position: absolute; left: 6px; right: 6px; bottom: 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ds-fc-subs .o, .ds-fc-strip .o { color: #fff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 3px #000; }
.ds-fc-subs .t, .ds-fc-strip .t { color: #ffd166; font-weight: 600; font-size: 11.5px; text-shadow: 0 1px 3px #000; }
.ds-fc mark { background: rgba(255,90,95,.35); color: #fff; border-radius: 4px; padding: 0 3px; box-shadow: 0 0 0 1px rgba(255,90,95,.7); }
.ds-fc-bar { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; }
.ds-fc-bar .pl { width: 0; height: 0; border-left: 9px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ds-fc-bar .tr { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); }
.ds-fc-bar .tr span { display: block; width: 42%; height: 100%; border-radius: 2px; background: #d6001c; }
.ds-fc-bar .tm { color: #a3a3ad; font-size: 10px; font-variant-numeric: tabular-nums; }
.ds-fc-chip { padding: 8px 12px; border-radius: 999px; background: #fff; color: #111; font-weight: 800; font-size: 12px; white-space: nowrap; }
.ds-fc-player ~ .ds-fc-chip { left: 80%; top: 14%; }
.ds-fc-size { left: 24% !important; top: 84% !important; display: inline-flex; gap: 6px; align-items: baseline; background: #24242c; color: #fff; }
.ds-fc-size span { color: #a3a3ad; font-weight: 600; font-size: 11px; }
.ds-fc-strip {
  top: 70%; width: 250px; padding: 12px; background: #000; border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ds-fc-tap {
  position: absolute; right: 30px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.35); box-shadow: 0 0 0 2px rgba(255,255,255,.8); animation: ds-tap 2.4s ease-out infinite;
}
@keyframes ds-tap { 0%, 30% { transform: scale(1.6); opacity: 0; } 45% { transform: scale(1); opacity: 1; } 70% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.ds-fc-pop { top: 36%; width: 210px; padding: 14px; background: #fff; color: #1a1a1f; }
.ds-fc-pop::after { content: ""; position: absolute; right: 38px; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.ds-fc-pop .w { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.ds-fc-pop .ipa { font-size: 11px; color: #6a6a72; margin-top: 1px; }
.ds-fc-pop .m { margin-top: 8px; font-size: 14px; font-weight: 700; }
.ds-fc-pop .x { margin-top: 2px; font-size: 12px; color: #4a4a52; }
.ds-fc-pop .btn { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 8px; background: #d6001c; color: #fff; font-size: 12px; font-weight: 800; }
.ds-fc-card, .ds-fc-flip { width: 190px; height: 230px; }
.ds-fc-card { background: #f2f2f5; }
.ds-fc-card.back2 { background: #d9d9df; left: 60%; }
.ds-fc-card.back1 { left: 55%; }
.ds-fc-flip { box-shadow: none; }
.ds-fc-flip .in { position: absolute; inset: 0; transform-style: preserve-3d; animation: ds-flip 6s 1s ease-in-out infinite; }
.ds-fc-flip .f, .ds-fc-flip .b {
  position: absolute; inset: 0; backface-visibility: hidden; border-radius: 16px; padding: 16px; background: #fff; color: #1a1a1f;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.75);
}
.ds-fc-flip .b { transform: rotateY(180deg); justify-content: center; }
.ds-fc-flip .k { font-size: 24px; font-weight: 900; letter-spacing: -.02em; }
.ds-fc-flip .c { font-size: 13px; color: #4a4a52; }
.ds-fc-flip .ds-fc-thumb { margin-top: auto; }
.ds-fc-flip .row { display: flex; gap: 6px; margin-top: 10px; }
.ds-fc-flip .row span { flex: 1; text-align: center; padding: 8px 0; border-radius: 8px; font-size: 12px; font-weight: 800; }
.ds-fc-flip .ag { background: #f1e1e3; color: #a3001a; }
.ds-fc-flip .gd { background: #1f9d5b; color: #fff; }
@keyframes ds-flip { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.ds-fc-due { left: 34% !important; top: 12% !important; background: #24242c; color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .ds-fc, .ds-fc-tap, .ds-fc-flip .in { animation: none !important; }
  .ds-ob-tilt { transition: none; }
}
.ds-ob-title { margin: 18px 0 0; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; color: #fff; }
.ds-ob-line { margin: 0; font-size: 16px; color: #c9c9d1; }
.ds-ob-nav {
  flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.06);
}
.ds-ob-skip { justify-self: start; min-height: 44px; padding: 0 8px; border: 0; background: none; color: #a3a3ad; font: 600 15px/1 inherit; font-family: inherit; cursor: pointer; }
.ds-ob-skip:hover { color: #fff; }
.ds-ob-dots { display: flex; gap: 6px; }
.ds-ob-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); transition: width .3s var(--ds-ease), background .3s; }
.ds-ob-dots i.on { width: 20px; background: #fff; }
.ds-ob-next { white-space: nowrap;
  justify-self: end; min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: #fff; color: #111;
  font: 800 15px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
}
.ds-ob.ds-ob-atform .ds-ob-nav { display: none; }

/* cartão de cadastro compacto */
html.ds-stream .ds-ob .mvp-head { margin: 0 40px 4px 0; }
html.ds-stream .ds-ob .mvp-lead { margin-bottom: 16px; }
.ds-ob-formpanel { padding-top: 26px; }
.ds-collapsed { display: none !important; }
.ds-invite-chip {
  display: flex; align-items: center; gap: 10px; min-height: 48px; margin-bottom: 14px; padding: 0 6px 0 14px; border-radius: 12px;
  background: rgba(70, 211, 138, .1); border: 1px solid rgba(70, 211, 138, .35); color: #e8fff1; font-size: 15px;
}
.ds-invite-chip b { letter-spacing: .06em; }
.ds-ok { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #46d38a; color: #0b0b0f; font-weight: 900; font-size: 13px; }
.ds-link { margin-left: auto; min-height: 44px; padding: 0 10px; border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.ds-seg { margin: 4px 0 8px; }
.ds-seg-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #d9d9df; }
.ds-seg-track { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #1b1b21; border: 1px solid #34343e; }
.ds-seg-track button { position: relative; z-index: 1; min-height: 42px; border: 0; background: none; color: #a3a3ad; font: 700 15px/1 inherit; font-family: inherit; cursor: pointer; transition: color .2s; }
.ds-seg-track button[aria-checked="true"] { color: #111; }
.ds-seg-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff; transition: transform .3s var(--ds-ease); }
.ds-seg[data-k="wa"] .ds-seg-thumb { transform: translateX(100%); }
html.ds-stream .ds-ob .ds-seg + .mvp-field > span, html.ds-stream .ds-ob .ds-seg ~ .mvp-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
html.ds-stream .ds-ob .mvp-consent.ds-switch {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; border-radius: 12px; cursor: pointer;
}
.ds-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-sw { flex: 0 0 auto; position: relative; width: 46px; height: 28px; border-radius: 14px; background: #3a3a45; transition: background .2s var(--ds-ease); }
.ds-sw span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .25s var(--ds-ease); }
.ds-switch input:checked + .ds-sw { background: var(--accent); }
.ds-switch input:checked + .ds-sw span { transform: translateX(18px); }
.ds-switch input:focus-visible + .ds-sw { outline: 2px solid #fff; outline-offset: 2px; }
.ds-sw-text { color: #f0f0f3; font-size: 14.5px; line-height: 1.35; }
.ds-sw-text em { font-style: normal; color: #a3a3ad; font-size: 12.5px; margin-left: 2px; }
.ds-legal { margin: 2px 0 0 72px; font-size: 13px; color: #a3a3ad; }
.ds-legal summary { min-height: 32px; display: inline-flex; align-items: center; cursor: pointer; color: #c9c9d1; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.ds-legal summary::-webkit-details-marker { display: none; }
.ds-legal p { margin: 4px 0 6px; line-height: 1.45; color: #c4c4cc; }
.ds-legal a { color: #fff; }
html.ds-stream .ds-ob .mvp-submit { position: sticky; bottom: 0; margin-top: 18px; box-shadow: 0 -12px 24px #0f0f14; }

/* confete leve */
.ds-confetti { position: fixed; inset: 0; z-index: 9800; pointer-events: none; overflow: hidden; }
.ds-confetti i {
  position: absolute; top: -12px; left: var(--x); width: 8px; height: 12px; border-radius: 2px;
  animation: ds-fall 2.2s var(--d) cubic-bezier(.2,.6,.4,1) forwards;
}
@keyframes ds-fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .2; } }

@media (max-width: 520px) {
  html.ds-stream .mvp-card.ds-ob { height: 94dvh; max-width: none; border-radius: 22px 22px 0 0; padding: 0; }
  .ds-ob-title { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-ob-panel[data-pos="prev"], .ds-ob-panel[data-pos="next"], .ds-ob-formpanel[data-pos="next"] { transform: none; }
}


/* ============ 15. Assistente de 6 passos (stream-wizard.js) ============ */
html.ds-stream #wizard-icon, html.ds-stream .wizard-body .tip { display: none !important; }
html.ds-stream .onboarding.mobile { background: radial-gradient(120% 50% at 50% 0%, rgba(214,0,28,.22), transparent 60%), var(--bg); }
html.ds-stream .onboarding.mobile .wizard-card { background: transparent; }
html.ds-stream .wizard-top { padding-top: 14px !important; display: flex; align-items: center; justify-content: space-between; }
html.ds-stream .wizard-counter { font-size: 13px; font-weight: 700; color: #a3a3ad; letter-spacing: .02em; }
html.ds-stream .wizard-progressbar { height: auto; background: none; margin-top: 10px; }
html.ds-stream .wizard-progressbar #wizard-fill { display: none; }
.ds-wiz-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.ds-wiz-seg i { height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; position: relative; }
.ds-wiz-seg i.done { background: #fff; }
.ds-wiz-seg i.cur { background: rgba(255,255,255,.14); }
.ds-wiz-seg i.cur::after { content: ""; position: absolute; inset: 0; background: var(--accent-text); transform-origin: left; animation: ds-seg .5s var(--ds-ease) both; }
@keyframes ds-seg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
html.ds-stream .wizard-body { padding-top: 22px !important; }
html.ds-stream .wizard-body.wiz-in { animation: ds-step .45s var(--ds-ease) both; }
@keyframes ds-step { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
html.ds-stream .wizard-body h3 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; font-weight: 900; letter-spacing: -.03em; margin: 0 0 6px; }
html.ds-stream .wizard-body > p { margin: 0 0 18px; color: #c4c4cc; font-size: 16px; }
html.ds-stream .wizard-body p.wiz-cap { font-size: 13px; color: #a3a3ad; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
html.ds-stream :is(.wiz-lang-grid, .wiz-habits-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) {
  html.ds-stream .wiz-lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  html.ds-stream .wiz-habits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
html.ds-stream :is(.wiz-lang-card, .wiz-habit-card, .wiz-level, .wiz-pace) {
  position: relative; min-height: 64px; padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  background: #16161c; color: #f0f0f3; text-align: left; box-shadow: none;
  display: flex; align-items: center; gap: 12px; flex-direction: row;
  transition: transform .18s var(--ds-ease), background .2s var(--ds-ease), border-color .2s var(--ds-ease), box-shadow .2s var(--ds-ease);
}
html.ds-stream :is(.wiz-lang-card, .wiz-habit-card, .wiz-level, .wiz-pace):hover { background: #1d1d25; }
html.ds-stream :is(.wiz-lang-card, .wiz-habit-card, .wiz-level, .wiz-pace):active { transform: scale(.97); }
html.ds-stream :is(.wiz-lang-card, .wiz-habit-card).active, html.ds-stream .wiz-level.sel, html.ds-stream .wiz-pace:is(.sel, .active, [aria-checked="true"]) {
  background: rgba(214, 0, 28, .14); border-color: rgba(255, 90, 95, .8);
  box-shadow: 0 0 0 1px rgba(255,90,95,.5), 0 10px 30px -10px rgba(214,0,28,.6); transform: translateY(-1px);
}
html.ds-stream :is(.wiz-lang-card, .wiz-habit-card).active::after, html.ds-stream .wiz-level.sel::after, html.ds-stream .wiz-pace[aria-checked="true"]::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 900;
  animation: ds-pop .25s var(--ds-ease) both;
}
html.ds-stream .wiz-habit-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font-size: 0; }
html.ds-stream .wiz-habit-card.active .wiz-habit-icon { background: var(--accent); }
html.ds-stream .wiz-habit-name, html.ds-stream .wiz-lang-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.ds-code-badge {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px;
  font: 900 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: -.02em; color: #fff !important;
  background: linear-gradient(135deg, hsl(var(--h) 80% 45%), hsl(calc(var(--h) + 40) 70% 28%));
}
.ds-globe { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: rgba(255,255,255,.07); color: #fff; font-size: 0; }
html.ds-stream .wiz-lang-flag { font-size: 0; }
html.ds-stream .wiz-level-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { html.ds-stream .wiz-level-grid { grid-template-columns: 1fr 1fr; } }
html.ds-stream .wiz-level { font-size: 16px; font-weight: 700; }
.ds-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 22px; flex: 0 0 auto; }
.ds-bars i { width: 5px; border-radius: 2px; background: rgba(255,255,255,.18); }
.ds-bars i:nth-child(1) { height: 7px; } .ds-bars i:nth-child(2) { height: 12px; } .ds-bars i:nth-child(3) { height: 17px; } .ds-bars i:nth-child(4) { height: 22px; }
.ds-bars i.on { background: #fff; }
html.ds-stream .wiz-pace-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 700px) { html.ds-stream .wiz-pace-grid { grid-template-columns: repeat(3, 1fr); } }
html.ds-stream .wiz-pace { flex-direction: column; align-items: flex-start; gap: 4px; }
html.ds-stream .wiz-pace-name { font-size: 18px; font-weight: 900; }
html.ds-stream .wiz-pace-cost, html.ds-stream .wiz-pace-deliver { font-size: 13px; color: #c4c4cc; }
html.ds-stream .wiz-milestone { background: #16161c; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; }
html.ds-stream .wizard-actions {
  display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(11,11,15,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
html.ds-stream .wizard-actions #wizard-skip { margin-right: auto; min-height: 44px; color: #a3a3ad; text-decoration: none; }
html.ds-stream .wizard-actions #wizard-back { min-height: 48px; padding: 0 18px; border-radius: 24px; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
html.ds-stream .wizard-actions #wizard-next { min-height: 52px; padding: 0 26px; border-radius: 26px; font-size: 16px; }
@media (max-width: 640px) {
  html.ds-stream .onboarding.mobile .wizard-actions {
    position: sticky; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
  }
  html.ds-stream .wizard-actions #wizard-next { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html.ds-stream .wizard-body.wiz-in, .ds-wiz-seg i.cur::after { animation: none; }
}
html.ds-stream .wizard-progressbar { height: auto !important; overflow: visible; background: none !important; }
html.ds-stream .wiz-lang-flag.ds-code-badge { font-size: 14px; }
html.ds-stream .wiz-feedback {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 8px 14px; border-radius: 999px;
  background: rgba(70,211,138,.12); border: 1px solid rgba(70,211,138,.35); color: #b8f5d2; font-size: 14px; font-weight: 600; text-align: left;
  animation: ds-pop .3s var(--ds-ease) both;
}
html.ds-stream .wiz-feedback[hidden] { display: none; }
html.ds-stream #onboarding .wizard-progressbar { width: 100%; max-width: 640px; margin: 10px auto 0; padding: 0 20px; box-sizing: border-box; align-self: stretch; }
html.ds-stream #onboarding .wiz-feedback { margin: 14px auto 0; max-width: calc(100% - 40px); width: fit-content; align-self: center; }
@media (min-width: 700px) { html.ds-stream #onboarding .wizard-progressbar { max-width: 860px; } }
@media (min-width: 700px) { html.ds-stream .wiz-habits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.ds-stream body.mini-on .embed-blocked { display: none; }
@media (max-width: 640px) { html.ds-stream .set-row select, html.ds-stream .set-row input { min-width: 140px; } }
