.tyre-color-btns { display: flex; gap: 8px; }
.tyre-color-btn { display: flex; align-items: center; gap: 6px; padding: 5px 11px;
  border: 1px solid var(--border-hi); border-radius: var(--r-xs); background: var(--bg);
  color: var(--text-mid); font-family: var(--ff-display); font-size: 11px;
  font-weight: 700; cursor: pointer; transition: border-color 0.12s, background 0.12s, color 0.12s; }
.tyre-color-btn:hover { border-color: var(--accent); color: var(--text); }
.tyre-color-btn.active { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.tyre-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.mybike-shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 14px 28px;
}

.mybike-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 18px;
}

.mybike-kicker {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.mybike-header h1 {
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text);
}

.workflow-block {
  margin-top: 12px;
  max-width: 980px;
  padding: 10px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.70);
}

.workflow-label {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.mybike-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  align-items: center;
}

.flow-step {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-low);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  box-shadow: none;
}

.flow-arrow {
  display: none;
}

.flow-step.active {
  border-color: rgba(255,90,0,0.55);
  background: var(--accent-tint);
  color: var(--text);
}

.flow-step.done {
  border-color: rgba(52,211,153,0.35);
  color: var(--end);
}

.device-notice {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(245,158,11,0.38);
  border-radius: var(--r-sm);
  background: rgba(245,158,11,0.10);
  color: var(--text-mid);
}

.device-notice strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #F59E0B;
}

.device-notice span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.mybike-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 250px;
  gap: 10px;
  align-items: start;
}

.mybike-panel,
.preview-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.controls-panel {
  overflow: hidden;
}

.panel-block {
  padding: 10px;
  border-bottom: 1px solid var(--border);
}


.edit-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-block:last-child {
  border-bottom: none;
}

.panel-label {
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-low);
}

.upload-drop {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed var(--border-hi);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-mid);
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.upload-drop:hover,
.upload-drop.dragging {
  border-color: var(--accent-light);
  background: var(--accent-tint);
  color: var(--text);
}

.upload-drop.has-photo {
  border-style: solid;
  border-color: rgba(52,211,153,0.36);
  background: rgba(52,211,153,0.08);
}

.upload-drop input {
  display: none;
}

.upload-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  font-weight: 300;
}

.upload-drop.has-photo .upload-icon {
  background: var(--end);
}

.upload-title {
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.mybike-select {
  width: 100%;
  height: 34px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xs);
  background: var(--bg3);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
}

.wheel-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: calc(100vh - 235px);
  overflow: auto;
  padding-right: 2px;
}

.wheel-option {
  min-height: 44px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-mid);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.wheel-option:hover {
  background: var(--bg3);
  border-color: var(--border-hi);
  color: var(--text);
}

.wheel-option.active {
  background: var(--accent-tint);
  border-color: var(--accent);
  color: var(--text);
}

.wheel-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.wheel-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.wheel-meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--text-low);
}

.preview-panel {
  min-width: 0;
  overflow: hidden;
}

.preview-topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.preview-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.preview-title span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-low);
}

.preview-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-size: 15px;
  color: var(--text);
}

.mybike-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s, opacity 0.14s, transform 0.1s;
  white-space: nowrap;
}

.mybike-btn.primary {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
}

.mybike-btn.primary:hover:not(:disabled) {
  background: var(--accent-light);
}

.mybike-btn.secondary {
  border: 1px solid var(--border-hi);
  background: transparent;
  color: var(--text-mid);
}

.mybike-btn.secondary:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--accent);
}

.mybike-btn:disabled,
.mybike-btn.is-disabled,
.mybike-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.mybike-btn:active:not(:disabled):not(.is-disabled) {
  transform: scale(0.98);
}

.bike-stage-wrap {
  padding: 8px;
}

.bike-stage {
  position: relative;
  width: 100%;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--carbon);
  user-select: none;
  touch-action: none;
}

.bike-stage.empty {
  min-height: 520px;
}

.selected-wheel-bar {
  display: none;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  align-items: stretch;
  gap: 8px;
  margin: 0 8px 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  overflow: hidden;
}

.selected-wheel-bar.visible {
  display: grid;
}

.swb-section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #fff;
}

.swb-model {
  justify-content: space-between;
}

.swb-title {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.swb-spec {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.swb-spec span {
  flex: 0 0 auto;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-low);
  white-space: nowrap;
}

.swb-spec strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.swb-link {
  width: fit-content;
  color: var(--accent-light);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.swb-link:hover {
  color: var(--text);
}

.empty-state {
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 22px;
  text-align: center;
  color: var(--text-low);
}

.empty-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.empty-title {
  font-family: var(--ff-display);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.empty-state p {
  max-width: 310px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-low);
}

.photo-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 300px;
  margin-top: 7px;
}

.photo-tip {
  min-width: 0;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.photo-tip strong {
  font-size: 11px;
  line-height: 1.2;
  color: var(--text);
}

.photo-tip span:last-child {
  font-size: 10px;
  line-height: 1.25;
  color: var(--text-low);
}

.photo-tip-icon {
  position: relative;
  width: 42px;
  height: 30px;
  display: block;
  color: var(--accent-light);
}

.photo-tip-icon.bike-side {
  background: var(--accent-light);
  -webkit-mask: url('../bilder/favicon-192.png') center / contain no-repeat;
  mask: url('../bilder/favicon-192.png') center / contain no-repeat;
  mask-mode: luminance;
}

.photo-tip-icon.good-light::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 3px;
  width: 18px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 42% 42%;
  background: currentColor;
  box-shadow: 0 0 18px rgba(255,90,0,0.45);
}

.photo-tip-icon.good-light::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 23px;
  width: 12px;
  height: 5px;
  border-radius: 0 0 3px 3px;
  background:
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)) center 1px / 8px 1px no-repeat,
    currentColor;
}

.bike-photo {
  display: none;
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  pointer-events: none;
}

.bike-stage.has-photo .bike-photo {
  display: block;
}

.bike-stage.has-photo .empty-state {
  display: none;
}

.wheel-overlay {
  position: absolute;
  display: none;
  width: 120px;
  height: 120px;
  object-fit: contain;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.34));
  z-index: 2;
}

.mask-overlay {
  position: absolute;
  display: none;
  pointer-events: none;
  z-index: 3;
}

.brush-cursor {
  position: absolute;
  display: none;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255,255,255,0.94);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.24), 0 0 18px rgba(255,255,255,0.36);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 8;
}

.bike-stage.masking .brush-cursor.visible {
  display: block;
}

.bike-stage.has-photo .mask-overlay {
  display: block;
}

.bike-stage.masking {
  cursor: crosshair;
}

.bike-stage.has-photo.has-wheel .wheel-overlay {
  display: block;
}

.wheel-guide {
  position: absolute;
  display: none;
  border: 2px solid rgba(255,255,255,0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,90,0,0.28), 0 0 22px rgba(255,255,255,0.42);
  pointer-events: none;
  z-index: 4;
}

.bike-stage.positioning .wheel-guide {
  display: block;
}

.wheel-marker {
  position: absolute;
  display: none;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,90,0,0.26), 0 4px 14px rgba(0,0,0,0.45);
  cursor: grab;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.wheel-marker span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 3px 7px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-pill);
  background: rgba(21,21,21,0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.wheel-marker.front {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 4px 14px rgba(0,0,0,0.45);
}

.wheel-marker:active {
  cursor: grabbing;
}

.bike-stage.has-photo .wheel-marker {
  display: block;
}

.bike-stage.masking .wheel-marker,
.bike-stage.masking .wheel-guide {
  display: none;
}

.stage-hint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: none;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-sm);
  background: rgba(21,21,21,0.78);
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 7;
}

.bike-stage.has-photo .stage-hint {
  display: block;
}

.bike-stage.masking .stage-hint {
  border-color: rgba(255,90,0,0.42);
  background: rgba(21,21,21,0.9);
  color: #fff;
}

.range-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.correction-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.correction-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

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

.correction-row {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.correction-row > span {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.correction-row strong {
  color: var(--text-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.correction-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.attention-glow {
  animation: mybikeAttentionGlow 1.45s ease-in-out infinite;
}

@keyframes mybikeAttentionGlow {
  0%,
  100% {
    border-color: var(--border-hi);
    box-shadow: 0 0 0 rgba(255,90,0,0), 0 0 0 rgba(255,90,0,0);
  }
  50% {
    border-color: rgba(255,90,0,0.95);
    box-shadow: 0 0 0 5px rgba(255,90,0,0.2), 0 0 34px rgba(255,90,0,0.38);
  }
}

.wheel-marker.attention-glow {
  animation-name: mybikeMarkerGlow;
}

@keyframes mybikeMarkerGlow {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255,90,0,0.26), 0 4px 14px rgba(0,0,0,0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255,90,0,0.34), 0 0 42px rgba(255,90,0,0.62), 0 8px 22px rgba(0,0,0,0.55);
  }
}

.wheel-marker.front.attention-glow {
  animation-name: mybikeFrontMarkerGlow;
}

@keyframes mybikeFrontMarkerGlow {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(245,158,11,0.25), 0 4px 14px rgba(0,0,0,0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245,158,11,0.42), 0 0 42px rgba(245,158,11,0.78), 0 8px 22px rgba(0,0,0,0.55);
  }
}

.range-control span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.range-control input {
  width: 100%;
  accent-color: var(--accent);
}

.scale-row {
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
  color: var(--text-low);
  font-size: 9px;
  font-weight: 700;
}

.range-control strong {
  color: var(--text-mid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.step-row,
.mask-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.wheel-size-control .step-row {
  margin-top: 2px;
}

.mask-actions {
  grid-template-columns: repeat(2, 1fr);
}

.step-btn {
  height: 32px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-mid);
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.step-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.step-btn:disabled,
.range-control input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mybike-btn.full {
  width: 100%;
}

.mask-copy {
  min-width: 0;
}

.mask-copy span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-low);
}

.mask-copy strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-mid);
}

.mask-tips {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.mask-tips span {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-low);
}

.mybike-btn.active {
  border-color: var(--accent-light);
  background: var(--accent-tint);
  color: var(--text);
}

.mybike-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 999;
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 18px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.mybike-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1100px) {
  .mybike-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .device-notice {
    display: block;
  }

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

}

@media (max-width: 600px) {
  .mybike-shell {
    padding: 8px 6px 22px;
  }

  .mybike-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .mybike-header h1 {
    font-size: 24px;
  }

  .workflow-block {
    width: 100%;
  }

  .mybike-flow {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step {
    min-height: 36px;
  }

  .flow-arrow {
    display: none;
  }

  .preview-topbar {
    grid-template-columns: 1fr;
  }

  .preview-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mybike-btn {
    width: 100%;
  }

  .bike-stage,
  .bike-stage.empty {
    min-height: 360px;
  }

  .photo-tips {
    grid-template-columns: 1fr;
    max-width: 270px;
  }

  .photo-tip {
    min-height: 74px;
  }

  .stage-hint {
    left: 8px;
    right: 8px;
    bottom: 8px;
    font-size: 11px;
  }

  .wheel-marker span {
    display: none;
  }

  .selected-wheel-bar {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }

  .swb-model {
    grid-column: 1 / -1;
  }

  .swb-link {
    width: fit-content;
  }
}

.mybike-wheel-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mybike-wheel-col .wheel-picker-panel {
  --single-filter-gap: 9px;
  --single-filter-control-height: 31px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.mybike-wheel-col .wheel-filter-block {
  padding: var(--single-filter-gap);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg2);
}

.mybike-wheel-col .wheel-filter-block .panel-title {
  margin-bottom: 7px;
  padding: 0;
  border: 0;
}

.mybike-wheel-col .wheel-brand-block .brand-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--single-filter-gap);
  padding: 0;
  justify-content: start;
}

.mybike-wheel-col .wheel-brand-block .brand-tab {
  width: 100%;
  min-height: var(--single-filter-control-height);
  box-sizing: border-box;
  padding: 5px 7px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  border-color: var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text-mid);
  font-size: 10.5px;
  font-weight: 750;
  text-align: left;
  letter-spacing: 0;
  white-space: nowrap;
}

.mybike-wheel-col .wheel-brand-block .brand-tab::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid var(--text-low);
  border-radius: 4px;
  background: transparent;
  box-sizing: border-box;
}

.mybike-wheel-col .wheel-brand-block .brand-tab.active {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--text);
}

.mybike-wheel-col .wheel-brand-block .brand-tab.active::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 4px var(--bg2);
}

.rim-range-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-mid);
  font-size: 10.5px;
  font-weight: 700;
}

.wheel-rim-range {
  position: relative;
  height: 28px;
}

.wheel-rim-track {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
}

.wheel-rim-track span {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--accent);
}

.wheel-rim-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.wheel-rim-range input[type="range"]::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg2);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.16);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.wheel-rim-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg2);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.16);
  pointer-events: auto;
}

.rim-range-scale {
  display: flex;
  justify-content: space-between;
  color: var(--text-low);
  font-size: 10px;
}

.mybike-wheel-col .wheel-results-block .wheel-tags {
  display: none;
}

.mybike-wheel-col .panel-scroll {
  max-height: calc(100vh - 160px);
}

@media (max-width: 500px) {
  .mybike-wheel-col .wheel-brand-block .brand-tabs {
    display: none;
  }

  .mybike-wheel-col .wheel-brand-block .m-brand-select {
    display: block !important;
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 0 46px 0 16px;
    border: 1px solid var(--border-hi);
    border-radius: 8px;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' stroke='%236b6761' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: var(--text);
    font-family: var(--ff-display);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    appearance: none;
    -webkit-appearance: none;
  }

  .mybike-wheel-col .panel-scroll {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 6px 8px 10px;
    max-height: none;
    overflow: visible;
  }
}
