/* Control ANDRIK v54.78 — full weekly-growth panel, centered big GA/YouTube headers,
   compact square focused-country actions. Loaded after v54.77.
   No changes to Search Console, Studio, map logic, push logic, Worker, D1, R2, Cron or PWA architecture. */

/* 1) Weekly growth panel: make it continue deeper toward the bottom and keep all rows scrollable above the dots. */
.analytics-v54-46-page .analytics-map-top:not(.has-country-focus) > .country-growth-panel:not([hidden]){
  box-sizing:border-box!important;
  height:clamp(460px,calc(100dvh - 255px),880px)!important;
  min-height:clamp(460px,calc(100dvh - 255px),880px)!important;
  max-height:clamp(460px,calc(100dvh - 255px),880px)!important;
  padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.analytics-v54-46-page .country-growth-list{padding-bottom:6px!important}
.analytics-v54-46-page .country-growth-head{top:-18px!important}
.analytics-v54-46-page .country-growth-summary-shortcut{bottom:calc(12px + env(safe-area-inset-bottom))!important}

/* 2) Focused-country action buttons: return both controls inside the map card as compact square tiles. */
.analytics-v54-46-page .analytics-map-top .map-focus-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:stretch!important;
}
.analytics-v54-46-page .analytics-map-top .map-focus-action{
  min-height:94px!important;
  padding:14px 10px!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  text-align:center!important;
  white-space:normal!important;
  line-height:1.15!important;
  border-radius:20px!important;
  aspect-ratio:1.18/1!important;
  font-size:clamp(.82rem,3.4vw,.98rem)!important;
}
.analytics-v54-46-page .analytics-map-top .map-focus-action.is-daily{
  background:rgba(9,35,49,.9)!important;
  color:#d9f5ff!important;
}
.analytics-v54-46-page .analytics-map-top .map-focus-action.is-activity{
  background:rgba(6,43,27,.9)!important;
  color:#d1ffe2!important;
}

/* 3) Google Analytics header: large and centered. */
.analytics-v54-46-page .analytics-site-hero .analytics-heading{
  display:block!important;
  text-align:center!important;
}
.analytics-v54-46-page .analytics-site-hero .analytics-heading > div{
  width:100%!important;
  text-align:center!important;
}
.analytics-v54-46-page .analytics-site-hero .eyeline{
  display:block!important;
  margin:0 0 6px!important;
  text-align:center!important;
  font-size:clamp(.82rem,3vw,1rem)!important;
  letter-spacing:.18em!important;
}
.analytics-v54-46-page .analytics-site-hero .analytics-site-title-inline{
  display:block!important;
  width:100%!important;
  margin:0!important;
  text-align:center!important;
  font-size:clamp(2.4rem,11vw,4rem)!important;
  line-height:.95!important;
  letter-spacing:-.04em!important;
}
.analytics-v54-46-page .analytics-site-hero #analyticsPropertyLabel{
  margin:10px auto 0!important;
  max-width:26ch!important;
  text-align:center!important;
  font-size:clamp(1rem,4.2vw,1.26rem)!important;
  line-height:1.25!important;
}

/* 4) YouTube header: large and centered, including the Studio pill. */
.analytics-v54-46-page .analytics-youtube-header{
  text-align:center!important;
}
.analytics-v54-46-page .analytics-youtube-header > .eyeline{
  display:block!important;
  margin:0 0 6px!important;
  text-align:center!important;
  font-size:clamp(.82rem,3vw,1rem)!important;
  letter-spacing:.18em!important;
}
.analytics-v54-46-page .youtube-title-status-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  justify-items:center!important;
  gap:12px!important;
}
.analytics-v54-46-page .youtube-title-status-row h1{
  margin:0!important;
  text-align:center!important;
  font-size:clamp(2.55rem,11vw,4.1rem)!important;
  line-height:.95!important;
  letter-spacing:-.04em!important;
}
.analytics-v54-46-page .youtube-title-status-row .youtube-studio-gate-inline,
.analytics-v54-46-page .youtube-title-status-row #youtubeStudioGate{
  width:min(100%,320px)!important;
  justify-self:center!important;
}
.analytics-v54-46-page .analytics-youtube-header > p{
  margin:10px auto 0!important;
  max-width:24ch!important;
  text-align:center!important;
  font-size:clamp(1rem,4.2vw,1.2rem)!important;
  line-height:1.25!important;
}
.analytics-v54-46-page .analytics-youtube-header .youtube-auth-inline{
  margin-top:12px!important;
}

@media(max-width:430px){
  .analytics-v54-46-page .analytics-map-top:not(.has-country-focus) > .country-growth-panel:not([hidden]){
    height:calc(100dvh - 240px)!important;
    min-height:calc(100dvh - 240px)!important;
    max-height:calc(100dvh - 240px)!important;
    padding-bottom:calc(92px + env(safe-area-inset-bottom))!important;
  }
  .analytics-v54-46-page .analytics-map-top .map-focus-actions{gap:8px!important}
  .analytics-v54-46-page .analytics-map-top .map-focus-action{
    min-height:88px!important;
    padding:12px 8px!important;
    font-size:.8rem!important;
  }
  .analytics-v54-46-page .analytics-site-hero .analytics-site-title-inline{
    font-size:clamp(2.15rem,10.2vw,3.25rem)!important;
  }
  .analytics-v54-46-page .youtube-title-status-row h1{
    font-size:clamp(2.25rem,10.2vw,3.35rem)!important;
  }
}
