:root {
  color-scheme: light;
  --bg: #f4fbff;
  --panel: #fff7df;
  --ink: #25304f;
  --muted: #65708c;
  --line: #d8d2ec;
  --metal: #d9e2e7;
  --metal-dark: #8fa1ad;
  --accent: #1770e6;
  --accent-2: #ff8a3d;
  --green: #1fb65b;
  --sun: #ffd166;
  --pink: #ff6b9a;
  --shadow: 0 22px 70px rgba(46, 69, 104, 0.18);
  --fan-angle: 0deg;
  --head-tilt: 0deg;
  --blade-duration: 1.2s;
  --flow-opacity: 0;
  --flow-speed: 4s;
  --breeze-scale: 1;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(23, 112, 230, 0.18), transparent 38%),
    linear-gradient(225deg, rgba(255, 209, 102, 0.36), transparent 34%),
    linear-gradient(45deg, rgba(255, 107, 154, 0.12), transparent 42%),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button,
label,
input[type="range"] {
  touch-action: manipulation;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.simulator {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(212, 235, 255, 0.72) 58%, rgba(255, 232, 161, 0.58)),
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.94), transparent 34%);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 161, 173, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 161, 173, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 58%);
}

.stage-nameplate {
  position: absolute;
  left: 28px;
  top: 24px;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 2px solid rgba(37, 48, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(46, 69, 104, 0.1);
}

.stage-nameplate span {
  color: var(--pink);
  font-size: 0.8rem;
  font-weight: 900;
}

.stage-nameplate strong {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
}

.fan-wrap {
  position: absolute;
  left: 50%;
  bottom: 86px;
  width: 360px;
  height: 520px;
  transform: translateX(-50%) rotateY(var(--fan-angle));
  transform-origin: 50% 78%;
  transition: transform 180ms ease;
  z-index: 2;
}

.fan-wrap.oscillating {
  animation: oscillate 4.8s ease-in-out infinite;
}

.fan-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 340px;
  height: 340px;
  transform: translateX(-50%) rotate(var(--head-tilt));
  transform-origin: 50% 82%;
  border-radius: 50%;
  background: radial-gradient(circle at 44% 38%, #ffffff 0 12%, #e6f5ff 13% 40%, #b9dcff 41% 62%, #7596bd 63% 100%);
  border: 12px solid #f6fbfd;
  box-shadow:
    inset 0 0 0 2px rgba(23, 32, 42, 0.08),
    0 20px 42px rgba(23, 32, 42, 0.18);
}

.fan-ring {
  position: absolute;
  inset: 22px;
  border: 4px solid rgba(23, 32, 42, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 0 13px rgba(255, 255, 255, 0.26);
}

.fan-grill {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(47, 65, 76, 0.34) 0deg 2deg, transparent 2deg 11deg);
  mask: radial-gradient(circle, transparent 0 25%, #000 26% 100%);
}

.grill-b {
  transform: rotate(30deg);
  opacity: 0.48;
}

.grill-c {
  inset: 78px;
  border: 2px solid rgba(47, 65, 76, 0.3);
  background: none;
  opacity: 0.65;
}

.blade-set {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 202px;
  height: 202px;
  transform: translate(-50%, -50%);
  animation: spin var(--blade-duration) linear infinite;
  animation-play-state: paused;
}

.fan-on .blade-set {
  animation-play-state: running;
}

.fan-on.breeze .blade-set {
  animation-name: spin, breezePulse;
  animation-duration: var(--blade-duration), 2.4s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.blade {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 144px;
  border-radius: 52% 48% 58% 42% / 68% 54% 46% 32%;
  transform-origin: 10px 12px;
  background: linear-gradient(145deg, rgba(23, 112, 230, 0.92), rgba(114, 202, 255, 0.86));
  box-shadow: inset -8px -12px 18px rgba(16, 57, 123, 0.16);
}

.blade-1 {
  transform: rotate(0deg) translate(8px, -24px);
}

.blade-2 {
  transform: rotate(120deg) translate(8px, -24px);
  background: linear-gradient(145deg, rgba(255, 107, 154, 0.92), rgba(255, 181, 203, 0.86));
}

.blade-3 {
  transform: rotate(240deg) translate(8px, -24px);
  background: linear-gradient(145deg, rgba(255, 176, 46, 0.94), rgba(255, 224, 132, 0.9));
}

.hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fafefe, #abbcc5);
  border: 7px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(23, 32, 42, 0.18);
}

.hub span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-2), var(--sun));
}

.neck {
  position: absolute;
  left: 50%;
  top: 306px;
  width: 70px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 0 0 24px 24px;
  background: linear-gradient(90deg, #b5c5cd, #f5f9fb 45%, #90a4b0);
  box-shadow: inset 0 -10px 14px rgba(23, 32, 42, 0.08);
}

.pole {
  position: absolute;
  left: 50%;
  top: 352px;
  width: 54px;
  height: 168px;
  transform: translateX(-50%);
  border-radius: 24px;
  background: linear-gradient(90deg, #7f96a3, #eff6f8 45%, #8ca1ad);
}

.base {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 282px;
  height: 116px;
  transform: translateX(-50%);
  border-radius: 48px 48px 22px 22px;
  background: linear-gradient(145deg, #fff8df, #79c9ff);
  border: 1px solid rgba(23, 32, 42, 0.12);
  box-shadow: 0 22px 38px rgba(23, 32, 42, 0.18);
}

.base-display {
  position: absolute;
  left: 32px;
  top: 24px;
  min-width: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #25304f;
  color: #fff8df;
  letter-spacing: 0;
}

.base-display span {
  font-size: 0.72rem;
  color: var(--sun);
}

.base-display strong {
  font-size: 1.1rem;
}

.base-buttons {
  position: absolute;
  right: 32px;
  top: 32px;
  display: flex;
  gap: 12px;
}

.base-buttons span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, var(--sun));
  box-shadow: inset 0 -2px 4px rgba(23, 32, 42, 0.16);
}

.base-buttons span:nth-child(2) {
  background: linear-gradient(145deg, #ffffff, var(--accent-2));
}

.base-buttons span:nth-child(3) {
  background: linear-gradient(145deg, #ffffff, var(--pink));
}

.desk {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 132px;
  background: linear-gradient(180deg, var(--sun), #ed8f45);
  z-index: 1;
}

.desk-highlight {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.airflow {
  position: absolute;
  left: 54%;
  top: 145px;
  width: 42%;
  height: 240px;
  opacity: var(--flow-opacity);
  transform: scaleX(var(--breeze-scale));
  transform-origin: left center;
  transition: opacity 220ms ease;
  z-index: 1;
}

.stream {
  position: absolute;
  left: 0;
  width: 110%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(23, 112, 230, 0.34), rgba(255, 107, 154, 0.16), rgba(23, 112, 230, 0));
  animation: flow var(--flow-speed) linear infinite;
}

.stream-1 {
  top: 20px;
}

.stream-2 {
  top: 68px;
  animation-delay: -0.8s;
}

.stream-3 {
  top: 116px;
  animation-delay: -1.7s;
}

.stream-4 {
  top: 164px;
  animation-delay: -2.4s;
}

.stream-5 {
  top: 212px;
  animation-delay: -3.2s;
}

.style-ocean .fan-head {
  background: radial-gradient(circle at 44% 38%, #ffffff 0 12%, #dff9ff 13% 40%, #77d7f2 41% 62%, #1679b8 63% 100%);
  border-color: #f5fdff;
}

.style-ocean .blade {
  background: linear-gradient(145deg, #0f8bd9, #7ee7f7);
}

.style-ocean .blade-2 {
  background: linear-gradient(145deg, #1fb6a6, #9bf3df);
}

.style-ocean .blade-3 {
  background: linear-gradient(145deg, #315ddc, #9eb7ff);
}

.style-ocean .hub span {
  background: linear-gradient(145deg, #0f8bd9, #bff8ff);
}

.style-ocean .base {
  background: linear-gradient(145deg, #eefcff, #55b8e6);
}

.style-ocean .base-buttons span {
  background: linear-gradient(145deg, #ffffff, #7ee7f7);
}

.style-ocean .stream {
  background: linear-gradient(90deg, rgba(15, 139, 217, 0.38), rgba(31, 182, 166, 0.18), rgba(15, 139, 217, 0));
}

.style-sunny .fan-head {
  background: radial-gradient(circle at 44% 38%, #ffffff 0 12%, #fff4c7 13% 40%, #ffc857 41% 62%, #e57a26 63% 100%);
  border-color: #fffaf0;
}

.style-sunny .blade {
  background: linear-gradient(145deg, #ffb000, #ffe28a);
}

.style-sunny .blade-2 {
  background: linear-gradient(145deg, #ff7a3d, #ffc099);
}

.style-sunny .blade-3 {
  background: linear-gradient(145deg, #22b573, #99ecc4);
}

.style-sunny .hub span {
  background: linear-gradient(145deg, #ff7a3d, #ffe28a);
}

.style-sunny .base {
  background: linear-gradient(145deg, #fff8df, #ffa45d);
}

.style-sunny .base-buttons span {
  background: linear-gradient(145deg, #ffffff, #ffcf57);
}

.style-sunny .stream {
  background: linear-gradient(90deg, rgba(255, 178, 46, 0.42), rgba(34, 181, 115, 0.16), rgba(255, 178, 46, 0));
}

.style-candy .fan-head {
  background: radial-gradient(circle at 44% 38%, #ffffff 0 12%, #fff0fb 13% 40%, #ff9acf 41% 62%, #9d6cff 63% 100%);
  border-color: #fff8ff;
}

.style-candy .blade {
  background: linear-gradient(145deg, #ff5aa5, #ffc2dd);
}

.style-candy .blade-2 {
  background: linear-gradient(145deg, #8f6cff, #d9c7ff);
}

.style-candy .blade-3 {
  background: linear-gradient(145deg, #43d6d2, #bcfff7);
}

.style-candy .hub span {
  background: linear-gradient(145deg, #ff5aa5, #8f6cff);
}

.style-candy .base {
  background: linear-gradient(145deg, #fff5fb, #d9c7ff);
}

.style-candy .base-buttons span {
  background: linear-gradient(145deg, #ffffff, #ff9acf);
}

.style-candy .stream {
  background: linear-gradient(90deg, rgba(255, 90, 165, 0.34), rgba(67, 214, 210, 0.2), rgba(255, 90, 165, 0));
}

.style-space .fan-head {
  background: radial-gradient(circle at 44% 38%, #ffffff 0 12%, #e6ebff 13% 40%, #8da2ff 41% 62%, #344076 63% 100%);
  border-color: #f7f9ff;
}

.style-space .blade {
  background: linear-gradient(145deg, #344076, #94a7ff);
}

.style-space .blade-2 {
  background: linear-gradient(145deg, #16a3b8, #a1f2ff);
}

.style-space .blade-3 {
  background: linear-gradient(145deg, #ffd166, #fff1aa);
}

.style-space .hub span {
  background: linear-gradient(145deg, #344076, #ffd166);
}

.style-space .base {
  background: linear-gradient(145deg, #f3f5ff, #8397ee);
}

.style-space .base-buttons span {
  background: linear-gradient(145deg, #ffffff, #94a7ff);
}

.style-space .stream {
  background: linear-gradient(90deg, rgba(52, 64, 118, 0.28), rgba(255, 209, 102, 0.22), rgba(52, 64, 118, 0));
}

.control-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 32%),
    var(--panel);
  border-left: 1px solid rgba(23, 32, 42, 0.08);
}

.panel-header {
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--accent);
}

.readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(46, 69, 104, 0.08);
}

.readout span,
.label-row span:last-child,
.metrics span {
  color: var(--muted);
}

.readout strong {
  color: var(--pink);
  font-size: 1.2rem;
}

.control-group {
  display: grid;
  gap: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.power-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-2), var(--pink));
  color: white;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(23, 32, 42, 0.14);
}

.power-button.is-on {
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.power-icon {
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  position: relative;
}

.power-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 3px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: currentColor;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  padding: 5px;
  border-radius: 8px;
  background: #fff0b8;
}

.speed-option {
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.speed-option.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(23, 32, 42, 0.1);
}

.speed-option[data-speed="1"].active {
  background: #dbf7ff;
}

.speed-option[data-speed="2"].active {
  background: #fff3bf;
}

.speed-option[data-speed="3"].active {
  background: #ffe0eb;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.style-option {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 7px 14px rgba(46, 69, 104, 0.06);
}

.style-option.active {
  border-color: transparent;
  background: linear-gradient(135deg, #fff3bf, #dbf7ff);
  box-shadow: 0 10px 20px rgba(46, 69, 104, 0.13);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-card {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(46, 69, 104, 0.07);
}

.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  padding: 3px;
  background: #c9d4da;
  transition: background 160ms ease;
}

.switch::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 160ms ease;
  box-shadow: 0 3px 8px rgba(23, 32, 42, 0.2);
}

.toggle-card input:checked + .switch {
  background: var(--accent);
}

.toggle-card input:checked + .switch::before {
  transform: translateX(18px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
}

.metrics div {
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(46, 69, 104, 0.07);
}

.metrics span {
  font-size: 0.76rem;
  font-weight: 700;
}

.metrics strong {
  font-size: 0.92rem;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes breezePulse {
  0%, 100% {
    filter: blur(0);
    opacity: 0.9;
  }

  50% {
    filter: blur(1px);
    opacity: 0.62;
  }
}

@keyframes oscillate {
  0%, 100% {
    transform: translateX(-50%) rotateY(-24deg);
  }

  50% {
    transform: translateX(-50%) rotateY(24deg);
  }
}

@keyframes flow {
  from {
    transform: translateX(-16%) scaleX(0.55);
    opacity: 0;
  }

  24% {
    opacity: 1;
  }

  to {
    transform: translateX(34%) scaleX(1);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .app-shell {
    padding: 16px;
  }

  .simulator {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 560px;
  }

  .control-panel {
    border-left: 0;
    border-top: 1px solid rgba(23, 32, 42, 0.08);
  }

  .fan-wrap {
    width: 300px;
    height: 452px;
    bottom: 70px;
  }

  .fan-head {
    width: 290px;
    height: 290px;
  }

  .neck {
    top: 260px;
  }

  .pole {
    top: 314px;
    height: 140px;
  }

  .base {
    width: 250px;
    height: 106px;
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 0;
    place-items: stretch;
  }

  .simulator {
    min-height: 100svh;
    display: grid;
    grid-template-rows: minmax(330px, 45svh) auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .stage {
    min-height: 0;
    height: 45svh;
    min-height: 330px;
    max-height: 430px;
    overflow: hidden;
  }

  .stage-nameplate {
    left: 14px;
    top: 14px;
    padding: 9px 12px;
  }

  .stage-nameplate span {
    font-size: 0.72rem;
  }

  .stage-nameplate strong {
    font-size: 1.05rem;
  }

  .fan-wrap {
    bottom: -52px;
    width: 260px;
    height: 390px;
    transform: translateX(-50%) scale(0.8) rotateY(var(--fan-angle));
  }

  .fan-wrap.oscillating {
    animation-name: oscillateSmall;
  }

  .fan-head {
    width: 260px;
    height: 260px;
    border-width: 9px;
  }

  .fan-ring {
    inset: 18px;
  }

  .fan-grill {
    inset: 24px;
  }

  .grill-c {
    inset: 62px;
  }

  .blade-set {
    width: 156px;
    height: 156px;
  }

  .blade {
    width: 64px;
    height: 112px;
  }

  .hub {
    width: 66px;
    height: 66px;
    border-width: 5px;
  }

  .hub span {
    width: 26px;
    height: 26px;
  }

  .neck {
    top: 232px;
    width: 56px;
    height: 48px;
  }

  .pole {
    top: 272px;
    width: 42px;
    height: 116px;
  }

  .base {
    width: 218px;
    height: 88px;
  }

  .base-display {
    left: 22px;
    top: 18px;
    min-width: 76px;
    padding: 7px 9px;
  }

  .base-buttons {
    right: 24px;
    top: 27px;
    gap: 8px;
  }

  .base-buttons span {
    width: 16px;
    height: 16px;
  }

  .desk {
    height: 72px;
  }

  .airflow {
    left: 50%;
    top: 118px;
    width: 50%;
    height: 160px;
  }

  .stream {
    height: 12px;
  }

  .stream-1 {
    top: 8px;
  }

  .stream-2 {
    top: 42px;
  }

  .stream-3 {
    top: 76px;
  }

  .stream-4 {
    top: 110px;
  }

  .stream-5 {
    top: 144px;
  }

  .control-panel {
    position: relative;
    z-index: 4;
    gap: 12px;
    margin-top: -18px;
    padding: 16px 14px max(16px, env(safe-area-inset-bottom));
    border-top: 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 38px rgba(46, 69, 104, 0.16);
  }

  .panel-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }

  .eyebrow {
    display: none;
  }

  h1 {
    font-size: 1.55rem;
  }

  .readout {
    min-width: 126px;
    padding: 8px 10px;
  }

  .readout span {
    font-size: 0.78rem;
  }

  .readout strong {
    font-size: 0.98rem;
  }

  .label-row {
    font-size: 0.86rem;
  }

  .power-button {
    min-height: 52px;
    font-size: 1.02rem;
  }

  .speed-option {
    height: 48px;
    font-size: 1.05rem;
  }

  .style-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .style-grid::-webkit-scrollbar {
    display: none;
  }

  .style-option {
    flex: 0 0 auto;
    min-width: 86px;
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  input[type="range"] {
    min-height: 32px;
  }

  .toggle-card {
    min-height: 58px;
  }

  .metrics div {
    min-height: 52px;
    padding: 8px 6px;
    text-align: center;
  }

  .metrics span {
    font-size: 0.68rem;
  }

  .metrics strong {
    font-size: 0.82rem;
  }

  .toggle-grid,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@keyframes oscillateSmall {
  0%, 100% {
    transform: translateX(-50%) scale(0.8) rotateY(-22deg);
  }

  50% {
    transform: translateX(-50%) scale(0.8) rotateY(22deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
