/* TheDuck Tools — 최소 스타일. 광고가 입력/결과 영역과 섞이지 않도록 도구 블록을 한 덩어리로 둔다. */
.theduck-tool { border: 1px solid #d9dde3; border-radius: 10px; padding: 16px; margin: 20px 0; background: #fbfcfd; }
.theduck-title { margin-top: 0; }
.theduck-form { display: grid; gap: 10px; }
.theduck-field { display: grid; gap: 4px; font-size: 0.95rem; }
.theduck-field input[type="number"], .theduck-field input[type="date"], .theduck-field select { padding: 8px; font-size: 1rem; max-width: 100%; }
.theduck-submit { padding: 10px 16px; font-size: 1rem; cursor: pointer; justify-self: start; }
.theduck-result { margin-top: 14px; }
.theduck-result-main { font-size: 1.2rem; font-weight: 700; }
.theduck-error { color: #b42318; }
.theduck-estimate, .theduck-disclaimer, .theduck-coverage { font-size: 0.85rem; color: #475467; }
.theduck-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; font-size: 0.85rem; color: #475467; margin: 14px 0 6px; }
.theduck-meta dt { font-weight: 600; }
.theduck-meta dd { margin: 0; }

/* tools/2(0.6.0): 입력 즉시 계산 화면. 모바일(1열) 먼저, 넓은 화면에서 2열. 입력 글자 16px 이상(iOS 확대 방지). */
.theduck-form--live { grid-template-columns: 1fr; }
.theduck-form--live .theduck-field input[type="text"], .theduck-form--live .theduck-field input[type="date"],
.theduck-form--live .theduck-field select { width: 100%; box-sizing: border-box; padding: 10px; font-size: 16px; border: 1px solid #c9ced6; border-radius: 8px; background: #fff; }
.theduck-label { font-weight: 600; }
.theduck-help { color: #5b6470; font-size: 0.85rem; }
.theduck-group { border: 1px solid #e3e7ec; border-radius: 8px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 8px; }
.theduck-group legend { font-weight: 600; padding: 0 4px; font-size: 0.95rem; }
.theduck-radios { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.theduck-radio, .theduck-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.95rem; min-height: 32px; }
.theduck-hint { color: #475467; background: #f2f4f7; border-radius: 8px; padding: 10px 12px; margin: 0; }
.theduck-form--live + .theduck-result { border-top: 1px dashed #d9dde3; padding-top: 12px; }
.theduck-rows { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4px 12px; margin: 8px 0; font-size: 0.95rem; }
.theduck-rows dt { color: #475467; min-width: 0; overflow-wrap: anywhere; }
.theduck-rows dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.theduck-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.theduck-table table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.theduck-table th, .theduck-table td { padding: 6px 8px; border-bottom: 1px solid #e3e7ec; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.theduck-table thead th { background: #eef2f7; text-align: center; }
.theduck-table tbody th { text-align: left; font-weight: 600; }
.theduck-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: #eef2f7; color: #344054; }
.theduck-badge.is-ok { background: #e7f6ee; color: #1f7a4d; }
.theduck-badge.is-warn { background: #fff4e5; color: #9a5b00; }
.theduck-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.theduck-copy { padding: 8px 14px; font-size: 0.95rem; cursor: pointer; border: 1px solid #1f5fbf; color: #1f5fbf; background: #fff; border-radius: 8px; }
.theduck-copy-status { font-size: 0.85rem; color: #1f7a4d; }
@media (min-width: 700px) {
  .theduck-form--live { grid-template-columns: 1fr 1fr; }
  .theduck-form--live .theduck-group, .theduck-form--live .theduck-wide { grid-column: 1 / -1; }
}

/* 0.8.0(result-button/1): 입력 → «결과 보기» → 결과. 버튼은 폼 맨 아래 전체 너비(모바일), 결과 자리는 버튼 바로 아래 같은 상자 안.
   광고는 계산기 상자 밖(테마)이고 버튼과 결과 사이에 오지 않는다. 결과 전에는 안내 상자가 자리를 지켜 버튼과 상자 밖 광고 사이가 벌어진다. */
.theduck-submit-row { grid-column: 1 / -1; margin-top: 4px; }
.theduck-submit--primary { width: 100%; min-height: 48px; padding: 12px 18px; font-size: 1.0625rem; font-weight: 800; color: #fff; background: #1f5fae;
  border: 0; border-radius: 10px; cursor: pointer; }
.theduck-submit--primary:hover { background: #184b8a; }
.theduck-submit--primary:focus-visible { outline: 3px solid #9cc0f0; outline-offset: 2px; }
@media (min-width: 700px) { .theduck-submit--primary { width: auto; min-width: 240px; } }
.theduck-result { scroll-margin-top: 16px; }
.theduck-result:focus { outline: none; }
.theduck-placeholder { min-height: 88px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; margin: 0; padding: 16px;
  text-align: center; font-size: 0.95rem; line-height: 1.5; color: #5b6470; background: #f2f4f7; border: 1px dashed #c9ced6; border-radius: 10px; }
.theduck-result.is-stale > :not(.theduck-stale) { opacity: 0.45; }
.theduck-stale { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #fff4e5; color: #7a4a00; font-size: 0.9rem; font-weight: 600; }
