
/* PAPE shared top actions + unified header */
.pape-top-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.pape-btn-home,.pape-btn-back,.pape-btn-theme{
  display:inline-flex;align-items:center;gap:.45rem;text-decoration:none;
  border-radius:12px;padding:.58rem .95rem;font-weight:600;font-size:.92rem;line-height:1;
  transition:all .18s ease;white-space:nowrap
}
.pape-btn-home{
  background:#fff;border:1px solid rgba(37,99,235,.14);color:#1f3aa8;box-shadow:0 10px 22px rgba(37,99,235,.08)
}
.pape-btn-home:hover{background:#f7faff;border-color:rgba(37,99,235,.28);color:#17327f}
.pape-btn-home img{height:18px;width:auto;object-fit:contain}
.pape-btn-back{background:#f3f0ff;border:1px solid #d8cdff;color:#5b2be0}
.pape-btn-back:hover{background:#ebe5ff;border-color:#b8a3ff;color:#4b22c4}
.pape-btn-theme{background:#fff;border:1px solid rgba(15,23,42,.12);color:#475569}
.pape-btn-theme:hover{background:#f8fafc}
.brand-mark{
  width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#5b2be0,#7b57f1);
  display:flex;align-items:center;justify-content:center;flex:0 0 40px;
  box-shadow:0 8px 18px rgba(91,43,224,.18);overflow:hidden
}
.brand-mark img{height:22px;width:auto;object-fit:contain}
.brand-copy .eyebrow{margin:0 0 2px;font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.brand-copy .title{margin:0;font-weight:700;color:#111827;line-height:1.14}
.brand-copy .sub{margin:2px 0 0;color:#64748b;font-size:.9rem;line-height:1.35}
.pape-brand-block{display:flex;align-items:center;gap:12px;min-width:0}
.topbar-pro .container,.topbar-pro .container-fluid{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.topbar-pro .me-auto{min-width:0}
@media (max-width: 767.98px){
  .pape-top-actions{width:100%;justify-content:flex-start}
}
html[data-bs-theme="dark"] .pape-btn-home,body.theme-dark .pape-btn-home,body.dark-mode .pape-btn-home,body[data-theme="dark"] .pape-btn-home{
 background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#eef2ff
}
html[data-bs-theme="dark"] .pape-btn-back,body.theme-dark .pape-btn-back,body.dark-mode .pape-btn-back,body[data-theme="dark"] .pape-btn-back{
 background:rgba(91,43,224,.22);border-color:rgba(151,132,255,.45);color:#e3dcff
}
html[data-bs-theme="dark"] .pape-btn-theme,body.theme-dark .pape-btn-theme,body.dark-mode .pape-btn-theme,body[data-theme="dark"] .pape-btn-theme{
 background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12);color:#e5e7eb
}
html[data-bs-theme="dark"] .brand-copy .title,body.theme-dark .brand-copy .title,body.dark-mode .brand-copy .title,body[data-theme="dark"] .brand-copy .title{color:#f8fafc}
html[data-bs-theme="dark"] .brand-copy .eyebrow,html[data-bs-theme="dark"] .brand-copy .sub,body.theme-dark .brand-copy .eyebrow,body.theme-dark .brand-copy .sub,body.dark-mode .brand-copy .eyebrow,body.dark-mode .brand-copy .sub,body[data-theme="dark"] .brand-copy .eyebrow,body[data-theme="dark"] .brand-copy .sub{color:rgba(226,232,240,.76)}
