:root {
  --bg: #111211;
  --panel: rgba(20,20,19,.96);
  --panel-2: #1c1d1b;
  --line: rgba(255,255,255,.12);
  --line-soft: rgba(255,255,255,.07);
  --text: #f5f2ea;
  --muted: #aaa99f;
  --gold: #c9a451;
  --gold-2: #ead189;
  --toolbar-h: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.reader-shell {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: #161715;
  border-bottom: 1px solid var(--line-soft);
}
.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 38%, rgba(200,164,81,.07), transparent 34%),
    radial-gradient(circle at 12% 30%, rgba(255,255,255,.03), transparent 26%),
    linear-gradient(180deg, #1a1b18 0%, #111210 72%, #0e0f0e 100%);
}
.ambient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.brand-chip {
  position: absolute;
  z-index: 30;
  top: 14px;
  left: max(14px, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px 7px 7px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(9,10,9,.58);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0,0,0,.22);
  pointer-events: none;
}
.brand-chip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(234,209,137,.48);
}
.brand-chip span { display: grid; line-height: 1.05; }
.brand-chip strong { font-size: 12px; letter-spacing: .01em; }
.brand-chip small { margin-top: 4px; color: #aaa99f; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }

.reader-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}

/* A área do livro sempre respeita largura e altura disponíveis. */
.book-space {
  position: absolute;
  top: clamp(14px, 2.2vh, 28px);
  left: clamp(52px, 5vw, 90px);
  right: clamp(52px, 5vw, 90px);
  bottom: calc(var(--toolbar-h) + 24px + var(--safe-bottom));
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.zoom-layer {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transform: translate3d(var(--pan-x, 0px), var(--pan-y, 0px), 0) scale(var(--zoom, 1));
  transition: transform .18s ease-out;
  will-change: transform;
}
.reader-shell.zooming .zoom-layer { transition: none; }
.book-host {
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity .18s ease;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.44));
}
.book-host.ready { opacity: 1; }
.reader-shell.zoomed .book-host { pointer-events: none; }

/* Página HTML entregue ao motor de flip. */
.pdf-page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.035);
}
.pdf-page.cover-page { background: transparent; box-shadow: none; }
.pdf-page-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  transition: opacity .12s ease;
  background: transparent;
}
.pdf-page.loaded .pdf-page-img { opacity: 1; }
.page-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: linear-gradient(110deg,#e9e9e5 22%,#f8f8f4 39%,#e9e9e5 55%);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
  color: #6d6e68;
  font-size: 11px;
}
.cover-page .page-skeleton { background: rgba(255,255,255,.035); color: #aaa; }
.pdf-page.loaded .page-skeleton { display: none; }
.page-skeleton.has-thumb {
  background-position: center;
  background-size: cover;
  filter: blur(0);
  animation: none;
}
.page-skeleton.has-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
}
.page-skeleton > * { position: relative; z-index: 1; }
.mini-spinner {
  width: 23px;
  height: 23px;
  border: 2px solid rgba(0,0,0,.14);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}
@keyframes shimmer { to { background-position-x: -220%; } }
@keyframes spin { to { transform: rotate(360deg); } }

.loading {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.02), transparent 32%);
  transition: opacity .2s ease, visibility .2s ease;
}
.loading.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading strong { color: var(--text); font-size: 16px; }
.loading span { font-size: 12px; }
.spinner {
  width: 36px;
  height: 36px;
  margin-bottom: 3px;
  border: 3px solid rgba(255,255,255,.13);
  border-top-color: var(--gold-2);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.edge-nav {
  position: absolute;
  z-index: 20;
  top: 50%;
  width: 46px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.82);
  cursor: pointer;
  transition: background .16s ease, opacity .16s ease, transform .16s ease;
  backdrop-filter: blur(8px);
}
.edge-nav svg { width: 30px; height: 30px; fill: currentColor; }
.edge-nav:hover { background: rgba(0,0,0,.52); transform: translateY(-50%) scale(1.03); }
.edge-nav:disabled { opacity: .12; cursor: default; }
.edge-left { left: 12px; }
.edge-right { right: 12px; }

.viewer-toolbar {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: calc(10px + var(--safe-bottom));
  min-height: var(--toolbar-h);
  width: min(860px, calc(100% - 28px));
  padding: 6px 8px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(13,14,13,.88);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}
.tool-group { display: flex; align-items: center; gap: 3px; }
.tool-group-right { justify-content: flex-end; }
.tool-btn, .pager-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #ecebe5;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s ease, color .14s ease, opacity .14s ease;
}
.tool-btn:hover, .pager-btn:hover { background: rgba(255,255,255,.085); color: #fff; }
.tool-btn.active { background: rgba(201,164,81,.16); color: var(--gold-2); }
.tool-btn svg, .pager-btn svg { width: 20px; height: 20px; fill: currentColor; }
.tool-btn:disabled, .pager-btn:disabled { opacity: .27; cursor: default; }
.tool-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(0,0,0,.88);
  color: #fff;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .14s ease;
}
.tool-btn:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.pager { display: flex; align-items: center; gap: 5px; }
.page-box {
  height: 38px;
  min-width: 76px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 7px;
  color: #aaa99f;
  background: rgba(255,255,255,.025);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.page-box input {
  width: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.page-box input::-webkit-outer-spin-button,.page-box input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

.zoom-toolbar {
  position: absolute;
  z-index: 36;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  transform: translateX(-50%) translateY(-12px);
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(12,13,12,.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: .17s ease;
}
.zoom-toolbar.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.zoom-toolbar button {
  height: 34px;
  min-width: 34px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #eee;
  cursor: pointer;
}
.zoom-toolbar button:hover { background: rgba(255,255,255,.08); }
.zoom-toolbar svg { width: 18px; height: 18px; fill: currentColor; }
.zoom-toolbar span { min-width: 50px; text-align:center; color:#d7d5ce; font-size:11px; font-variant-numeric: tabular-nums; }

.fullscreen-prompt {
  position: absolute;
  z-index: 24;
  left: 50%;
  bottom: calc(var(--toolbar-h) + 27px + var(--safe-bottom));
  transform: translateX(-50%) translateY(6px);
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: rgba(0,0,0,.58);
  color: #e8e6df;
  font-size: 10px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  backdrop-filter: blur(10px);
}
.fullscreen-prompt.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.side-panel {
  position: absolute;
  z-index: 60;
  inset: 0 auto 0 0;
  width: min(340px, 90vw);
  display: flex;
  flex-direction: column;
  transform: translateX(-102%);
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 44px rgba(0,0,0,.35);
  transition: transform .22s ease;
  backdrop-filter: blur(18px);
}
.side-panel.open { transform: translateX(0); }
.panel-scrim {
  position: absolute;
  z-index: 55;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  visibility: hidden;
  transition: .18s ease;
}
.panel-scrim.open { opacity: 1; visibility: visible; }
.panel-head {
  min-height: 64px;
  padding: 11px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.panel-head > div { display: grid; gap: 3px; }
.panel-head strong { font-size: 13px; }
.panel-head small { color: var(--muted); font-size: 9px; }
.panel-close, .modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #eae9e4;
  cursor: pointer;
}
.panel-close:hover, .modal-close:hover { background: rgba(255,255,255,.08); }
.panel-close svg, .modal-close svg { width: 20px; height: 20px; fill: currentColor; }
.panel-view { min-height: 0; flex: 1; overflow: hidden; }
.thumbs-list {
  height: 100%;
  overflow: auto;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  align-content: start;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #555 transparent;
}
.thumb {
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #111;
  color: #ddd;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0,0,0,.2);
  text-align: left;
}
.thumb.active { border-color: var(--gold-2); }
.thumb-image-wrap {
  position: relative;
  aspect-ratio: 1050 / 1791;
  overflow: hidden;
  background: #eee;
}
.thumb:first-child .thumb-image-wrap,
.thumb:last-child .thumb-image-wrap { aspect-ratio: 1050 / 1501; background: transparent; }
.thumb img { width:100%; height:100%; display:block; object-fit:contain; opacity:0; transition:opacity .15s ease; background:#fff; }
.thumb.loaded img { opacity:1; }
.thumb-loader { position:absolute; inset:0; display:grid; place-items:center; color:#777; font-size:10px; }
.thumb.loaded .thumb-loader { display:none; }
.thumb > span:last-child { display:block; padding:6px 7px; background:#131412; color:#c9c8c2; font-size:10px; }

.search-view { padding: 14px; overflow:auto; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255,255,255,.04);
}
.search-box svg { width:18px; height:18px; fill:#aaa; flex:0 0 auto; }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:#fff; font-size:13px; }
.search-box input::placeholder { color:#7d7e78; }
.search-meta { margin:10px 2px; color:#8d8e88; font-size:10px; }
.search-results { display:grid; gap:8px; }
.search-result {
  width:100%;
  padding:10px;
  display:grid;
  gap:5px;
  border:1px solid var(--line-soft);
  border-radius:7px;
  background:rgba(255,255,255,.025);
  color:#ddd;
  text-align:left;
  cursor:pointer;
}
.search-result:hover { background:rgba(255,255,255,.055); border-color:rgba(234,209,137,.28); }
.search-result strong { color:var(--gold-2); font-size:11px; }
.search-result span { color:#bdbcb5; font-size:10px; line-height:1.45; }
.search-empty { padding:24px 8px; color:#8c8d87; text-align:center; font-size:11px; }

.more-menu {
  position: absolute;
  z-index: 70;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(var(--toolbar-h) + 17px + var(--safe-bottom));
  width: 210px;
  padding: 6px;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(18,19,18,.97);
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .16s ease;
}
.more-menu.open { opacity:1; visibility:visible; transform:translateY(0); }
.more-menu button, .more-menu a {
  min-height: 38px;
  padding: 0 10px;
  display:flex;
  align-items:center;
  gap:10px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#e7e6df;
  text-decoration:none;
  cursor:pointer;
  text-align:left;
  font-size:11px;
}
.more-menu button:hover, .more-menu a:hover { background:rgba(255,255,255,.07); }
.more-menu svg { width:18px; height:18px; fill:currentColor; opacity:.82; }
.more-menu .active { color:var(--gold-2); }

.modal {
  position:absolute;
  z-index:100;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(8px);
  opacity:0;
  visibility:hidden;
  transition:.18s ease;
}
.modal.open { opacity:1; visibility:visible; }
.modal-card {
  position:relative;
  width:min(460px,100%);
  padding:22px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#1a1b19;
  box-shadow:0 22px 60px rgba(0,0,0,.46);
}
.modal-close { position:absolute; top:8px; right:8px; }
.modal-card h2 { margin:0 42px 7px 0; font-size:18px; }
.modal-card p { margin:0 0 18px; color:#9c9d96; font-size:11px; }
.share-actions { display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.share-actions button, .share-actions a {
  min-width:0;
  padding:9px 4px;
  display:grid;
  place-items:center;
  gap:6px;
  border:1px solid var(--line-soft);
  border-radius:8px;
  background:rgba(255,255,255,.025);
  color:#ddd;
  text-decoration:none;
  cursor:pointer;
  font-size:9px;
}
.share-actions button:hover, .share-actions a:hover { background:rgba(255,255,255,.065); }
.share-actions svg { width:22px; height:22px; fill:currentColor; }
.share-letter { width:24px; height:24px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.09); font-size:13px; font-weight:800; }
.share-url { margin-top:14px; display:flex; border:1px solid var(--line); border-radius:7px; overflow:hidden; }
.share-url input { min-width:0; flex:1; padding:9px 10px; border:0; outline:0; background:#121311; color:#aaa; font-size:10px; }
.share-url button { padding:0 12px; border:0; border-left:1px solid var(--line); background:rgba(255,255,255,.04); color:var(--gold-2); cursor:pointer; font-size:10px; }

.mobile-guide {
  position:absolute;
  z-index:110;
  inset:0;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(7px);
  opacity:0;
  visibility:hidden;
  transition:.2s ease;
}
.mobile-guide.open { opacity:1; visibility:visible; }
.guide-card {
  position:relative;
  width:min(320px,100%);
  padding:24px 22px 21px;
  display:grid;
  justify-items:center;
  text-align:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(22,23,21,.97);
  box-shadow:0 20px 56px rgba(0,0,0,.45);
}
.guide-card > button { position:absolute; top:7px; right:7px; width:34px; height:34px; display:grid; place-items:center; border:0; border-radius:8px; background:transparent; color:#ddd; }
.guide-card > button svg { width:19px; height:19px; fill:currentColor; }
.swipe-demo { position:relative; width:130px; height:62px; margin:6px 0 13px; }
.swipe-demo::before { content:""; position:absolute; left:10px; right:10px; top:28px; height:2px; background:linear-gradient(90deg,transparent,#ddd,transparent); }
.swipe-demo::after { content:"‹    ›"; position:absolute; inset:7px 0 auto; color:#ddd; font-size:34px; letter-spacing:65px; white-space:pre; }
.swipe-demo .finger { position:absolute; left:55px; bottom:0; font-size:27px; animation:swipe 1.5s ease-in-out infinite; }
@keyframes swipe { 0%,100%{ transform:translateX(-28px); } 50%{ transform:translateX(28px); } }
.guide-card strong { font-size:16px; }
.guide-card p { margin:8px 0 5px; max-width:250px; color:#aaa; font-size:11px; line-height:1.45; }
.guide-card small { color:var(--gold-2); font-size:10px; }

.ad-section {
  width:min(1120px,calc(100% - 28px));
  margin:18px auto 0;
  text-align:center;
}
.ad-label { margin-bottom:7px; color:#73746f; font-size:9px; letter-spacing:.2em; }
.ad-container { min-height:100px; display:grid; place-items:center; overflow:hidden; }
.ad-placeholder {
  width:min(728px,100%);
  min-height:90px;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  border:1px dashed rgba(234,209,137,.22);
  border-radius:10px;
  color:#999a93;
  font-size:11px;
  text-align:left;
}
.ad-placeholder > div { display:grid; gap:3px; }
.ad-placeholder strong { color:#dddcd5; }
.ad-badge { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:8px; background:rgba(201,164,81,.13); color:var(--gold-2); font-weight:900; }

.info-section {
  width:min(980px,calc(100% - 36px));
  margin:28px auto 40px;
  display:flex;
  align-items:center;
  gap:20px;
}
.info-logo { width:88px; height:88px; flex:0 0 auto; object-fit:cover; border-radius:50%; background:#fff; border:1px solid rgba(234,209,137,.3); }
.info-section h1 { margin:0 0 7px; font-size:clamp(22px,4vw,34px); }
.info-section p { margin:0; max-width:740px; color:#999a93; line-height:1.6; }
.footer {
  min-height:70px;
  padding:19px max(18px,calc((100vw - 980px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line-soft);
  color:#7d7e78;
  font-size:11px;
}
.footer a { color:#aaa; text-decoration:none; }
.footer a:hover { color:var(--gold-2); }

.reader-shell:fullscreen,
.reader-shell:-webkit-full-screen { height:100vh; min-height:0; background:#111; }
.reader-shell:fullscreen .brand-chip,
.reader-shell:-webkit-full-screen .brand-chip { top:max(12px,env(safe-area-inset-top)); }

@media (max-width: 900px) {
  .viewer-toolbar { width:min(700px,calc(100% - 18px)); }
  .tool-group-left { gap:1px; }
  .tool-group-right { gap:1px; }
  .desktop-tool:nth-of-type(4), .desktop-tool:nth-of-type(5) { display:none; }
}

@media (max-width: 700px) {
  :root { --toolbar-h: 50px; }
  .reader-shell { min-height:500px; }
  .brand-chip { top:8px; left:8px; padding:5px 7px 5px 5px; background:rgba(10,10,9,.5); }
  .brand-chip img { width:30px; height:30px; }
  .brand-chip strong { font-size:10px; }
  .brand-chip small { display:none; }
  .book-space {
    top: 8px;
    left: 7px;
    right: 7px;
    bottom: calc(var(--toolbar-h) + 14px + var(--safe-bottom));
  }
  .edge-nav { width:36px; height:58px; border:0; background:rgba(0,0,0,.22); opacity:.72; }
  .edge-nav svg { width:27px; height:27px; }
  .edge-left { left:2px; }
  .edge-right { right:2px; }
  .viewer-toolbar {
    bottom: calc(6px + var(--safe-bottom));
    width:calc(100% - 12px);
    min-height:var(--toolbar-h);
    padding:5px 6px;
    grid-template-columns:auto 1fr auto;
    gap:4px;
    border-radius:9px;
  }
  .tool-group-left { display:none; }
  .tool-group-right .desktop-tool { display:none; }
  .tool-group-right { grid-column:3; }
  .pager { grid-column:2; justify-content:center; }
  .pager-btn { width:40px; height:38px; }
  .page-box { height:38px; min-width:68px; }
  .page-box input { width:24px; }
  #fullscreenBtn { display:none; }
  .fullscreen-prompt { display:none; }
  .tool-btn[data-tooltip]::after { display:none; }
  .more-menu { right:8px; bottom:calc(var(--toolbar-h) + 12px + var(--safe-bottom)); width:205px; }
  .zoom-toolbar { top:8px; }
  .side-panel { width:min(320px,92vw); }
  .thumbs-list { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; padding:10px; }
  .thumb > span:last-child { font-size:8px; padding:4px 5px; }
  .share-actions { grid-template-columns:repeat(3,1fr); }
  .info-section { align-items:flex-start; gap:14px; }
  .info-logo { width:66px; height:66px; }
  .footer { flex-direction:column; align-items:flex-start; }
}

@media (max-width: 420px) {
  .brand-chip span { display:none; }
  .brand-chip { border-radius:50%; padding:4px; }
  .brand-chip img { width:29px; height:29px; }
  .thumbs-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .info-logo { display:none; }
  .page-box { min-width:64px; padding:0 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}


/* Páginas institucionais e orientação do catálogo – sem modificar o leitor */
.catalog-editorial, .site-content { width:min(1080px,calc(100% - 36px)); margin:38px auto 40px; line-height:1.68; }
.editorial-eyebrow { display:block; letter-spacing:.16em; font-size:11px; color:var(--gold-2); font-weight:700; margin-bottom:9px; }
.editorial-heading h2, .site-content h1 { font-size:clamp(23px,3.6vw,34px); line-height:1.25; margin:0 0 12px; }
.editorial-heading p { max-width:860px; margin:0 0 23px; color:#c7c6bc; }
.editorial-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.editorial-card { padding:22px; background:#1b1c1a; border:1px solid var(--line); border-radius:14px; }
.editorial-card h3 { margin:0 0 12px; font-size:17px; color:#f5f2ea; }
.editorial-card p { margin:0 0 16px; color:#bfbdaf; font-size:14px; }
.editorial-card a,.editorial-note a,.site-content a { color:var(--gold-2); text-underline-offset:4px; }
.editorial-note { margin:20px 0 0; background:rgba(201,164,81,.07); padding:14px 18px; border:1px solid rgba(201,164,81,.22); border-radius:12px; color:#d4d1c4; font-size:14px; }
.site-header { border-bottom:1px solid var(--line-soft); padding:16px max(18px,calc((100vw - 1080px)/2)); display:flex; gap:16px; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.site-header .site-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700; }
.site-header .site-brand img { width:40px; height:40px; object-fit:cover; background:#fff; border-radius:50%; }
.site-nav { display:flex; gap:18px; flex-wrap:wrap; font-size:13px; }
.site-nav a { color:#d2cfc2; text-decoration:none; }
.site-nav a:hover,.site-nav a[aria-current="page"] { color:var(--gold-2); }
.site-content { max-width:900px; margin-block:40px 75px; }
.site-content h2 { margin:32px 0 10px; font-size:21px; color:#f1e5bf; }
.site-content p,.site-content li { color:#cbc9bf; font-size:15px; }
.site-content p { margin:10px 0 16px; }
.site-content ul { padding-left:22px; }
.site-content .lead { font-size:17px; color:#e2e0d5; }
.site-content .category { border-top:1px solid var(--line-soft); padding-top:10px; scroll-margin-top:30px; }
.site-content .muted { color:#aba99e; font-size:13px; }
.site-content .action-link { display:inline-flex; border:1px solid rgba(201,164,81,.4); padding:10px 16px; border-radius:10px; text-decoration:none; margin-top:5px; }
.footer-actions { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
@media(max-width:700px){.editorial-grid{grid-template-columns:1fr}.catalog-editorial{margin-top:28px}.site-header{align-items:flex-start}}
