.fo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.fo-stage {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--plum);
}

.fo .gv-wheel-wrap {
  margin: 14px auto 4px;
  max-width: 520px;
}

.fo-stage-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.fo-spin {
  min-width: 200px;
  height: 52px;
  font-size: 18px;
}

.fo-spin:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fo-result {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--volt);
  border-radius: var(--radius-l);
  background: rgba(214, 255, 58, 0.06);
  text-align: center;
}

.fo-result[hidden] {
  display: none;
}

.fo-result.is-fresh {
  animation: fo-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}

@keyframes fo-pop {
  from {
    transform: scale(0.96);
    opacity: 0;
  }
}

.fo-result-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--volt);
}

.fo-result strong {
  display: block;
  margin-top: 4px;
  font-stretch: 112%;
  font-weight: 900;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.05;
}

.fo-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fo-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--plum);
}

.fo-panel h2 {
  margin: 0;
  font-stretch: 112%;
  font-weight: 800;
  font-size: 18px;
}

.fo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fo-help {
  margin: 6px 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.fo-options,
.fo-history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fo-options li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 40px 30px;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.fo-options input,
.fo-options select {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  font-size: 14px;
}

.fo-pct {
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fo-x {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
}

.fo-x:hover {
  background: var(--plum-2);
  color: var(--text);
}

.fo-x:disabled {
  opacity: 0.3;
  cursor: default;
}

.fo-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.fo-add input {
  flex: 1;
  min-width: 0;
  height: 38px;
}

.fo-history {
  margin-top: 8px;
}

.fo-history li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.fo-history time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fo-history .fo-history-empty {
  display: block;
  color: var(--muted);
}

.fo-grid > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .fo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .fo-stage {
    padding: 14px;
  }
}
