/* 생일 궁합 (/birthday-match/) 전용 */
.bm form {
  margin: 0;
}
.bm-people-in {
  display: grid;
  gap: 10px;
  align-items: center;
}
@media (min-width: 680px) {
  .bm-people-in {
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
  }
}
.bm-person {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  margin: 0;
  padding: 12px 12px 14px;
  min-width: 0;
}
.bm-person legend {
  font-weight: 800;
  padding: 0 6px;
}
.bm-heart {
  text-align: center;
  font-size: 1.6rem;
  line-height: 1;
}
.bm-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bm-field > span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.bm-name {
  margin-bottom: 10px;
}
.bm-date {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 6px;
}
.bm-in {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  touch-action: manipulation;
}
select.bm-in {
  padding-right: 22px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 8px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.bm-in:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.bm-check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}
.bm-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--brand);
}
.bm-check small {
  color: var(--muted);
  font-weight: 500;
}
.bm-err {
  color: var(--wait);
  font-weight: 700;
  margin: 12px 0 0;
}
.bm-go {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.bm-go .btn {
  min-width: 200px;
  font-size: 1.05rem;
  touch-action: manipulation;
}
.bm-safe {
  display: flex;
  gap: 6px;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
  text-align: center;
}

/* 결과 */
.bm-out {
  margin-top: 16px;
}
.bm-out .result-label {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  outline: none;
  overflow-wrap: anywhere;
}
.bm-line {
  font-weight: 700;
  margin: 8px auto 0;
  max-width: 30em;
}
.bm-people {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}
.bm-who {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 8px;
  min-width: 0;
}
.bm-who p {
  margin: 0;
}
.bm-who-name {
  font-weight: 800;
  overflow-wrap: anywhere;
}
.bm-who-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px !important;
  font-weight: 700;
}
.bm-who-sub {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px !important;
}
.bm-x {
  font-weight: 800;
  color: var(--muted);
}
.bm-combo {
  text-align: left;
  margin: 18px 0 0;
  line-height: 1.7;
}
.bm-formula {
  text-align: left;
  margin: 6px 0 0;
}
.bm-note {
  text-align: left;
  background: var(--brand-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.9rem;
  margin: 12px 0 0;
}
.bm-rels {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  text-align: left;
}
@media (min-width: 680px) {
  .bm-rels {
    grid-template-columns: 1fr 1fr;
  }
}
.bm-rel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}
.bm-rel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.bm-rel-head h3 {
  font-size: 1rem;
  margin: 0;
}
.bm-rel-score {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.bm-rel-score small {
  font-size: 0.55em;
  color: var(--muted);
  margin-left: 2px;
}
.bm-rel-pair {
  font-weight: 700;
  margin: 4px 0 0;
}
.bm-rel-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  margin: 8px 0 0;
}
.bm-mark {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 10px;
  background: var(--surface-2);
}
.bm-mark-good {
  color: var(--go);
}
.bm-mark-care {
  color: var(--early);
}
.bm-rel-text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.7;
  margin: 8px 0 0;
}
.bm-rel-more {
  margin: 8px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.bm-h {
  font-size: 1.05rem;
  margin: 24px 0 0;
}
.bm-nums {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
@media (min-width: 680px) {
  .bm-nums {
    grid-template-columns: repeat(4, 1fr);
  }
}
.bm-nums li {
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.bm-nums b {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.bm-nums span {
  font-size: 0.85rem;
  font-weight: 700;
}
.bm-nums em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.bm-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
}
.bm-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.bm-list li:last-child {
  border-bottom: 0;
}
.bm-list span {
  color: var(--muted);
  flex: none;
}
.bm-list b {
  text-align: right;
  overflow-wrap: anywhere;
}
