/*
  Для смены фонового изображения, измените значение переменной --bg-image ниже.
  For background image change, edit --bg-image below.
  Пример для локального теста:
    --bg-image: url('your-local-image.jpg');
  Пример для S3:
    --bg-image: url('https://your-bucket.s3.amazonaws.com/your-image.jpg');
*/
:root {
  --bg-image-light: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/light-theme.png');
  --bg-image-dark: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/dark-theme.png');
  --bg-image: var(--bg-image-light);
  --overlay-color: rgba(0,0,0,0.55);
  --accent: #ff45ef;
  --accent-light: #ffa600;
  --accent-dark: #ff45ef;
  --accent-shadow-light: 0 2px 16px #ffd900da;
  --accent-shadow-dark: 0 2px 16px #ff45ef99;
  --text-light: #000000;
  --text-dark: #fff;
  --text-shadow: 0 2px 16px rgba(0, 0, 0, 0.315);
  --center-bg-light: rgba(255,255,255,0.93);
  --center-bg-dark: rgba(24,28,38,0.93);
  --info-bg-light: rgba(255,255,255,0.473);
  --info-bg-dark: rgba(40,44,60,0.7);
  --info-text-light: #000;
  --info-text-dark: #fff;
  --footer-text-light: #222;
  --footer-text-dark: #fff;
}
.light-theme {
  --bg-image: var(--bg-image-light);
  --center-bg: var(--center-bg-light);
  --info-bg: var(--info-bg-light);
  --info-text: var(--info-text-light);
  --main-text: var(--text-light);
  --footer-text: var(--footer-text-light);
  --accent: var(--accent-light);
  --accent-shadow: var(--accent-shadow-light);
}
.dark-theme {
  --bg-image: var(--bg-image-dark);
  --center-bg: var(--center-bg-dark);
  --info-bg: var(--info-bg-dark);
  --info-text: var(--info-text-dark);
  --main-text: var(--text-dark);
  --footer-text: var(--footer-text-dark);
  --accent: var(--accent-dark);
  --accent-shadow: var(--accent-shadow-dark);
}
body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg-image) center/cover no-repeat;
  position: relative;
  color: var(--main-text);
}
html, body {
  width: 100vw;
  max-width: 100vw;
  overflow-x: hidden !important;
  box-sizing: border-box;
}
.overlay {
  min-height: 100vh;
  width: 100vw;
  max-width: 100vw;
  background: var(--overlay-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  box-sizing: border-box;
}
header h1 {
  color: var(--accent);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  text-shadow: var(--text-shadow);
  letter-spacing: 2px;
}
.subtitle {
  color: var(--main-text);
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  text-shadow: var(--text-shadow);
}
.info-block {
  background: var(--info-bg, var(--info-bg-light));
  border-radius: 18px;
  padding: 0.6rem 0.5rem 1.5rem 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: var(--info-text);
  text-align: center;
}
.info-block h2 {
  color: var(--accent);
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  text-shadow: var(--accent-shadow);
}
.info-block p {
  color: var(--info-text);
  font-size: 1.1rem;
  margin: 0.3rem 0;
  text-shadow: var(--text-shadow);
}
.info-block a {
  color: var(--accent);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.info-block a:hover, .info-block a:focus {
  color: var(--accent);
  text-decoration: underline solid;
  filter: brightness(1.2);
}
.cta-block {
  margin: 2rem 0 1.5rem 0;
  display: flex;
  gap: 26px;
  justify-content: center;
}
.cta-button {
  background: var(--accent-light);
  color: #222;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: var(--accent-shadow);
  width: 300px;
  height: 60px;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.2;
  flex-shrink: 0;
}
.cta-button:hover {
  background: #fff;
  color: var(--accent-light);
  border: 1.5px solid var(--accent-light);
}
.cta-button-construct {
  background: var(--accent-light);
  color: #222;
  font-weight: bold;
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 2px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, color 0.2s, border 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: var(--accent-shadow);
  width: 300px;
  height: 60px;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.2;
  flex-shrink: 0;
}
.cta-button-construct:hover {
  background: #fff;
  color: var(--accent-light);
  border: 1.5px solid var(--accent-light);
}
footer {
  margin-top: auto;
  color: var(--footer-text);
  font-size: 0.95rem;
  text-shadow: var(--text-shadow);
  padding-bottom: 1.5rem;
}
.theme-toggle-group {
  position: absolute;
  top: 1rem;
  right: 2.2rem;
  display: flex;
  gap: 0.7rem;
  z-index: 200;
}
.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: border 0.2s, box-shadow 0.2s, transform 0.2s;
}
.theme-toggle.light {
  background: #fff linear-gradient(135deg, #fff 60%, #ffe6fa 100%);
  border-color: #ff45ef;
}
.theme-toggle.dark {
  background: #181c26 linear-gradient(135deg, #181c26 60%, #2a2c3c 100%);
  border-color: #ff45ef;
}
.theme-toggle:active, .theme-toggle:focus {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.center-column {
  width: 700px;
  max-width: 700px;
  min-width: 0;
  margin: 3rem auto 2rem auto;
  background: var(--center-bg, var(--center-bg-light));
  border-radius: 28px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  padding: 2.5rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}
.center-column h1 {
  color: var(--accent);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  text-shadow: var(--accent-shadow);
}
.dtf-step {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2.2rem 0;
  background: var(--info-bg, var(--info-bg-light));
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 1.2rem 1rem;
  width: 100%;
  box-sizing: border-box;
  color: var(--info-text);
}
.dtf-image-placeholder {
  width: 90px;
  height: 90px;
  background: #eee url('') center/cover no-repeat;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #bbb;
}
.dtf-text {
  text-align: left;
}
.dtf-text h3 {
  color: var(--accent);
  margin: 0 0 0.4rem 0;
  font-size: 1.18rem;
  text-shadow: var(--accent-shadow);
}
.dtf-text p {
  margin: 0;
  font-size: 1.05rem;
}
#to-top {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  z-index: 100;
  opacity: 0.85;
}
#to-top:hover {
  background: #fff;
  color: var(--accent);
  transform: scale(1.1);
}
@media (max-width: 900px) {
  header h1 {
    font-size: 2rem;
  }
  .info-block {
    padding: 1rem 0.7rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    height: 50px;
  }
  .cta-button-construct {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    height: 50px;
  }
  .center-column {
    width: 95vw;
    max-width: 95vw;
    min-width: 0;
    padding: 1.2rem 1.5vw 1rem 1.5vw;
    box-sizing: border-box;
    margin: 2rem auto 1.5rem auto;
  }
  .info-block,
  .dtf-step {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .dtf-step {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 0.3rem;
  }
  .dtf-image-placeholder {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
  }
  .cta-block {
    gap: 20px;
    flex-wrap: wrap;
  }
  .theme-toggle-group {
    top: 0.5rem;
    right: 1rem;
  }
  .theme-toggle {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 600px) {
  .center-column {
    padding: 1rem 3vw 0.7rem 3vw;
    min-width: 0;
    width: 94vw;
    max-width: 94vw;
    margin: 1.5rem auto 1rem auto;
  }
  .info-block,
  .dtf-step {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .center-column h1 {
    font-size: 1.5rem;
  }
  .dtf-text h3 {
    font-size: 1rem;
  }
  .cta-button {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    height: 48px;
  }
  .cta-button-construct {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    height: 48px;
  }
  .cta-block {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }
  .dtf-step {
    margin: 1.5rem 0;
    padding: 0.8rem 0.5rem;
  }
  .dtf-image-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  .theme-toggle-group {
    top: 0.3rem;
    right: 0.8rem;
  }
  .theme-toggle {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .center-column {
    width: 92vw;
    max-width: 92vw;
    padding: 0.8rem 2vw 0.5rem 2vw;
    margin: 1rem auto 0.8rem auto;
    border-radius: 20px;
  }
  .center-column h1 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
  }
  .subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  .info-block {
    padding: 0.8rem 0.5rem;
    margin-bottom: 1.5rem;
    border-radius: 14px;
  }
  .dtf-step {
    margin: 1.5rem 0;
    padding: 0.8rem 0.5rem;
    border-radius: 14px;
  }
  .dtf-image-placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  .dtf-text h3 {
    font-size: 0.95rem;
  }
  .dtf-text p {
    font-size: 0.9rem;
  }
  .cta-button {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    height: 45px;
  }
  .cta-button-construct {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    height: 45px;
  }
  .cta-block {
    gap: 0.8rem;
    flex-direction: column;
    align-items: center;
  }
  header h1 {
    font-size: 1.8rem;
  }
  .theme-toggle-group {
    top: 0.2rem;
    right: 0.6rem;
  }
  .theme-toggle {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 375px) {
  .center-column {
    width: 90vw;
    max-width: 90vw;
    padding: 0.6rem 1.5vw 0.4rem 1.5vw;
    margin: 0.8rem auto 0.6rem auto;
    border-radius: 16px;
  }
  .center-column h1 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
  }
  .subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  .info-block {
    padding: 0.6rem 0.4rem;
    margin-bottom: 1.2rem;
    border-radius: 12px;
  }
  .dtf-step {
    margin: 1.2rem 0;
    padding: 0.6rem 0.4rem;
    border-radius: 12px;
  }
  .dtf-image-placeholder {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
  }
  .dtf-text h3 {
    font-size: 0.9rem;
  }
  .dtf-text p {
    font-size: 0.85rem;
  }
  .cta-button {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    height: 42px;
  }
  .cta-button-construct {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    height: 42px;
  }
  .cta-block {
    gap: 0.6rem;
    flex-direction: column;
    align-items: center;
  }
  header h1 {
    font-size: 1.6rem;
  }
  .theme-toggle-group {
    top: 0.1rem;
    right: 0.5rem;
  }
  .theme-toggle {
    width: 22px;
    height: 22px;
  }
}

#step1-img {
    background-image: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/dtf1.jpg');
    background-size: cover;
    background-position: center;
}
#step2-img {
    background-image: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/dtf2.jpg');
    background-size: cover;
    background-position: center;
}
#step3-img {
    background-image: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/dtf3.jpg');
    background-size: cover;
    background-position: center;
} 
#step4-img {
    background-image: url('https://storage.yandexcloud.net/test-sibutin-practice.ru/images/dtf4.jpg');
    background-size: cover;
    background-position: center;
}
.dark-theme .cta-button-construct {
  background: var(--accent-dark);
  color: #fff;
}
.dark-theme .cta-button-construct:hover {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
}
.dark-theme .cta-button {
  background: var(--accent-dark);
  color: #fff;
}
.dark-theme .cta-button:hover {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
}
.clear-image-btn {
  font-size: 14px;
  padding: 2px 12px;
  border-radius: 6px;
  line-height: 1.2;
  border: 1.5px solid transparent !important;
}
.clear-image-btn:hover {
  border: 1.5px solid var(--accent-light) !important;
}
.dark-theme .clear-image-btn:hover {
  border: 1.5px solid var(--accent-dark) !important;
}
#colorSwitchBtn {
  font-size: 0.6rem;
  padding: 0.5rem 1rem;
  border-radius: 18px;
  min-width: 0;
  background: var(--accent-light);
  color: #222;
  border: 1.5px solid transparent;
  margin: 0;
  display: inline-block;
  box-shadow: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#colorSwitchBtn:hover {
  background: #fff;
  color: var(--accent-light);
  border-color: var(--accent-light);
}
.dark-theme #colorSwitchBtn {
  background: var(--accent-dark);
  color: #fff;
  border-color: transparent;
}
.dark-theme #colorSwitchBtn:hover {
  background: #fff;
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}
#colorSwitchBtn, #downloadBtn, #sendBtn, .cta-button, .cta-button-construct {
  font-size: 1.25rem !important;
  padding: 0.9rem 2.5rem !important;
  border-radius: 36px !important;
}
#downloadBtn, #sendBtn {
  font-size: 1.25rem;
  padding: 0.9rem 2.5rem;
  border-radius: 36px;
  background: var(--accent-light);
  color: #222;
  border: 1.5px solid transparent;
  font-weight: bold;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border 0.2s;
  min-width: 0;
  min-height: 0;
  margin: 0;
  line-height: 1.2;
}
#downloadBtn:hover, #sendBtn:hover {
  background: #fff;
  color: var(--accent-light);
  border: 1.5px solid var(--accent-light);
}
.dark-theme #downloadBtn, .dark-theme #sendBtn {
  background: var(--accent-dark);
  color: #fff;
}
.dark-theme #downloadBtn:hover, .dark-theme #sendBtn:hover {
  background: #fff;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent-dark);
}
.tshirt-canvas-wrapper {
  background: #eaeaea !important;
}
.dark-theme .tshirt-canvas-wrapper {
  background: #23233a !important;
}
.user-image {
  position: absolute;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s, filter 0.2s;
}

/* Улучшенная зона касания для мобильных устройств */
@media (hover: none) and (pointer: coarse) {
  .user-image {
    padding: 8px;
    margin: -8px;
    min-width: 44px;
    min-height: 44px;
  }
}

.user-image.selected-image {
  opacity: 1;
  filter: none;
  border: 2px solid var(--accent-light);
  border-radius: 4px;
}
.dark-theme .user-image.selected-image {
  border-color: var(--accent-dark);
}
.user-image.inactive-image {
  opacity: 0.6;
  filter: grayscale(30%) brightness(0.8);
}

/* --- Слайдер масштаба для темы (универсальный стиль) --- */
#imageScale,
input[type="range"].scale-slider {
  width: 90px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-light);
}
.dark-theme #imageScale,
.dark-theme input[type="range"].scale-slider {
  background: #555;
  accent-color: var(--accent-dark);
}
#imageScale::-webkit-slider-thumb,
input[type="range"].scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px #0002;
  transition: background 0.2s;
}
#imageScale:active::-webkit-slider-thumb,
input[type="range"].scale-slider:active::-webkit-slider-thumb {
  background: #ffb84d;
}
.dark-theme #imageScale::-webkit-slider-thumb,
.dark-theme input[type="range"].scale-slider::-webkit-slider-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme #imageScale:active::-webkit-slider-thumb,
.dark-theme input[type="range"].scale-slider:active::-webkit-slider-thumb {
  background: #ff45ef;
}
#imageScale::-moz-range-thumb,
input[type="range"].scale-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px #0002;
}
#imageScale:active::-moz-range-thumb,
input[type="range"].scale-slider:active::-moz-range-thumb {
  background: #ffb84d;
}
.dark-theme #imageScale::-moz-range-thumb,
.dark-theme input[type="range"].scale-slider::-moz-range-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme #imageScale:active::-moz-range-thumb,
.dark-theme input[type="range"].scale-slider:active::-moz-range-thumb {
  background: #ff45ef;
}
#imageScale::-ms-thumb,
input[type="range"].scale-slider::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px #0002;
}
#imageScale:active::-ms-thumb,
input[type="range"].scale-slider:active::-ms-thumb {
  background: #ffb84d;
}
.dark-theme #imageScale::-ms-thumb,
.dark-theme input[type="range"].scale-slider::-ms-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme #imageScale:active::-ms-thumb,
.dark-theme input[type="range"].scale-slider:active::-ms-thumb {
  background: #ff45ef;
}
#imageScale:focus,
input[type="range"].scale-slider:focus {
  outline: none;
}

/* --- Локальный стик и слайдер в окне --- */
.window-local-controls {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  z-index: 100;
}

/* Центрируем основной слайдер под текстом */
.image-scale-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
#imageScale {
  width: 90px;
  min-width: 90px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  vertical-align: middle;
}
label[for="imageScale"] {
  display: block;
  text-align: center;
  margin-bottom: 0.4em;
}
.window-local-slider {
  pointer-events: auto;
  margin-left: 8px;
  margin-right: 0;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  border-radius: 12px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px #0001;
  z-index: 101;
  min-width: 100px;
  min-height: 40px;
}
.dark-theme .window-local-slider {
  background: rgba(35,35,58,0.95);
}

/* Увеличиваем размер локального слайдера */
.window-local-slider .scale-slider {
  width: 120px;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0;
  accent-color: var(--accent-light);
}
.dark-theme .window-local-slider .scale-slider {
  background: #555;
  accent-color: var(--accent-dark);
}
.window-local-slider .scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px #0003;
  transition: background 0.2s;
}
.window-local-slider .scale-slider:active::-webkit-slider-thumb {
  background: #ffb84d;
}
.dark-theme .window-local-slider .scale-slider::-webkit-slider-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme .window-local-slider .scale-slider:active::-webkit-slider-thumb {
  background: #ff45ef;
}
.window-local-slider .scale-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px #0003;
}
.window-local-slider .scale-slider:active::-moz-range-thumb {
  background: #ffb84d;
}
.dark-theme .window-local-slider .scale-slider::-moz-range-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme .window-local-slider .scale-slider:active::-moz-range-thumb {
  background: #ff45ef;
}
.window-local-slider .scale-slider::-ms-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px #0003;
}
.window-local-slider .scale-slider:active::-ms-thumb {
  background: #ffb84d;
}
.dark-theme .window-local-slider .scale-slider::-ms-thumb {
  background: var(--accent-dark);
  border: 2px solid #23233a;
}
.dark-theme .window-local-slider .scale-slider:active::-ms-thumb {
  background: #ff45ef;
}
.window-local-slider .scale-slider:focus {
  outline: none;
}
.window-local-stick {
  pointer-events: auto;
  margin-right: 8px;
  margin-left: 0;
  width: 64px;
  height:64px;
  background: #888;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #0002;
  cursor: grab;
  transition: background 0.2s;
  z-index: 101;
}
.window-local-stick:active {
  background: #666;
}
.window-local-stick svg,
.window-local-stick img {
  width: 24px;
  height: 24px;
  color: #fff;
  display: block;
}
