.draft-page,
body {
  background: #0f172a;
  color: #f8fafc;
}

.draft-hero {
  padding: 1.5rem;
}

.draft-hero h2 {
  margin: 0 0 .5rem;
  font-weight: 900;
  color: #fff;
}

.draft-hero p {
  margin: 0;
  color: #cbd5e1;
}

.metric-card-saving {
  background: linear-gradient(180deg, rgba(14, 165, 233, .18), rgba(15, 23, 42, .92));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .2), 0 16px 36px rgba(14, 165, 233, .12);
}

.metric-card-saving .metric-value {
  font-size: clamp(2rem, 4vw, 2.65rem);
}

.draft-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.draft-side {
  position: sticky;
  top: 84px;
}

.side-title {
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.side-title-with-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.side-title-with-help span {
  min-width: 0;
}

.draft-bars {
  display: grid;
  gap: 1rem;
}

.draft-bars .progress {
  height: 12px;
  background: #0f172a;
  border-radius: 99px;
}

.draft-note {
  border-left: 4px solid #0dcaf0;
  background: #0f172a;
  border-radius: 10px;
  color: #cbd5e1;
  padding: .85rem;
}

.draft-field-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-width: 0;
}

.draft-field-label .form-label {
  margin-bottom: 0;
}

.draft-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(14, 165, 233, .65);
  border-radius: 50%;
  background: rgba(14, 165, 233, .16);
  color: #7dd3fc;
  font-size: .78rem;
  font-weight: 950;
  line-height: 1;
  padding: 0;
}

.draft-help-btn:hover,
.draft-help-btn:focus {
  background: #0ea5e9;
  color: #fff;
  outline: none;
}

.draft-viz-card {
  border: 1px solid #334155;
  border-radius: 18px;
  background: #0f172a;
  padding: 1rem;
}

.draft-viz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}

.draft-viz {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #334155;
  border-radius: 16px;
  background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.draft-wake {
  fill: url(#draftWindGradient);
  stroke: rgba(56, 189, 248, .32);
  stroke-width: 2;
  stroke-dasharray: 8 8;
}

.draft-rider {
  color: #f8fafc;
  opacity: .9;
  transition: opacity .2s ease, color .2s ease, transform .2s ease;
}

.draft-rider .wheel,
.draft-rider .bike-frame,
.draft-rider .arm-leg {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.draft-rider .wheel {
  stroke-width: 7;
}

.draft-rider .helmet {
  fill: currentColor;
}

.draft-rider .body-fill {
  fill: currentColor;
  stroke: none;
}

.draft-rider text {
  fill: currentColor;
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
}

.draft-rider use {
  transform: none;
  transform-box: fill-box;
  transform-origin: center;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.draft-rider.is-leader {
  color: #f43f5e;
  opacity: 1;
}

.draft-rider.is-selected {
  color: #4ade80;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(74, 222, 128, .45));
}

.draft-rider.is-pack-selected {
  color: #facc15;
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, .42));
}

.draft-wheel-watts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .85rem;
}

.draft-wheel-watt {
  border: 1px solid #334155;
  border-radius: 14px;
  background: #111827;
  padding: .6rem .45rem;
  text-align: center;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.draft-wheel-watt span {
  display: block;
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1.15;
  text-transform: uppercase;
}

.draft-wheel-watt strong {
  display: block;
  color: #f8fafc;
  font-size: 1.05rem;
  line-height: 1.15;
  margin-top: .25rem;
}

.draft-wheel-watt.is-active {
  border-color: #4ade80;
  background: rgba(34, 197, 94, .13);
  transform: translateY(-1px);
}

.draft-wheel-watt.is-active strong {
  color: #4ade80;
}

#draftInsight {
  color: #e2e8f0;
  font-size: 1.05rem;
}

.draft-help-modal .modal-content {
  border: 1px solid #334155;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.draft-help-modal .modal-header {
  border-bottom: 1px solid #334155;
}

.draft-help-modal .modal-title {
  color: #fff;
  font-weight: 900;
}

.draft-help-modal .modal-body {
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.55;
}

.draft-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.draft-help-grid > div {
  border: 1px solid #334155;
  border-radius: 16px;
  background: #111827;
  padding: 1rem;
}

.draft-help-grid h3 {
  color: #0dcaf0;
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 .45rem;
}

.draft-help-grid p {
  color: #cbd5e1;
  margin: 0;
}

.draft-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.draft-source-grid > div {
  border: 1px solid #334155;
  border-radius: 16px;
  background: #111827;
  padding: 1rem;
}

.draft-source-grid h3 {
  color: #4ade80;
  font-size: 1rem;
  font-weight: 850;
  margin: 0 0 .45rem;
}

.draft-source-grid p {
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 991.98px) {
  .draft-hero,
  .draft-workspace {
    grid-template-columns: 1fr;
  }

  .draft-side {
    position: static;
  }

  .draft-help-grid,
  .draft-source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .draft-viz-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .draft-wheel-watts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .draft-help-grid,
  .draft-source-grid {
    grid-template-columns: 1fr;
  }

  .draft-wheel-watts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
