/* V279: ten sam pasek w index.php i skin_editor.php; przyklejony do góry podczas przewijania. */
html[data-jmc-theme] body .jmc-shared-nav-shell {
  box-sizing:border-box;
  margin:0 auto;
  position:relative;
  z-index:20;
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav {
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:100%;
  min-width:0;
  height:80px;
  min-height:80px;
  margin:0;
  padding:0;
  gap:24px;
  background:transparent;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.07);
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .brand{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:12px;
  min-width:0;
  margin:0;
  color:#fff;
  font:950 1rem/1.25 Inter,system-ui,sans-serif;
  letter-spacing:.09em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .brand-logo{
  display:block;
  width:38px;
  height:38px;
  flex:0 0 38px;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  object-fit:contain;
  filter:drop-shadow(0 3px 5px rgba(0,0,0,.42));
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end;
  flex:0 1 auto;
  flex-wrap:wrap!important;
  min-width:0;
  max-width:100%;
  width:auto;
  gap:9px;
  margin:0;
  padding:0;
  overflow:visible!important;
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.btn{
  box-sizing:border-box;
  position:relative;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  min-height:40px!important;
  height:auto;
  margin:0;
  padding:11px 16px;
  border:1px solid #39546e;
  border-radius:0;
  color:#dcebf5;
  background:#101d2d;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.28),inset 3px 3px 0 rgba(120,180,230,.025),4px 4px 0 #02050a;
  text-decoration:none;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.075em;
  font:900 .72rem/1 Inter,system-ui,sans-serif;
  white-space:nowrap;
  cursor:pointer;
  transition:background .15s ease,transform .08s ease,filter .15s ease;
}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.btn:hover {background:#17283d;filter:brightness(1.05)}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.btn:active {transform:translate(3px,3px);box-shadow:inset 0 -2px 0 rgba(0,0,0,.22),1px 1px 0 #02050a}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.btn.green {background:#1e5d96;border-color:#4a8dcc;color:#f1f9ff}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.btn.green:hover {background:#2b6fab}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions > a.jmc-profile-nav {display:inline-flex!important;flex:0 1 auto!important;max-width:min(220px,100%);min-width:0;gap:7px}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .jmc-profile-nav-head {width:25px;height:25px;flex:0 0 25px;object-fit:contain;image-rendering:pixelated}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .jmc-profile-nav-label {display:block!important;min-width:0;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none!important;letter-spacing:0!important;font-weight:900!important}
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .jmc-settings-slot {display:inline-flex;align-items:center;flex:0 0 auto}
/* Dokładnie ten sam rozkład mobilny na obu podstronach. */
@media(max-width:1040px){
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav{height:auto!important;min-height:72px;flex-wrap:wrap;padding-top:12px!important;padding-bottom:12px!important;gap:12px 18px}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions{flex:1 1 100%;justify-content:flex-start}
}
@media(max-width:640px){
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav{gap:9px;padding:10px 0!important}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .brand{font-size:.82rem}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions{gap:6px!important;row-gap:7px!important;width:100%}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions>a.btn:not(.jmc-profile-nav){font-size:clamp(.55rem,2.2vw,.7rem)!important;height:38px!important;min-height:38px!important;padding:0 9px!important}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .nav-actions>a.btn.jmc-profile-nav{height:38px!important;min-height:38px!important;padding:0 9px!important;max-width:calc(100vw - 36px)}
  html[data-jmc-theme] body .shell > nav.jmc-shared-nav .jmc-profile-nav-label{max-width:clamp(70px,30vw,140px)}
}
/* Ten sam styl aktywnego motywu w obu widokach. */
html[data-jmc-theme="light"] body .shell > nav.jmc-shared-nav{background:rgba(248,252,255,.94)!important;border-bottom-color:#bad8ec!important;box-shadow:0 4px 18px rgba(43,104,145,.08)!important}
html[data-jmc-theme="light"] body .shell > nav.jmc-shared-nav .brand{color:#173b55!important}
html[data-jmc-theme="light"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn{background:#f4faff!important;border-color:#a9cee7!important;color:#285b7d!important;box-shadow:inset 0 -3px 0 rgba(36,87,122,.09),3px 3px 0 rgba(36,87,122,.11)!important}
html[data-jmc-theme="light"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn:hover{background:#e7f5ff!important}
html[data-jmc-theme="light"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn.green{background:#49a9e8!important;border-color:#318fcf!important;color:#fff!important}
html[data-jmc-theme="namemc"] body .shell > nav.jmc-shared-nav{background:#262b30!important;border:1px solid #1c2024!important;border-radius:4px!important;padding-left:18px!important;padding-right:18px!important;margin-top:12px!important;box-shadow:0 2px 7px rgba(0,0,0,.16)!important}
html[data-jmc-theme="namemc"] body .shell > nav.jmc-shared-nav .brand{color:#fff!important;text-transform:none!important;letter-spacing:.02em!important;font-weight:700!important}
html[data-jmc-theme="namemc"] body .shell > nav.jmc-shared-nav .brand-logo{width:34px;height:34px;flex-basis:34px;filter:none}
html[data-jmc-theme="namemc"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn{background:#30363b!important;border-color:#444b51!important;color:#e8ecef!important;border-radius:4px!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;font-weight:700!important}
html[data-jmc-theme="namemc"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn.green{background:#55a630!important;border-color:#61b13e!important;color:#fff!important}
html[data-jmc-theme="namemc-dark"] body .shell > nav.jmc-shared-nav{background:#1a2025!important;border-color:#313d37!important;border-radius:6px!important;box-shadow:0 2px 7px rgba(0,0,0,.22)!important}
html[data-jmc-theme="namemc-dark"] body .shell > nav.jmc-shared-nav .brand{color:#fff!important;text-transform:none!important;letter-spacing:.02em!important;font-weight:700!important}
html[data-jmc-theme="namemc-dark"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn{background:#20272d!important;border-color:#3a4640!important;color:#e3eae0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
html[data-jmc-theme="namemc-dark"] body .shell > nav.jmc-shared-nav .nav-actions>a.btn.green{background:#55a630!important;border-color:#4a922b!important;color:#fff!important}
/* Poprawia jedynie odziedziczoną czcionkę przycisku SVG w edytorze. */
html[data-jmc-theme] body .shell > nav.jmc-shared-nav .jmc-settings-button {font:13.3333px Arial}

/* Jeden współdzielony, responsywny, przyklejony do ekranu pasek. 
   W obu podstronach identyczna struktura DOM oraz top/z-index. */
html[data-jmc-theme] body .shell.jmc-shared-nav-shell {
  position:sticky!important;
  top:0;
  z-index:12000!important;
  width:min(1200px,calc(100% - 34px));
  isolation:isolate;
}
/* Nawigacja nie zasłania docelowych sekcji podczas skoku do kotwicy. */
html {scroll-padding-top:96px}
@media(max-width:1040px){
  /* overflow-x:hidden tworzy niezamierzony kontener przewijania i wyłącza sticky na telefonach. */
  html,body {overflow-x:clip!important}
  html {scroll-padding-top:145px}
}
@media(max-width:640px){
  html[data-jmc-theme] body .shell.jmc-shared-nav-shell {width:min(100% - 16px,1200px)}
  html {scroll-padding-top:178px}
}
