/* ============================================================
   MISSION THE LIFE - Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Paleta */
  --verde: #00D084;
  --verde-dark: #00a86a;
  --verde-glow: rgba(0, 208, 132, 0.25);
  --azul: #0B1F33;
  --azul-deep: #071624;
  --grafite: #1E293B;
  --grafite-2: #172334;
  --cinza: #64748B;
  --cinza-light: #94A3B8;
  --branco: #F8FAFC;

  /* Tokens de tema (escuro padrao) */
  --bg: #071624;
  --bg-2: #0B1F33;
  --surface: #0f2234;
  --surface-2: #16293d;
  --card: #122236;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 260px;
  --nav-h: 64px;
}

:root[data-theme="light"] {
  --bg: #eef2f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --card: #ffffff;
  --border: rgba(15, 34, 52, 0.1);
  --border-strong: rgba(15, 34, 52, 0.18);
  --text: #0B1F33;
  --text-muted: #475569;
  --text-dim: #64748B;
  --shadow: 0 8px 24px rgba(15, 34, 52, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-title { font-family: 'Montserrat', sans-serif; font-weight: 800; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Utilidades ---------- */
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.verde { color: var(--verde); }
.center { text-align: center; }
.row { display: flex; align-items: center; }
.row.gap { gap: 12px; }
.spread { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; }
.mb { margin-bottom: 16px; }

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(0,208,132,0.12), transparent 60%),
    linear-gradient(180deg, var(--azul) 0%, var(--azul-deep) 100%);
}
.login-card {
  width: 100%; max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .logo-mark { margin: 0 auto 20px; }
.login-card h1 { font-size: 26px; letter-spacing: 1px; }
.login-card .tagline { color: var(--verde); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-top: 4px; font-weight: 600; }
.login-card p.sub { color: var(--text-muted); margin: 10px 0 28px; font-size: 14px; }
.login-card .field { margin-bottom: 16px; text-align: left; }

/* ============================================================
   APP SHELL
   ============================================================ */
#app { min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar (desktop) ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--azul-deep));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.sidebar .brand .brand-name { font-family: 'Montserrat'; font-weight: 900; font-size: 18px; letter-spacing: 1px; line-height: 1; }
.sidebar .brand .brand-sub { font-size: 9px; letter-spacing: 3px; color: var(--verde); font-weight: 600; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 12px;
  color: var(--text-muted); font-weight: 500; font-size: 14px;
  transition: all 0.15s; position: relative;
}
.nav-item:hover { background: var(--surface); color: var(--text); }
.nav-item.active { background: var(--verde); color: #06231a; font-weight: 700; box-shadow: 0 6px 16px var(--verde-glow); }
.nav-item.active svg { stroke: #06231a; }
.nav-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.sidebar .user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); margin-top: 12px;
}
.sidebar .user-chip .avatar { width: 38px; height: 38px; border-radius: 10px; }
.sidebar .motto { text-align: center; color: var(--verde); font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-top: 14px; }

/* ---------- Main ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .search { flex: 1; max-width: 460px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.avatar-btn { width: 40px; height: 40px; border-radius: 12px; background: var(--verde); color: #06231a; display: grid; place-items: center; font-weight: 800; }

.content { padding: 28px; max-width: 1200px; width: 100%; }
.page-title { font-size: 24px; margin-bottom: 4px; }
.page-sub { color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   COMPONENTES
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card.pad-lg { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-head h3 { font-size: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.col-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }

/* Botoes */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  background: var(--verde); color: #06231a; font-weight: 700; font-size: 14px;
  transition: all 0.15s; box-shadow: 0 6px 16px var(--verde-glow);
}
.btn:hover { background: var(--verde-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: #ef4444; color: #fff; box-shadow: none; }
.btn svg { width: 18px; height: 18px; }

/* Hero */
.hero {
  position: relative; border-radius: var(--radius); overflow: hidden;
  padding: 32px; color: #fff;
  background:
    radial-gradient(900px 400px at 85% -20%, rgba(0,208,132,0.18), transparent 55%),
    radial-gradient(600px 300px at 10% 120%, rgba(59,130,246,0.12), transparent 60%),
    linear-gradient(120deg, #0B1F33 0%, #0e2740 45%, #071624 100%);
  border: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 100% 26px; opacity: 0.5;
}
.hero > * { position: relative; z-index: 1; }
.hero h2 { font-size: 26px; }
.hero .quote { color: var(--cinza-light); font-style: italic; margin-top: 8px; max-width: 420px; }
.hero .accent-bar { width: 48px; height: 3px; background: var(--verde); margin-top: 14px; border-radius: 2px; }

/* Stat tiles */
.stat {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.stat .stat-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--verde-glow); color: var(--verde); display: grid; place-items: center; margin-bottom: 12px; }
.stat .stat-icon svg { width: 20px; height: 20px; }
.stat .stat-val { font-family: 'Montserrat'; font-weight: 800; font-size: 24px; }
.stat .stat-label { color: var(--text-muted); font-size: 13px; }
.stat .stat-sub { color: var(--text-dim); font-size: 12px; margin-top: 2px; }

/* Progress ring */
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-val { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Montserrat'; font-weight: 800; font-size: 26px; }

/* Progress bar */
.bar { height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--verde); border-radius: 6px; transition: width 0.4s; }
.subject-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.subject-row:last-child { border-bottom: none; }
.subject-row .s-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.subject-row .s-name { font-weight: 600; font-size: 14px; }
.subject-row .s-pct { font-weight: 700; font-family: 'Montserrat'; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-muted); }
.badge.verde { background: var(--verde-glow); color: var(--verde); }
.badge.facil { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge.media { background: rgba(234,179,8,0.15); color: #eab308; }
.badge.dificil { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge.red { background: rgba(239,68,68,0.15); color: #ef4444; }

/* Forms */
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; transition: border 0.15s;
}
.input:focus { outline: none; border-color: var(--verde); }
textarea.input { resize: vertical; min-height: 80px; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-dim); }
.search-input input { padding-left: 42px; }

/* Timeline / compromissos */
.timeline-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-date { text-align: center; min-width: 46px; }
.timeline-date .d { font-family: 'Montserrat'; font-weight: 800; font-size: 20px; line-height: 1; }
.timeline-date .m { font-size: 11px; color: var(--text-dim); text-transform: uppercase; }

/* Lista de questoes */
.q-item { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--card); }
.q-item .q-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.q-statement { font-size: 15px; line-height: 1.6; }
.q-options { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.q-option {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: all 0.15s;
}
.q-option:hover { border-color: var(--border-strong); background: var(--surface); }
.q-option.selected { border-color: var(--verde); background: var(--verde-glow); }
.q-option.correct { border-color: #22c55e; background: rgba(34,197,94,0.12); }
.q-option.wrong { border-color: #ef4444; background: rgba(239,68,68,0.12); }
.q-option .letter { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.q-option.selected .letter, .q-option.correct .letter { background: var(--verde); color: #06231a; }

/* Tabs / chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.15s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--verde); color: #06231a; border-color: var(--verde); }

/* Tabela */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table tr:hover td { background: var(--surface); }

/* Empty state */
.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty svg { width: 56px; height: 56px; color: var(--text-dim); margin-bottom: 16px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* Logo mark */
.logo-mark { width: 44px; height: 44px; }
.logo-mark svg { width: 100%; height: 100%; }

/* Paginacao */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.pagination button { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); font-weight: 600; }
.pagination button.active { background: var(--verde); color: #06231a; }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* Toast */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--card); border: 1px solid var(--border-strong); border-left: 3px solid var(--verde); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); animation: slideIn 0.25s; min-width: 240px; }
.toast.error { border-left-color: #ef4444; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(3,10,18,0.7); backdrop-filter: blur(4px); z-index: 500; display: grid; place-items: center; padding: 20px; animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--card); border: 1px solid var(--border-strong); border-radius: 20px; padding: 28px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal h3 { font-size: 20px; margin-bottom: 20px; }
.modal .field { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }

/* Switch (toggle) */
.switch { position: relative; display: inline-block; width: 48px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 28px; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: var(--text-muted); border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--verde); border-color: var(--verde); }
.switch input:checked + .slider::before { transform: translateX(20px); background: #06231a; }

/* Mobile top header & bottom nav (hidden on desktop) */
.mobile-header, .bottom-nav { display: none; }

/* ---------- Modulo de estudo (Disciplinas) ---------- */
.study-overview { display: flex; align-items: center; gap: 20px; }
.acc { display: flex; flex-direction: column; gap: 10px; }
.acc.nested { gap: 8px; margin-top: 12px; }
.acc-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.acc-item.ass { background: var(--surface); }
.acc-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; background: none; text-align: left; transition: background 0.15s; }
.acc-head:hover { background: var(--surface); }
.acc-head.sub { padding: 12px 14px; gap: 10px; }
.acc-title { font-weight: 700; font-size: 15px; }
.acc-title-btn { font-weight: 600; font-size: 14px; background: none; }
.chev { color: var(--text-dim); transition: transform 0.2s; flex-shrink: 0; }
.acc-item.open > .acc-head .chev { transform: rotate(90deg); }
.acc-item > .acc-body { display: none; padding: 0 16px 16px; }
.acc-item.ass > .acc-body { padding: 0 14px 14px; }
.acc-item.open > .acc-body { display: block; animation: fade 0.2s; }
.chk { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; color: #06231a; transition: all 0.15s; }
.chk.on { background: var(--verde); border-color: var(--verde); }
.lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 700; margin: 10px 0 6px; }
.topicos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.topicos li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; font-size: 12.5px; }
.resumo-body { font-size: 14px; line-height: 1.65; color: var(--text); }
.resumo-body h4 { font-size: 14px; margin: 12px 0 4px; color: var(--verde); }
.resumo-body p { margin: 0 0 8px; }
.resumo-body ul, .resumo-body ol { margin: 0 0 8px 18px; }
.resumo-body li { margin-bottom: 3px; }
.resumo-body strong { color: var(--text); }
.resumo-body table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.resumo-body th, .resumo-body td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.bib { padding-top: 6px; }
.bib-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; flex-wrap: wrap; }
.bib-item:last-child { border-bottom: none; }

/* ---------- Visualizador de PDF ---------- */
.modal-pdf { max-width: 920px; width: 95vw; height: 90vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.pdfv { display: flex; flex-direction: column; height: 100%; }
.pdfv-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.pdfv-title { font-weight: 700; font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfv-canvas { flex: 1; overflow: auto; background: var(--azul-deep); display: flex; justify-content: center; padding: 12px; }
.pdf-page { max-width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.4); background: #fff; }
.pdfv-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); }

/* ============================================================
   RESPONSIVO / APP MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .topbar { display: none; }
  .col-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .main { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); }
  .content { padding: 16px; padding-top: 0; }

  /* Header mobile estilo app */
  .mobile-header {
    display: flex; align-items: center; gap: 12px;
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 14px;
    position: sticky; top: 0; z-index: 30;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  }
  .mobile-header .mh-title { font-family: 'Montserrat'; font-weight: 800; font-size: 18px; }
  .mobile-header .mh-sub { font-size: 12px; color: var(--text-muted); }
  .mobile-header .back-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); }

  /* Bottom nav estilo app nativo */
  .bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--bg-2) 96%, transparent);
    backdrop-filter: blur(16px); border-top: 1px solid var(--border);
  }
  .bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: var(--text-dim); font-size: 10px; font-weight: 600;
  }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.active { color: var(--verde); }
  .bottom-nav a.active svg { stroke: var(--verde); }

  .page-title { font-size: 20px; }
  .hero { padding: 22px; }
  .hero h2 { font-size: 20px; }
  .modal { max-width: 100%; border-radius: 20px 20px 0 0; align-self: flex-end; }
  .modal-overlay { place-items: end center; padding: 0; }
  .toast-wrap { left: 16px; right: 16px; bottom: calc(var(--nav-h) + 16px); }
}

@media (min-width: 861px) {
  .mobile-only { display: none !important; }
}
@media (max-width: 860px) {
  .desktop-only { display: none !important; }

  /* Modulo de estudo no mobile */
  .study-overview { gap: 14px; }
  .acc-head { padding: 14px; gap: 10px; }
  .acc-title { font-size: 14px; }

  /* Visualizador de PDF em tela cheia (estilo app) */
  .modal-overlay:has(.modal-pdf) { padding: 0; place-items: stretch; }
  .modal-pdf { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; align-self: stretch; }
  .pdfv-top { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; }
  .pdfv-bar { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
