/* Personal hobby colors are data. The fleet owns type, surfaces, and controls. */
.wheel-root {
  container-type: inline-size;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  margin-inline: auto;
  color: var(--text-primary);
}

.wheel-viewport {
  width: 100%;
  aspect-ratio: 1;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius);
}
.wheel-diagram { width: 100%; aspect-ratio: 1; }
.wheel-svg { display: block; width: 100%; height: auto; overflow: visible; }
.wheel-ticks { fill: none; stroke: var(--text-muted); stroke-width: 1; opacity: 0.35; }
.wheel-piece { cursor: pointer; }
.wheel-shape {
  fill: color-mix(in oklab, var(--wheel-color) 17%, var(--surface-1));
  stroke: color-mix(in oklab, var(--wheel-color) 50%, var(--surface-1));
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 160ms ease-out, stroke 160ms ease-out;
}
.wheel-band .wheel-shape {
  fill: color-mix(in oklab, var(--wheel-color) 35%, var(--surface-1));
  stroke: color-mix(in oklab, var(--wheel-color) 65%, var(--surface-1));
}
.wheel-piece:hover .wheel-shape {
  fill: color-mix(in oklab, var(--wheel-color) 34%, var(--surface-1));
  stroke: var(--text-primary);
}
.wheel-band:hover .wheel-shape { fill: color-mix(in oklab, var(--wheel-color) 52%, var(--surface-1)); }
.wheel-piece.wheel-is-selected .wheel-shape { stroke: var(--text-primary); stroke-width: 2.5; }
.wheel-current-dot { fill: var(--text-primary); opacity: 0; pointer-events: none; }
.wheel-is-current > .wheel-current-dot { opacity: 1; }
.wheel-label, .wheel-band-icon { pointer-events: none; color: var(--text-primary); }
.wheel-label text {
  text-anchor: middle;
  fill: var(--text-primary);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
}
.wheel-label-compact text { font-size: 14px; }
.wheel-label > svg { opacity: 0.9; }
.wheel-band-icon { opacity: 0.82; }
.wheel-hub { fill: var(--bg); stroke: var(--border); stroke-width: 1; }
.wheel-hub-icon { color: var(--text-secondary); }
.wheel-hub-title, .wheel-hub-note { text-anchor: middle; font-family: var(--font); }
.wheel-hub-title { font-size: 21px; font-weight: 500; fill: var(--text-primary); letter-spacing: -0.25px; }
.wheel-hub-note { font-size: 13px; fill: var(--text-muted); }
.wheel-pointer { fill: none; stroke: var(--text-primary); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.wheel-pointer-tip { fill: var(--text-primary); stroke: var(--bg); stroke-width: 2; }

.wheel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: var(--space-2) 0 var(--space-4);
}
.wheel-caption { flex: 1 1 140px; color: var(--text-muted); font-size: var(--text-xs); line-height: 1.5; max-width: 36ch; }
.wheel-zoom { display: flex; align-items: center; gap: 2px; }
.wheel-control, .wheel-option, .wheel-explore {
  min-height: 44px;
  font-family: var(--font);
  color: var(--text-primary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
  -webkit-tap-highlight-color: transparent;
}
.wheel-control { min-width: 44px; padding: 0 var(--space-2); font-size: var(--text-lg); }
.wheel-zoom-reset { font-size: var(--text-xs); font-variant-numeric: tabular-nums; min-width: 55px; }
.wheel-control:hover, .wheel-option:hover, .wheel-explore:hover { background: var(--surface-2); border-color: var(--border); }
.wheel-control:disabled { opacity: 0.35; cursor: default; }
.wheel-control:disabled:hover { background: transparent; border-color: transparent; }
.wheel-control:focus-visible, .wheel-option:focus-visible, .wheel-explore:focus-visible,
.wheel-choices summary:focus-visible, .wheel-viewport:focus-visible {
  outline: 2px solid var(--accent-bright, var(--accent));
  outline-offset: 2px;
}

.wheel-choices { border-top: 1px solid var(--border); }
.wheel-choices-summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.wheel-choices-summary::-webkit-details-marker { display: none; }
.wheel-choices-summary::after { content: '+'; margin-left: auto; color: var(--text-muted); font-size: var(--text-lg); }
.wheel-choices[open] > .wheel-choices-summary::after { content: '−'; }
.wheel-choice-count { font-size: var(--text-xs); color: var(--text-muted); font-weight: 400; }
.wheel-choice-list, .wheel-child-list { list-style: none; margin: 0; padding: 0; }
.wheel-choice-list { display: grid; gap: var(--space-2) var(--space-4); padding-bottom: var(--space-3); }
.wheel-choice { min-width: 0; padding: var(--space-1) 0; border-bottom: 1px solid var(--border); }
.wheel-choice-row { display: flex; align-items: flex-start; min-width: 0; gap: var(--space-1); }
.wheel-option { display: flex; align-items: center; gap: var(--space-2); flex: 1; min-width: 0; padding: var(--space-2); text-align: left; }
.wheel-order { color: var(--text-muted); font-size: 10px; font-variant-numeric: tabular-nums; flex: 0 0 15px; }
.wheel-option-icon { display: flex; color: var(--text-secondary); flex: 0 0 20px; position: relative; }
.wheel-option-icon::after { content: ''; width: 5px; height: 5px; position: absolute; right: -2px; bottom: -2px; background: var(--wheel-color); border: 1px solid var(--bg); border-radius: 50%; }
.wheel-option-copy { display: block; min-width: 0; }
.wheel-option-name { display: block; font-size: var(--text-sm); line-height: 1.4; overflow-wrap: anywhere; }
.wheel-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 10px; line-height: 1.7; }
.wheel-current-badge { color: var(--text-primary); }
.wheel-selected-badge { color: var(--text-secondary); }
.wheel-badges > [hidden] { display: none; }
.wheel-option.wheel-is-selected { border-color: var(--border-strong); background: var(--surface-1); }
.wheel-explore { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; padding: 0 var(--space-2); font-size: var(--text-xs); color: var(--text-secondary); }
.wheel-explore svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wheel-subchoices { margin-left: 31px; }
.wheel-subchoices > summary { min-height: 44px; padding: var(--space-3) var(--space-2); color: var(--text-muted); font-size: var(--text-xs); cursor: pointer; }
.wheel-child-list { padding-bottom: var(--space-2); }
.wheel-child .wheel-option { padding-left: var(--space-2); }
.wheel-child .wheel-option-name { font-size: var(--text-xs); }

@container (min-width: 540px) {
  .wheel-choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-shape, .wheel-control, .wheel-option, .wheel-explore { transition: none; }
}
@media (forced-colors: active) {
  .wheel-shape { fill: Canvas; stroke: CanvasText; }
  .wheel-piece.wheel-is-selected .wheel-shape { stroke: Highlight; }
  .wheel-current-dot, .wheel-label text { fill: CanvasText; }
  .wheel-pointer-tip { fill: CanvasText; stroke: Canvas; }
  .wheel-hub { fill: Canvas; stroke: CanvasText; }
}
