/* AURELION_POLISH_V126_START */

/* ===== Universal Telegram floating button cleanup ===== */

html body .aurelion-empty-help-v126,
html body .aurelion-empty-help-v126 *,
html body .aurelion-help-label-v126,
html body .aurelion-help-label-v126 * {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Any Telegram support button should be one clean pill */
html body .telegram-v120,
html body .telegram-support-v118,
html body .aurelion-telegram-support-wrap-v116,
html body .office-telegram-support-fallback,
html body .aurelion-telegram-wrap-v126 {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 900 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0 !important;
}

html body .telegram-v120 a,
html body .telegram-support-v118 a,
html body .office-telegram-support-fallback,
html body .aurelion-telegram-button-v126 {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 17px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #27a9e5, #168ac2) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 16px 34px rgba(34, 158, 217, 0.30) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

/* ===== Office/Admin topbar closer to new homepage ===== */

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 header.office-topbar,
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 header.office-topbar.aurelion-unified-header {
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  padding: 0 34px !important;
  background:
    linear-gradient(180deg, rgba(7, 18, 38, 0.995), rgba(8, 17, 34, 0.99)) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
  box-shadow: 0 16px 44px rgba(7, 18, 38, 0.20) !important;
}

/* Brand: closer to homepage */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-brand {
  min-width: 245px !important;
  font-size: 15px !important;
  font-weight: 860 !important;
  letter-spacing: -0.025em !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-logo::before {
  font-size: 23px !important;
  color: #3b82f6 !important;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.78) !important;
}

/* Nav: normal links smaller and cleaner */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav {
  gap: 16px !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav a {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: 12.8px !important;
  font-weight: 760 !important;
  box-shadow: none !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav a:hover {
  color: #ffffff !important;
}

/* Active link like homepage button */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav a.aurelion-nav-active-v125 {
  padding: 0 14px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: rgba(37, 99, 235, 0.24) !important;
  border: 1px solid rgba(59, 130, 246, 0.38) !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.10) !important;
}

/* Admin active green */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav .office-admin-link {
  padding: 0 14px !important;
  border-radius: 10px !important;
  color: #d1fae5 !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.34) !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-nav .office-admin-link.aurelion-nav-active-v125 {
  color: #ffffff !important;
  background: rgba(16, 185, 129, 0.26) !important;
  border-color: rgba(16, 185, 129, 0.50) !important;
}

/* Bell */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-notification-bell {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  color: #facc15 !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
}

/* Session: less bulky */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session {
  gap: 9px !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session-box {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border: 1px solid rgba(148, 163, 184, 0.16) !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  box-shadow: none !important;
}

/* Remove duplicate artificial green dot from V125 if original session icon exists */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session-box::before {
  display: none !important;
  content: none !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session-box b {
  color: #ffffff !important;
  font-weight: 850 !important;
}

/* Login/logout buttons */
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 #officeLoginTopBtn,
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session a {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #2f7bff, #2563eb) !important;
  border: 1px solid rgba(59, 130, 246, 0.58) !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.30) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 #officeLogoutBtn,
html body.aurelion-app-shell-v124.aurelion-topbar-v125.aurelion-polish-v126 .office-session button {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #ff5b5b, #ef4444) !important;
  border: 1px solid rgba(239, 68, 68, 0.46) !important;
  box-shadow: 0 10px 26px rgba(239, 68, 68, 0.18) !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

/* Office/Admin content: slightly better top spacing after new header */
html body.aurelion-office-shell-v124.aurelion-polish-v126 .office-page {
  padding-top: 58px !important;
}

html body.aurelion-admin-shell-v124.aurelion-polish-v126 main {
  padding-top: 38px !important;
}

/* Admin "Загрузка" status card should feel calmer */
html body.aurelion-admin-shell-v124.aurelion-polish-v126 #status {
  min-height: 54px !important;
  padding: 0 20px !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #64748b !important;
  font-weight: 850 !important;
}

/* Mobile */
@media (max-width: 1180px) {
  html body.aurelion-app-shell-v124.aurelion-polish-v126 header.office-topbar {
    height: auto !important;
    min-height: 70px !important;
    max-height: none !important;
    padding: 14px 18px !important;
    flex-wrap: wrap !important;
  }

  html body.aurelion-app-shell-v124.aurelion-polish-v126 .office-brand {
    min-width: auto !important;
  }
}

/* AURELION_POLISH_V126_END */
