
:root{
  --plena-shell-bg:rgba(4,5,10,.94);
  --plena-shell-bg2:rgba(10,13,22,.96);
  --plena-shell-border:rgba(200,146,42,.22);
  --plena-shell-gold:#c8922a;
  --plena-shell-gold2:#e8c060;
  --plena-shell-text:#f4efe5;
  --plena-shell-soft:#c7d2e3;
}
#plena-shared-shell-d19{position:sticky;top:0;z-index:2147482400;background:linear-gradient(135deg,var(--plena-shell-bg),var(--plena-shell-bg2));border-bottom:1px solid var(--plena-shell-border);box-shadow:0 10px 32px rgba(0,0,0,.24);backdrop-filter:blur(10px);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--plena-shell-text);}
#plena-shared-shell-d19 *{box-sizing:border-box;}
#plena-shared-shell-d19 .plena-shell-inner{width:min(1180px,calc(100% - 28px));margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:.85rem;padding:.62rem 0;}
#plena-shared-shell-d19 .plena-shell-brand{display:flex;align-items:center;gap:.55rem;color:var(--plena-shell-text);text-decoration:none;font-weight:900;letter-spacing:.16em;white-space:nowrap;font-size:.9rem;}
#plena-shared-shell-d19 .plena-shell-brand .psh-word{display:inline;}
#plena-shared-shell-d19 .plena-shell-brand .psh-plena{color:var(--plena-shell-text);font-weight:900;}
#plena-shared-shell-d19 .plena-shell-brand .psh-proof{color:var(--plena-shell-gold2);font-weight:600;}
#plena-shared-shell-d19 .plena-shell-mark{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(200,146,42,.22),rgba(200,146,42,.06));border:1px solid rgba(200,146,42,.38);color:var(--plena-shell-gold2);font-weight:900;letter-spacing:0;font-size:.75rem;}
#plena-shared-shell-d19 .plena-shell-nav{display:flex;align-items:center;justify-content:center;gap:.45rem;flex-wrap:wrap;}
#plena-shared-shell-d19 .plena-shell-link{color:var(--plena-shell-text);text-decoration:none;border:1px solid rgba(200,146,42,.30);border-radius:999px;padding:.42rem .68rem;font-size:.72rem;font-weight:800;letter-spacing:.03em;background:rgba(200,146,42,.06);line-height:1.15;}
#plena-shared-shell-d19 .plena-shell-link:hover,#plena-shared-shell-d19 .plena-shell-link:focus{color:var(--plena-shell-gold2);border-color:rgba(200,146,42,.45);background:rgba(200,146,42,.08);outline:none;}
#plena-shared-shell-d19 .plena-shell-controls{display:flex;align-items:center;gap:.5rem;}
#plena-shared-shell-d19 .plena-shell-select{border:1px solid rgba(200,146,42,.38);border-radius:999px;background:#121723;color:var(--plena-shell-text);padding:.42rem 1.85rem .42rem .68rem;font-weight:800;font-size:.72rem;line-height:1.15;cursor:pointer;}
#plena-shared-shell-d19 .plena-shell-select:focus{outline:2px solid rgba(232,192,96,.45);outline-offset:2px;}
#plena-shared-shell-d19 .plena-shell-directory{position:relative;}
#plena-shared-shell-d19 .plena-shell-directory summary{list-style:none;cursor:pointer;color:var(--plena-shell-text);border:1px solid rgba(200,146,42,.30);border-radius:999px;padding:.42rem .68rem;font-size:.72rem;font-weight:800;background:rgba(200,146,42,.06);}
#plena-shared-shell-d19 .plena-shell-directory summary::-webkit-details-marker{display:none;}
#plena-shared-shell-d19 .plena-shell-directory[open] summary{color:var(--plena-shell-gold2);border-color:rgba(200,146,42,.45);background:rgba(200,146,42,.08);}
#plena-shared-shell-d19 .plena-shell-menu{position:absolute;right:0;top:calc(100% + .45rem);min-width:240px;max-height:70vh;overflow:auto;background:#0c101b;border:1px solid rgba(200,146,42,.28);border-radius:16px;padding:.45rem;box-shadow:0 18px 50px rgba(0,0,0,.38);display:grid;grid-template-columns:1fr;gap:.25rem;}
#plena-shared-shell-d19 .plena-shell-menu a{color:var(--plena-shell-soft);text-decoration:none;border-radius:10px;padding:.5rem .6rem;font-size:.76rem;font-weight:800;letter-spacing:.035em;}
#plena-shared-shell-d19 .plena-shell-menu a:hover,#plena-shared-shell-d19 .plena-shell-menu a:focus{background:rgba(200,146,42,.1);color:var(--plena-shell-gold2);outline:none;}
.plena-shared-cookie-d19{position:fixed;left:12px;right:12px;bottom:12px;z-index:2147482500;display:none;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;padding:.78rem .9rem;border:1px solid rgba(200,146,42,.26);border-radius:16px;background:rgba(9,12,20,.96);color:var(--plena-shell-soft);box-shadow:0 14px 38px rgba(0,0,0,.35);font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;}
.plena-shared-cookie-d19 p{margin:0;font-size:.78rem;line-height:1.45;}
.plena-shared-cookie-d19 button{border:1px solid rgba(200,146,42,.36);background:rgba(200,146,42,.14);color:var(--plena-shell-gold2);border-radius:999px;padding:.44rem .8rem;font-weight:900;cursor:pointer;}
.plena-shared-legal-d19{border-top:1px solid rgba(200,146,42,.18);background:rgba(4,5,10,.88);color:rgba(210,220,232,.78);font:500 .76rem/1.6 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;padding:.9rem 1rem;text-align:center;}
.plena-shared-legal-d19 strong{color:var(--plena-shell-gold2);}
html[dir="rtl"] #plena-shared-shell-d19 .plena-shell-menu{left:0;right:auto;}
html[dir="rtl"] #plena-shared-shell-d19 .plena-shell-inner{direction:rtl;}
@media(max-width:860px){
  #plena-shared-shell-d19 .plena-shell-inner{align-items:flex-start;flex-direction:column;padding:.7rem 0;}
  #plena-shared-shell-d19 .plena-shell-nav{justify-content:flex-start;}
  #plena-shared-shell-d19 .plena-shell-controls{width:100%;justify-content:space-between;}
  #plena-shared-shell-d19 .plena-shell-menu{left:0;right:auto;}
}
@media(max-width:520px){
  #plena-shared-shell-d19 .plena-shell-link,#plena-shared-shell-d19 .plena-shell-directory summary{font-size:.68rem;padding:.38rem .54rem;}
  #plena-shared-shell-d19 .plena-shell-menu{min-width:210px;}
}

/* d19.96: compact shared shell so platform pages do not get covered by a long injected nav. */
#plena-shared-shell-d19 .plena-shell-nav{gap:.38rem;flex-wrap:nowrap;}
#plena-shared-shell-d19 .plena-shell-directory:not([open]) .plena-shell-menu{display:none!important;}
#plena-shared-shell-d19 .plena-shell-directory[open] .plena-shell-menu{display:grid!important;}
#plena-shared-shell-d19 .plena-shell-menu a{display:block;}
@media(max-width:960px){
  #plena-shared-shell-d19 .plena-shell-inner{display:grid;grid-template-columns:1fr auto;align-items:start;}
  #plena-shared-shell-d19 .plena-shell-nav{grid-column:1 / -1;display:flex;flex-wrap:wrap;justify-content:flex-start;max-height:none;}
  #plena-shared-shell-d19 .plena-shell-controls{justify-content:flex-end;}
}
@media(max-width:560px){
  #plena-shared-shell-d19 .plena-shell-inner{width:min(100% - 18px,1180px);gap:.5rem;}
  #plena-shared-shell-d19 .plena-shell-brand{font-size:.78rem;}
  #plena-shared-shell-d19 .plena-shell-link,#plena-shared-shell-d19 .plena-shell-directory summary{font-size:.66rem;padding:.34rem .48rem;}
  #plena-shared-shell-d19 .plena-shell-select{max-width:150px;font-size:.66rem;padding:.34rem 1.55rem .34rem .5rem;}
}

/* d19.98: harden shared shell against visible-layer spillover on narrow screens. */
#plena-shared-shell-d19{isolation:isolate;max-width:100%;}
#plena-shared-shell-d19 .plena-shell-inner{min-width:0;flex-wrap:wrap;}
#plena-shared-shell-d19 .plena-shell-brand,#plena-shared-shell-d19 .plena-shell-controls{flex:0 0 auto;}
#plena-shared-shell-d19 .plena-shell-nav{min-width:0;max-width:100%;}
#plena-shared-shell-d19 .plena-shell-link,#plena-shared-shell-d19 .plena-shell-directory summary{white-space:nowrap;}
@media(max-width:760px){
  #plena-shared-shell-d19 .plena-shell-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.48rem;}
  #plena-shared-shell-d19 .plena-shell-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;}
  #plena-shared-shell-d19 .plena-shell-controls{justify-content:flex-end;min-width:0;}
  #plena-shared-shell-d19 .plena-shell-nav{grid-column:1 / -1;width:100%;overflow-x:auto;overflow-y:visible;flex-wrap:nowrap;justify-content:flex-start;padding:.12rem 0 .36rem;-webkit-overflow-scrolling:touch;scrollbar-width:thin;}
  #plena-shared-shell-d19 .plena-shell-nav > *{flex:0 0 auto;}
  #plena-shared-shell-d19 .plena-shell-menu{position:absolute;left:0;right:auto;max-width:calc(100vw - 24px);}
}
@media(max-width:430px){
  #plena-shared-shell-d19 .plena-shell-mark{width:28px;height:28px;border-radius:9px;}
  #plena-shared-shell-d19 .plena-shell-brand span:last-child{max-width:82px;overflow:hidden;text-overflow:ellipsis;}
  #plena-shared-shell-d19 .plena-shell-select{max-width:126px;}
}


/* d19.99: structural shell/platform separation.
   Platform pages such as PROVA and ASCENDA have their own sticky topbar.
   Keep that topbar below the injected PLENA shell instead of letting the two
   sticky layers fight for top:0 and visually spill into each other. */
body.plena-shared-shell-active .topbar{
  top:var(--plena-shell-offset,64px)!important;
  z-index:500!important;
  max-width:100%;
  isolation:isolate;
}
body.plena-shared-shell-active .suite-bar{
  position:relative;
  z-index:490!important;
  max-width:100%;
}
body.plena-shared-shell-active #wallet-lifetime-proof-bridge{
  margin-top:.85rem!important;
  clear:both;
}
.topbar .logo-icon{overflow:hidden;line-height:1;}
.topbar .logo .lang-sw,.topbar .logo-icon .lang-sw{display:none!important;}
.topbar > .lang-sw{display:block;}
@media(max-width:760px){
  body.plena-shared-shell-active .topbar{top:var(--plena-shell-offset,92px)!important;height:auto;min-height:54px;flex-wrap:wrap;padding:.55rem .75rem;}
  body.plena-shared-shell-active .topbar .tnav-wrap{order:3;flex:1 0 100%;width:100%;}
  body.plena-shared-shell-active .topbar .tnav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.25rem;}
  body.plena-shared-shell-active .topbar .lang-sw{margin-left:auto;}
}


/* d19.102 emergency shell/header containment for PROVA and ASCENDA.
   The legacy in-page platform strip was rendering as visible spill above the platform toolbar.
   Hide that duplicate strip and make the remaining tool navigation a single horizontal row. */
body.plena-platform-compact-shell #wallet-lifetime-proof-bridge{display:none!important;}
body.plena-platform-compact-shell .suite-bar{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;}
body.plena-platform-compact-shell .topbar{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;height:54px!important;min-height:54px!important;max-height:54px!important;overflow:visible!important;gap:10px!important;padding:0 14px!important;}
body.plena-platform-compact-shell .topbar .logo{flex:0 0 auto!important;min-width:auto!important;white-space:nowrap!important;}
body.plena-platform-compact-shell .topbar .logo-icon{flex:0 0 auto!important;overflow:hidden!important;}
body.plena-platform-compact-shell .topbar .tnav-wrap{flex:1 1 auto!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:thin!important;}
body.plena-platform-compact-shell .topbar .tnav{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;width:max-content!important;min-width:100%!important;row-gap:0!important;}
body.plena-platform-compact-shell .topbar .tn{flex:0 0 auto!important;white-space:nowrap!important;}
body.plena-platform-compact-shell .topbar .lang-sw{position:relative!important;flex:0 0 auto!important;margin-left:.35rem!important;z-index:700!important;}
body.plena-platform-compact-shell .topbar .lang-menu{right:0!important;left:auto!important;max-height:70vh!important;overflow:auto!important;z-index:900!important;}
@media(max-width:760px){
  body.plena-platform-compact-shell .topbar{height:52px!important;min-height:52px!important;max-height:52px!important;flex-wrap:nowrap!important;padding:0 9px!important;}
  body.plena-platform-compact-shell .topbar .logo{font-size:15px!important;letter-spacing:.04em!important;}
  body.plena-platform-compact-shell .topbar .logo-icon{width:26px!important;height:26px!important;}
  body.plena-platform-compact-shell .topbar .tn{font-size:11px!important;padding:5px 8px!important;}
}


/* d19.104: stronger shell/platform containment for all 14 platform pages.
   Keeps the global PLENA shell, platform toolbar, and language menu from visually colliding. */
body.plena-platform-compact-shell #plena-shared-shell-d19{position:sticky;top:0;z-index:2147482400;}
body.plena-platform-compact-shell .suite-bar,
body.plena-platform-compact-shell #wallet-lifetime-proof-bridge{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important;}
body.plena-platform-compact-shell .topbar{box-sizing:border-box!important;max-width:100vw!important;}
body.plena-platform-compact-shell .topbar .logo{min-width:0!important;max-width:132px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.plena-platform-compact-shell .topbar .tnav-wrap{min-width:0!important;}
body.plena-platform-compact-shell .topbar .tnav{max-width:100%!important;}
body.plena-platform-compact-shell .topbar .lang-menu{position:absolute!important;}
@media(max-width:560px){
  body.plena-platform-compact-shell .topbar .logo{max-width:82px!important;font-size:0!important;gap:0!important;}
  body.plena-platform-compact-shell .topbar .logo .logo-icon{font-size:12px!important;margin-right:0!important;}
  body.plena-platform-compact-shell .topbar .tn{font-size:10.5px!important;padding:5px 7px!important;}
  body.plena-platform-compact-shell .topbar .lang-sw-btn{font-size:11px!important;padding:5px 7px!important;}
}

/* d19.173 — Respect users who ask for reduced motion (accessibility + saves
   CPU/battery on low-end devices). Near-instant animations/transitions and no
   auto-scrolling marquees/tickers. Applies to every page that loads this shell. */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:0.001ms!important;
    animation-iteration-count:1!important;
    transition-duration:0.001ms!important;
    scroll-behavior:auto!important;
  }
}
