/* 퍼센트 계산기만 쓰는 모양. 공통 모양은 tools.css. 색은 공통 변수(어두운 화면 자동). */
.pc-dp .chip {
  min-width: 0;
}
.pc-dp .tl-label {
  margin-right: 2px;
}
.pc-no {
  display: inline-grid;
  place-items: center;
  width: 1.6em;
  height: 1.6em;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.85em;
  font-weight: 800;
  vertical-align: 1px;
}
.pc-sub-h {
  display: block;
  margin: 0 0 8px;
}
/* [A] 의 [B] % 처럼 문장 모양으로 놓는 칸 */
.pc-eq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.pc-op {
  min-width: 1.4em;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}
.pc-op-empty {
  min-width: 0;
}
.pc-out {
  position: relative;
  margin-top: 12px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.pc-res {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  min-height: 2.2rem;
  padding-right: 92px; /* 복사 단추 자리 */
}
.pc-res b {
  font-size: clamp(1.5rem, 6.4vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.pc-res b.up {
  color: var(--go);
}
.pc-res b.down {
  color: var(--wait);
}
.pc-res b.muted {
  color: var(--muted);
  font-weight: 700;
}
.pc-pair {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}
.pc-pair > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.pc-f {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}
.pc-f.warn {
  color: var(--wait);
  font-weight: 700;
}
.pc-s {
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.pc-s:empty {
  display: none;
}
.pc-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  min-width: 0;
  padding: 3px 12px;
  font-size: 0.82rem;
  touch-action: manipulation;
}
.pc-copy:disabled {
  opacity: 0.45;
  cursor: default;
}
.pc-hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 18px 0 14px;
}
.pc-card .tl-help b {
  color: var(--ink);
}
@media (max-width: 420px) {
  .pc-eq {
    gap: 6px;
  }
  .pc-op {
    min-width: 1em;
    font-size: 0.92rem;
  }
  .pc-out {
    padding: 12px 12px 10px;
  }
  .pc-res {
    padding-right: 0;
    padding-top: 30px;
  }
  .pc-copy {
    top: 8px;
    right: 8px;
  }
  .pc-dp .chip {
    padding: 4px 10px;
  }
}
/* 할인 칸: 이름이 두 줄로 접혀도 입력칸 아래 끝을 맞춘다 */
.pc-card .tl-row.c3 {
  align-items: end;
}
