/* ============================================================
   X-Track 선정 웹앱 — Toss 감성 미니멀 테마
   순수 HTML/CSS/JS · Pretendard 폰트 · 반응형
   ============================================================ */

/* --- 폰트 ---
   Pretendard 는 각 HTML 의 <head> 에서 <link> 로 직접 받는다.
   여기서 @import 를 쓰면 style.css 를 다 받은 뒤에야 폰트 CSS 를 요청하게 되어
   (HTML → style.css → pretendard.css → woff2) 왕복이 한 단계 더 늘어난다. */

/* --- CSS 변수 (Toss 미니멀 라이트 테마) --- */
:root {
  /* 배경 계층 — 흰색 기반, 오버레이는 살짝 회색 */
  --bg-base:      #f5f7fa;
  --bg-surface:   #ffffff;
  --bg-raised:    #ffffff;
  --bg-overlay:   #eef2f6;
  --bg-hover:     #e7ecf2;

  /* 텍스트 (대기업 제안서 톤) */
  --text-primary:   #0f1b2a;  /* 더 짙은 네이비 블랙 */
  --text-secondary: #475467;
  --text-muted:     #6b7684;
  --text-disabled:  #9ba3af;

  /* 상태 색상 (대기업 톤 통일 — 차분한 채도) */
  --color-ok:       #059669;
  --color-warn:     #f59e0b;
  --color-error:    #dc2626;
  --color-info:     #0f4c9c;

  /* BNS 액센트 블루 */
  --accent:         #0f4c9c;
  --accent-hover:   #0c3f82;
  --accent-light:   #2f6fdb;
  --accent-red:     #b91c1c;
  --accent-dim:     rgba(15,76,156,.08);
  --accent-bg:      rgba(15,76,156,.08);

  /* 보더 — 명확하게 보이는 선 (톤 통일) */
  --border:         #e2e8f0;        /* 카드 기본 보더 */
  --border-strong:  #cbd5e1;        /* 강조 보더 */
  --border-subtle:  #eef2f6;        /* 구분선 (테이블 행 등) */
  --border-focus:   #0f4c9c;

  --shadow-xs: 0 1px 2px rgba(15,27,42,.05);
  --shadow-sm: 0 1px 3px rgba(15,27,42,.06), 0 1px 2px rgba(15,27,42,.04);
  --shadow-md: 0 4px 14px rgba(15,27,42,.07), 0 1px 3px rgba(15,27,42,.04);
  --shadow-lg: 0 12px 28px rgba(15,27,42,.1), 0 2px 8px rgba(15,27,42,.05);

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;

  /* 이징 */
  --ease: cubic-bezier(.25,.1,.25,1);
}

/* --- 리셋 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== SVG 아이콘 시스템 (대기업 UI 표준) ===== */
.icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke-width: 1.6;
}
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }
.icon-inline { display: inline-block; vertical-align: -3px; margin-right: 4px; }
.icon-mr { margin-right: 6px; }
svg.icon path,
svg.icon circle,
svg.icon rect,
svg.icon line,
svg.icon polyline {
  vector-effect: non-scaling-stroke;
}
.caret-right { transition: transform .18s var(--ease, ease); }
.is-open > .caret-right,
[open] .caret-right,
.qs-collapse.open .caret-right { transform: rotate(90deg); }

/* CSS 스피너 (3-dot) — 빈 상태/로딩 */
.dot-spinner {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  vertical-align: middle;
}
.dot-spinner > span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: dot-bounce 1.2s infinite ease-in-out;
}
.dot-spinner > span:nth-child(2) { animation-delay: .15s; }
.dot-spinner > span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { opacity: .25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* 네비 아이콘 정렬 */
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a > .icon { color: currentColor; }

/* 버튼 내 아이콘 크기 통일 */
.btn .icon { width: 14px; height: 14px; }

html, body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', '맑은 고딕', 'Malgun Gothic', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 모바일 오프캔버스 드로어(fixed, translateX off-screen)가 만드는 가로 스크롤 차단.
   html(루트)에 overflow-x:hidden → 뷰포트 레벨에서 fixed 요소까지 클리핑(구버전 브라우저 포함).
   html 은 본래 스크롤 컨테이너라 sticky 헤더에 영향 없음. body 는 clip 으로 보조. */
html { overflow-x: hidden; }
body { overflow-x: clip; max-width: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* 타이포 스케일 (기업형) */
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.3; color: var(--text-primary); }
h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35;  color: var(--text-primary); }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.4;  color: var(--text-primary); }
h4 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.4;  color: var(--text-primary); }
p  { color: var(--text-secondary); }

/* 링크 */
a { color: var(--accent); text-decoration: none; }

/* 포커스 링 (키보드 탭 시에만, 마우스 클릭은 outline 없음) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
/* 입력창/버튼은 outline 대신 soft ring 사용 */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* 스크롤바 (얇게) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 3px solid #fff; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== 헤더 / 네비게이션 (Toss 감성) ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 34px;
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--accent); }
.brand .brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-bg);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
}
.brand .brand-logo {
  height: 28px; width: auto;
  border-radius: 4px;
  background: transparent;
  padding: 0;
}
.brand-bns {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 20px; font-weight: 900; letter-spacing: -.06em;
}
.brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 6px;
  padding: 2px 7px;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav a.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
}

.header-actions {
  display: flex; gap: 8px;
  flex-shrink: 0;
}

/* ===== 공통 버튼 (Toss 감성) ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--bg-hover);
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.btn:hover:not(:disabled) {
  background: #e5e8eb;
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled {
  background: var(--bg-hover);
  border-color: transparent;
  color: var(--text-disabled);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  background: rgba(240,68,56,.08);
  border-color: transparent;
  color: var(--color-error);
}
.btn-danger:hover { background: rgba(240,68,56,.14); }

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 10px;
}
.btn-block { width: 100%; }

/* ===== 메인 레이아웃 (Toss 감성 여백) ===== */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* 섹션 간 기본 여백 (64~80px 일관) */
section + section { margin-top: 72px; }

.split {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 260px);
}
.split > section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 600px;
}

/* 패널 헤더 */
.panel-head {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.panel-head h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 10px;
}
.panel-head .sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* ===== 카탈로그 (좌측) ===== */
.catalog-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .15s var(--ease);
  position: relative;
  overflow: hidden;
}
.cat-card:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cat-card .cat-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.cat-card .cat-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', '맑은 고딕', 'Malgun Gothic', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 6px;
  margin-bottom: 14px;
}
.cat-card .cat-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.cat-card .cat-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.cat-card .cat-spec {
  list-style: none;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex; flex-direction: column; gap: 4px;
}
.cat-card .cat-spec li {
  display: flex; gap: 8px;
  line-height: 1.5;
}
.cat-card .cat-spec li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
  display: inline-block;
}

/* 카탈로그 푸터 (요약 공식) */
.catalog-tip {
  margin-top: 16px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.catalog-tip b { color: var(--text-primary); font-weight: 600; }

/* ===== 챗 (우측) ===== */
.chat-section {
  background: #fff;
}
.chat-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.chat-status .ai-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-ok);
  box-shadow: 0 0 6px rgba(18,184,134,.5);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
}

.msg {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 1.6;
  animation: msg-in .25s var(--ease);
  word-wrap: break-word;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.user {
  align-self: flex-end;
  background: var(--accent);
  border: 1px solid transparent;
  color: #ffffff;
  border-bottom-right-radius: 6px;
}
.msg.ai {
  align-self: flex-start;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}
.msg.ai .msg-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.msg.ai .ai-mini-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-ok);
}
.msg.system {
  align-self: center;
  background: rgba(245,159,0,.08);
  border: 1px solid transparent;
  color: var(--color-warn);
  font-size: 14px;
  text-align: center;
  max-width: 90%;
  border-radius: var(--radius-md);
}

/* 코드/JSON 블록 */
.msg pre {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 8px;
  font-family: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  color: var(--accent);
  overflow-x: auto;
  white-space: pre-wrap;
}

/* 타이핑 인디케이터 */
.typing {
  display: inline-flex; gap: 4px;
  padding: 0 4px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-secondary);
  animation: typing-bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* 추천 답변 버튼 */
.suggestions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  min-height: 0;
}
.suggestions:empty { display: none; }
.suggestions button {
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.suggestions button:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

/* 챗 입력 영역 */
.chat-input-area {
  display: flex; align-items: flex-end; gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-input-area textarea {
  flex: 1;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  resize: none;
  min-height: 52px;
  max-height: 160px;
  outline: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  line-height: 1.5;
}
.chat-input-area textarea::placeholder { color: var(--text-muted); }
.chat-input-area textarea:focus {
  background: #fff;
  border-color: var(--accent);
}
.chat-input-area textarea:disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}

.chat-input-area .btn {
  height: 52px;
  flex-shrink: 0;
  padding: 0 20px;
}

/* ===== 결과 페이지 ===== */
.result-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1100px) {
  .result-wrap { grid-template-columns: 1fr; }
}

.result-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.result-side {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.result-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.result-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.result-header .sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.spec-card {
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.spec-card .spec-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  font-weight: 600;
}
.spec-card .spec-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.spec-card .spec-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.reasoning-box {
  background: var(--accent-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.reasoning-box h3 {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checklist li::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-block;
  background: transparent;
}
.checklist li.done::before {
  border-color: var(--color-ok);
  background-color: var(--color-ok);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 10 4 4 8-9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}
.checklist li.done { color: var(--text-muted); text-decoration: line-through; }

/* ===== 체크리스트 페이지 ===== */
.cl-toolbar {
  display: flex; align-items: center; gap: 14px;
  /* 줄바꿈이 없으면 좁은 화면에서 마지막 버튼이 화면 밖으로 밀려 눌리지 않는다 */
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.cl-toolbar .cl-title { font-weight: 600; color: var(--accent); font-size: 1rem; margin: 0; }
@media (max-width: 640px) {
  .cl-toolbar { padding: 16px; gap: 10px; }
  .cl-toolbar .cl-title { flex: 1 0 100%; }
  .cl-toolbar .btn { flex: 1 1 auto; justify-content: center; }
}
.cl-toolbar .progress {
  flex: 1; min-width: 110px;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 100px;
  overflow: hidden;
}
.cl-toolbar .progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .3s var(--ease);
  border-radius: 100px;
}
.cl-toolbar .progress-text {
  font-size: 14px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  font-weight: 600;
}

.cl-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  overflow: hidden;
}
.cl-section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  transition: background .15s var(--ease);
}
.cl-section-header:hover { background: var(--bg-overlay); }
.cl-section.open .cl-section-header { border-bottom-color: var(--border); }
.cl-section-header .arrow {
  color: var(--text-muted);
  transition: transform .2s var(--ease);
}
.cl-section.open .cl-section-header .arrow { transform: rotate(90deg); }
.cl-section-header .title {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.cl-section-header .count {
  font-size: 13px;
  color: var(--text-muted);
}

.cl-items {
  padding: 12px 16px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.cl-section.open .cl-items { display: flex; }

.cl-item {
  display: grid;
  grid-template-columns: 28px 1fr 120px 80px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.cl-item .cl-no {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  font-weight: 500;
}
.cl-item .cl-label {
  color: var(--text-primary);
  display: flex; flex-direction: column; gap: 2px;
  font-weight: 500;
  cursor: pointer;          /* 라벨을 눌러도 그 칸으로 들어간다 */
  margin: 0;
}
.cl-item .cl-label .en {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 400;
}
.cl-item input,
.cl-item select {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s var(--ease);
}
.cl-item input:focus, .cl-item select:focus { border-color: var(--accent); }
.cl-item .cl-unit {
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 700px) {
  .cl-item { grid-template-columns: 28px 1fr; gap: 6px; }
  .cl-item input, .cl-item select { grid-column: 1 / -1; }
  .cl-item .cl-unit { grid-column: 1 / -1; text-align: left; }
}

/* ===== 모달 (Toss 감성) ===== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,27,42,.48);
  align-items: center; justify-content: center;
  z-index: 1000;
  animation: fade-in .2s var(--ease);
  padding: 24px;
}
.modal-overlay.show { display: flex; }
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #fff;
  border: none;
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modal-in .28s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h2 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.modal label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}
.modal input[type="text"],
.modal input[type="password"] {
  width: 100%;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  margin-bottom: 16px;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.modal input:focus {
  background: #fff;
  border-color: var(--accent);
}
.modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 24px;
}
.modal-actions .btn { height: 48px; padding: 0 20px; font-size: 15px; }
.modal-hint {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-left: none;
  line-height: 1.55;
}
.modal-hint a { font-weight: 600; }

/* ===== 토스트 (Toss 감성) ===== */
.toast-container {
  position: fixed;
  top: 80px; right: 24px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 9999;
  pointer-events: none;
}
.toast {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: toast-in .28s var(--ease);
  max-width: 360px;
  pointer-events: auto;
}
.toast.ok    { border-left-color: var(--color-ok); }
.toast.warn  { border-left-color: var(--color-warn); }
.toast.error { border-left-color: var(--color-error); }
.toast.info  { border-left-color: var(--color-info); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px) translateY(-4px); }
  to   { opacity: 1; transform: translateX(0)    translateY(0); }
}

/* ===== 푸터 ===== */
.app-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== 빈 상태 ===== */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: .5;
}
.empty-state .msg {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-weight: 500;
}
.empty-state .sub {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   햄버거 버튼 + 모바일 드로어 (기본은 숨김, 900px 이하에서 표시)
   ============================================================ */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1001;          /* 햄버거가 nav 드로어 위 */
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  pointer-events: auto;   /* 다른 요소가 가리지 않도록 명시 */
  transition: background .15s var(--ease);
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  -webkit-tap-highlight-color: rgba(0,0,0,.04);
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--bg-hover); }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25,31,40,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease);
  z-index: 998;
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* 데스크톱에서는 모바일용 드로어 내 버튼 숨김 */
.nav-api-action { display: none; }

/* ===== 반응형 — 태블릿 ===== */
@media (max-width: 1100px) {
  .split { grid-template-columns: 1fr; }
  .split > section { min-height: 480px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 반응형 — 모바일 드로어 활성 (900px 이하) ===== */
@media (max-width: 900px) {
  .app-header {
    position: sticky; top: 0; z-index: 999;
    /* backdrop-filter 는 자식 .nav(드로어)의 position:fixed 기준점을 헤더로 바꿔
       스크롤 시 드로어가 문서 최상단에 그려지는 버그를 유발 → 모바일에선 제거 */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .app-header-inner {
    height: 56px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }
  .brand-title { display: none; }
  .brand-title-short {
    display: inline !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-sub { display: none; }
  .brand-logo { height: 24px; width: auto; }

  /* 데스크톱 nav / 액션 숨김 */
  .nav-toggle { display: flex; }
  .header-actions { display: none; }

  /* nav 를 우측 드로어로 */
  .nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(86vw, 320px);
    padding: 76px 16px 28px;
    background: #fff;
    box-shadow: -8px 0 24px rgba(25,31,40,.12);
    border-left: 1px solid var(--border);
    gap: 4px;
    transform: translateX(105%);
    transition: transform .26s var(--ease);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open { transform: translateX(0); }

  .nav a {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 13px;
    width: 100%;
    padding: 15px 16px;
    font-size: 16px;
    border-radius: 12px;
    min-height: 54px;
    color: var(--text-primary);
    font-weight: 500;
  }
  .nav a > span { flex: 1; }
  .nav a > .icon { width: 20px; height: 20px; color: var(--text-muted); }
  .nav a.active {
    background: var(--accent-bg);
    color: var(--accent);
    font-weight: 700;
  }
  .nav a.active > .icon { color: var(--accent); }
  .nav a:hover { background: var(--bg-hover); }

  .nav-api-action {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
  }
  .nav-api-action .btn {
    width: 100%;
    justify-content: center;
  }

  /* 스크롤 잠금 (메뉴 열림 시 배경 스크롤 방지) — html 이 실제 스크롤러 */
  html.nav-open, body.nav-open { overflow: hidden; }
  html.nav-open { height: 100%; }
}

/* ===== 반응형 — 일반 콘텐츠 레이아웃 (768px 이하) ===== */
@media (max-width: 768px) {
  .main { padding: 32px 16px 64px; }
  section + section { margin-top: 56px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { padding: 20px; }

  .msg { max-width: 94%; }
  .panel-head { padding: 20px 20px 16px; }
  .chat-messages { padding: 16px; }

  /* 버튼 크기 터치 친화적 */
  .btn {
    height: 48px;
    padding: 0 20px;
    font-size: 16px;
  }
  .btn-sm {
    height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

  /* 입력창 확장 */
  input, select, textarea {
    font-size: 16px;  /* iOS 확대 방지 */
  }

  /* 페이지 헤더 타이포 축소 */
  h1 { font-size: 28px; line-height: 1.25; letter-spacing: -0.025em; }
  h2 { font-size: 22px; letter-spacing: -0.02em; }
  h3 { font-size: 18px; }

  /* 페이지 인트로 카드 */
  .page-intro {
    padding: 32px 20px 28px;
  }
  .page-intro h1 { font-size: 28px; }
  .page-intro p { font-size: 15px; }

  /* CTA 배너 */
  .cta-banner {
    flex-direction: column;
    gap: 14px;
    padding: 24px 20px;
    text-align: left;
  }
  .cta-banner .btn, .cta-banner .qs-cta { width: 100%; justify-content: center; }

  /* 테이블 가로 스크롤 — 감싼 표에만 건다.
     전역 table 에 걸면 줄바꿈해서 담아야 하는 사양서·BOM 표까지
     560px 로 벌어지고 nowrap 으로 잘려 화면 밖으로 나간다. */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table-wrap table {
    min-width: 560px;
    font-size: 14px;
  }
  .table-wrap th, .table-wrap td { padding: 10px 12px; white-space: nowrap; }

  /* 토스트/모달 마진 */
  .modal { padding: 28px 24px; border-radius: var(--radius-lg); }
  .toast-container { right: 16px; left: 16px; top: 72px; }
  .toast { max-width: 100%; font-size: 14px; }

  /* 푸터 단순화 */
  .doc-footer {
    grid-template-columns: 1fr !important;
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 32px 20px;
    margin: 72px auto 0 !important;
    font-size: 13px;
  }
  .footer-left img { height: 20px; margin: 0 auto; }

  /* 분할 레이아웃 스택 */
  .split { grid-template-columns: 1fr; gap: 16px; }
  .split > section { min-height: 360px; }

  /* 채팅 입력창 */
  .chat-input-area { padding: 14px 16px 18px; }

  /* 위자드 옵션 타일 */
  .qs-grid { grid-template-columns: 1fr !important; }

  /* 결과 사양서 카드 */
  .spec-card {
    padding: 18px;
  }
  .spec-card .spec-value { font-size: 18px; }

  /* result-main 패딩 축소 */
  .result-main { padding: 28px 20px; }
  .result-side { padding: 24px 20px; }
  .result-header h1 { font-size: 26px; }
}

/* ===== 반응형 — 초소형 모바일 (480px 이하) ===== */
@media (max-width: 480px) {
  .main { padding: 24px 14px 56px; }
  .panel-head { padding: 16px 16px 12px; }
  .chat-messages { padding: 14px; }
  .cat-card { padding: 18px; }
  .page-intro h1 { font-size: 24px; }
  h1 { font-size: 24px; }
  .brand-title-short { max-width: 160px; }
  .nav { width: min(90vw, 300px); }
  table { min-width: 480px; font-size: 13px; }
}

/* ===== 인쇄 ===== */
@media print {
  .app-header, .app-footer, .header-actions, .btn, .modal-overlay, .toast-container { display: none !important; }
  body { background: white; color: black; }
  .result-main, .result-side, .spec-card { background: white !important; color: black !important; border-color: #ccc !important; }
  .spec-card .spec-value { color: #0066cc !important; }
  .reasoning-box { background: #f5f5f5 !important; color: black !important; }
}

/* ===== 유틸리티 ===== */
.hidden { display: none !important; }
.text-ok    { color: var(--color-ok); }
.text-warn  { color: var(--color-warn); }
.text-error { color: var(--color-error); }
.text-info  { color: var(--color-info); }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   퀵 셀렉트 위자드 (quick-select.html) — Toss 감성
   ============================================================ */
.qs-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 0;
}

.qs-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 24px;
}
.qs-hero .qs-hero-icon {
  font-size: 2.4rem;
  background: var(--accent-bg);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  flex-shrink: 0;
}
.qs-hero h1 {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.qs-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.qs-progress {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.qs-progress-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.qs-progress-top .qs-step-label {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qs-progress-top .qs-step-counter {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.qs-progress-bar {
  height: 8px;
  background: var(--bg-hover);
  border-radius: 100px;
  overflow: hidden;
}
.qs-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .35s var(--ease);
  border-radius: 100px;
}

.qs-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 20px;
  min-height: 420px;
}
.qs-card h2 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 12px;
}
.qs-card .qs-help {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  background: var(--accent-bg);
  border-left: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.qs-grid.qs-grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.qs-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
  position: relative;
  overflow: hidden;
}
.qs-tile:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.qs-tile.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 4px rgba(0,100,255,.08);
}
.qs-tile .qs-tile-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.qs-tile .qs-tile-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.qs-tile .qs-tile-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.qs-radio-list {
  display: flex; flex-direction: column; gap: 10px;
}
.qs-radio {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.qs-radio:hover { background: var(--bg-overlay); border-color: var(--border-strong); }
.qs-radio.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.qs-radio input[type="radio"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.qs-radio .qs-radio-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
.qs-radio .qs-radio-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 6px;
}

.qs-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.qs-check {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.qs-check:hover { background: var(--bg-overlay); border-color: var(--border-strong); }
.qs-check.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}
.qs-check input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.qs-check .qs-check-label {
  flex: 1;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.qs-slider-wrap {
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 32px 36px;
}
.qs-slider-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}
.qs-slider-value .unit {
  font-size: 18px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 500;
}
.qs-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  background: var(--bg-hover);
  border-radius: 100px;
  outline: none;
}
.qs-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,100,255,.24);
}
.qs-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,100,255,.24);
}
.qs-slider-marks {
  display: flex; justify-content: space-between;
  margin-top: 10px;
  font-size: .72rem;
  color: var(--text-muted);
}

.qs-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.qs-actions .qs-actions-left,
.qs-actions .qs-actions-right {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* 모바일/태블릿: 결과 액션 버튼이 가로로 넘쳐 잘리지 않도록 풀폭 스택 */
@media (max-width: 760px) {
  .qs-actions { flex-direction: column; align-items: stretch; }
  .qs-actions .qs-actions-left,
  .qs-actions .qs-actions-right { width: 100%; flex-direction: column; }
  .qs-actions button { width: 100%; justify-content: center; }
}

/* 결과 영역 */
.qs-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.qs-result-card {
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  position: relative;
}
.qs-result-card.qs-ok { border-left: 3px solid var(--color-ok); }
.qs-result-card.qs-warn { border-left: 3px solid var(--color-warn); }
.qs-result-card.qs-error { border-left: 3px solid var(--color-error); }
.qs-result-card .qs-rc-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.qs-result-card .qs-rc-label .icon { width: 14px; height: 14px; }
.qs-result-card .qs-rc-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.qs-result-card .qs-rc-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.qs-bom {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 14px;
  overflow: hidden;
}
.qs-bom-head {
  padding: 12px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.qs-bom-head h3 {
  font-size: .95rem;
  color: var(--accent);
}
.qs-bom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.qs-bom-table th, .qs-bom-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.qs-bom-table th {
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
}
.qs-bom-table td.qty {
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
}
.qs-bom-table tr:last-child td { border-bottom: none; }

.qs-summary-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: .9rem;
}
.qs-summary-banner.ok {
  background: rgba(0,230,118,.08);
  border: 1px solid rgba(0,230,118,.3);
  color: var(--color-ok);
}
.qs-summary-banner.warn {
  background: rgba(255,171,0,.08);
  border: 1px solid rgba(255,171,0,.3);
  color: var(--color-warn);
}
.qs-summary-banner .qs-sb-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.qs-collapse {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 12px;
  overflow: hidden;
}
.qs-collapse-head {
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-primary);
  background: var(--bg-raised);
  transition: background .15s;
}
.qs-collapse-head:hover { background: var(--bg-hover); }
.qs-collapse-head .qs-arr {
  color: var(--text-muted);
  transition: transform .2s;
}
.qs-collapse.open .qs-collapse-head .qs-arr { transform: rotate(90deg); }
.qs-collapse-body {
  display: none;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.qs-collapse.open .qs-collapse-body { display: block; }

/* 인덱스 페이지의 빠른선정 CTA (Toss Blue 대형 버튼) */
.qs-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px;
  padding: 0 28px;
  background: var(--accent);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.qs-cta:hover {
  background: var(--accent-hover);
  color: #fff;
}
.qs-cta:active { transform: scale(0.98); }

/* 인쇄: 위자드 결과 단순화 */
@media print {
  .qs-progress, .qs-actions, .app-header, .app-footer { display: none !important; }
  .qs-card { background: white !important; color: black !important; border-color: #ccc !important; }
  .qs-result-card, .qs-bom { background: white !important; color: black !important; border-color: #ccc !important; }
  .qs-result-card .qs-rc-value { color: #0066cc !important; }
}

@media (max-width: 700px) {
  .qs-hero { flex-direction: column; text-align: center; }
  .qs-grid { grid-template-columns: repeat(2, 1fr); }
  .qs-actions { flex-direction: column; }
  .qs-actions .qs-actions-left, .qs-actions .qs-actions-right { width: 100%; }
  .qs-actions button { flex: 1; justify-content: center; }
}

/* ============================================================
   대기업 서류 톤 — 추가 컴포넌트
   (이모지 대체용 배지 / 상태 라벨 / 문서 푸터 등)
   ============================================================ */

/* SVG 아이콘 (Heroicons / Lucide 스타일 line icon) */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  flex-shrink: 0;
  color: currentColor;
}
.icon-sm { width: 14px; height: 14px; vertical-align: -2px; }
.icon-lg { width: 22px; height: 22px; vertical-align: -4px; }

.btn .icon { margin-right: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a .icon { width: 16px; height: 16px; }

/* 페이지 인트로 헤더 (Toss 감성 Hero) */
.page-intro {
  margin-bottom: 48px;
  padding: 48px 0 32px;
  background: transparent;
  border: none;
  max-width: 760px;
}
.page-intro-title, .page-intro h1 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-intro-sub, .page-intro p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}
.page-intro .eyebrow,
.intro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .02em;
  line-height: 1.4;
}
.intro-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* 엔터프라이즈 라벨 (결과/견적 페이지 상단) */
.enterprise-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-bottom: 12px;
  background: var(--bg-overlay);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.4;
}
.enterprise-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-ok);
  display: inline-block;
  box-shadow: 0 0 6px rgba(5,150,105,.4);
}

/* CTA 배너 (Toss 감성 깔끔한 박스) */
.cta-banner {
  margin-bottom: 48px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner-text {
  flex: 1;
  min-width: 260px;
}
.cta-banner-title {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cta-banner-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* 상태 라벨 (Toss 감성 chip) */
.status-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', '맑은 고딕', 'Malgun Gothic', sans-serif;
  letter-spacing: .02em;
}
.status-label.ok    { background: rgba(18,184,134,.08); color: #0a7554; border: none; }
.status-label.warn  { background: rgba(245,159,0,.08); color: #b46b04; border: none; }
.status-label.error { background: rgba(240,68,56,.08); color: #b4291e; border: none; }

/* 위자드 타일 배지 */
.qs-tile-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', '맑은 고딕', 'Malgun Gothic', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .04em;
  border-radius: 6px;
  margin-bottom: 10px;
}

/* 위자드 히어로 배지 */
.qs-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--accent);
  color: #fff;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', '맑은 고딕', 'Malgun Gothic', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .08em;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  min-width: 88px;
  text-align: center;
}
.qs-hero-tag {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  letter-spacing: .02em;
}

/* 결과 페이지: 영문 서브타이틀 + 면책 문구 */
.result-en {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .08em;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.result-disclaimer {
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-overlay);
  border-left: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 문서 푸터 (Toss 감성 심플) */
.doc-footer {
  max-width: 1200px;
  margin: 120px auto 0;
  padding: 48px 24px 64px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.doc-footer .footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.doc-footer .footer-contact {
  font-size: 12.5px;
  color: var(--text-muted);
}
.doc-footer .footer-left,
.doc-footer .footer-right {
  flex-shrink: 0;
}
.doc-footer .footer-center {
  text-align: center;
  min-width: 0;
}
.doc-footer img {
  display: block;
}
@media (max-width: 700px) {
  .doc-footer { grid-template-columns: 1fr; padding: 32px 20px; gap: 12px; text-align: center; margin-top: 72px; }
  .doc-footer .footer-center { text-align: center; }
  .doc-footer .footer-left img { margin: 0 auto; }
}

/* 인쇄: 문서 푸터 정리 */
@media print {
  .doc-footer {
    border-top: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    page-break-inside: avoid;
  }
  .page-intro, .cta-banner { display: none !important; }
}

/* === 질문지 (Toss 감성) === */
.qn-main { padding-bottom: 120px; }

.qn-intro {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.qn-intro .qn-title {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.qn-intro .qn-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.qn-intro .qn-dot-sep { color: var(--border-strong); }
.qn-intro .qn-desc { font-size: 15px; max-width: 900px; color: var(--text-secondary); line-height: 1.55; }

.qn-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.qn-toolbar-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.qn-toolbar-right { justify-content: flex-end; }

.qn-select-wrap { position: relative; }
.qn-select {
  padding: 10px 14px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  min-width: 170px;
  outline: none;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.qn-select:focus { border-color: var(--accent); background: #fff; }

.qn-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.qn-progress-track {
  flex: 1;
  height: 8px;
  background: var(--bg-hover);
  border: none;
  border-radius: 100px;
  overflow: hidden;
}
.qn-progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width .3s var(--ease);
  border-radius: 100px;
}
.qn-progress-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 170px;
  text-align: right;
  font-weight: 500;
}

.qn-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qn-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.qn-sec-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-primary);
  text-align: left;
  transition: background .15s var(--ease);
}
.qn-sec-header:hover { background: var(--bg-overlay); }
.qn-section.is-open .qn-sec-header { border-bottom-color: var(--border); }
.qn-sec-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}
.qn-sec-title {
  flex: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qn-sec-en {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}
.qn-sec-caret {
  color: var(--text-muted);
  transition: transform .2s var(--ease);
  display: inline-flex;
}
.qn-section.is-open .qn-sec-caret { transform: rotate(90deg); }

.qn-sec-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .2s var(--ease);
  padding: 0 22px;
}
.qn-section.is-open .qn-sec-body {
  max-height: 9999px;
  padding: 22px;
  transition: max-height .45s var(--ease), padding .2s var(--ease);
}

.qn-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 860px) {
  .qn-field-grid { grid-template-columns: 1fr; }
}

.qn-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
.qn-field.qn-field-sub {
  margin-left: 20px;
  background: #fff;
  border: 1px solid var(--border);
}
.qn-field.is-disabled { opacity: .5; pointer-events: none; }

.qn-field-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.qn-field-text { display: inline-flex; gap: 4px; }
.qn-req { color: var(--color-error); margin-left: 2px; }
.qn-field-en {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.qn-field-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qn-field-control input[type="text"],
.qn-field-control input[type="number"],
.qn-field-control input[type="date"],
.qn-field-control select,
.qn-field-control textarea {
  flex: 1;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .15s var(--ease);
}
.qn-field-control textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.qn-field-control input:focus,
.qn-field-control select:focus,
.qn-field-control textarea:focus { border-color: var(--accent); }

.qn-unit {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.qn-multi {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.qn-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.qn-chk:hover { background: var(--bg-hover); }
.qn-chk input { accent-color: var(--accent); }
.qn-chk-single {
  padding: 10px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
}

.qn-field-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  padding-top: 4px;
}

/* 작업위치(stations) */
.qn-stations-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qn-stations-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.qn-stations-count { font-size: 13px; color: var(--text-secondary); }
.qn-stations-count b { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 700; }
#qn-stations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.qn-st-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}
.qn-st-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-overlay);
  border-bottom: 1px solid var(--border);
}
.qn-st-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.qn-st-remove {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}
.qn-st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
}
@media (max-width: 900px) {
  .qn-st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .qn-st-grid { grid-template-columns: 1fr; }
}
.qn-st-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qn-st-cell label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.qn-foot-note {
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

/* 모바일 전용: 하단 고정 액션 바 */
.qn-fab-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 12px rgba(25,31,40,.04);
  z-index: 40;
}
@media (max-width: 700px) {
  .qn-fab-bar { display: block; }
  .qn-main { padding-bottom: 120px; }
  .qn-toolbar { padding: 12px; }
  .qn-progress-text { min-width: 0; font-size: 12px; }
  .qn-progress-wrap { flex-wrap: wrap; }
}

/* ============================================================
   === 테스트 데이터 위젯 === (Toss 감성)
   산업군별 샘플 JSON 다운로드 패널 (index.html, result.html)
   ============================================================ */
.test-data-section {
  margin: 80px 0 0;
  padding: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: none;
}
.test-data-section .panel-head {
  margin-bottom: 24px;
  padding: 0;
  border: none;
}
.test-data-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
}
.test-data-section .sub {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.td-root { display: block; }

.td-loading {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 14px;
  justify-content: center;
}
.td-loading-text { color: var(--text-secondary); }

.td-empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
}
.td-empty.td-error { color: var(--color-error); }
.td-error-hint {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.td-error-hint code {
  background: var(--bg-hover);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--accent);
}

/* 카드 그리드 — 데스크톱 3열 / 태블릿 2열 / 모바일 1열 */
.td-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) {
  .td-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .td-grid { grid-template-columns: 1fr; }
}

.td-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.td-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.td-card-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: var(--radius-sm);
}

.td-card-body { flex: 1 1 auto; min-width: 0; }

.td-card-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.td-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.td-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.td-card-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}
.td-card-actions .btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

/* 결과 페이지 다운로드 패널 */
.result-download-section {
  margin-top: 32px;
  padding: 28px 32px;
}
.td-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.td-result-actions .btn { flex: 0 0 auto; }

/* 인쇄 시 숨김 */
@media print {
  .test-data-section { display: none !important; }
}

/* ============================================================
   메인 페이지 매뉴얼 CTA 섹션
   ============================================================ */
.manuals-cta {
  margin: 32px 0;
  padding: 28px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.manuals-cta-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.manuals-cta-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.manuals-cta-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.manuals-cta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.manuals-cta-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-overlay);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.manuals-cta-card:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.manuals-cta-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 6px;
  margin-bottom: 14px;
}
.manuals-cta-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.manuals-cta-card-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 10px;
  flex: 1;
}
.manuals-cta-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .manuals-cta-grid { grid-template-columns: repeat(2, 1fr); }
  .manuals-cta-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 540px) {
  .manuals-cta-grid { grid-template-columns: 1fr; }
  .manuals-cta { padding: 20px; }
}

@media print {
  .manuals-cta { display: none !important; }
}

/* ============================================================
   카드 / 패널 / 표 선명도 강화 (대기업 제안서 톤)
   ============================================================ */
.card,
.panel,
.cat-card,
.qs-tile,
.td-card,
.spec-card,
.qn-section {
  border: 1.5px solid var(--border);
  background: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.cat-card:hover,
.qs-tile:hover,
.td-card:hover {
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-card:focus-within,
.qs-tile:focus-within,
.td-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* 표 구분선 명확 */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
table th, table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-size: 14.5px;
  vertical-align: middle;
}
table th {
  background: var(--bg-overlay);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: .02em;
  border-bottom: 2px solid var(--border);
  text-transform: none;
}
table tr:last-child td { border-bottom: 0; }
table tbody tr:hover { background: var(--bg-overlay); }

/* 패널 헤더 구분선 */
.panel-head {
  border-bottom: 1.5px solid var(--border);
  font-weight: 600;
}

/* 입력창 보더 명확화 */
input, select, textarea {
  border: 1.5px solid var(--border) !important;
  background: #fff !important;
}
input:hover, select:hover, textarea:hover {
  border-color: var(--border-strong) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* 버튼 호버 강조 */
.btn {
  border: 1.5px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .08s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(29,78,216,.25);
}
.btn-ghost {
  background: var(--bg-overlay);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn:active:not(:disabled) {
  transform: scale(.98);
}

/* 챗 메시지 보더 강화 */
.msg {
  border: 1.5px solid var(--border);
}
.msg.user {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.msg.ai {
  background: var(--bg-overlay);
  border-color: var(--border);
}

/* 질문지 옵션 카드 보더 강화 */
.qn-opt {
  border-width: 1.5px !important;
  border-color: var(--border) !important;
  background: #fff !important;
}
.qn-opt:hover {
  border-color: var(--border-strong) !important;
  background: var(--bg-overlay) !important;
}
.qn-opt.is-checked {
  border-color: var(--accent) !important;
  background: var(--accent-bg) !important;
}

/* ============================================================
   질문지 V-체크 옵션 카드 (라디오/멀티 토글 클릭 가능)
   ============================================================ */
.qn-opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.qn-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-overlay, #f9fafb);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md, 12px);
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary, #191f28);
  min-height: 48px;
}
.qn-opt:hover {
  background: var(--bg-hover, #f2f4f6);
  border-color: var(--border-strong, #e5e8eb);
}
.qn-opt:active { transform: scale(0.98); }
.qn-opt input[type="radio"],
.qn-opt input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.qn-opt-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--border-strong, #e5e8eb);
  color: transparent;
  flex-shrink: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.qn-opt.is-checked {
  background: var(--accent-bg, rgba(0,100,255,.08));
  border-color: var(--accent, #0064FF);
  color: var(--accent, #0064FF);
  font-weight: 600;
}
.qn-opt.is-checked .qn-opt-check {
  background: var(--accent, #0064FF);
  border-color: var(--accent, #0064FF);
  color: #fff;
}
.qn-opt-label { line-height: 1.3; }
.qn-opt-multi .qn-opt-check { border-radius: 6px; }
.qn-opt-single { width: 100%; max-width: 240px; }
.is-disabled .qn-opt { opacity: .5; pointer-events: none; }

/* 모바일에서는 옵션이 1열로 풀폭 */
@media (max-width: 640px) {
  .qn-opts { flex-direction: column; align-items: stretch; }
  .qn-opt { width: 100%; justify-content: flex-start; padding: 14px 16px; }
}

/* ============================================================
   텔레그램 상담사 메시지 (msg.agent) — Phase 3 양방향 상담
   ============================================================ */
.msg.agent {
  background: linear-gradient(180deg, rgba(0,100,255,.04), rgba(0,100,255,.02));
  border: 1px solid rgba(0,100,255,.12);
  border-left: 3px solid var(--accent, #0064FF);
}
.msg.agent .msg-meta {
  color: var(--accent, #0064FF);
  font-weight: 600;
}
.agent-mini-dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent, #0064FF);
  margin-right: 6px; vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(0,100,255,.15);
  animation: agent-pulse 2s ease infinite;
}
@keyframes agent-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,100,255,.15); }
  50%      { box-shadow: 0 0 0 6px rgba(0,100,255,.05); }
}
#btn-consult-request[disabled] {
  opacity: 1;
  cursor: default;
  background: rgba(16,185,129,.12);
  color: #059669;
}

/* ============================================================
   === 질문지 사이드 AI 도움말 챗 === (Toss 감성)
   데스크톱(1100+): 좌측 질문지 / 우측 AI 챗 sticky 사이드바
   모바일(1100-): 챗 숨김 + 우하단 플로팅 버튼 → 슬라이드업 오버레이
   ============================================================ */
/* 데스크톱·모바일 공통: 본문은 1열 풀폭, 챗은 항상 floating */
.qn-layout {
  display: block;
}
.qn-layout-main { min-width: 0; }

/* 사이드 챗을 항상 floating 패널로 사용 (데스크톱에서 sticky 사이드바 미사용) */
.qn-chat-side {
  display: none !important;
}

.qn-chat-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.qn-chat-side-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.qn-chat-side-title .icon { color: var(--accent); }
.qn-chat-side-actions { display: inline-flex; gap: 4px; }
.qn-chat-iconbtn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.qn-chat-iconbtn:hover {
  background: var(--bg-overlay);
  color: var(--text-primary);
}

.qn-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  scroll-behavior: smooth;
}

.qn-chat-msg {
  max-width: 92%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  word-wrap: break-word;
  animation: qn-chat-msg-in .22s var(--ease);
}
@keyframes qn-chat-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qn-chat-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.qn-chat-msg-ai {
  align-self: flex-start;
  background: var(--bg-overlay);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}
.qn-chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.qn-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ok, #10b981);
}
.qn-chat-msg-body { white-space: normal; }

.qn-chat-typing {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.qn-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  animation: qn-chat-typing 1.2s infinite;
}
.qn-chat-typing span:nth-child(2) { animation-delay: .15s; }
.qn-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes qn-chat-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

.qn-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.qn-chat-suggestions:empty { display: none; }
.qn-chat-suggest-btn {
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.qn-chat-suggest-btn:hover {
  background: var(--accent-bg);
  color: var(--accent);
}

.qn-chat-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.qn-chat-input textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 11px 14px;
  background: var(--bg-overlay);
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  resize: none;
  outline: none;
  line-height: 1.5;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.qn-chat-input textarea::placeholder { color: var(--text-muted); }
.qn-chat-input textarea:focus {
  background: #fff;
  border-color: var(--accent);
}
.qn-chat-input textarea:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.qn-chat-send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s var(--ease), transform .1s var(--ease);
}
.qn-chat-send:hover:not(:disabled) { background: var(--accent-hover); }
.qn-chat-send:active:not(:disabled) { transform: scale(.96); }
.qn-chat-send:disabled { opacity: .5; cursor: not-allowed; }

/* 우하단 떠다니는 챗 버튼 (전 화면 항상 노출) */
.qn-chat-fab {
  display: inline-flex;
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  min-width: 56px;
  height: 56px;
  padding: 0 18px 0 16px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(29,78,216,.30), 0 4px 10px rgba(29,78,216,.18);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  z-index: 90;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.qn-chat-fab:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29,78,216,.40), 0 6px 14px rgba(29,78,216,.20);
}
.qn-chat-fab:active { transform: scale(.96); }
.qn-chat-fab-label { white-space: nowrap; letter-spacing: -0.01em; }

/* 챗 패널 컨테이너 (우하단 floating) */
.qn-chat-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  pointer-events: none;
}
.qn-chat-overlay.is-open { display: block; }
.qn-chat-overlay-backdrop {
  display: none; /* 데스크톱 floating 모드에서는 배경 어둡게 안 함 */
}

/* 작은 floating 챗 패널 (오른쪽 하단에서 펼쳐짐) */
.qn-chat-overlay-panel {
  position: absolute;
  right: 24px;
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 140px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 56px rgba(15,27,42,.18), 0 6px 18px rgba(15,27,42,.10);
  animation: qn-chat-pop-up .22s var(--ease);
  overflow: hidden;
  pointer-events: auto;
}
@keyframes qn-chat-pop-up {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* 모바일: 풀폭 슬라이드업 */
@media (max-width: 700px) {
  .qn-chat-overlay-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(15,27,42,.4);
    pointer-events: auto;
    animation: qn-chat-fade .2s var(--ease);
  }
  @keyframes qn-chat-fade {
    from { opacity: 0; } to { opacity: 1; }
  }
  .qn-chat-overlay-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    height: 80vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    animation: qn-chat-slide-up .24s var(--ease);
  }
  @keyframes qn-chat-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .qn-chat-fab {
    bottom: calc(80px + env(safe-area-inset-bottom));
    min-width: 56px;
    padding: 0;
    justify-content: center;
  }
  .qn-chat-fab-label { display: none; }
}

/* ============================================================
   신속 선정 — 정밀 무게 입력 / 칩 / 시각화 / 구상도 / 견적 배너
   (UIUX 개선: SVG 게이지·비교막대·추력-속도 곡선·레이아웃 모식도)
   ============================================================ */

/* 정밀 무게 숫자 입력 */
.qs-num-input {
  display: flex; align-items: center; gap: 10px;
  max-width: 280px; margin-top: 6px;
}
.qs-num-input input {
  flex: 1; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em;
  padding: 12px 14px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md); background: var(--bg-base); color: var(--text-primary);
  text-align: right;
}
.qs-num-input input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-dim); outline: none; }
.qs-num-unit { font-size: 1rem; font-weight: 600; color: var(--text-muted); }

.qs-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.qs-chip {
  font-size: .8rem; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--bg-base);
  color: var(--text-secondary); cursor: pointer; transition: all .14s;
}
.qs-chip:hover { border-color: var(--accent-light); color: var(--accent); }
.qs-chip.selected { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ── 시각화 섹션 레이아웃 ── */
.qs-viz-section { display: grid; grid-template-columns: minmax(300px, 1.05fr) 1.35fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 860px) { .qs-viz-section { grid-template-columns: 1fr; } }

.qs-viz-diagram, .qs-viz-card {
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-xs);
}
.qs-viz-head, .qs-viz-title {
  display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 10px;
}
.qs-viz-head .icon, .qs-viz-title .icon { width: 17px; height: 17px; color: var(--accent); }
.qs-viz-head em { margin-left: auto; font-style: normal; font-size: .68rem; color: var(--text-muted); font-weight: 400; }

.qs-viz-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qs-viz-charts .qs-viz-curve { grid-column: 1 / -1; }
@media (max-width: 560px) { .qs-viz-charts { grid-template-columns: 1fr; } }

.qs-viz-foot { font-size: .74rem; margin-top: 8px; line-height: 1.4; color: var(--text-muted); }
.qs-viz-foot.ok { color: var(--color-ok); }
.qs-viz-foot.bad { color: var(--color-error); }

/* ── 반원 게이지 ── */
.qs-gauge-svg { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; }
.qs-gauge-svg .g-zone { fill: none; stroke-width: 13; stroke-linecap: round; opacity: .85; }
.qs-gauge-svg .g-ok   { stroke: var(--color-ok); }
.qs-gauge-svg .g-warn { stroke: var(--color-warn); }
.qs-gauge-svg .g-bad  { stroke: var(--color-error); }
.qs-gauge-svg .g-needle { stroke: var(--text-primary); stroke-width: 3.5; stroke-linecap: round; }
.qs-gauge-svg .g-needle.bad { stroke: var(--color-error); }
.qs-gauge-svg .g-hub { fill: var(--text-primary); }
.qs-gauge-svg .g-val { font-size: 24px; font-weight: 800; fill: var(--text-primary); text-anchor: middle; }
.qs-gauge-svg .g-val.ok { fill: var(--color-ok); }
.qs-gauge-svg .g-val.bad { fill: var(--color-error); }
.qs-gauge-svg .g-lbl { font-size: 9.5px; fill: var(--text-muted); text-anchor: middle; }

/* ── 수평 비교 막대 ── */
.qs-bar2 { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.qs-bar2-row { display: flex; align-items: center; gap: 9px; }
.qs-bar2-lbl { width: 30px; font-size: .74rem; color: var(--text-muted); flex-shrink: 0; }
.qs-bar2-track { flex: 1; height: 14px; background: var(--bg-overlay); border-radius: 7px; overflow: hidden; }
.qs-bar2-fill { height: 100%; border-radius: 7px; transition: width .4s ease; }
.qs-bar2-fill.ok { background: var(--color-ok); }
.qs-bar2-fill.bad { background: var(--color-error); }
.qs-bar2-fill.avail { background: var(--accent-light); }
.qs-bar2-num { width: 78px; text-align: right; font-size: .76rem; font-weight: 600; color: var(--text-secondary); flex-shrink: 0; }

/* ── 추력-속도 곡선 ── */
.qs-curve-svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.qs-curve-svg .ax { stroke: var(--border-strong); stroke-width: 1; }
.qs-curve-svg .cv-peak { fill: none; stroke: var(--accent); stroke-width: 2; }
.qs-curve-svg .cv-safe { fill: none; stroke: var(--color-warn); stroke-width: 1.6; stroke-dasharray: 5 3; }
.qs-curve-svg .cv-cont { stroke: var(--text-muted); stroke-width: 1.2; stroke-dasharray: 2 3; }
.qs-curve-svg .cv-drop { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 2; }
.qs-curve-svg .cv-op { fill: var(--color-ok); stroke: #fff; stroke-width: 2; }
.qs-curve-svg .cv-op.bad { fill: var(--color-error); }
.qs-curve-svg .cv-yl, .qs-curve-svg .cv-xl { font-size: 9px; fill: var(--text-muted); text-anchor: end; }
.qs-curve-svg .cv-xl { text-anchor: start; }
.qs-curve-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.qs-curve-legend .lg { font-size: .7rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.qs-curve-legend .lg::before { content: ''; width: 13px; height: 0; border-top: 2px solid; }
.qs-curve-legend .lg-peak::before { border-color: var(--accent); }
.qs-curve-legend .lg-safe::before { border-top-style: dashed; border-color: var(--color-warn); }
.qs-curve-legend .lg-cont::before { border-top-style: dotted; border-color: var(--text-muted); }
.qs-curve-legend .lg-op::before { border: none; width: 9px; height: 9px; border-radius: 50%; background: var(--color-ok); }

/* ── 레이아웃 구상도 (트랙 UI) ── */
.qs-diagram-svg { width: 100%; height: auto; display: block; }
.qs-diagram-svg .td-floor { fill: var(--bg-overlay); stroke: var(--border-subtle); stroke-width: 1; }
.qs-diagram-svg .td-bed { fill: none; stroke: #cdd6e3; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.qs-diagram-svg .td-rail { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; }
.qs-diagram-svg .td-centerline { fill: none; stroke: #fff; stroke-width: 1.4; stroke-dasharray: 5 5; stroke-linejoin: round; opacity: .9; }
.qs-diagram-svg .td-endstop { fill: var(--accent); }
.qs-diagram-svg .td-arrow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.qs-diagram-svg .td-mover { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.qs-diagram-svg .td-mover-cap { fill: var(--accent-hover); }
.qs-diagram-svg .td-tick { stroke: var(--color-warn); stroke-width: 1.4; }
.qs-diagram-svg .td-station { fill: #fff; stroke: var(--color-warn); stroke-width: 2.2; }
.qs-diagram-svg .td-st-lbl { font-size: 9px; font-weight: 600; fill: var(--text-secondary); text-anchor: middle; }
.qs-diagram-svg .td-dim { font-size: 10.5px; font-weight: 600; fill: var(--text-muted); text-anchor: middle; }

/* ── 견적가 배너 ── */
.qs-quote-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, var(--accent-bg), rgba(29,78,216,.02));
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
  padding: 16px 20px; margin-bottom: 18px;
}
.qs-quote-banner.warn { border-color: var(--color-warn); background: linear-gradient(135deg, rgba(245,158,11,.08), rgba(245,158,11,.02)); }
.qs-quote-label { font-size: .76rem; color: var(--text-muted); }
.qs-quote-label span { font-size: .68rem; }
.qs-quote-total { font-size: 1.85rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.qs-quote-banner.warn .qs-quote-total { color: var(--color-warn); }
.qs-quote-meta { display: grid; grid-template-columns: repeat(2, auto); gap: 6px 22px; }
.qs-quote-meta > div { display: flex; flex-direction: column; }
.qs-quote-meta span { font-size: .68rem; color: var(--text-muted); }
.qs-quote-meta b { font-size: .92rem; color: var(--text-primary); }

/* ── BOM 합계 / 면책 ── */
.qs-bom-table tfoot .qs-bom-total td { border-top: 2px solid var(--border-strong); padding-top: 10px; }
.qs-bom-disc { font-size: .7rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }

@media print {
  .qs-viz-section { grid-template-columns: 1fr 1fr; }
  .qs-viz-charts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .qs-bar2-fill, .qs-chip { transition: none; }
}

/* 빠른 결과 보기 버튼 (스마트사이저식 즉시 선정) */
.btn-quick { color: var(--accent); border: 1px dashed var(--accent-light); }
.btn-quick:hover { background: var(--accent-bg); border-style: solid; }
.btn-quick .icon { width: 16px; height: 16px; }

/* 구상도 캡션 (범례) */
.qs-diagram-cap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; margin-top: 8px; font-size: .76rem; color: var(--text-secondary); }
.qs-diagram-cap b { color: var(--accent); font-weight: 700; }
.qs-diagram-cap .td-key { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -1px; border-radius: 3px; }
.qs-diagram-cap .td-key-mover { background: var(--accent); }
.qs-diagram-cap .td-key-station { background: #fff; border: 2px solid var(--color-warn); border-radius: 50%; width: 11px; height: 11px; }

/* ============================================================
   대대적 UIUX 개편 — 히어로 + 전역 컴포넌트 폴리시 (전 페이지 공통)
   ============================================================ */

/* ── 히어로 ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items: center;
  margin: 8px 0 48px;
  padding: 44px 44px 40px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(59,130,246,.12), transparent 60%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 70%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--accent);
  background: var(--accent-bg); padding: 6px 13px; border-radius: 999px;
}
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(29,78,216,.15); }
.hero-title {
  margin: 18px 0 14px; font-size: 42px; line-height: 1.12; font-weight: 800;
  letter-spacing: -.03em; color: var(--text-primary);
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 1.02rem; line-height: 1.6; color: var(--text-secondary); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 28px; padding-top: 22px; border-top: 1px solid var(--border-subtle); }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat b { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -.02em; }
.hero-stat span { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }

.hero-visual { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 360px; height: auto; }
.hero-svg .hv-card { fill: #fff; stroke: var(--border); stroke-width: 1; filter: drop-shadow(0 8px 24px rgba(15,27,42,.08)); }
.hero-svg .hv-bed { fill: none; stroke: #d8e0ec; stroke-width: 16; stroke-linejoin: round; }
.hero-svg .hv-rail { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.hero-svg .hv-dash { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 6 6; stroke-linejoin: round; }
.hero-svg .hv-mover rect { fill: var(--accent); stroke: #fff; stroke-width: 1.5; }
.hero-svg .hv-pct { font-size: 17px; font-weight: 800; fill: var(--accent); text-anchor: middle; }
.hero-svg .hv-lbl { font-size: 9px; fill: var(--text-muted); text-anchor: middle; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 30px 22px 26px; gap: 22px; margin-bottom: 36px; }
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: .95rem; }
  .hero-visual { order: -1; }
  .hero-svg { max-width: 280px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
}

/* ── 전역 버튼 폴리시 (전 페이지 적용) ── */
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: var(--radius-md); font-weight: 600; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-light), var(--accent));
  box-shadow: 0 4px 14px rgba(29,78,216,.24), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--accent), var(--accent-hover)); box-shadow: 0 6px 18px rgba(29,78,216,.3); }
.btn { transition: transform .12s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease); }
.btn:active { transform: translateY(1px); }

/* ── 카드 호버 리프트 (매뉴얼/카탈로그/제품 카드 공통) ── */
.manuals-cta-card, .cat-card, .product-card {
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s var(--ease);
}
.manuals-cta-card:hover, .cat-card:hover, .product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ── 섹션 헤딩 악센트 바 (패널 제목 공통) ── */
.panel-head > div > h2, .manuals-cta-title {
  position: relative;
}
.panel-head > div > h2::before {
  content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 3px; background: var(--accent);
}
@media (max-width: 768px) { .panel-head > div > h2::before { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .manuals-cta-card, .cat-card, .product-card { transition: none; }
  .btn:active { transform: none; }
}

/* ============================================================
   세일즈 데모용 — 제품 카드 그리드 + 전역 터치/가독성 레이어
   (영업이 태블릿/폰으로 고객에게 보여주며 터치하는 시나리오)
   ============================================================ */

/* ── 제품 카탈로그 카드 ── */
.prod-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.prod-select, .prod-search {
  height: 48px; padding: 0 14px; font-size: 15px;
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--bg-base); color: var(--text-primary);
}
.prod-select { min-width: 200px; }
.prod-search { flex: 1; min-width: 220px; }
.prod-select:focus, .prod-search:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-dim); outline: none; }
.prod-count { color: var(--text-muted); font-size: 14px; white-space: nowrap; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.prod-empty { grid-column: 1/-1; text-align: center; padding: 48px; color: var(--text-muted); }
.prod-card {
  display: flex; flex-direction: column; gap: 7px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-base); box-shadow: var(--shadow-xs);
}
.prod-card-top { display: flex; justify-content: space-between; align-items: center; }
.prod-lead { font-size: .76rem; color: var(--text-muted); }
.prod-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; letter-spacing: -.01em; }
.prod-name-en { font-size: .82rem; color: var(--text-muted); }
.prod-sku { align-self: flex-start; font-size: .78rem; background: var(--bg-overlay); color: var(--text-secondary); padding: 3px 8px; border-radius: 6px; }
.prod-notes { font-size: .82rem; color: var(--text-secondary); line-height: 1.5; }
.prod-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.prod-unit { font-size: .8rem; color: var(--text-muted); }
.prod-price { font-size: 1rem; font-weight: 700; color: var(--accent); }
.prod-price.tbd { color: var(--text-muted); font-weight: 600; font-size: .85rem; }

/* ── 전역 터치/가독성 (태블릿·폰: ≤1024px) ── */
@media (max-width: 1024px) {
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  select, input[type="text"], input[type="number"], input[type="search"], textarea {
    font-size: 16px;            /* iOS 자동 줌 방지 + 가독성 */
    min-height: 46px;
  }
  .main { padding-left: 18px; padding-right: 18px; }
  body { font-size: 15.5px; }
}

/* 데이터 테이블이 남아있는 페이지: 폰에서 가로 스크롤 힌트 + 큰 셀 */
@media (max-width: 768px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
  .table-wrap table { min-width: 560px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px !important; font-size: 14px; }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-toolbar { gap: 10px; }
  .prod-select, .prod-search { width: 100%; flex: none; }
}

/* ============================================================
   질감 · 입체감 · 재질 (살짝) + 제품 일러스트 썸네일
   ============================================================ */

/* 제품 카드 썸네일 (메탈 일러스트) */
.prod-thumb {
  display: flex; align-items: center; justify-content: center;
  height: 104px; margin-bottom: 8px; border-radius: var(--radius-md);
  background:
    radial-gradient(130% 90% at 50% 0%, #ffffff 0%, #eef3f9 70%, #e6edf6 100%);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -10px 18px -12px rgba(20,30,50,.12);
  overflow: hidden;
}
.pa-svg { width: 78%; max-width: 200px; height: auto; }
.pa-svg .pa-sh { fill: rgba(20,30,50,.14); }
.pa-svg > :not(.pa-sh) { filter: drop-shadow(0 3px 4px rgba(20,30,50,.1)); }

/* 카드 표면 재질 — 미세 그라데이션 + 상단 내부 하이라이트 + 레이어드 그림자 */
.prod-card, .manuals-cta-card, .cat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.85),
    0 1px 2px rgba(15,27,42,.05),
    0 10px 22px -12px rgba(15,27,42,.18);
}
.prod-card:hover, .manuals-cta-card:hover, .cat-card:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 12px 28px -12px rgba(29,78,216,.30);
}

/* 배지 글로시 (재질감) */
.cat-badge, .qs-tile-badge {
  background: linear-gradient(180deg, #eef4ff, #dbe7ff) !important;
  color: var(--accent) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(29,78,216,.12);
  border: 1px solid rgba(29,78,216,.12);
}

/* primary 버튼 글로시 하이라이트 — overflow 없이 배경 sheen (텍스트 잘림 방지) */
.btn-primary {
  background:
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, var(--accent-light), var(--accent));
}
.btn-primary:hover:not(:disabled) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, var(--accent), var(--accent-hover));
}

/* 히어로 일러스트 카드 입체 강화 */
.hero-svg .hv-card { filter: drop-shadow(0 12px 28px rgba(15,27,42,.12)); }

/* 결과 시각화 카드도 살짝 재질 */
.qs-viz-card, .qs-viz-diagram, .spec-card {
  background: linear-gradient(180deg, #ffffff, #fafbfe);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-xs);
}

/* ============================================================
   결과/사양서/견적/BOM — 모바일 반응형 카드 테이블 + 재질
   (넓은 표를 폰에서 카드로 스택: <table class="responsive-cards"> + td[data-label])
   ============================================================ */
@media (max-width: 900px) {
  table.responsive-cards { border: none; min-width: 0; }
  table.responsive-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.responsive-cards tbody { display: block; }
  table.responsive-cards tr {
    display: block; margin-bottom: 12px; padding: 6px 14px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff, #fafbfe);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-xs);
  }
  table.responsive-cards td {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    padding: 9px 0 !important; border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important; text-align: right;
    white-space: normal !important; font-size: 14px;
  }
  table.responsive-cards tr td:last-child { border-bottom: none !important; }
  table.responsive-cards td::before {
    content: attr(data-label); font-weight: 600; color: var(--text-muted);
    text-align: left; flex: 0 0 38%; white-space: nowrap;
  }
  table.responsive-cards td.num, table.responsive-cards td .col-price { text-align: right; }
  /* 셀 안의 조각(뱃지·쪽수·값)은 각각 flex 아이템이 된다. 셀 값 쪽 몫이 62% 뿐이라
     조각이 여럿이면 서로 짓눌러 "p.42" 가 세로로 한 자씩 쌓였다.
     라벨 몫을 줄이고 조각이 접히도록 둔다. */
  table.responsive-cards td { flex-wrap: wrap; }
  table.responsive-cards td::before { flex: 0 0 32%; }
  table.responsive-cards td > * { min-width: 0; }
}
/* 폰에서는 라벨을 값 위로 올린다 — 좁은 폭에서 값이 실오라기처럼 눌리지 않는다 */
@media (max-width: 560px) {
  table.responsive-cards td { text-align: left; }
  table.responsive-cards td::before { flex: 0 0 100%; margin-bottom: 2px; }
  table.responsive-cards td.num, table.responsive-cards td .col-price { text-align: left; }
}

/* 리포트/견적 섹션 재질 (살짝) */
.report-section, .quote-section, .meta-section {
  background: linear-gradient(180deg, #ffffff, #fafbfe);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-sm);
}
.meta-grid > div, .quote-summary-cell, .subtotal-card, .quote-totals {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

/* 결과 페이지 2단 → 모바일 스택 (안전망) */
@media (max-width: 860px) {
  .result-wrap { grid-template-columns: 1fr !important; }
}

/* 리포트 헤더 액션 버튼 모바일 풀폭 (잘림 방지)
   세로 태블릿(768·820px)에서도 표·헤더가 넘쳐 잘렸다 — 900px 까지 올린다. */
@media (max-width: 900px) {
  /* 리포트(사양서/BOM) 모바일 — 표/그리드/헤더가 화면 넘치지 않게 */
  .report-header { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .report-actions { width: 100%; flex-wrap: wrap; }
  .report-actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .report-main { padding: 18px 14px 48px; }
  .report-section { padding: 16px 14px; }
  .report-section h2 { font-size: 16px; }
  /* responsive-cards 가 아닌 표(입력 요약 등)는 셀 줄바꿈 + 고정 레이아웃으로 폭 맞춤 */
  .report-table:not(.responsive-cards) { table-layout: fixed; min-width: 0; }
  .report-table:not(.responsive-cards) th,
  .report-table:not(.responsive-cards) td { word-break: break-word; white-space: normal; }
  /* 안전 검증 카드: 다열 그리드 → 1열 스택 */
  .safety-row { grid-template-columns: 1fr !important; gap: 4px; }
  /* 견적 페이지 헤더/액션 */
  .quote-page-actions { width: 100%; flex-wrap: wrap; }
  .quote-page-actions .btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
  .quote-page { padding: 20px 14px 48px; }
  .quote-section { padding: 18px 14px; }
}

/* ============================================================
   네비 그룹 라벨 — 모바일 드로어에서만 표시 (데스크톱 가로바엔 숨김)
   ============================================================ */
.nav-group { display: none; }
@media (max-width: 900px) {
  .nav .nav-group {
    display: block;
    padding: 16px 18px 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
  }
}

/* ============================================================
   디자인 정돈 — 'AI 티' 제거 + 모바일 비율
   (알약 라벨·라디얼 글로우·글로시 버튼·과한 재질 걷어냄 → 진중한 산업용 톤)
   ============================================================ */

/* 1) 아이브로우/라벨: 알약 배경·점·글로우 제거 → 담백한 캡션 라벨 */
.hero-eyebrow, .intro-eyebrow, .page-intro .eyebrow, .enterprise-label {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--text-muted) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  margin-bottom: 14px !important;
  box-shadow: none !important;
}
.hero-eyebrow .hero-dot,
.intro-eyebrow::before,
.enterprise-label::before { display: none !important; }

/* 2) 히어로: 라디얼 글로우 제거 → 담백한 카드 */
.hero {
  background: #fff !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}
.hero-title { color: var(--text-primary) !important; }
.hero-title em { color: var(--accent) !important; font-weight: inherit; }

/* 3) primary 버튼: 글로시 sheen 제거 → 솔리드 */
.btn-primary { background: var(--accent) !important; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover) !important; }

/* 4) 배지: 그라데이션·내부광 제거 → 솔리드 서브틀 */
.cat-badge, .qs-tile-badge {
  background: var(--accent-bg) !important;
  color: var(--accent) !important;
  border: 1px solid var(--border-subtle) !important;
  box-shadow: none !important;
}

/* 5) 카드 재질(글로시/레이어드 그림자) 제거 → 단정한 보더 + 옅은 그림자 */
.prod-card, .manuals-cta-card, .cat-card,
.report-section, .quote-section,
.qs-viz-card, .qs-viz-diagram, .spec-card {
  background: #fff !important;
  background-image: none !important;
  box-shadow: 0 1px 2px rgba(15,27,42,.04) !important;
}
.prod-card:hover, .manuals-cta-card:hover, .cat-card:hover {
  box-shadow: 0 4px 14px -6px rgba(15,27,42,.18) !important;
  border-color: var(--accent-light) !important;
}
.prod-thumb { background: var(--bg-overlay) !important; box-shadow: none !important; }

/* 6) 모바일 비율 정리 */
@media (max-width: 720px) {
  .hero { padding: 24px 18px !important; margin: 4px 0 28px !important; gap: 18px; }
  .hero-title { font-size: 27px !important; line-height: 1.22 !important; margin: 8px 0 12px !important; }
  .hero-sub { font-size: .95rem !important; }
  .hero-actions { margin: 20px 0 22px !important; }
  .hero-stats { grid-template-columns: repeat(2, 1fr) !important; gap: 14px 18px !important; }
  .hero-stat b { font-size: 1.3rem !important; }
  .hero-svg { max-width: 240px; }
  .page-intro-title { font-size: 25px !important; }
  .page-intro-sub { font-size: .92rem !important; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 23px !important; }
}
