* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
body {
  background: #f0f3f8;
  font-family: Arial, sans-serif;
}
 
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 16px;
}
 
.progress-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
  gap: 16px;
}
 
.controls-section {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  gap: 16px;
}
 
.label {
  font-size: 14px;
  font-weight: 500;
}
 
.progress-block {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.progress-block--hidden {
  display: none;
}
 
.progress-ring {
  width: 160px;
  height: 160px;
  transform: rotate(-90deg);
}
 
.progress-ring__track,
.progress-ring__arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}
 
.progress-ring__track {
  stroke: #dde3ee;
}
 
.progress-ring__arc {
  stroke: #1a6ff4;
  transition: stroke-dashoffset 0.3s ease;
}
 
.progress-block--animated .progress-ring {
  animation: spin 1.2s linear infinite;
}
 
.progress-block--animated .progress-ring__arc {
  transition: none;
}
 
@keyframes spin {
  to { transform: rotate(270deg); }
}
 
.control-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
 
.control-label {
  font-size: 15px;
}
 
.value-input {
  width: 52px;
  height: 26px;
  border: 1px solid #dde3ee;
  border-radius: 20px;
  text-align: center;
  font-size: 13px;
  outline: none;
}
 
.value-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
 
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  cursor: pointer;
}
 
.toggle__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
 
.toggle__track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #dde3ee;
  border-radius: 100px;
  transition: background 0.25s ease;
}
 
.toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
 
.toggle__input:checked ~ .toggle__track {
  background: #1a6ff4;
}
 
.toggle__input:checked ~ .toggle__track .toggle__thumb {
  transform: translateX(18px);
}
 
@media (orientation: landscape) {
  .app {
    flex-direction: row;
    gap: 16px;
    padding: 16px;
  }
 
  .progress-section {
    flex: 1;
    margin-bottom: 0;
  }
 
  .controls-section {
    width: 200px;
    justify-content: center;
  }
 
  .progress-ring {
    width: 120px;
    height: 120px;
  }
}