/* 단위 변환기만 쓰는 모양. 공통 모양은 tools.css. 색은 공통 변수(어두운 화면 자동). */
.uc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-tabs .chip {
  min-width: 0;
  min-height: 40px;
  padding: 5px 14px;
  touch-action: manipulation;
}
/* [값] [이 단위에서] ⇄ [이 단위로] */
.uc-eq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}
.uc-val .tl-in {
  font-size: 1.2rem;
}
.uc-swap {
  min-width: 46px;
  min-height: 50px;
  padding: 0 10px;
  font-size: 1.15rem;
  touch-action: manipulation;
}
.uc-out {
  position: relative;
  margin-top: 14px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.uc-cap {
  margin: 0;
  padding-right: 92px; /* 복사 단추 자리 */
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.uc-big {
  margin: 2px 0 0;
  min-height: 2.4rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.uc-big b {
  font-size: clamp(1.8rem, 8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.uc-big small {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}
.uc-f {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.uc-f.warn {
  color: var(--wait);
  font-weight: 700;
}
.uc-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  min-width: 0;
  padding: 3px 12px;
  font-size: 0.82rem;
  touch-action: manipulation;
}
.uc-copy:disabled,
.uc-mini:disabled {
  opacity: 0.45;
  cursor: default;
}
.uc-all-h {
  display: block;
  margin: 18px 2px 0;
}
.uc-list {
  margin-top: 8px;
}
.uc-list li {
  align-items: center;
}
.uc-list li.uc-from {
  outline: 1px dashed var(--line);
  outline-offset: -1px;
}
.uc-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.uc-row b {
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.uc-mini {
  min-width: 0;
  min-height: 30px;
  padding: 2px 10px;
  font-size: 0.78rem;
  touch-action: manipulation;
}
#uc-note a {
  color: var(--brand);
  font-weight: 700;
}
.uc-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-quick .chip {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 4px 12px;
  font-size: 0.86rem;
  text-decoration: none;
  touch-action: manipulation;
}
.uc-quick .chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.uc-tables .tl-card + .tl-card {
  margin-top: 14px;
}
.uc-tables .tl-h {
  margin-bottom: 6px;
}
.uc-tables td:nth-child(3) {
  color: var(--muted);
}
.tl-help code {
  font-size: 0.85em;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .uc-eq {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px;
  }
  .uc-val {
    grid-column: 1 / -1;
  }
  .uc-swap {
    min-width: 40px;
    padding: 0 8px;
  }
  .uc-eq select.tl-in {
    padding-left: 10px;
    padding-right: 24px;
    background-position: calc(100% - 14px) 52%, calc(100% - 9px) 52%;
    font-size: 1rem;
  }
  .uc-tabs .chip {
    padding: 4px 11px;
    font-size: 0.88rem;
  }
  /* tools.css 는 좁은 화면에서 줄을 세로로 접는다. 여기서는 이름 · 값 · 복사를 한 줄에 두고, 넘치면 값만 다음 줄로. */
  .uc-list li {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
  }
  .uc-list li > .uc-row {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .uc-out {
    padding: 12px 12px 10px;
  }
  .uc-cap {
    padding-right: 84px;
  }
  .uc-copy {
    top: 8px;
    right: 8px;
  }
}
