.modern-site .cs-back-top {
  position: fixed;
  z-index: 80;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 5px 15px 5px 5px;
  border: 1px solid #6a5443;
  border-radius: 999px;
  background: #222224;
  color: #fff4e8;
  box-shadow: 0 4px 14px #201e1b36;
  font: 600 .875rem/1.2 var(--cs16-font, Arial, sans-serif);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}

.modern-site .cs-back-top[hidden] { display: none; }
.cs-back-top__dial { width: 36px; height: 36px; display: grid; place-items: center; }
.cs-back-top__dial svg { width: 36px; height: 36px; display: block; fill: none; }
.cs-back-top__track { stroke: #584b42; stroke-width: 1.5; }
.cs-back-top__progress {
  stroke: #ff9955;
  stroke-width: 2;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}
.cs-back-top__arrow { stroke: #ffb078; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modern-site .cs-back-top:focus-visible { outline: 3px solid #ec843f; outline-offset: 3px; }
@media (hover: hover) {
  .modern-site .cs-back-top:hover { background: #332b25; transform: translateY(-2px); }
}
@media (max-width: 767px) {
  .modern-site .cs-back-top { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 48px; padding: 5px; justify-content: center; }
  .cs-back-top__label { display: none; }
  .modern-site:has(.material-toast:not([hidden])) .cs-back-top { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .modern-site .cs-back-top { transition: none; }
  .modern-site .cs-back-top:hover { transform: none; }
}
