#state-coast-figure {
  --coast-ink: var(--ink, #08121c);
  --coast-paper: var(--paper, #f3f0e8);
  --coast-muted: #344451;
  --coast-line: rgba(8, 18, 28, 0.18);
  --coast-a: #21627e;
  --coast-b: #99631e;
  --coast-earth: #dde4df;
  position: relative;
  width: 100%;
  min-width: 0;
  color: var(--coast-ink);
}

#state-coast-figure .coast-heading {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  line-height: 1.25;
}

#state-coast-figure .coast-context,
#state-coast-figure .coast-frame-note,
#state-coast-figure .coast-detail,
#state-coast-figure .coast-motion-note {
  margin: 0;
  color: var(--coast-muted);
  font-size: max(12px, 0.8rem);
  line-height: 1.6;
}

#state-coast-figure .coast-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin: 12px 0;
  font-size: max(12px, 0.82rem);
  line-height: 1.5;
}

#state-coast-figure .coast-key {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
}

#state-coast-figure .coast-dot,
#state-coast-figure .coast-diamond {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
}

#state-coast-figure .coast-dot {
  border-radius: 50%;
  background: var(--coast-a);
}

#state-coast-figure .coast-diamond {
  transform: rotate(45deg);
  border: 2px solid var(--coast-b);
  background: var(--coast-paper);
}

#state-coast-figure .coast-scene {
  width: 100%;
  min-width: 0;
}

#state-coast-figure .coast-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#state-coast-figure .coast-svg text {
  fill: var(--coast-ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

#state-coast-figure .coast-svg .coast-case-label {
  font-weight: 600;
}

#state-coast-figure .coast-axis {
  stroke: var(--coast-line);
  stroke-width: 1;
}

#state-coast-figure .coast-orbit {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.3;
}

#state-coast-figure .coast-trail {
  fill: none;
  stroke-width: 2;
}

#state-coast-figure .coast-case-a {
  stroke: var(--coast-a);
}

#state-coast-figure .coast-case-b {
  stroke: var(--coast-b);
  stroke-dasharray: 6 4;
}

#state-coast-figure .coast-earth {
  fill: var(--coast-earth);
  stroke: var(--coast-muted);
  stroke-width: 1;
}

#state-coast-figure .coast-control {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: 8px 0 10px;
  font-size: max(12px, 0.82rem);
}

#state-coast-figure .coast-play {
  min-height: 44px;
  border: 1px solid var(--coast-muted);
  border-radius: 3px;
  padding: 7px 9px;
  background: var(--coast-paper);
  color: var(--coast-ink);
  font: inherit;
  cursor: pointer;
}

#state-coast-figure .coast-play:disabled {
  color: var(--coast-muted);
  opacity: 0.65;
  cursor: default;
}

#state-coast-figure .coast-slider {
  min-width: 0;
}

#state-coast-figure .coast-readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  line-height: 1.4;
}

#state-coast-figure #coast-time-output {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#state-coast-figure #coast-time {
  display: block;
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  accent-color: var(--coast-a);
  cursor: pointer;
}

#state-coast-figure .coast-play:focus-visible,
#state-coast-figure #coast-time:focus-visible {
  outline: 2px solid var(--coast-a);
  outline-offset: 4px;
}

#state-coast-figure .coast-detail + .coast-detail,
#state-coast-figure .coast-motion-note {
  margin-top: 5px;
}

#state-coast-figure .coast-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
