/* 시간 계산기만 쓰는 모양. 공통 모양은 tools.css. 색은 공통 변수(어두운 화면 자동). */
.tc-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;
}
.tc-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.tc-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tc-seg .chip {
  min-width: 0;
  min-height: 50px;
  padding: 4px 8px;
  border-radius: 14px;
  touch-action: manipulation;
  white-space: nowrap;
}
.tc-gap {
  margin-top: 10px;
}
.tc-break {
  margin-top: 10px;
}
.tc-break .tl-field {
  max-width: 260px;
}
.tc-break-chips {
  margin-top: 8px;
}
.tc-card .tl-inline .chip {
  min-width: 0;
}
.tc-card input[type='time'].tl-in {
  min-height: 50px;
  line-height: 1.2;
}
.tc-lines {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
  font-weight: 600;
}
.tc-count {
  margin: 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tc-out {
  position: relative;
  margin-top: 12px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: var(--surface-2);
}
.tc-res {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 22px;
  min-height: 2.2rem;
  padding-right: 92px; /* 복사 단추 자리 */
}
.tc-res b {
  font-size: clamp(1.45rem, 6.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tc-res > b:first-child {
  font-size: clamp(2rem, 9vw, 2.6rem);
}
.tc-res b.muted {
  color: var(--muted);
  font-weight: 700;
  font-size: clamp(1.45rem, 6.2vw, 1.9rem);
}
.tc-res b.soft {
  color: var(--muted);
  font-size: clamp(1.15rem, 4.8vw, 1.4rem);
}
.tc-tag {
  align-self: center;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  white-space: nowrap;
}
.tc-pair {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.25;
}
.tc-pair > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.tc-f {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}
.tc-f.warn,
.tc-s.warn {
  color: var(--wait);
  font-weight: 700;
}
.tc-s {
  margin: 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
}
.tc-s:empty {
  display: none;
}
.tc-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  min-width: 0;
  padding: 3px 12px;
  font-size: 0.82rem;
  touch-action: manipulation;
}
.tc-copy:disabled {
  opacity: 0.45;
  cursor: default;
}
.tc-card .tl-help b {
  color: var(--ink);
}

.tc-parsed {
  margin-top: 10px;
}
.tc-parsed li {
  padding: 7px 12px;
  font-size: 0.88rem;
}
.tc-parsed li > span:first-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-parsed li > b {
  flex: none;
}
.tc-parsed li.bad {
  outline: 2px solid var(--wait);
  outline-offset: -2px;
}
.tc-parsed li.bad > b {
  color: var(--wait);
  flex: 0 1 auto;
  font-size: 0.84rem;
}
.tc-conv b {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.tc-d-hms {
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 560px) {
  .tc-parsed li > span:first-child {
    max-width: 100%;
  }
}
@media (max-width: 420px) {
  .tc-out {
    padding: 12px 12px 10px;
  }
  .tc-res {
    padding-right: 0;
    padding-top: 30px;
  }
  .tc-copy {
    top: 8px;
    right: 8px;
  }
  .tc-add {
    grid-template-columns: 1fr;
  }
  .tc-break .tl-field {
    max-width: none;
  }
}
