/* labor_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; }
.lc-calc { display: block; width: 100%; margin-top: 18px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 16px; cursor: pointer; }
.lc-result { margin-top: 18px; } .lc-result h3 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.lc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lc-card { border-radius: 14px; padding: 14px 16px; background: var(--neuro-surface, #f0f0f3); box-shadow: inset 3px 3px 6px rgba(0,0,0,.06), inset -3px -3px 6px rgba(255,255,255,.7); }
.lc-card span { display: block; font-size: 13px; color: #64748b; font-weight: 600; } .lc-card b { display: block; font-size: 26px; margin: 4px 0; font-variant-numeric: tabular-nums; } .lc-card small { color: #64748b; }
.good { color: #15803d; } .bad { color: #b91c1c; } .warn { color: #b45309; }
.lc-note { margin-top: 10px; font-size: 13px; }
.ub-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ub-nav a { flex: 1; min-width: 120px; text-align: center; padding: 10px 12px; border-radius: 10px; background: var(--neuro-surface, #f0f0f3); border: 1px solid rgba(0,0,0,.08); font-weight: 700; text-decoration: none; color: inherit; }
.ub-nav a.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; }
.ub-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ub-card { display: block; text-decoration: none; color: inherit; border-radius: 14px; padding: 18px 16px; background: var(--neuro-surface, #f0f0f3); box-shadow: 6px 6px 12px rgba(0,0,0,.06), -6px -6px 12px rgba(255,255,255,.8); }
.ub-card i { font-size: 22px; color: #6366f1; } .ub-card b { display: block; margin: 8px 0 2px; font-size: 16px; } .ub-card span { color: #64748b; font-size: 13px; }
.ub-q { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,.06); } .ub-q p { margin: 0 0 4px; font-weight: 600; } .ub-q small { display: block; margin-bottom: 8px; }
.ub-opts { display: flex; flex-wrap: wrap; gap: 14px; } .ub-opts label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.ub-missing { margin: 6px 0 12px 18px; } .ub-missing li { margin-bottom: 6px; }
.ub-steps { padding-left: 0; list-style: none; counter-reset: none; margin: 14px 0 0; }
.ub-steps li { padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.06); }
.ub-steps li b { display: block; margin-bottom: 4px; } .ub-steps li p { margin: 0; color: #475569; }
/* insurance calculator */
.ins-rates { margin-top: 10px; } .ins-rates summary { cursor: pointer; font-weight: 600; }
.tbl-wrap { overflow-x: auto; margin-top: 14px; }
.ins-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ins-table th, .ins-table td { padding: 9px 10px; border-bottom: 1px solid rgba(0,0,0,.08); text-align: right; white-space: nowrap; }
.ins-table th:first-child, .ins-table td:first-child, .ins-table td:nth-child(2) { text-align: left; }
.ins-table thead th { font-size: 13px; color: #64748b; }
/* ===== 공통 방어 리셋 (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; }
