.su-unit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.su-unit-toggle {
  display: inline-flex;
  border: 2px solid rgba(44, 44, 44, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background: #fffcf6;
}

.su-unit-btn {
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.su-unit-btn.is-active {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.su-prompt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.su-prompt-bar h2 {
  font-family: 'Caveat', cursive;
  font-size: 1.8rem;
  line-height: 1.15;
}

.su-ref-tag {
  font-size: 0.96rem;
  color: var(--muted);
}

.su-canvas-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 270px;
  max-height: 410px;
  border: 2px solid rgba(44, 44, 44, 0.35);
  border-radius: 8px;
  overflow: hidden;
  background: #faf6ee;
  position: relative;
}

#su-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: ns-resize;
}

.su-controls {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border: 1.5px dashed rgba(44, 44, 44, 0.25);
  border-radius: 8px;
  background: #fffdf8;
}

.su-readout-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.su-guess-big {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--red);
}

.su-nudge-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.su-nudge-btn {
  min-height: 44px;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  border: 1.5px solid rgba(44, 44, 44, 0.3);
  background: #fffcf6;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.su-nudge-btn:hover {
  border-color: var(--ink);
  background: rgba(39, 174, 96, 0.12);
}

.su-slider {
  width: 100%;
  accent-color: var(--red);
  cursor: pointer;
}

.su-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.su-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.su-metric-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(44, 44, 44, 0.16);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
}

.su-metric-box span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.su-metric-box strong {
  font-size: 1.05rem;
  color: var(--ink);
}
