/* ATLAS MAP 6.0 TEST — shared UI consolidation */
:root{--atlas-shell-header-h:82px;--atlas-ui-glass:rgba(255,255,255,.94);--atlas-ui-border:rgba(34,58,94,.14);--atlas-ui-shadow:0 14px 38px rgba(26,47,77,.16)}
.atlas-shared-header{height:var(--atlas-shell-header-h)!important;min-height:var(--atlas-shell-header-h)!important;max-height:var(--atlas-shell-header-h)!important;padding:8px 18px!important;background:linear-gradient(112deg,rgba(23,47,80,.98),rgba(34,58,94,.96))!important;border-bottom:2px solid #F59E0B!important;box-shadow:0 6px 20px rgba(23,47,80,.14)!important}
.atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:64px!important}
.atlas-shared-header .atlasmap-brand-logo{height:58px!important;max-height:58px!important}
.atlas-shared-header .atlasmap-header-actions{gap:8px!important}
.atlas-shared-header .atlasmap-header-meta,.atlas-shared-header .atlasmap-header-tools{background:rgba(255,255,255,.065)!important;border:1px solid rgba(255,255,255,.13)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.atlas-shared-header .atlas-access-tier-badge{display:inline-flex!important;align-items:center!important;gap:5px!important;min-height:28px!important;padding:0 9px!important;font-weight:850!important;letter-spacing:.02em!important}
.atlas-shared-header .atlas-access-tier-badge.premium{background:linear-gradient(135deg,#fff3c4,#f6c453)!important;color:#4b3600!important;border:1px solid rgba(255,226,117,.95)!important}
.atlas-premium-mark{display:inline-grid;place-items:center;width:14px;height:14px;flex:0 0 14px;border-radius:4px;background:#fff8dc;color:#9a6a00;font-size:10px;line-height:1;box-shadow:inset 0 0 0 1px rgba(154,106,0,.16)}
.atlas-user-status{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#fff;background:rgba(255,255,255,.07);border:0;flex:0 0 36px}
.atlas-user-status svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8}
.atlas-shared-header .atlasmap-header-btn,.atlas-shared-header .atlas-notification-bell,.atlas-user-status{transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.atlas-shared-header .atlasmap-header-btn:hover,.atlas-shared-header .atlas-notification-bell:hover,.atlas-user-status:hover{background:rgba(255,255,255,.13)!important;transform:translateY(-1px)}
.atlas-mobile-sheet,.atlas-measure-panel,.atlas-project-panel{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.atlas-mobile-sheet__handle{left:50%!important;transform:translateX(-50%)!important;margin-left:0!important;margin-right:0!important}
@media(max-width:900px){
 :root{--atlas-shell-header-h:54px}
 .atlas-shared-header{height:54px!important;min-height:54px!important;max-height:54px!important;padding:4px 7px!important;gap:5px!important}
 .atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:46px!important}
 .atlas-shared-header .atlasmap-brand{max-width:104px!important;flex-basis:104px!important}
 .atlas-shared-header .atlasmap-brand-logo{height:38px!important;max-height:38px!important;max-width:102px!important}
 .atlas-shared-header .header-right{min-width:0!important}
 .atlas-shared-header .atlasmap-header-actions{gap:3px!important}
 .atlas-shared-header .atlasmap-header-meta{display:flex!important;background:transparent!important;border:0!important;padding:0!important}
 .atlas-shared-header .atlasmap-header-meta .map-zoom-badge{display:none!important}
 .atlas-shared-header .atlas-access-tier-badge{display:inline-flex!important;font-size:8px!important;min-height:24px!important;padding:0 6px!important}
 .atlas-premium-mark{width:12px;height:12px;flex-basis:12px;font-size:8px}
 .atlas-shared-header .atlasmap-header-tools{padding:2px!important;gap:1px!important}
 .atlas-shared-header .atlasmap-header-btn,.atlas-shared-header .atlas-notification-bell,.atlas-user-status{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
 .atlas-user-status{flex-basis:32px}
 .atlas-shared-header .atlasmap-header-btn--back{display:none!important}
 .atlas-shell-staking main{height:calc(100dvh - 54px - 60px - 20px)!important}
}
@media(max-width:390px){
 .atlas-shared-header .atlasmap-brand{max-width:88px!important;flex-basis:88px!important}
 .atlas-shared-header .atlasmap-brand-logo{max-width:86px!important}
 .atlas-shared-header .atlas-access-tier-badge{font-size:7px!important;padding:0 5px!important}
}

/* 6.0 cumulative header — compact shared geometry */
.atlas-shared-header{padding-top:5px!important;padding-bottom:5px!important}
.atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:58px!important}
.atlas-shared-header .atlasmap-brand-logo{height:54px!important;max-height:54px!important}
.atlas-shared-header .atlasmap-header-meta,.atlas-shared-header .atlasmap-header-tools{min-height:40px!important;border-radius:11px!important}
.atlas-shared-header .atlasmap-header-account{gap:3px!important}
.atlas-user-status,.atlas-shared-header .atlas-notification-bell,.atlas-shared-header .atlasmap-header-btn{border-radius:9px!important}
.atlas-premium-mark{transform:rotate(45deg);border-radius:3px!important}
.atlas-premium-mark::first-letter{transform:rotate(-45deg)}
@media(max-width:900px){
 .atlas-shared-header{padding:3px 6px!important}
 .atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:44px!important}
 .atlas-shared-header .atlasmap-brand-logo{height:36px!important;max-height:36px!important}
 .atlas-shared-header .atlasmap-header-meta,.atlas-shared-header .atlasmap-header-tools{min-height:34px!important}
 .atlas-shared-header .atlasmap-header-btn--home span:last-child,.atlas-shared-header .atlasmap-header-btn--logout span:last-child{display:none!important}
}

/* 6.0 correction — visibly compact, identical right-side header controls */
:root{--atlas-shell-header-h:70px}
.atlas-shared-header{height:70px!important;min-height:70px!important;max-height:70px!important;padding:4px 14px!important}
.atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:54px!important}
.atlas-shared-header .atlasmap-brand-logo{height:48px!important;max-height:48px!important}
.atlas-shared-header .atlasmap-header-descriptor{font-size:11px!important;line-height:1.25!important;padding-left:14px!important}
.atlas-shared-header .atlasmap-header-meta,.atlas-shared-header .atlasmap-header-tools{min-height:36px!important;padding:3px!important}
.atlas-shared-header .atlasmap-header-btn,.atlas-shared-header .atlas-notification-bell,.atlas-user-status{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;display:grid!important;place-items:center!important}
.atlas-shared-header .atlasmap-header-btn span:last-child{display:none!important}
.atlas-shared-header .atlasmap-header-btn--back{width:auto!important;min-width:34px!important;padding:0 9px!important;display:flex!important;gap:5px!important}
.atlas-shared-header .atlasmap-header-btn--back span:last-child{display:inline!important;font-size:9px!important}
.atlas-access-tier-badge.premium .atlas-premium-mark{background:#fff!important;color:#8a6200!important;box-shadow:0 0 0 1px rgba(138,98,0,.2),0 1px 4px rgba(0,0,0,.12)!important}
@media(max-width:900px){
 :root{--atlas-shell-header-h:50px}
 .atlas-shared-header{height:50px!important;min-height:50px!important;max-height:50px!important;padding:2px 5px!important}
 .atlas-shared-header .atlasmap-header-left,.atlas-shared-header .atlasmap-brand{height:42px!important}
 .atlas-shared-header .atlasmap-brand-logo{height:34px!important;max-height:34px!important}
 .atlas-shared-header .atlasmap-header-descriptor{display:none!important}
 .atlas-shared-header .atlasmap-header-btn--back{display:none!important}
 .atlas-shell-staking main{height:calc(100dvh - 50px - 60px - 20px)!important}
}

/* 6.0.2 mobile header status language */
.atlas-user-status{position:relative;text-decoration:none!important}
.atlas-user-status.free{background:#47C27A!important;color:#fff!important}
.atlas-user-status.premium{background:#7654b5!important;color:#fff!important}
.atlas-user-status.admin{background:#f2c94c!important;color:#3c3100!important}
.atlas-user-diamond{position:absolute;right:-3px;top:-4px;width:13px;height:13px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#7654b5;font-size:8px;font-style:normal;box-shadow:0 1px 5px rgba(0,0,0,.18)}
@media(max-width:900px){
 .atlas-shared-header .atlasmap-header-meta{display:none!important}
 .atlas-shared-header .atlasmap-header-account{display:flex!important;align-items:center!important;gap:3px!important}
 .atlas-shared-header .atlasmap-header-tools{background:transparent!important;border:0!important;backdrop-filter:none!important}
}

/* 6.0.3 — account tier is conveyed only by user icon */
.atlas-shared-header .atlas-access-tier-badge{display:none!important}
.atlas-user-status.free{background:#47c27a!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important}
.atlas-user-status.premium{background:#7654b5!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important}
.atlas-user-status.admin{background:#f2c94c!important;color:#3c3100!important;border-color:rgba(255,255,255,.18)!important}
.atlas-user-diamond{display:none!important}

/* 6.0.5 header: suppress empty compact action left by hidden label */
.atlas-shared-header .atlasmap-header-btn:empty,
.atlas-shared-header .atlasmap-header-btn:not(:has(svg)):not(:has(.atlasmap-header-icon)):not(:has(span:first-child)){display:none!important}

/* 6.1 — header navigation icon */
.atlas-shared-header .atlasmap-header-maplink{display:inline-grid;place-items:center;width:38px;height:38px;min-width:38px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.10);color:#fff;text-decoration:none}
.atlas-shared-header .atlasmap-header-maplink:hover{background:rgba(255,255,255,.18)}
.atlas-shared-header .atlasmap-header-maplink svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8}
@media(max-width:900px){.atlas-shared-header .atlasmap-header-maplink{width:34px;height:34px;min-width:34px}.atlas-shared-header .atlasmap-header-maplink svg{width:20px;height:20px}}

/* 6.1.1 — uniform header icon sizes */
.atlas-shared-header .atlasmap-header-btn--home{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}
.atlas-shared-header .atlasmap-header-btn--home .atlasmap-header-btn__icon{font-size:22px!important;line-height:1!important}
.atlas-shared-header .atlas-header-stake-icon{font-size:20px;line-height:1}
@media(max-width:900px){.atlas-shared-header .atlasmap-header-btn--home{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important}}

/* 6.1.5 — Home header: stessa dimensione visiva degli altri pulsanti */
.atlas-shared-header .atlasmap-header-btn--home{
  width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;
  display:inline-grid!important;place-items:center!important;
}
.atlas-shared-header .atlasmap-header-btn--home .atlasmap-header-btn__icon{
  display:grid!important;place-items:center!important;width:24px!important;height:24px!important;
  font-size:24px!important;line-height:24px!important;
}
@media(max-width:900px){
 .atlas-shared-header .atlasmap-header-btn--home{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
 .atlas-shared-header .atlasmap-header-btn--home .atlasmap-header-btn__icon{width:22px!important;height:22px!important;font-size:22px!important;line-height:22px!important}
}
