/* ==========================================================================
   후유장해 보험금 계산기 (https://huyujanghae.pages.dev)
   base.css 의 색·글꼴·머리글·바닥글·버튼 위에 이 페이지에 필요한 것만 더합니다.
   몸 그림은 직접 그린 SVG 입니다.
   ========================================================================== */

/* ---------- 머리말 ---------- */
.dc-hero {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(180deg, var(--mist), var(--white));
}
.dc-kicker {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}
.dc-h1 {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy-900);
}
.dc-h1 .hl { background: linear-gradient(transparent 62%, rgba(217, 194, 154, 0.75) 62%); padding-inline: 0.06em; }
.dc-lead { max-width: 40em; margin-top: 0.9rem; font-size: var(--step-1); line-height: 1.75; color: var(--slate); }
.dc-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.dc-facts li {
  display: grid;
  gap: 2px;
  min-width: 8.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--white);
}
.dc-facts strong { font-size: 1.05rem; color: var(--navy-900); }
.dc-facts span { font-size: 0.875rem; color: var(--slate); }

/* ---------- 계산기 틀 ---------- */
.dc-calc { padding-block: clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 5vw, 4rem); }
.dc-calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
.dc-steps { display: grid; gap: 18px; min-width: 0; }
.dc-step {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.dc-step-h {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
  font-weight: 700;
  color: var(--navy-900);
}
.dc-num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-soft);
  font-size: 1rem;
  font-weight: 700;
  flex: none;
}
.dc-opt { font-size: 0.95rem; font-weight: 500; color: var(--slate); }
.dc-help { margin-top: 0.45rem; font-size: var(--step--1); line-height: 1.65; color: var(--slate); }
.dc-help strong { color: var(--navy-900); }

/* 입력 */
.dc-amount-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.dc-input {
  width: 100%;
  max-width: 15rem;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
.dc-input:focus { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(13, 27, 46, 0.12); }
.dc-input-lg { font-size: 1.5rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dc-unit { font-size: 1.125rem; font-weight: 600; color: var(--navy-900); }
.dc-read { margin-top: 0.35rem; font-size: 0.95rem; font-weight: 600; color: var(--gold-ink); }

.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.9rem; }
.dc-chip {
  min-height: 44px;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  touch-action: manipulation;
}
.dc-chip:hover { border-color: var(--navy-900); }
.dc-chip[aria-pressed="true"], .dc-chip[aria-checked="true"] { border-color: var(--navy-900); background: var(--navy-900); color: var(--white); }

/* ---------- 몸 그림 · 부위 ---------- */
.dc-part-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 1rem; align-items: start; }
.dc-body { position: relative; margin: 0; }
.dc-body-svg { display: block; width: 100%; height: auto; }
.dc-silhouette path, .dc-silhouette circle { fill: #E3E9F0; stroke: #9AABBE; stroke-width: 1.4; stroke-linejoin: round; }
.dc-glow circle { fill: rgba(176, 141, 87, 0.38); stroke: var(--gold); stroke-width: 2; }
.dc-pins { position: absolute; inset: 0 0 auto 0; aspect-ratio: 200 / 410; }
.dc-pin {
  position: absolute;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  font: inherit;
}
.dc-pin-dot {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--navy-900);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.dc-pin-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--navy-900);
}
.dc-pin-r .dc-pin-label { left: calc(100% - 2px); }
.dc-pin-l .dc-pin-label { right: calc(100% - 2px); }
.dc-pin:hover .dc-pin-label, .dc-pin:focus-visible .dc-pin-label { border-color: var(--navy-900); }
.dc-pin.is-on .dc-pin-dot { background: var(--gold); border-color: var(--gold-ink); }
.dc-pin.is-on .dc-pin-label { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.dc-body-cap { margin-top: 0.5rem; font-size: 0.8125rem; line-height: 1.55; color: var(--slate); text-align: center; }
.dc-body-cap strong { color: var(--navy-900); }

.dc-part-list { display: grid; gap: 14px; min-width: 0; }
.dc-part-group-h { font-size: 0.875rem; font-weight: 700; color: var(--gold-ink); }
.dc-part-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 0.4rem; }
.dc-part {
  display: grid;
  gap: 2px;
  min-height: 56px;
  padding: 0.6rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dc-part strong { font-size: 1rem; color: var(--navy-900); }
.dc-part span { font-size: 0.78rem; line-height: 1.4; color: var(--slate); }
.dc-part:hover { border-color: var(--navy-900); }
.dc-part[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); }
.dc-part[aria-pressed="true"] strong { color: var(--white); }
.dc-part[aria-pressed="true"] span { color: var(--gold-soft); }
.dc-part-group.is-flash .dc-part { animation: dc-flash 1.2s ease 1; }
@keyframes dc-flash { 30% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.3); } }

/* ---------- 장해 상태 ---------- */
.dc-tabs { display: flex; gap: 6px; margin-top: 0.9rem; border-bottom: 1px solid var(--line); }
.dc-tab {
  min-height: 46px;
  padding: 0 1rem;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
}
.dc-tab[aria-selected="true"] { border-bottom-color: var(--navy-900); color: var(--navy-900); }
.dc-pane { padding-top: 1rem; }
.dc-empty { padding: 1rem; border: 1px dashed var(--line); border-radius: 8px; text-align: center; color: var(--slate); }

.dc-side { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-bottom: 0.9rem; }
.dc-side-label { font-weight: 700; color: var(--navy-900); }
.dc-seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--navy-900); border-radius: 8px; overflow: hidden; }
.dc-seg-btn {
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--white);
  font: inherit;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}
.dc-seg-btn:first-child { border-left: 0; }
.dc-seg-btn[aria-checked="true"] { background: var(--navy-900); color: var(--white); }
.dc-seg-sm .dc-seg-btn { min-height: 40px; padding: 0 0.8rem; font-size: 0.9rem; }

.dc-states { display: grid; gap: 8px; }
.dc-state { border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); }
.dc-state.is-on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16); }
.dc-state-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 54px;
  padding: 0.6rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dc-radio { width: 20px; height: 20px; border: 2px solid #9AABBE; border-radius: 50%; position: relative; }
.dc-state.is-on .dc-radio { border-color: var(--gold-ink); }
.dc-state.is-on .dc-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold-ink); }
.dc-state-t { font-weight: 600; line-height: 1.45; color: var(--ink); }
.dc-state-r {
  min-width: 3.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--mist);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--navy-900);
}
.dc-state-r small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--slate); }
.dc-state.is-on .dc-state-r { background: var(--navy-900); color: var(--white); }
.dc-state.is-on .dc-state-r small { color: var(--gold-soft); }
.dc-crit { padding: 0 0.9rem 0.6rem 3.2rem; }
.dc-crit summary { width: fit-content; font-size: 0.85rem; font-weight: 600; color: var(--steel); cursor: pointer; }
.dc-crit p { margin-top: 0.35rem; font-size: 0.9rem; line-height: 1.65; color: var(--slate); }
.dc-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding: 0.75rem 0.9rem 0.9rem 3.2rem; border-top: 1px solid var(--line-soft); }
.dc-extra > span { font-weight: 700; font-size: 0.95rem; color: var(--navy-900); }
.dc-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--navy-900); border-radius: 8px; overflow: hidden; }
.dc-stepper button { width: 44px; height: 44px; border: 0; background: var(--white); font-size: 1.4rem; font-weight: 700; color: var(--navy-900); cursor: pointer; }
.dc-stepper output { min-width: 3.2rem; text-align: center; font-weight: 800; }
.dc-extra-adls { display: block; padding-left: 0.9rem; }

.dc-adls-h { font-weight: 800; color: var(--navy-900); }
.dc-adls-list { display: grid; gap: 12px; margin-top: 0.8rem; }
.dc-adls-g { margin: 0; padding: 0; border: 0; }
.dc-adls-g legend { padding: 0; margin-bottom: 0.4rem; font-weight: 700; color: var(--gold-ink); }
.dc-adls-opt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.dc-adls-opt b { font-variant-numeric: tabular-nums; color: var(--navy-900); }
.dc-adls-opt[aria-pressed="true"] { border-color: var(--navy-900); background: #EEF2F7; }
.dc-adls-sum { margin-top: 0.9rem; font-weight: 700; color: var(--navy-900); }
.dc-adls-sum strong { font-size: 1.25rem; color: var(--gold-ink); }

.dc-part-notes { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 8px; background: var(--mist); }
.dc-notes-h { font-weight: 700; color: var(--navy-900); }
.dc-part-notes ul { margin-top: 0.4rem; display: grid; gap: 0.35rem; }
.dc-part-notes li { position: relative; padding-left: 1rem; font-size: 0.9rem; line-height: 1.6; color: var(--slate); }
.dc-part-notes li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- 결과 ---------- */
.dc-result { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 12px; }
.dc-result-card {
  position: relative;
  padding: 1.5rem 1.4rem 1.3rem;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--white);
}
.dc-result-label { font-size: 0.95rem; font-weight: 600; color: var(--gold-soft); }
.dc-result-amount {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  word-break: keep-all;
}
.dc-result-won { margin-top: 0.2rem; min-height: 1.4em; font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); font-variant-numeric: tabular-nums; }
.dc-result-rate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.dc-result-rate span { color: rgba(255, 255, 255, 0.75); }
.dc-result-rate strong { font-size: 1.6rem; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.dc-result-formula { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.dc-result-pick { margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-size: 0.9rem; line-height: 1.55; }
.dc-result-warn { margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 6px; background: rgba(217, 194, 154, 0.16); font-size: 0.88rem; line-height: 1.55; color: #F3E7CF; }
.dc-result-warn.is-stop { background: rgba(248, 113, 113, 0.18); color: #FECACA; }
.dc-result-actions { display: grid; gap: 8px; margin-top: 1.1rem; }
.dc-result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dc-btn-gold { width: 100%; background: var(--gold-soft); color: var(--navy-900); border-color: var(--gold-soft); }
.dc-btn-gold:hover { background: #E6D3B0; }
.dc-btn-ghost {
  min-height: 46px;
  padding: 0 0.6rem;
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--white);
  font-size: 0.92rem;
}
.dc-btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.dc-result .btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dc-toast {
  display: none;
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--navy-900);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.dc-toast.is-on { display: block; }
.dc-ask {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  color: var(--navy-900);
}
.dc-ask .icon { width: 1.6rem; height: 1.6rem; color: var(--gold-ink); }
.dc-ask span { display: grid; }
.dc-ask small { color: var(--slate); font-size: 0.85rem; }
.dc-ask:hover { border-color: var(--navy-900); }
.dc-ask.is-off { opacity: 0.55; }
.dc-ask.is-off:hover { border-color: var(--line); }

/* ---------- 담당자 정보 ---------- */
.dc-agent-btn {
  max-width: 14rem;
  border-color: var(--navy-900);
  background: var(--white);
  color: var(--navy-900);
}
.dc-agent-btn .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-agent-btn:hover { background: var(--navy-900); color: var(--white); }
.dc-agent-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
  align-items: start;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--mist);
}
.dc-agent-box .icon { margin-top: 0.2rem; color: var(--gold-ink); }
.dc-agent-line { font-size: 0.9rem; line-height: 1.55; color: var(--slate); }
.dc-agent-edit {
  grid-column: 2;
  justify-self: start;
  min-height: 40px;
  padding: 0 0.9rem;
  border: 1.5px solid var(--navy-900);
  border-radius: 6px;
  background: var(--white);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}
.dc-agent-edit:hover { background: var(--navy-900); color: var(--white); }

.dc-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 19, 31, 0.6);
  overflow-y: auto;
}
.dc-modal[hidden] { display: none; }
.dc-modal-card {
  width: min(460px, 100%);
  padding: 1.4rem 1.3rem 1.2rem;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 20px 50px rgba(8, 19, 31, 0.3);
}
.dc-modal-h { font-size: var(--step-2); font-weight: 800; color: var(--navy-900); }
.dc-field { display: grid; gap: 0.3rem; margin-top: 0.9rem; }
.dc-field > span { font-size: 0.9rem; font-weight: 700; color: var(--navy-900); }
.dc-field small { font-weight: 500; color: var(--slate); }
.dc-field .dc-input { max-width: none; min-height: 48px; font-size: 1.05rem; }
.dc-field .dc-input[aria-invalid="true"] { border-color: #B91C1C; }
.dc-field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 10px; }
.dc-modal-actions { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; margin-top: 1.2rem; }
.dc-btn-navy { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.dc-btn-navy:hover { background: var(--navy-800); }
.dc-btn-line { min-width: 0; padding: 0 0.5rem; background: var(--white); border-color: var(--line); color: var(--navy-900); }
.dc-btn-line:hover { border-color: var(--navy-900); }

/* ---------- 아래 구역들 ---------- */
.dc-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.dc-section-mist { background: var(--mist); }
.dc-h2 { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; color: var(--navy-900); letter-spacing: -0.01em; }
.dc-sub { margin-top: 0.5rem; max-width: 46em; line-height: 1.7; color: var(--slate); }
.dc-sub strong { color: var(--navy-900); }
.dc-tag { display: inline-block; vertical-align: middle; margin-left: 0.4rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--gold-soft); font-family: var(--sans); font-size: 0.8rem; font-weight: 700; color: var(--navy-900); }
.dc-none { margin-top: 1.25rem; padding: 1.1rem; border: 1px dashed var(--line); border-radius: 10px; background: var(--white); text-align: center; color: var(--slate); }

.dc-bars { display: grid; gap: 10px; margin-top: 1.25rem; max-width: 760px; }
.dc-bar { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 9rem; align-items: center; gap: 12px; }
.dc-bar-k { font-weight: 700; color: var(--navy-900); }
.dc-bar-k em { display: block; font-style: normal; font-size: 0.75rem; color: var(--gold-ink); }
.dc-bar-track { height: 14px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.dc-bar-fill { display: block; height: 100%; border-radius: 999px; background: #8FA3BA; transition: width 300ms var(--ease-out); }
.dc-bar.is-mine .dc-bar-fill { background: var(--gold); }
.dc-bar-v { font-weight: 800; text-align: right; color: var(--navy-900); font-variant-numeric: tabular-nums; }

.dc-cmp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 1.25rem; }
.dc-cmp-card { position: relative; padding: 1.1rem 1.1rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.dc-cmp-card.is-best { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.16); }
.dc-cmp-part { font-size: 0.82rem; font-weight: 700; color: var(--gold-ink); padding-right: 2rem; }
.dc-cmp-t { margin-top: 0.3rem; font-size: 1rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.dc-cmp-rate { margin-top: 0.7rem; font-size: 1.6rem; font-weight: 800; color: var(--navy-900); }
.dc-cmp-amt { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--gold-ink); }
.dc-cmp-note { margin-top: 0.3rem; font-size: 0.82rem; color: #B91C1C; }
.dc-x { position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mist); color: var(--slate); cursor: pointer; }
.dc-x:hover { background: var(--line); color: var(--navy-900); }
.dc-x-sm { position: static; width: 32px; height: 32px; }

.dc-sum-rules { display: grid; gap: 0.35rem; margin-top: 1rem; max-width: 52em; }
.dc-sum-rules li { position: relative; padding-left: 1rem; line-height: 1.65; color: var(--slate); }
.dc-sum-rules li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.dc-sum-rules strong { color: var(--navy-900); }
.dc-table-wrap { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.dc-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dc-table th, .dc-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: middle; }
.dc-table thead th { background: var(--navy-900); color: var(--white); font-size: 0.85rem; font-weight: 700; }
.dc-table tbody th { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.dc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-apply strong { display: block; font-size: 1.1rem; color: var(--navy-900); }
.dc-apply small { display: block; font-size: 0.75rem; color: var(--gold-ink); white-space: normal; }
.dc-sum-total { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.dc-sum-total > div { display: grid; gap: 2px; padding: 1rem 1.1rem; border-radius: 10px; background: var(--navy-900); color: var(--white); }
.dc-sum-total span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.dc-sum-total strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.dc-sum-total strong.gold { font-family: var(--serif); color: var(--gold-soft); }
.dc-sum-total small { font-size: 0.8rem; color: var(--gold-soft); }
.dc-sum-cap { margin-top: 0.6rem; font-size: 0.9rem; color: var(--gold-ink); font-weight: 600; }
.dc-sum-clear { margin-top: 0.9rem; border-color: var(--line); color: var(--slate); background: var(--white); }
.dc-sum-clear:hover { color: var(--navy-900); border-color: var(--navy-900); background: var(--white); }

/* 꼭 알아 둘 것 */
.dc-formula-box { margin-top: 1.25rem; padding: 1.2rem 1.3rem; border-radius: 10px; background: var(--navy-900); color: var(--white); max-width: 760px; }
.dc-formula-h { font-size: 0.85rem; font-weight: 700; color: var(--gold-soft); }
.dc-formula-main { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin-top: 0.5rem; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); font-weight: 800; }
.dc-formula-main b { color: rgba(255, 255, 255, 0.55); font-weight: 400; }
.dc-formula-main .gold { color: var(--gold-soft); }
.dc-formula-ex { margin-top: 0.4rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); }
.dc-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 1.25rem; }
.dc-rules > div { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.dc-rules dt { font-weight: 800; color: var(--navy-900); }
.dc-rules dd { margin: 0.3rem 0 0; font-size: 0.93rem; line-height: 1.65; color: var(--slate); }
.dc-caution { margin-top: 1.25rem; padding: 1rem 1.2rem; border: 1px solid #F1D9A8; border-radius: 10px; background: #FFFBEB; color: #713F12; }
.dc-caution ul { display: grid; gap: 0.3rem; margin-top: 0.5rem; }
.dc-caution li { position: relative; padding-left: 1rem; font-size: 0.93rem; line-height: 1.6; }
.dc-caution li::before { content: '·'; position: absolute; left: 0.2rem; font-weight: 800; }
.dc-source { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; font-size: 0.88rem; line-height: 1.6; color: var(--slate); }
.dc-source .icon { margin-top: 0.15rem; color: var(--gold-ink); }
.dc-source a { color: var(--steel); }

/* ---------- 휴대폰 아래 결과 줄 ---------- */
.dc-mbar { display: none; }

/* ---------- 큰 화면 ---------- */
.dc-big {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 4.5rem 1.25rem 2rem;
  background: var(--navy-950);
  color: var(--white);
  overflow-y: auto;
}
.dc-big[hidden] { display: none; }
.dc-big-close {
  position: absolute;
  top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 48px; padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit; font-weight: 700;
  cursor: pointer;
}
.dc-big-inner { width: min(900px, 100%); text-align: center; }
.dc-big-pick { font-size: clamp(1.1rem, 0.9rem + 1.2vw, 1.8rem); font-weight: 700; line-height: 1.5; color: var(--gold-soft); word-break: keep-all; }
.dc-big-label { margin-top: clamp(1.25rem, 3vh, 2.25rem); font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem); color: rgba(255, 255, 255, 0.7); }
.dc-big-rate { font-size: clamp(3rem, 2rem + 6vw, 6.5rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dc-big-amount { font-family: var(--serif); font-size: clamp(2.6rem, 1.6rem + 6vw, 6rem); font-weight: 700; line-height: 1.15; color: var(--gold-soft); word-break: keep-all; }
.dc-big-formula { margin-top: 1rem; font-size: clamp(1.05rem, 0.95rem + 0.8vw, 1.6rem); color: rgba(255, 255, 255, 0.85); }
.dc-big-note { margin-top: 1.5rem; font-size: 1rem; color: rgba(255, 255, 255, 0.6); }
body.dc-lock { overflow: hidden; }

/* ---------- PDF 용 종이 (화면 밖) ---------- */
.dc-sheet {
  position: fixed;
  left: -10000px; top: 0;
  width: 794px;
  padding: 56px 56px 48px;
  background: #FFFFFF;
  color: #111C2B;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}
.dc-sheet .dc-sheet-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 14px; border-bottom: 3px solid #0D1B2E; }
.dc-sheet .k { font-family: var(--serif); font-size: 28px; font-weight: 700; color: #0D1B2E; }
.dc-sheet .who { font-size: 13px; color: #56657A; }
.dc-sheet .dc-sheet-main { margin-top: 22px; }
.dc-sheet .pick { font-size: 18px; font-weight: 700; color: #0D1B2E; }
.dc-sheet .nums { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; margin-top: 14px; }
.dc-sheet .nums > div { padding: 14px 16px; border: 1px solid #D9E0E8; border-radius: 8px; }
.dc-sheet .nums span { display: block; font-size: 13px; color: #56657A; }
.dc-sheet .nums b { display: block; margin-top: 4px; font-size: 22px; color: #0D1B2E; }
.dc-sheet .nums .hl { background: #0D1B2E; border-color: #0D1B2E; }
.dc-sheet .nums .hl span { color: #D9C29A; }
.dc-sheet .nums .hl b { color: #FFFFFF; font-family: var(--serif); font-size: 26px; }
.dc-sheet .f { margin-top: 12px; font-size: 14px; color: #3E5F86; }
.dc-sheet .c { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: #F1F4F7; font-size: 13.5px; color: #3A4657; }
.dc-sheet h3 { margin-top: 24px; font-size: 16px; font-weight: 800; color: #0D1B2E; }
.dc-sheet table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13.5px; }
.dc-sheet th, .dc-sheet td { padding: 8px 10px; border: 1px solid #D9E0E8; text-align: left; }
.dc-sheet th { background: #F1F4F7; color: #0D1B2E; }
.dc-sheet tr.tot td { font-weight: 800; background: #FBF6EC; }
.dc-sheet .foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid #D9E0E8; font-size: 12px; color: #56657A; }

/* ---------- 화면 크기별 ---------- */
@media (max-width: 1080px) {
  .dc-part-grid { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 899px) {
  .dc-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-result { position: static; }
  .dc-part-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-body { width: min(300px, 82%); margin-inline: auto; }
  .dc-rules { grid-template-columns: minmax(0, 1fr); }
  .dc-mbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--navy-900);
    color: var(--white);
    box-shadow: 0 -6px 18px rgba(8, 19, 31, 0.18);
  }
  .dc-mbar-out { display: grid; }
  .dc-mbar-out small { font-size: 0.78rem; color: var(--gold-soft); }
  .dc-mbar-out strong { font-family: var(--serif); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
  .dc-mbar .btn { width: auto; min-height: 46px; }
  body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .dc-bar { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .dc-bar-v { grid-column: 1 / -1; text-align: left; margin-top: -4px; }
  .dc-sum-total { grid-template-columns: minmax(0, 1fr); }
  .dc-crit, .dc-extra { padding-left: 0.9rem; }
  .dc-part-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-result-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dc-bar-fill { transition: none; }
  .dc-part-group.is-flash .dc-part { animation: none; }
}
