.skillwheel-screen {
  padding-top: 93px;
}

.skillwheel-topbar {
  border-bottom: 1px solid var(--brand\/neutral\/800);
}

.skillwheel-topbar .assessment-topbar-name {
  font-weight: 700;
}

.skillwheel-stage {
  position: relative;
  display: grid;
  min-height: calc(100vh - 93px);
  place-items: center;
  padding: 0 var(--space-48);
}

.skillwheel-legend {
  position: absolute;
  top: calc(50% - 56px);
  left: clamp(var(--space-40), 7.2vw, 116px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  color: var(--brand\/neutral\/200);
  font-family: "Inter", var(--font-text);
  font-size: var(--paragraph\/--p-s-size);
  font-weight: 700;
  line-height: 1.2;
}

.skillwheel-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-16);
  white-space: nowrap;
}

.skillwheel-legend-dot {
  width: 23px;
  height: 23px;
  border-radius: 50%;
}

.skillwheel-legend-dot.current {
  background: var(--brand\/accent\/sapphire\/400);
}

.skillwheel-legend-dot.target {
  background: var(--brand\/accent\/cherry\/400);
}

.skillwheel-legend-dot.previous-year {
  background: #7fd7a2;
}

.skillwheel-graphic {
  width: min(calc(100vw - 240px), calc(100vh - 94px), 1160px);
  width: min(calc(100vw - 240px), calc(100svh - 94px), 1160px);
  min-width: 0;
  aspect-ratio: 1;
}

.skillwheel-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.skillwheel-segment {
  cursor: pointer;
  outline: 0;
}

.skillwheel-segment-bg {
  fill: var(--brand\/neutral\/950);
  stroke: var(--brand\/neutral\/850);
  stroke-linejoin: round;
  stroke-width: 1;
  transition:
    fill 150ms ease,
    stroke 150ms ease;
}

.skillwheel-segment:hover .skillwheel-segment-bg,
.skillwheel-segment:focus-visible .skillwheel-segment-bg,
.skillwheel-segment.is-selected .skillwheel-segment-bg {
  fill: var(--brand\/neutral\/950);
  stroke: var(--brand\/neutral\/700);
}

.skillwheel-target-segment {
  fill: var(--brand\/accent\/cherry\/300);
  stroke: none;
}

.skillwheel-current-segment {
  fill: var(--brand\/accent\/sapphire\/300);
  stroke: none;
}

.skillwheel-previous-year-segment {
  fill: #7fd7a2;
  opacity: 0.88;
  stroke: none;
  pointer-events: none;
}

.skillwheel-center-hole {
  fill: var(--brand\/neutral\/950);
}

.skillwheel-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  dominant-baseline: middle;
}

.skillwheel-current-value {
  fill: var(--brand\/accent\/sapphire\/400);
}

.skillwheel-target-value {
  fill: var(--brand\/accent\/cherry\/400);
}

.skillwheel-previous-year-value {
  fill: #1f7a4d;
}

.skillwheel-label {
  fill: var(--brand\/neutral\/200);
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 700;
  dominant-baseline: middle;
}

.skillwheel-label tspan {
  dominant-baseline: middle;
}

.skill-editor-drawer {
  width: clamp(460px, 40vw, 640px);
}

.skill-editor-shell {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.skill-editor-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-height: 100%;
  padding: var(--space-32) var(--space-24);
}

.skill-editor-content .question-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) 0;
}

.skill-editor-content .question-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.skill-editor-content .question-count {
  margin: 0;
  color: var(--brand\/neutral\/600);
  font-family: "Inter", var(--font-text);
  font-size: var(--paragraph\/--p-s-size);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 18px;
}

.skill-editor-title {
  width: min(664px, 100%);
  margin: 0;
  color: var(--brand\/neutral\/50);
  font-family: var(--font-display);
  font-size: var(--heading\/--h2-size);
  font-weight: 800;
  letter-spacing: 0;
  line-height: var(--heading\/--h2-size);
}

.skill-editor-description {
  width: min(569px, 100%);
  margin: 0;
  color: var(--brand\/neutral\/500);
  font-family: "Inter", var(--font-text);
  font-size: 17.4px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 21.6px;
}

.skill-editor-content .rating-field {
  padding: var(--space-8) 0;
}

.skill-editor-content .rating-control {
  border: 1px solid var(--brand\/neutral\/850);
  background: transparent;
}

.skill-editor-content .rating-control:focus-within {
  border-color: var(--brand\/neutral\/850);
  box-shadow: none;
}

.skill-editor-content .rating-active-bg {
  border: 1px solid currentColor;
}

.skill-editor-content .rating-badge {
  opacity: 0;
  min-width: 26px;
  transition: opacity 180ms ease;
}

.skill-editor-content .rating-badge[data-has-value="true"] {
  opacity: 1;
}

.skill-editor-content .rating-control[data-has-value="false"] .rating-active-bg {
  opacity: 0;
}

.skill-editor-content .rating-field[data-tone="previous-year"] .rating-option.is-selected {
  --rating-option-color: #1f7a4d;
}

.skill-editor-content .rating-field[data-tone="previous-year"] .rating-active-bg {
  color: #7fd7a2;
  background: #7fd7a2;
}

.skill-editor-content .rating-field[data-tone="sapphire"] .rating-active-bg {
  color: var(--brand\/accent\/sapphire\/300);
  background: var(--brand\/accent\/sapphire\/300);
}

.skill-editor-content .rating-field[data-tone="cherry"] .rating-active-bg {
  color: var(--brand\/accent\/cherry\/300);
  background: var(--brand\/accent\/cherry\/300);
}

.skill-editor-content .rating-control .rating-option.is-selected.is-disabled,
.skill-editor-content .rating-control .rating-option.is-selected.is-disabled:hover {
  cursor: default;
  opacity: 1;
}

.skill-editor-content .rating-control .rating-option.is-selected.is-disabled::after {
  color: var(--rating-option-color);
}

.skill-editor-content .rating-help {
  color: var(--brand\/neutral\/500);
  min-height: 43.2px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.skill-editor-content .rating-help[data-has-value="true"] {
  opacity: 1;
}

.skill-editor-content .note-field {
  margin-top: var(--space-4);
}

.skill-editor-content .note-field textarea {
  min-height: 142px;
  border: 1px solid var(--brand\/neutral\/850);
  border-radius: 0;
  background: transparent;
  color: var(--brand\/neutral\/200);
}

.skill-editor-content .note-field textarea:focus,
.skill-editor-content .note-field textarea:focus-visible {
  border-color: var(--brand\/neutral\/700);
  box-shadow: 0 0 0 1px var(--brand\/neutral\/700);
}

.skill-editor-content .note-field textarea::placeholder {
  color: var(--brand\/neutral\/600);
}

.skill-editor-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: var(--space-16);
}

.skill-editor-done {
  border-color: var(--brand\/accent\/sapphire\/400);
  background: var(--brand\/accent\/sapphire\/400);
}

@media (max-width: 920px) {
  .skillwheel-stage {
    align-content: center;
    padding-right: var(--space-24);
    padding-left: var(--space-24);
  }

  .skillwheel-legend {
    position: static;
    justify-self: start;
    flex-direction: row;
    margin-bottom: var(--space-24);
  }

  .skillwheel-graphic {
    width: min(720px, calc(100vw - 48px));
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .skillwheel-stage {
    min-height: calc(100vh - 93px);
    padding: var(--space-24) var(--space-16) var(--space-32);
  }

  .skillwheel-legend {
    flex-direction: column;
    gap: var(--space-12);
    font-size: 11px;
  }

  .skillwheel-legend-dot {
    width: 18px;
    height: 18px;
  }

  .skillwheel-graphic {
    width: calc(100vw - 32px);
  }

  .skillwheel-label {
    font-size: 10.5px;
  }

  .skill-editor-drawer {
    width: 100%;
  }

  .skill-editor-content {
    padding: var(--space-24) var(--space-16);
  }

  .skill-editor-title {
    font-size: 36px;
    line-height: 36px;
  }
}
