
:root{
  --pape-purple:#7c5cff;
  --pape-purple-soft:#ede8ff;
  --pape-purple-border:#d9ccff;
  --pape-surface:#ffffff;
  --pape-surface-alt:#faf8ff;
  --pape-text:#1f2342;
  --pape-muted:#6f6c91;
}
.app-shell,.ev-wrap,.report-pro-shell,.pape-shell{max-width:1200px !important; margin-inline:auto !important;}
.pape-institutional-topbar{
  position:sticky; top:0; z-index:120;
  background:rgba(250,248,255,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #e8e0ff;
}
.pape-topbar-inner{display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;}
.pape-brand-block--full{display:flex; align-items:center; gap:18px; min-width:0; flex:1 1 520px;}
.pape-brand-logo{height:70px; width:auto; object-fit:contain; flex:0 0 auto; display:block;}
.pape-brand-copy{min-width:0;}
.pape-brand-copy .eyebrow{margin:0 0 2px; font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; color:#7b6bb8;}
.pape-brand-copy .title{margin:0; font-size:1.1rem; font-weight:800; color:#24264d; line-height:1.15;}
.pape-brand-copy .title-lg{font-size:1.55rem; letter-spacing:-.02em;}
.pape-brand-copy .sub{margin:.32rem 0 0; color:var(--pape-muted); font-size:.98rem; line-height:1.4;}
.pape-global-actions,.pape-doc-actions{display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end;}
.pape-topbar-right{display:flex; flex-direction:column; gap:12px; align-items:flex-end; margin-left:auto;}
.pape-header-btn{display:inline-flex; align-items:center; gap:.5rem; padding:.72rem 1rem; border-radius:16px; border:1px solid var(--pape-purple-border); background:#fff; color:#3d3567; font-weight:700; text-decoration:none; line-height:1; box-shadow:0 1px 0 rgba(124,92,255,.04);}
.pape-header-btn:hover{background:#f8f5ff; color:#2f2757; border-color:#cfc0ff;}
.pape-header-btn.primary{background:linear-gradient(135deg,#7a58f5,#a06fff); color:#fff; border-color:transparent; box-shadow:0 14px 28px rgba(124,92,255,.22);}
.pape-header-btn.primary:hover{color:#fff; filter:brightness(1.03);}
.pape-header-btn.icononly{padding:.72rem .88rem; min-width:48px; justify-content:center;}
.pape-header-btn.menu{padding:.72rem 1rem;}
.pape-doc-actions .dropdown-menu{border:1px solid #eadfff; border-radius:16px; padding:.5rem; min-width:250px; box-shadow:0 18px 40px rgba(44,34,96,.14);}
.pape-doc-actions .dropdown-item{border-radius:12px; padding:.7rem .85rem; font-weight:600;}
.pape-doc-actions .dropdown-item:hover{background:#f4f0ff;}
.pape-doc-actions .dropdown-item.text-warning{color:#c47a00 !important;}
.pape-status-chip-wrap .chip,.pape-status-chip-wrap > *{margin:0 !important;}
.pape-status-chip-wrap{display:flex; align-items:center;}
.pape-page-header{display:none !important;}
.topbar .container, nav.topbar .container, nav.topbar .container-fluid{max-width:1200px !important;}
/* Sidebar/dashboard logo */
.pape-premium .premium-brand.premium-brand-inline,
.pape-premium .premium-mobile-brand{justify-content:center; gap:0 !important;}
.pape-premium .premium-brand-inline .premium-brand-copy,
.pape-premium .premium-mobile-brand > div{display:none !important;}
.pape-premium .premium-brand-inline .premium-brand-icon{width:auto !important; height:auto !important; background:transparent !important; box-shadow:none !important; padding:0 !important; border-radius:0 !important;}
.pape-premium .premium-brand-inline .premium-logo{height:84px !important; width:auto !important; object-fit:contain; filter:drop-shadow(0 10px 26px rgba(82,47,190,.18));}
.pape-premium.sidebar-collapsed .premium-brand-inline .premium-logo{height:56px !important;}
.pape-premium .premium-mobile-brand .premium-logo{height:74px !important; width:auto !important; object-fit:contain;}
.pape-premium .sidebar-topbar-inline{justify-content:center;}
.pape-premium .premium-sidebar{padding-top:8px;}
/* student header tweaks */
.student-page .student-hero{margin-top:1.2rem;}
.student-page .breadcrumbbar{padding-top:.15rem; padding-bottom:.2rem;}
/* plan specific */
.pape-plan-meta{font-size:1rem; color:#6f62a5; margin-top:.42rem;}
.pape-plan-topbar .pape-brand-logo{height:78px;}
.pape-plan-topbar .pape-topbar-right{flex:0 1 auto;}
.pape-plan-topbar .pape-doc-actions{width:100%; justify-content:flex-end;}
.pape-plan-topbar .pape-topbar-inner{align-items:flex-start;}
.pape-plan-topbar .pape-global-actions{margin-top:.15rem;}
#statusChipWrap .chip{padding:.58rem .9rem; border-radius:999px; font-size:.95rem; font-weight:700;}
@media (max-width: 992px){
  .pape-brand-logo{height:60px;}
  .pape-brand-copy .title-lg{font-size:1.32rem;}
  .pape-topbar-right{width:100%; align-items:flex-start;}
  .pape-global-actions,.pape-doc-actions{justify-content:flex-start;}
  .pape-premium .premium-brand-inline .premium-logo{height:70px !important;}
}
@media (max-width: 768px){
  .pape-brand-block--full{align-items:flex-start;}
  .pape-brand-logo{height:52px;}
  .pape-header-btn{padding:.68rem .9rem; border-radius:14px;}
  .pape-brand-copy .title-lg{font-size:1.18rem;}
  .pape-brand-copy .sub,.pape-plan-meta{font-size:.92rem;}
}

/* dashboard final compact */
.pape-premium .sidebar-top{padding:8px 14px 10px;}
.pape-premium .sidebar-topbar.sidebar-topbar-inline{padding:10px 8px 14px;border-bottom:1px solid rgba(255,255,255,.14);}
.pape-premium .premium-brand.premium-brand-inline{padding:0 !important;min-height:auto !important;background:transparent !important;border:none !important;box-shadow:none !important;}
.pape-premium .premium-brand-inline .premium-logo{height:62px !important;filter:none !important;}
.pape-premium .premium-sidebar{background:linear-gradient(180deg,#6938e6 0%,#5524cf 100%) !important;}
.pape-premium .premium-sidebar-footer{padding-top:14px !important;}
.pape-premium .sidebar-user-card{border-radius:18px !important;}
@media (max-width:992px){.pape-premium .premium-brand-inline .premium-logo{height:56px !important;}}
