.stw-root {
  --stw-text: #1d2433;
  --stw-muted: #5f6b84;
  --stw-surface: #ffffff;
  --stw-surface-2: #f5f7fb;
  --stw-border: #d9dfeb;
  --stw-shadow: 0 18px 45px rgba(27, 39, 70, 0.12);
  --stw-radius: 22px;
  color: var(--stw-text);
  margin: 24px 0;
}

.stw-root * {
  box-sizing: border-box;
}

.stw-card {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 24px;
  background: var(--stw-surface);
  border: 1px solid var(--stw-border);
  border-radius: var(--stw-radius);
  box-shadow: var(--stw-shadow);
}

.stw-wheel-column,
.stw-custom-column {
  min-width: 0;
}

.stw-heading-wrap {
  margin-bottom: 16px;
}

.stw-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  line-height: 1.2;
}

.stw-status {
  margin: 0;
  color: var(--stw-muted);
}

.stw-wheel-stage {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.stw-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  filter: drop-shadow(0 12px 28px rgba(29, 36, 51, 0.16));
  will-change: transform;
}

.stw-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 28px solid #1d2433;
}

.stw-controls,
.stw-custom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stw-result {
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.stw-result.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stw-custom-column {
  align-self: stretch;
  padding: 18px;
  border-radius: 18px;
  background: var(--stw-surface-2);
  border: 1px solid var(--stw-border);
}

.stw-custom-label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
}

.stw-entry-input {
  width: 100%;
  min-height: 190px;
  padding: 14px 16px;
  border: 1px solid var(--stw-border);
  border-radius: 14px;
  background: #ffffff;
  resize: vertical;
  font: inherit;
}

.stw-help {
  margin: 10px 0 0;
  color: var(--stw-muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .stw-card {
    grid-template-columns: 1fr;
  }
}
