.h3-mobile-timing { display: block; min-width: 0; grid-column: 1 / -1; margin-bottom: 20px; padding: 12px; border: 1px solid #cebea1; border-radius: 10px; background: rgba(255,253,247,.8); color: #493720; }
.h3-mobile-timing-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.h3-mobile-timing .h3-mobile-timing-help { width: 32px; height: 32px; padding: 0; border: 1px solid #aa8abd; border-radius: 50%; background: #f1e9f5; color: #704788; cursor: pointer; }
.h3-mobile-timing-track { position: relative; height: 44px; margin: 0 22px; }
.h3-mobile-timing-track:before { content: ''; position: absolute; top: 19px; left: 0; right: 0; height: 6px; border-radius: 3px; background: #cbbda5; }
.h3-mobile-timing .h3-mobile-timing-span { position: absolute; top: 0; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.h3-mobile-timing-span:before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 6px; background: #cbbda5; }
.h3-mobile-timing-span.active:before { background: #79518e; }
@media (hover: hover) {
  .h3-mobile-timing-span:hover:before { background: #aa80bb; }
}
.h3-mobile-timing .h3-mobile-timing-dot { position: absolute; top: 0; width: 28px; height: 44px; transform: translateX(-50%); padding: 0; border: 0; background: transparent; cursor: pointer; z-index: 1; }
.h3-mobile-timing-dot span { display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: #655d50; pointer-events: none; }
.h3-mobile-timing-dot.active { z-index: 2; }
.h3-mobile-timing-dot.active span { width: 18px; height: 18px; background: #8953a5; box-shadow: 0 0 0 4px #e6d7ee; }
.h3-mobile-timing .draggable { touch-action: none; -webkit-user-select: none; user-select: none; cursor: ew-resize; }
.h3-mobile-timing-scale { display: flex; justify-content: space-between; font-size: 12px; margin: 0 16px 10px; }
.h3-mobile-timing-durations { display: flex; flex-wrap: wrap; gap: 6px; }
.h3-mobile-timing-durations button { flex: 1 1 110px; min-width: 0; min-height: 36px; padding: 6px; border: 1px solid #cdbd9e; border-radius: 6px; background: #fffdf7; color: #59452e; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
.h3-mobile-timing-durations button.active { border-color: #79518e; color: #6d4183; background: #eee2f3; }
.h3-mobile-timing button:not(.h3-mobile-timing-dot):not(.h3-mobile-timing-span):focus-visible { outline: 2px solid #79518e; outline-offset: 2px; }
.h3-mobile-timing .h3-mobile-timing-span:focus { outline: none; box-shadow: none; }
.h3-mobile-timing .h3-mobile-timing-span:focus-visible:before { outline: 2px solid #79518e; outline-offset: 2px; }
.h3-mobile-timing .h3-mobile-timing-dot:focus { outline: none; box-shadow: none; }
.h3-mobile-timing .h3-mobile-timing-dot:focus-visible span { outline: 2px solid #79518e; outline-offset: 5px; }
.h3-mobile-timing .tooltip { z-index: 100010; }

.h3-mobile-timing.isSingle { padding: 8px; border: 0; background: none; text-align: center; }
.h3-timing-single { margin: 0; }

/* Wide layout: labels share the track's exact coordinate space. */
@media (min-width: 768px) {
  .h3-mobile-timing { display: grid; grid-template-columns: auto minmax(0, 1fr) 24px; align-items: center; gap: 8px; padding: 4px 8px; border: 0; background: none; }
  .h3-mobile-timing-head { display: contents; }
  .h3-mobile-timing-head strong { grid-column: 1; grid-row: 1; align-self: start; font-size: 12px; line-height: 28px; white-space: nowrap; }
  .h3-mobile-timing .h3-mobile-timing-help { grid-column: 3; grid-row: 1; align-self: start; margin-top: 2px; width: 24px; height: 24px; }
  .h3-timing-body { grid-column: 2; grid-row: 1; min-width: 0; margin: 0 12px; }
  .h3-mobile-timing-track { height: 28px; margin: 0; }
  .h3-mobile-timing-track:before, .h3-mobile-timing-span:before { top: 12px; height: 4px; }
  .h3-mobile-timing .h3-mobile-timing-span { height: 28px; }
  .h3-mobile-timing .h3-mobile-timing-dot { height: 28px; }
  .h3-mobile-timing-dot.active span { width: 14px; height: 14px; box-shadow: 0 0 0 3px #e6d7ee; }
  .h3-mobile-timing-scale { display: none; }
  .h3-mobile-timing-durations { display: block; position: relative; height: 18px; }
  .h3-mobile-timing-durations > span { position: absolute; top: 0; box-sizing: border-box; padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; font-size: 11px; line-height: 18px; }
  .h3-mobile-timing-durations > span.active { color: #79518e; font-weight: 600; }
  .h3-mobile-timing.isSingle { display: block; }
}
