﻿/*
 * Late public polish
 *
 * Extracted from pages/70-community.css during modular cleanup.
 * Keep this file between pages/70-community.css and overrides/90-topbar-polish.css
 * to preserve the previous cascade order.
 */

/* =========================================================
   Final home polish: top rail balance + sidebar empty states
   ========================================================= */
.monitorMetric--muted{
  color: rgba(231,237,243,.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .01em;
}

.monitorConnect{
  display: grid;
  gap: 8px;
  width: 100%;
}
.monitorConnect__buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.monitorConnect__buttons .btn-primary,
.monitorConnect__buttons .btn-ghost{
  flex: 1 1 170px;
}
.monitorConnect__hint{
  color: var(--text700);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sitePanel--monitor.is-monitor-offline .progress{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.sitePanel--monitor.is-monitor-offline #monitor-progress-fill{
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
}
.sitePanel--monitor.is-monitor-offline .monitorMeta .kv{
  background: rgba(255,255,255,.025);
}
.sitePanel--monitor.is-monitor-offline .monitorMeta b{
  color: rgba(231,237,243,.74);
}

.monitorActions--state{
  display: block;
}
.monitorActions--state .state{
  width: 100%;
}

.sidebarState{
  width: 100%;
}
.sidebarState .state__title{
  line-height: 1.22;
}
.sidebarState .state__text{
  line-height: 1.42;
}
.sidebarState--monitor{
  min-height: 94px;
}

.telemetryList--state{
  overflow: hidden;
  align-content: stretch;
}
.telemetryList--state .state{
  width: 100%;
}
.telemetryList--state .sidebarState{
  min-height: 100%;
  display: flex;
  align-items: center;
}
.telemetryList--state .state__icon{
  align-self: center;
}
.telemetryList--state .state__body{
  display: grid;
  gap: 4px;
}

.sitePanel--missing{
  position: relative;
  overflow: hidden;
}
.sitePanel--missing::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top right, rgba(211,84,0,.14), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.035), transparent 44%);
}
.pageMissingPage{
  min-height: clamp(320px, 58vh, 620px);
  display:grid;
  place-items:center;
  padding: clamp(18px, 4vw, 34px);
}
.pageMissingState{
  position: relative;
  width: min(760px, 100%);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(211,84,0,.26);
  background:
    linear-gradient(180deg, rgba(24,24,28,.88), rgba(8,8,10,.94));
  box-shadow:
    0 26px 60px rgba(0,0,0,.26),
    inset 0 0 0 1px rgba(255,255,255,.03);
}
.pageMissingState__eyebrow{
  position:absolute;
  top: 14px;
  right: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(231,237,243,.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pageMissingState .state__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border-color: rgba(211,84,0,.24);
  background: radial-gradient(circle at center, rgba(211,84,0,.18), rgba(255,255,255,.04));
  color: rgba(255,211,170,.94);
  box-shadow: 0 10px 28px rgba(211,84,0,.12);
}
.pageMissingState__slug{
  display:inline-flex;
  align-items:center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pageMissingState .state__title{
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}
.pageMissingState .state__text{
  max-width: 56ch;
  margin-top: 8px;
  color: rgba(231,237,243,.74);
  font-size: 14px;
  line-height: 1.6;
}
.pageMissingState .state__actions{
  margin-top: 16px;
}
html.layout-embedded .pageMissingPage{
  min-height: calc(100vh - 48px);
}
@media (max-width: 680px){
  .pageMissingState{
    padding-top: 56px;
  }
  .pageMissingState__eyebrow{
    top: 12px;
    left: 14px;
    right: auto;
  }
}

body.page-home .headerRailBasesShell{
  grid-template-columns: clamp(268px, 32%, 316px) minmax(0, 1fr);
}
body.page-home .headerRadioMini{
  padding-inline: 11px;
}
body.page-home .headerRadioMini__main{
  min-height: 0;
}
body.page-home .headerRadioMini__title{
  -webkit-line-clamp: 2;
}
body.page-home .headerRadioMini__actions{
  margin-top: auto;
}
body.page-home .headerRadioMini__status{
  -webkit-line-clamp: 1;
}
body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty{
  width: 100%;
  max-width: none;
  flex-basis: auto;
}
body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__hint{
  max-width: 44ch;
}
body.page-home .sitePanel--monitor.is-monitor-offline .monitorMeta{
  opacity: .96;
}
body.page-home .monitorActions--state .sidebarState{
  min-height: 102px;
}
body.page-home .telemetryList--state .sidebarState{
  min-height: clamp(170px, 22vh, 240px);
}

@media (max-width: 560px){
  body.page-home .telemetryList--state .sidebarState{
    min-height: 150px;
  }
}

/* =========================================================
   Final home radio simplification: compact trigger + full modal
   ========================================================= */
@media (min-width: 981px){
  body.page-home .topbar{
    --topline-box-h: 118px;
  }

  body.page-home .brand,
  body.page-home .headerRailBases,
  body.page-home .headerRailPromo,
  body.page-home .profileWidget{
    border-radius: 16px;
  }

  body.page-home .headerRailBases,
  body.page-home .profileWidget{
    min-height: var(--topline-box-h);
  }

  body.page-home .headerRailBases{
    padding: 9px 12px 11px;
  }

  body.page-home .headerRailPromo{
    min-width: 0;
  }

  body.page-home .headerRailPromo .railBody{
    height: 100%;
    border-radius: 16px;
  }

  body.page-home .railHead{
    min-height: 18px;
    margin-bottom: 7px;
    align-items: flex-start;
  }

  body.page-home .railTitle{
    font-size: 15px;
    font-weight: 800;
  }

  body.page-home .railMore{
    font-size: 12px;
    line-height: 1.1;
  }

  body.page-home .headerRadioMini{
    padding: 11px 13px;
    gap: 7px;
    border-radius: 16px;
    box-shadow:
      0 14px 30px rgba(0,0,0,.26),
      inset 0 1px 0 rgba(255,255,255,.07);
  }

  body.page-home .headerRadioMini__top{
    min-height: 24px;
  }

  body.page-home .headerRadioMini__summary{
    min-height: 0;
    display: grid;
    align-content: center;
    gap: 4px;
  }

  body.page-home .headerRadioMini__title{
    font-size: 13px;
    line-height: 1.16;
  }

  body.page-home .headerRadioMini__ownerLine{
    min-height: 16px;
    gap: 5px;
  }

  body.page-home .headerRadioMini__ownerLabel{
    font-size: 9px;
    letter-spacing: .11em;
  }

  body.page-home .headerRadioMini__ownerName{
    font-size: 11px;
  }

  body.page-home .headerRailBasesStage{
    margin-left: 0;
  }

  body.page-home .headerRailBasesStage::before{
    left: -5px;
    top: 10px;
    bottom: 10px;
    opacity: .7;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide{
    min-height: 100%;
    padding: 12px 14px;
    gap: 12px;
    align-items: center;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .baseInfo{
    justify-content: center;
    gap: 6px;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty{
    padding: 14px 16px;
    align-items: center;
    background:
      radial-gradient(130% 130% at 0% 0%, rgba(240,140,40,.075), rgba(240,140,40,0) 52%),
      rgba(255,255,255,.03);
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide{
    display: grid;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-height: 100%;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__title{
    font-size: 14px;
    line-height: 1.18;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__hint{
    max-width: 32ch;
    line-height: 1.32;
  }

  body.page-home .railScroller--promo .railSlide--promo{
    border-radius: 16px;
  }

  body.page-home .railScroller--promo .promoOverlay{
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  body.page-home .railScroller--promo .promoTitle{
    font-size: 15px;
    line-height: 1.16;
  }

  body.page-home .profileWidget{
    padding: 10px 12px;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest){
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas:
      "avatar head"
      "avatar meta"
      "actions actions";
    column-gap: 12px;
    row-gap: 5px;
    align-items: start;
  }

  body.page-home .profileAvatarLarge{
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileAvatarLarge{
    grid-area: avatar;
    align-self: start;
  }

  body.page-home .profileWidgetBody{
    gap: 5px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetBody{
    display: contents;
  }

  body.page-home .profileWidgetHeaderRow{
    align-items: flex-start;
    gap: 8px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetHeaderRow{
    grid-area: head;
  }

  body.page-home .profileWidgetName{
    font-size: 13px;
    line-height: 1.12;
  }

  body.page-home .profileWidgetSteamId{
    font-size: 10px;
    line-height: 1.1;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetSteamId{
    grid-area: meta;
  }

  body.page-home .profileWidgetActions{
    gap: 6px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions{
    grid-area: actions;
    width: 100%;
    margin-top: 2px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home .profileWidgetActions > .btn,
  body.page-home .profileWidgetActions > a.btn,
  body.page-home .profileWidgetActions > .notifBell > .notifBellBtn{
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }
}

@media (min-width: 1360px){
  body.page-home .topline{
    grid-template-columns: 104px minmax(0, 1fr) minmax(288px, 304px);
    gap: 12px;
    padding: 8px var(--page-pad-x) 10px;
  }

  body.page-home .topCenter{
    grid-template-columns: minmax(0, 1.22fr) minmax(310px, .78fr);
    gap: 12px;
  }
}

body.page-home .headerRailBasesShell{
  grid-template-columns: clamp(278px, 36%, 334px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

body.page-home .headerRadioMini{
  min-height: 0;
  padding: 11px 13px;
  gap: 7px;
  grid-template-rows: auto 1fr;
  align-content: start;
  cursor: pointer;
  user-select: none;
  background:
    radial-gradient(circle at top right, rgba(240,140,40,.14), rgba(240,140,40,0) 46%),
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    background var(--transition-fast);
}

body.page-home .headerRadioMini:hover{
  border-color: rgba(240,140,40,.24);
  box-shadow:
    0 16px 34px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateY(-1px);
}

body.page-home .headerRadioMini:focus-visible{
  outline: none;
  border-color: rgba(240,140,40,.34);
  box-shadow:
    0 0 0 1px rgba(240,140,40,.26),
    0 16px 34px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.08);
}

body.page-home .headerRadioMini__top{
  gap: 8px;
}

body.page-home .headerRadioMini__badge{
  padding: 5px 10px;
  font-size: 11px;
  letter-spacing: .08em;
}

body.page-home .headerRadioMini__peek{
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

body.page-home .headerRadioMini:hover .headerRadioMini__peek,
body.page-home .headerRadioMini:focus-visible .headerRadioMini__peek{
  border-color: rgba(240,140,40,.20);
  background: rgba(240,140,40,.10);
  color: rgba(255,255,255,.86);
  transform: translateY(-1px);
}

body.page-home .headerRadioMini__summary{
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

body.page-home .headerRadioMini__eyebrow{
  display: none;
}

body.page-home .headerRadioMini__title{
  margin: 0;
  font-size: 13px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -.01em;
  -webkit-line-clamp: 2;
}

body.page-home .headerRadioMini__ownerLine{
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 16px;
  gap: 5px;
  color: rgba(255,255,255,.70);
}

body.page-home .headerRadioMini__ownerLabel{
  flex: 0 0 auto;
  color: rgba(255,255,255,.48);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 900;
}

body.page-home .headerRadioMini__ownerName{
  min-width: 0;
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-home .headerRadioMini.is-offline{
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.06), rgba(255,255,255,0) 44%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.018));
}

body.page-home .headerRadioMini.is-offline .headerRadioMini__badge{
  color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.04);
}

body.page-home .headerRadioMini.is-offline .headerRadioMini__liveDot{
  background: rgba(255,255,255,.34);
  box-shadow: none;
  animation: none;
}

body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty{
  min-height: 100%;
  display: flex;
  align-items: center;
  padding: 14px 16px;
}

body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide{
  display: grid;
  align-content: center;
  gap: 4px;
  width: 100%;
}

body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__hint{
  max-width: 32ch;
  line-height: 1.32;
}

#headerRadioModal{
  z-index: 10020;
}

#headerRadioModal .modal__backdrop{
  background: rgba(6,8,11,.72);
  backdrop-filter: blur(6px);
}

#headerRadioModal .modal__dialog.radioModalDialog{
  width: min(580px, calc(100% - 24px));
  margin: calc(var(--sticky-top) + 18px) auto 18px;
  border-color: rgba(255,255,255,.10);
  background:
    radial-gradient(circle at top right, rgba(240,140,40,.12), rgba(240,140,40,0) 36%),
    rgba(15,16,20,.97);
  box-shadow:
    0 30px 70px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.05);
}

#headerRadioModal .modal__head{
  padding: 16px 18px 14px;
  align-items: flex-start;
}

#headerRadioModal .modal__content.radioModal{
  padding: 0 18px 18px;
  display: grid;
  gap: 16px;
}

.radioModal__head{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.radioModal__badge{
  flex: 0 0 auto;
}

.radioModal__listeners{
  margin-left: auto;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.74);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.radioModal__hero{
  display: grid;
  gap: 8px;
}

.radioModal__kicker{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.46);
  font-weight: 900;
}

.radioModal__title{
  margin: 0;
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 1000;
}

.radioModal__status{
  min-height: 18px;
  color: var(--text700);
  font-size: 13px;
  line-height: 1.45;
}

.radioModal__owner{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: inherit;
  text-decoration: none;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    transform var(--transition-fast);
}

.radioModal__owner:hover{
  border-color: rgba(240,140,40,.22);
  background: rgba(240,140,40,.06);
  transform: translateY(-1px);
}

.radioModal__ownerAvatar{
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}

.radioModal__ownerMeta{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.radioModal__ownerLabel{
  color: rgba(255,255,255,.48);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}

.radioModal__ownerName{
  min-width: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radioModal__actions{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.radioModal__play,
.radioModal__open{
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 14px;
  justify-content: center;
  font-weight: 900;
}

.radioModal__play i{
  font-size: 15px;
}

.radioModal__votes{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radioModal__vote{
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.radioModal__vote b{
  min-width: 18px;
  text-align: right;
  font-size: 13px;
  font-weight: 900;
}

.radioModal__vote.is-active{
  border-color: rgba(240,140,40,.34);
  background: rgba(240,140,40,.12);
}

.radioModal.is-offline .radioModal__play{
  opacity: .86;
}

@media (max-width: 1180px){
  body.page-home .headerRailBasesShell{
    grid-template-columns: minmax(236px, 284px) minmax(0, 1fr);
  }
}

@media (max-width: 900px){
  body.page-home .headerRailBasesShell{
    grid-template-columns: 1fr;
  }

  body.page-home .headerRadioMini{
    min-height: auto;
  }
}

@media (max-width: 640px){
  body.page-home .headerRadioMini{
    padding: 11px 12px;
  }

  body.page-home .headerRadioMini__ownerLine{
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  #headerRadioModal .modal__dialog.radioModalDialog{
    width: calc(100% - 16px);
    margin: calc(var(--sticky-top) + 10px) auto 10px;
  }

  #headerRadioModal .modal__head{
    padding: 14px 14px 12px;
  }

  #headerRadioModal .modal__content.radioModal{
    padding: 0 14px 14px;
    gap: 14px;
  }

  .radioModal__actions,
  .radioModal__votes{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Topbar audit: shared desktop composition for all tabs
   ========================================================= */
@media (min-width: 981px){
  .topbar{
    --topline-box-h: 122px;
  }

  .topline{
    gap: 12px;
    padding: 10px var(--page-pad-x) 12px;
    align-items: stretch;
  }

  .topCenter{
    gap: 12px;
    height: auto;
    min-height: var(--topline-box-h);
  }

  .topRight{
    min-width: 0;
    display: flex;
    align-self: stretch;
  }

  .brand,
  .headerRailBases,
  .headerRailPromo,
  .profileWidget{
    border-radius: 16px;
  }

  .brand{
    width: 104px;
    min-width: 104px;
    height: auto;
    min-height: var(--topline-box-h);
  }

  .logoSmall{
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .headerRailBases,
  .headerRailPromo,
  .profileWidget{
    min-height: var(--topline-box-h);
  }

  .headerRailBases{
    padding: 9px 12px 11px;
  }

  .headerRailPromo{
    padding: 0;
    min-width: 0;
    flex: 0 0 clamp(320px, 28vw, 500px);
    max-width: 500px;
  }

  .headerRailPromo .railBody{
    height: 100%;
    border-radius: 16px;
  }

  .railHead{
    min-height: 18px;
    margin-bottom: 7px;
    align-items: flex-start;
  }

  .railTitle{
    font-size: 15px;
    font-weight: 800;
  }

  .railMore{
    font-size: 12px;
    line-height: 1.1;
  }

  .headerRailBasesShell{
    grid-template-columns: clamp(278px, 36%, 334px) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  .headerRailBasesStage{
    margin-left: 0;
  }

  .headerRailBasesStage::before{
    left: -5px;
    top: 10px;
    bottom: 10px;
    opacity: .7;
  }

  .headerRadioMini{
    min-height: 0;
    padding: 11px 13px;
    gap: 7px;
    border-radius: 16px;
    grid-template-rows: auto 1fr;
    align-content: start;
    box-shadow:
      0 14px 30px rgba(0,0,0,.26),
      inset 0 1px 0 rgba(255,255,255,.07);
  }

  .headerRadioMini__summary{
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
  }

  .headerRadioMini__title{
    font-size: 13px;
    line-height: 1.16;
  }

  .headerRadioMini__ownerLine{
    min-height: 16px;
    gap: 5px;
  }

  .headerRadioMini__ownerLabel{
    font-size: 9px;
    letter-spacing: .11em;
  }

  .headerRadioMini__ownerName{
    font-size: 11px;
  }

  .headerRailBasesStage .railScroller--bases .railSlide{
    min-height: 100%;
    padding: 12px 14px;
    gap: 12px;
    align-items: center;
  }

  .headerRailBasesStage .railScroller--bases .baseInfo{
    justify-content: center;
    gap: 6px;
  }

  .headerRailBasesStage .railScroller--bases .railSlide--empty{
    padding: 14px 16px;
    align-items: center;
    background:
      radial-gradient(130% 130% at 0% 0%, rgba(240,140,40,.075), rgba(240,140,40,0) 52%),
      rgba(255,255,255,.03);
  }

  .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide{
    display: grid;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-height: 100%;
  }

  .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__title{
    font-size: 14px;
    line-height: 1.18;
  }

  .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__hint{
    max-width: 32ch;
    line-height: 1.32;
  }

  .railScroller--promo .railSlide--promo{
    border-radius: 16px;
  }

  .railScroller--promo .promoOverlay{
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  .railScroller--promo .promoTitle{
    font-size: 15px;
    line-height: 1.16;
  }

  .topRight .profileWidget:not(.profileWidget--guest){
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas:
      "avatar head"
      "avatar meta"
      "actions actions";
    column-gap: 12px;
    row-gap: 5px;
    align-items: start;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileAvatarLarge{
    grid-area: avatar;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    align-self: start;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetBody{
    display: contents;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetHeaderRow{
    grid-area: head;
    align-items: flex-start;
    gap: 8px;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetName{
    font-size: 13px;
    line-height: 1.12;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetSteamId{
    grid-area: meta;
    font-size: 10px;
    line-height: 1.1;
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions{
    grid-area: actions;
    width: 100%;
    margin-top: 2px;
    gap: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > .btn,
  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > a.btn,
  .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > .notifBell > .notifBellBtn{
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
    justify-content: center;
  }

  .topRight .profileWidget.profileWidget--guest{
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }
}

@media (min-width: 1360px){
  .topline{
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) minmax(296px, 308px);
    gap: 12px;
    padding: 10px var(--page-pad-x) 12px;
  }

  .topCenter{
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 12px;
    min-width: 0;
    margin-left: 0;
  }

  .topRight{
    margin-left: 0;
    width: auto;
  }

  .headerRailPromo{
    max-width: none;
  }
}

@media (min-width: 901px) and (max-width: 1180px){
  .headerRailBasesShell{
    grid-template-columns: minmax(236px, 284px) minmax(0, 1fr);
  }
}

/* =========================================================
   Topbar audit: unify home page with shared desktop topbar
   and suppress rich-tier overlays inside header widgets
   ========================================================= */
@media (min-width: 981px){
  .topbar .richable[data-rich-tier]::after,
  .topbar [data-rich-tier]::after{
    display: none !important;
  }

  body.page-home .topbar{
    --topline-box-h: 122px;
  }

  body.page-home .topline{
    gap: 12px;
    padding: 10px var(--page-pad-x) 12px;
    align-items: stretch;
  }

  body.page-home .topCenter{
    gap: 12px;
    height: auto;
    min-height: var(--topline-box-h);
    margin-left: 0;
  }

  body.page-home .topRight{
    min-width: 0;
    display: flex;
    align-self: stretch;
    width: auto;
    margin-left: 0;
  }

  body.page-home .brand,
  body.page-home .headerRailBases,
  body.page-home .headerRailPromo,
  body.page-home .profileWidget{
    border-radius: 16px;
    min-height: var(--topline-box-h);
  }

  body.page-home .brand{
    width: 104px;
    min-width: 104px;
    height: auto;
  }

  body.page-home .headerRailBases{
    padding: 9px 12px 11px;
  }

  body.page-home .headerRailPromo{
    padding: 0;
    min-width: 0;
    flex: 0 0 clamp(320px, 28vw, 500px);
    max-width: 500px;
  }

  body.page-home .headerRailPromo .railBody{
    height: 100%;
    border-radius: 16px;
  }

  body.page-home .headerRailBasesShell{
    grid-template-columns: clamp(278px, 36%, 334px) minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  body.page-home .headerRailBasesStage{
    margin-left: 0;
  }

  body.page-home .headerRailBasesStage::before{
    left: -5px;
    top: 10px;
    bottom: 10px;
    opacity: .7;
  }

  body.page-home .headerRadioMini{
    min-height: 0;
    padding: 11px 13px;
    gap: 7px;
    border-radius: 16px;
    grid-template-rows: auto 1fr;
    align-content: start;
    box-shadow:
      0 14px 30px rgba(0,0,0,.26),
      inset 0 1px 0 rgba(255,255,255,.07);
  }

  body.page-home .headerRadioMini__summary{
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 4px;
  }

  body.page-home .headerRadioMini__title{
    font-size: 13px;
    line-height: 1.16;
  }

  body.page-home .headerRadioMini__ownerLine{
    min-height: 16px;
    gap: 5px;
  }

  body.page-home .headerRadioMini__ownerLabel{
    font-size: 9px;
    letter-spacing: .11em;
  }

  body.page-home .headerRadioMini__ownerName{
    font-size: 11px;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide{
    min-height: 100%;
    padding: 12px 14px;
    gap: 12px;
    align-items: center;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .baseInfo{
    justify-content: center;
    gap: 6px;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty{
    padding: 14px 16px;
    align-items: center;
    background:
      radial-gradient(130% 130% at 0% 0%, rgba(240,140,40,.075), rgba(240,140,40,0) 52%),
      rgba(255,255,255,.03);
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide{
    display: grid;
    align-content: center;
    gap: 4px;
    width: 100%;
    min-height: 100%;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__title{
    font-size: 14px;
    line-height: 1.18;
  }

  body.page-home .headerRailBasesStage .railScroller--bases .railSlide--empty .emptySlide__hint{
    max-width: 32ch;
    line-height: 1.32;
  }

  body.page-home .railScroller--promo .railSlide--promo{
    border-radius: 16px;
  }

  body.page-home .railScroller--promo .promoOverlay{
    left: 18px;
    right: 18px;
    bottom: 16px;
  }

  body.page-home .railScroller--promo .promoTitle{
    font-size: 15px;
    line-height: 1.16;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest){
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    grid-template-areas:
      "avatar head"
      "avatar meta"
      "actions actions";
    column-gap: 12px;
    row-gap: 5px;
    align-items: start;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileAvatarLarge{
    grid-area: avatar;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    align-self: start;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetBody{
    display: contents;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetHeaderRow{
    grid-area: head;
    align-items: flex-start;
    gap: 8px;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetName{
    font-size: 13px;
    line-height: 1.12;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetSteamId{
    grid-area: meta;
    font-size: 10px;
    line-height: 1.1;
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions{
    grid-area: actions;
    width: 100%;
    margin-top: 2px;
    gap: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > .btn,
  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > a.btn,
  body.page-home .topRight .profileWidget:not(.profileWidget--guest) .profileWidgetActions > .notifBell > .notifBellBtn{
    width: 100%;
    min-width: 0;
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
    justify-content: center;
  }
}

@media (min-width: 1360px){
  body.page-home .topline{
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) minmax(296px, 308px);
    gap: 12px;
    padding: 10px var(--page-pad-x) 12px;
  }

  body.page-home .topCenter{
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 12px;
    min-width: 0;
  }

  body.page-home .headerRailPromo{
    max-width: none;
  }
}

@media (min-width: 901px) and (max-width: 1180px){
  body.page-home .headerRailBasesShell{
    grid-template-columns: minmax(236px, 284px) minmax(0, 1fr);
  }
}
