/* qr_generator — deltas over the shared snack-app frame (youtube_downloader styles.css) */
.qr-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.qr-tab { flex: 1; padding: 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,.08); background: var(--neuro-surface, #f0f0f3); font-weight: 700; cursor: pointer; }
.qr-tab.active { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-color: transparent; }
.qr-pane label { display: block; font-weight: 600; margin: 10px 0 6px; }
.qr-pane input[type="text"], .qr-pane input[type="url"], .qr-pane input[type="email"], .qr-pane input[type="tel"], .qr-pane input[type="number"], .qr-pane textarea, .qr-pane 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; }
.qr-pane input[type="color"] { width: 100%; height: 42px; border-radius: 10px; border: 1px solid rgba(0,0,0,.1); background: #fff; padding: 2px; }
.qr-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.qr-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; margin-top: 6px; }
.qr-opts .qr-logo { grid-column: 1 / -1; }
.qr-check { display: flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 500; }
.qr-preview { margin-top: 18px; text-align: center; }
.qr-stage { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 16px; border-radius: 14px; background: repeating-conic-gradient(#e9e9ee 0 25%, #fff 0 50%) 50% / 20px 20px; }
.qr-stage canvas, .qr-stage svg { max-width: 100%; height: auto; max-height: 420px; border-radius: 6px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.qr-actions .dt-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; }
.qr-actions .dt-btn2 { background: var(--neuro-surface, #f0f0f3); border: 1px solid rgba(0,0,0,.1); border-radius: 10px; padding: 11px 16px; font-weight: 600; cursor: pointer; }
.qr-actions button:disabled { opacity: .45; cursor: default; }
.dt-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff1f2; color: #b91c1c; font-weight: 600; }
.dt-btn2 { font: inherit; }
/* ===== 공통 방어 리셋 (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; }
