.motion-settings .tools-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; margin: 12px 0 18px; }
.motion-settings .tools-actions button { min-height: 44px; padding: 10px; font-size: var(--text-xs); line-height: 1.5; }
#motion-toggle { background: var(--ink); color: var(--on-ink); }
#motion-status { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: var(--text-xs); line-height: 1.6; color: var(--text-soft); }
.motion-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; margin-top: 16px; color: var(--text); font: 500 var(--text-sm)/1.5 var(--font-ui); }
.motion-field output { padding: 3px 8px; border-radius: 7px; background: var(--surface-2); color: var(--text-muted); font-size: var(--text-2xs); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.motion-field select, .motion-field input[type="range"] { grid-column: 1 / -1; width: 100%; min-width: 0; }
.motion-field select { appearance: none; min-height: 46px; padding: 11px 36px 11px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background-color: var(--surface-2); color: var(--text); font: var(--text-base)/1.5 var(--font-ui); text-overflow: ellipsis; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.motion-field input[type="range"] { appearance: none; height: 36px; margin: 0; padding: 0; background: transparent; accent-color: var(--ink); cursor: pointer; }
.motion-field input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--motion-fill, 50%), var(--line-strong) var(--motion-fill, 50%)); }
.motion-field input[type="range"]::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; margin-top: -7px; border: 3px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.motion-field input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line-strong); }
.motion-field input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
.motion-field input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--surface); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.motion-switches { margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.motion-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; padding: 12px; cursor: pointer; }
.motion-switch + .motion-switch { border-top: 1px solid var(--line); }
.motion-switch > span { min-width: 0; color: var(--text); font: 500 var(--text-sm)/1.5 var(--font-ui); }
.motion-switch small { display: block; margin-top: 3px; color: var(--text-muted); font-size: var(--text-2xs); font-weight: 400; }
.motion-switch input { appearance: none; position: relative; flex: 0 0 42px; width: 42px; height: 26px; margin: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); cursor: pointer; transition: background-color .18s var(--steps-3); }
.motion-switch input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); transition: transform .18s var(--steps-3); }
.motion-switch input:checked { border-color: var(--ink); background: var(--ink); }
.motion-switch input:checked::before { transform: translateX(16px); background: var(--on-ink); }
.motion-field select:focus-visible, .motion-field input:focus-visible, .motion-switch input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.motion-field input:disabled, .motion-switch input:disabled { opacity: .45; cursor: not-allowed; }
.motion-settings > .settings-hint:last-child { margin-top: 16px; }
.motion-active { position: fixed; z-index: var(--z-floating); bottom: calc(90px + env(safe-area-inset-bottom)); left: 12px; font: inherit; font-size: var(--text-2xs); border: 1px solid var(--line-strong); border-radius: 20px; padding: 8px 12px; background: var(--surface); color: var(--ink); opacity: .8; }
.motion-active[hidden] { display: none; }
.motion-depth { transform: translate(var(--motion-x, 0), var(--motion-y, 0)); transition: transform .15s linear; }
@media (prefers-reduced-motion: reduce) { .motion-depth { transform: none; transition: none; } }
@media (prefers-reduced-motion: reduce) { .motion-switch input, .motion-switch input::before { transition: none; } }
@media (max-width: 1080px) { .motion-field select { font-size: 16px; } .motion-field input[type="range"] { height: 44px; } }
@media (forced-colors: active) {
  .motion-switch input { appearance: auto; }
  .motion-switch input::before { display: none; }
  .motion-field select { appearance: auto; background-image: none; }
}
