/* Marverso PWA — reader tools/chrome v12 — 2026-09-07
   Amplia ferramentas do leitor sem alterar a largura lógica da viewport. */

/* Cabeçalho do leitor */
body.offline-reader-open .reader-online-topbar{
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:8px;
  min-height:74px;
  padding:13px 10px 12px;
}
body.offline-reader-open .reader-title-block>div:first-child{
  font-size:18px;
  line-height:1.2;
}
body.offline-reader-open .reader-title-block>div:last-child{
  font-size:13px;
  line-height:1.25;
  margin-top:3px;
}
body.offline-reader-open .reader-icon-group{gap:1px}
body.offline-reader-open .reader-icon-btn{
  min-width:43px;
  width:43px;
  height:46px;
  padding:0;
  font-size:24px;
  border-radius:14px;
}
body.offline-reader-open .reader-icon-btn:active{background:var(--rr-soft)}
body.offline-reader-open .reader-progress-track{top:74px;height:3px}

/* Conteúdo: mantém 23px definido pela preferência; só melhora respiro */
body.offline-reader-open .reader-reading-wrap{padding-top:38px;padding-bottom:116px}
body.offline-reader-open .reader-chapter-kicker{font-size:11px}
body.offline-reader-open .reader-chapter-head h1{font-size:36px}
body.offline-reader-open .reader-chapter-meta{font-size:11.5px}

/* Rodapé do leitor */
body.offline-reader-open .reader-bottom-nav{
  grid-template-columns:50px minmax(0,1fr) 50px;
  min-height:70px;
  padding:8px 12px calc(8px + env(safe-area-inset-bottom));
}
body.offline-reader-open .reader-nav-btn{
  width:48px;
  height:48px;
  font-size:34px;
  border-radius:16px;
}
body.offline-reader-open .reader-nav-btn:active{background:var(--rr-soft)}
body.offline-reader-open .reader-footer-center{gap:12px}
body.offline-reader-open .reader-listen-trigger{
  width:44px;
  height:44px;
  font-size:13px;
}
body.offline-reader-open .reader-progress-copy{font-size:13px;gap:6px}
body.offline-reader-open .reader-progress-copy small{font-size:11px}

/* Painéis: configurações, índice e trechos */
body.offline-reader-open .reader-drawer{width:min(470px,100vw)}
body.offline-reader-open .reader-drawer-head{
  min-height:78px;
  padding:20px 18px 17px;
}
body.offline-reader-open .reader-drawer-head h3{
  font-size:28px;
  line-height:1.15;
}
body.offline-reader-open .reader-drawer-head button{
  width:46px;
  height:46px;
  font-size:31px;
  border-radius:14px;
}
body.offline-reader-open .reader-drawer-body{
  padding:18px 18px 116px;
}
body.offline-reader-open .reader-setting-group{
  padding:19px 0;
}
body.offline-reader-open .reader-setting-group>span{
  margin-bottom:13px;
  font-size:12.5px;
  line-height:1.2;
  letter-spacing:.045em;
}
body.offline-reader-open .reader-pill-row{gap:9px}
body.offline-reader-open .reader-pill-row.two{gap:10px}
body.offline-reader-open .reader-pill-row button,
body.offline-reader-open .reader-stepper button{
  min-height:54px;
  padding:10px 12px;
  font-size:13px;
  line-height:1.15;
}
body.offline-reader-open .reader-stepper{
  grid-template-columns:58px minmax(0,1fr) 68px 58px;
  gap:10px;
}
body.offline-reader-open .reader-stepper button{
  width:58px;
  min-width:58px;
  padding:0;
  font-size:15px;
}
body.offline-reader-open .reader-stepper input[type="range"]{
  width:100%;
  min-width:0;
  height:30px;
}
body.offline-reader-open .reader-stepper b{
  min-width:68px;
  font-size:12.5px;
}
body.offline-reader-open .reader-resource-note{
  padding:15px;
  border-radius:18px;
  font-size:12.5px;
  line-height:1.55;
}
body.offline-reader-open .reader-reset{
  min-height:54px;
  margin-top:18px;
  font-size:13px;
}

/* Índice */
body.offline-reader-open .reader-meta-item,
body.offline-reader-open .reader-chapter-item{
  padding:15px 14px;
  margin-bottom:10px;
  border-radius:17px;
}
body.offline-reader-open .reader-meta-item strong{font-size:14px}
body.offline-reader-open .reader-meta-item span{font-size:11.5px;margin-top:4px}
body.offline-reader-open .reader-chapter-item{
  grid-template-columns:38px minmax(0,1fr);
  gap:11px;
  font-size:14px;
}
body.offline-reader-open .reader-chapter-item>span{
  width:36px;
  height:36px;
  border-radius:11px;
  font-size:12px;
}

/* Trechos */
body.offline-reader-open .reader-empty-note{
  padding:21px;
  font-size:12.5px;
  line-height:1.55;
}
body.offline-reader-open .reader-mark-item{
  padding:15px;
  border-radius:18px;
  margin-bottom:10px;
}
body.offline-reader-open .reader-mark-item p{font-size:17px;line-height:1.55}
body.offline-reader-open .reader-mark-item button{font-size:11.5px;margin-top:10px}

/* Ferramenta de seleção e próximo capítulo */
body.offline-reader-open .reader-selection-toolbar{
  left:12px;
  right:12px;
  bottom:calc(80px + env(safe-area-inset-bottom));
  gap:10px;
  padding:10px;
  border-radius:19px;
}
body.offline-reader-open .reader-selection-toolbar button{
  min-height:48px;
  padding:9px 13px;
  font-size:12px;
}
body.offline-reader-open .reader-auto-next{
  bottom:calc(84px + env(safe-area-inset-bottom));
  padding:17px 18px;
  border-radius:20px;
}
body.offline-reader-open .reader-auto-next strong{font-size:15px}
body.offline-reader-open .reader-auto-next p{font-size:12.5px;line-height:1.45}
body.offline-reader-open .reader-auto-next button{min-height:48px;font-size:12.5px}

/* Player de narração */
body.offline-reader-open .offline-speech-player{padding:12px 14px;gap:12px}
body.offline-reader-open .offline-speech-player button{min-width:44px;min-height:44px}
body.offline-reader-open .speech-body strong{font-size:14px}
body.offline-reader-open .speech-body small{font-size:11px}
body.offline-reader-open .speech-controls button{font-size:14px}

@media(max-width:380px){
  body.offline-reader-open .reader-online-topbar{
    grid-template-columns:43px minmax(0,1fr) auto;
    gap:4px;
    padding-left:7px;
    padding-right:7px;
  }
  body.offline-reader-open .reader-icon-btn{min-width:38px;width:38px;height:44px;font-size:22px}
  body.offline-reader-open .reader-title-block>div:first-child{font-size:17px}
  body.offline-reader-open .reader-title-block>div:last-child{font-size:12px}
  body.offline-reader-open .reader-stepper{grid-template-columns:54px minmax(0,1fr) 62px 54px;gap:7px}
  body.offline-reader-open .reader-stepper button{width:54px;min-width:54px}
  body.offline-reader-open .reader-stepper b{min-width:62px;font-size:12px}
}
