/* tax_calculator (부가세 · 세무 캘린더) — deltas over the shared snack-app frame */
.lc label { display: block; font-weight: 600; margin: 10px 0 6px; }
.lc input[type="text"], .lc input[type="number"], .lc select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); background: #fff; font: inherit; box-sizing: border-box; }
.lc-in { display: flex; align-items: center; gap: 8px; } .lc-in input { flex: 1; } .lc-in span { color: #64748b; font-weight: 600; white-space: nowrap; }
.lc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.dt-btn2 { background: var(--neuro-surface, #f0f0f3); border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 9px 14px; font-weight: 600; cursor: pointer; font: inherit; }
.lc-result { margin-top: 16px; } .lc-note { margin-top: 10px; font-size: 13px; } .lc-cross { margin: 14px 0 0; text-align: center; font-weight: 600; }
.vat-rows { margin-top: 12px; }
.vat-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.vat-row .v_del { border: 0; background: none; color: #b91c1c; font-size: 20px; cursor: pointer; padding: 0 6px; }
.vat-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tbl-wrap { overflow-x: auto; }
.vat-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.vat-table th, .vat-table td { padding: 10px 12px; border-bottom: 1px solid rgba(0,0,0,.08); text-align: right; white-space: nowrap; }
.vat-table th:first-child, .vat-table td:first-child { text-align: left; }
.vat-table thead th { font-size: 13px; color: #64748b; } .vat-table tfoot th { font-size: 16px; }
.cal-list { margin-top: 10px; }
.cal-m { font-weight: 800; font-size: 15px; margin: 16px 0 6px; color: #6366f1; }
.cal-row { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); margin-bottom: 8px; }
.cal-row.past { opacity: .5; } .cal-row.soon { border-color: #f59e0b; background: #fffbeb; }
.cal-date b { font-size: 15px; } .cal-date small { display: block; color: #64748b; }
.cal-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #e0e7ff; color: #3730a3; margin-right: 4px; }
.cal-row.refund .cal-tag { background: #dcfce7; color: #166534; } .cal-row.info .cal-tag { background: #f1f5f9; color: #475569; }
.cal-dd { font-weight: 800; white-space: nowrap; color: #6366f1; } .cal-row.past .cal-dd { color: #94a3b8; } .cal-row.soon .cal-dd { color: #b45309; }
@media (max-width: 560px) { .vat-row { grid-template-columns: 1fr auto; } .vat-row .v_memo { grid-column: 1 / -1; } .cal-row { grid-template-columns: 70px 1fr; } .cal-dd { grid-column: 2; text-align: right; } }
/* ===== 공통 방어 리셋 (ytdl styles.css 의 태그 셀렉터 button{}·사이드바·forwards 애니메이션 상쇄) — 2026-08-29 QA ===== */
.dt-tool button, .dt-tool .dt-btn2, .dt-tool .dt-preset, .dt-tool .x, .dt-tool .chip button, .dt-tool .format-button, .lc button, .elements .dt-btn2, .elements .dt-preset, .emo-close, .pdf-ctl button, .cp-swatch, .legend button {
  width: auto; margin-top: 0; background: none; box-shadow: none; font-weight: 500; color: #1f2937; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 10px; font-size: 13px; border-radius: 8px; transition: .15s;
}
.dt-tool .dt-btn2, .elements .dt-btn2 { background: #fff; border: 1px solid #cfd6dd; color: #1f2937; font-weight: 600; padding: 8px 14px; }
.dt-tool .dt-btn2:hover, .elements .dt-btn2:hover { background: #f3f4f6; }
.dt-tool .dt-preset, .elements .dt-preset { background: #fff; border: 1px solid #e5e7eb; color: #374151; text-align: left; }
.dt-tool .dt-preset.sel, .elements .dt-preset.sel { background: #eef2ff; border-color: #6366f1; color: #3730a3; }
.dt-tool .dt-preset small, .elements .dt-preset small { display: inline; color: #6b7280; }
.dt-tool .x, .dt-tool .chip button { border: 0; padding: 0 4px; color: #6b7280; background: none; }
.dt-tool .format-button { width: auto; flex: 1 1 200px; justify-content: flex-start; padding: 12px 14px; border: 1px solid #e5e7eb; background: #fff; }
.dt-tool .format-button.selected { border-color: #6366f1; background: #eef2ff; }
/* 주요 CTA 는 ytdl 스타일 유지 */
.dt-tool #downloadButton, .dt-tool .dt-btn, .lc .lc-calc, .lc #calc, .lc #check, .lc #makePdfBtn { width: 100%; margin-top: 1rem; background: linear-gradient(145deg, #7c6ce8, #5f4fd6); color: #fff; font-weight: 700; padding: 1.25rem 2rem; font-size: 1rem; border-radius: 16px; box-shadow: 6px 6px 12px rgba(108,92,231,.3); }
.dt-tool #downloadButton:disabled { opacity: .6; }
/* 사이드바 광고: 본문(최대 1400px)과 안 겹치는 폭에서만 */
@media (min-width: 1400px) and (max-width: 1799px) { .sidebar { display: none; } }
/* forwards 애니메이션이 남긴 transform 이 fixed 자손을 가둠 → 종료 후 제거 + reduced-motion */
.elements > * { animation-fill-mode: both; }
.elements > .dt-settled { animation: none; transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .elements > * { animation: none !important; opacity: 1; transform: none; } }
/* 섹션 구분·컴포지팅 */
.elements .features-section { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; will-change: auto; }
.features-section, .faq-section { will-change: auto; }
/* 네비 링크 대비 */
.navbar .nav-link, .navbar .navbar-brand { color: #374151 !important; }
.navbar .nav-link:hover { color: #111 !important; }
