.stool-picker {
  /* 2칸 입력 폼 안에서도 한 칸에 끼지 않고 폼 전체 너비를 쓴다. */
  grid-column: 1 / -1;
  min-width: 0;
  margin: 2px 0 18px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.stool-picker legend {
  padding: 0 5px;
  color: #172026;
  font-size: 16px;
  font-weight: 850;
}
.stool-required { margin-left: 5px; color: #1d4ed8; font-size: 12px; white-space: nowrap; }
.stool-picker-legacy { margin: 4px 0 8px; padding: 8px 10px; border-radius: 8px; background: #fff7e7; color: #8a5a15; font-size: 13px; }
.stool-picker-intro, .stool-picker-source {
  margin: 4px 0 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}
.stool-picker-source { margin: 14px 0 0; font-size: 12px; }
.stool-picker-error { margin: 11px 0 0; color: #b91c1c; font-size: 13px; font-weight: 800; }
.stool-picker-missing { border-color: #dc2626; }
.stool-picker-source a { color: #1d4ed8; text-decoration: underline; }
/* 모든 카드 높이를 같게 맞춘다(가장 긴 설명 기준). */
.stool-choice-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 10px; }
.stool-picker .stool-choice { position: relative; display: block; min-width: 0; height: 100%; margin: 0; cursor: pointer; }
.stool-picker .stool-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
}
.stool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 190px;
  padding: 13px 10px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #172026;
  text-align: center;
  box-sizing: border-box;
}
.stool-choice:hover .stool-card { border-color: #93c5fd; }
.stool-choice input:focus-visible + .stool-card { outline: 3px solid #2563eb; outline-offset: 2px; }
.stool-choice input:checked + .stool-card { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 2px #bfdbfe; }
.stool-choice input:checked + .stool-card::after { content: "✓"; position: absolute; top: 8px; right: 9px; color: #1d4ed8; font-weight: 900; }
.stool-choice input:disabled + .stool-card { opacity: .5; cursor: not-allowed; }
.stool-score-badge { flex: none; align-self: flex-start; padding: 2px 7px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: 11px; font-weight: 850; }
.stool-shape { width: 100%; max-width: 116px; height: 73px; margin: 3px auto; fill: #986342; stroke: #75492f; stroke-width: 2; stroke-linejoin: round; }
.stool-shape .stool-ground { fill: none; stroke: #d0d5dd; stroke-width: 2; }
.stool-shape .stool-watery { fill: #c49a6c; stroke: #9a7148; opacity: .85; }
.stool-shape .stool-mark { fill: none; stroke: #75492f; stroke-width: 3; stroke-linecap: round; }
.stool-shape .stool-not-seen { fill: none; stroke: #64748b; stroke-width: 4; stroke-linecap: round; }
.stool-card strong { font-size: 13px; line-height: 1.35; word-break: keep-all; }
.stool-choice-detail { margin-top: 5px; color: #475569; font-size: 12px; font-weight: 500; line-height: 1.4; word-break: keep-all; }
.stool-card-head { display: flex; align-items: center; gap: 4px; align-self: flex-start; max-width: calc(100% - 14px); }
.stool-choice-hint { padding: 2px 6px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 10px; font-weight: 800; white-space: nowrap; }
@media (max-width: 850px) { .stool-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stool-picker { padding: 12px; } .stool-choice-grid { gap: 7px; } .stool-card { min-height: 183px; padding: 10px 7px; } }
