/* 부품도감 — 제미나이 시안(apps/parts-finder/gemini-mockup.html) CSS를 그대로 옮기고, 실제 데이터용 컴포넌트를 뒤에 덧붙였다. */

    /* ==========================================================================
       1. DESIGN TOKENS (:root CSS Variables)
       컬러 팔레트, 타이포그래피, 스페이싱, 라운드, 그림자 토큰 완벽 분리
       ========================================================================== */
    :root {
      /* Brand & Primary Palette */
      --color-navy: #0F294A;           /* 딥 상용 네이비 */
      --color-navy-hover: #173C6B;
      --color-blue: #1D63ED;           /* 신뢰감 있는 모던 블루 액센트 */
      --color-blue-hover: #1551C9;
      --color-blue-soft: #EBF2FE;
      --color-blue-border: #BFDBFE;

      /* Canvas & Surface */
      --bg-canvas: #F4F6F9;            /* 라이트 슬레이트 배경 */
      --bg-surface: #FFFFFF;
      --bg-subtle: #F8FAFC;
      --bg-hover: #F1F5F9;

      /* Status & Brand Badges */
      --badge-hyundai-text: #002C5F;   /* 현대 유니버스 */
      --badge-hyundai-bg: #E6EEF8;
      --badge-kia-text: #BB162B;       /* 기아 그랜버드 */
      --badge-kia-bg: #FCECEF;
      --badge-common-text: #334155;
      --badge-common-bg: #E2E8F0;

      --color-amber-text: #B45309;     /* 실차 확인 주의점 앰버 */
      --color-amber-strong: #D97706;
      --color-amber-bg: #FEF3C7;
      --color-amber-border: #FDE68A;

      --color-success-text: #047857;
      --color-success-bg: #D1FAE5;

      /* Typography Colors */
      --text-primary: #111827;
      --text-secondary: #4B5563;
      --text-muted: #9CA3AF;
      --text-inverse: #FFFFFF;

      /* Borders */
      --border-default: #E2E8F0;
      --border-strong: #CBD5E1;

      /* Font Families */
      --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
      --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

      /* Spacing Scale */
      --space-1: 4px;
      --space-2: 8px;
      --space-3: 12px;
      --space-4: 16px;
      --space-5: 20px;
      --space-6: 24px;
      --space-8: 32px;

      /* Radius Scale */
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 20px;
      --radius-pill: 9999px;

      /* Elevation Shadows */
      --shadow-xs: 0 1px 2px rgba(15, 41, 74, 0.05);
      --shadow-sm: 0 2px 8px rgba(15, 41, 74, 0.06);
      --shadow-md: 0 8px 24px rgba(15, 41, 74, 0.09);
      --shadow-lg: 0 18px 40px rgba(15, 41, 74, 0.16);

      /* Layout Metrics */
      --header-height: 62px;
      --container-max: 1200px;
    }

    /* ==========================================================================
       2. RESET & BASE STYLES
       ========================================================================== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      min-height: 100%;
      background-color: var(--bg-canvas);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    button, input {
      font-family: inherit;
      border: none;
      background: none;
      color: inherit;
    }

    button {
      cursor: pointer;
    }

    /* PC 환경에서 모바일(390px) 프리뷰 모드 토글 시 적용되는 디바이스 프레임 */
    body.mobile-preview-active {
      background-color: #1E293B;
      display: flex;
      justify-content: center;
      align-items: flex-start;
      padding: var(--space-4) 0;
    }

    body.mobile-preview-active .app-shell {
      width: 390px;
      max-width: 100%;
      min-height: calc(100vh - 32px);
      background-color: var(--bg-canvas);
      border-radius: 34px;
      box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 0 8px #0F172A;
      overflow: hidden;
      position: relative;
    }

    .app-shell {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background-color: var(--bg-canvas);
      transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* ==========================================================================
       3. TOP HEADER & MOBILE(390px) PREVIEW SWITCH
       ========================================================================== */
    .top-header {
      position: sticky;
      top: 0;
      z-index: 40;
      height: var(--header-height);
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-default);
    }

    .header-inner {
      max-width: var(--container-max);
      height: 100%;
      margin: 0 auto;
      padding: 0 var(--space-4);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: 10px;
      text-align: left;
    }

    .brand-emblem {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--color-navy) 0%, #1C487D 100%);
      color: var(--text-inverse);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 15px;
      letter-spacing: -0.03em;
      flex-shrink: 0;
      box-shadow: var(--shadow-xs);
    }

    .brand-texts {
      display: flex;
      flex-direction: column;
    }

    .brand-title {
      font-size: 17px;
      font-weight: 800;
      color: var(--color-navy);
      letter-spacing: -0.02em;
      line-height: 1.2;
    }

    .brand-sub {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-secondary);
      line-height: 1.25;
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }

    /* 3대 화면 즉시 이동 네비게이션 알약 */
    .screen-nav-pills {
      display: flex;
      align-items: center;
      background: var(--bg-canvas);
      padding: 3px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--border-default);
    }

    .screen-pill-btn {
      padding: 5px 10px;
      border-radius: var(--radius-pill);
      font-size: 12px;
      font-weight: 700;
      color: var(--text-secondary);
      transition: all 0.15s ease;
      white-space: nowrap;
    }

    .screen-pill-btn.active {
      background: var(--bg-surface);
      color: var(--color-navy);
      box-shadow: var(--shadow-xs);
    }

    /* 모바일(390px) 프리뷰 모드 스위치 */
    .preview-switch-btn {
      display: none;
      align-items: center;
      gap: 7px;
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      background: var(--bg-subtle);
      border: 1px solid var(--border-strong);
      font-size: 12px;
      font-weight: 700;
      color: var(--color-navy);
      transition: all 0.15s ease;
    }

    .preview-switch-btn:hover {
      border-color: var(--color-blue);
      background: var(--color-blue-soft);
    }

    .switch-track {
      width: 30px;
      height: 17px;
      border-radius: var(--radius-pill);
      background: var(--border-strong);
      position: relative;
      transition: background 0.2s ease;
    }

    .switch-thumb {
      width: 13px;
      height: 13px;
      border-radius: 50%;
      background: #FFFFFF;
      position: absolute;
      top: 2px;
      left: 2px;
      transition: transform 0.2s ease;
      box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    body.mobile-preview-active .preview-switch-btn {
      background: var(--color-navy);
      border-color: var(--color-navy);
      color: #FFFFFF;
    }

    body.mobile-preview-active .switch-track {
      background: var(--color-blue);
    }

    body.mobile-preview-active .switch-thumb {
      transform: translateX(13px);
    }

    @media (min-width: 860px) {
      .preview-switch-btn {
        display: inline-flex;
      }
      .header-inner {
        padding: 0 var(--space-6);
      }
    }

    body.mobile-preview-active .preview-switch-btn {
      display: inline-flex;
    }

    body.mobile-preview-active .brand-sub {
      display: none;
    }

    /* ==========================================================================
       4. MAIN LAYOUT & SHARED COMPONENTS
       ========================================================================== */
    .main-container {
      flex: 1;
      width: 100%;
      max-width: var(--container-max);
      margin: 0 auto;
      padding: var(--space-4) var(--space-4) 56px;
    }

    @media (min-width: 768px) {
      body:not(.mobile-preview-active) .main-container {
        padding: var(--space-6) var(--space-6) 72px;
      }
    }

    .surface-card {
      background: var(--bg-surface);
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-default);
      box-shadow: var(--shadow-sm);
    }

    .section-header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: var(--space-3);
      gap: var(--space-2);
    }

    .section-heading {
      font-size: 16.5px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* 상태 & 차종 배지 */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px 9px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 700;
      line-height: 1.2;
      white-space: nowrap;
    }

    .badge-hyundai {
      background: var(--badge-hyundai-bg);
      color: var(--badge-hyundai-text);
    }

    .badge-kia {
      background: var(--badge-kia-bg);
      color: var(--badge-kia-text);
    }

    .badge-common {
      background: var(--badge-common-bg);
      color: var(--badge-common-text);
    }

    .badge-year {
      background: var(--bg-subtle);
      color: var(--text-secondary);
      border: 1px solid var(--border-default);
      font-weight: 600;
    }

    .badge-slang {
      background: var(--color-blue-soft);
      color: var(--color-blue);
      font-weight: 700;
    }

    .badge-split {
      background: var(--color-amber-bg);
      color: var(--color-amber-text);
      border: 1px solid var(--color-amber-border);
      font-weight: 800;
    }

    /* 엔진 표기 규칙: 한글 설명을 굵고 크게 우선 표기 + 영문 코드는 아래 작은 보조 태그 */
    .engine-spec-group {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .engine-ko-primary {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      line-height: 1.25;
    }

    .engine-code-secondary {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .engine-code-pill {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      padding: 1px 6px;
      border-radius: 4px;
      background: var(--bg-canvas);
      color: var(--text-secondary);
      border: 1px solid var(--border-default);
    }

    /* ==========================================================================
       5. 10-DIGIT PART NUMBER & ONE-CLICK COPY WITH HAPTIC ANIMATION
       ========================================================================== */
    .pn-card-box {
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-strong);
      border-radius: var(--radius-md);
      padding: 13px 15px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
      transition: border-color 0.15s ease, background-color 0.15s ease;
    }

    .pn-card-box:hover {
      border-color: var(--color-blue);
      background: #F6F9FF;
    }

    .pn-card-box.hero-pn-box {
      background: #F5F9FF;
      border: 2px solid var(--color-blue-border);
      padding: 16px 18px;
    }

    .pn-text-stack {
      display: flex;
      flex-direction: column;
      gap: 4px;
      min-width: 0;
    }

    .pn-10digit-main {
      font-family: var(--font-mono);
      font-variant-numeric: tabular-nums;
      font-size: 23px;
      font-weight: 800;
      color: var(--color-navy);
      letter-spacing: 0.03em;
      line-height: 1.1;
      user-select: all;
    }

    .pn-card-box.hero-pn-box .pn-10digit-main {
      font-size: 28px;
    }

    .pn-card-box.compact-pn-box .pn-10digit-main {
      font-size: 18px;
    }

    .pn-spoken-row {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text-secondary);
      flex-wrap: wrap;
    }

    .pn-spoken-chunk {
      font-family: var(--font-mono);
      font-weight: 800;
      color: var(--color-blue);
      background: var(--color-blue-soft);
      padding: 1px 7px;
      border-radius: 5px;
      letter-spacing: 0.02em;
    }

    @keyframes hapticVibrate {
      0% { transform: scale(1) translateX(0); }
      20% { transform: scale(0.95) translateX(-2px); }
      40% { transform: scale(0.97) translateX(2px); }
      60% { transform: scale(0.96) translateX(-1.5px); }
      80% { transform: scale(0.98) translateX(1.5px); }
      100% { transform: scale(1) translateX(0); }
    }

    .btn-copy-pn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 44px;
      padding: 0 16px;
      border-radius: var(--radius-sm);
      background: var(--color-blue);
      color: var(--text-inverse);
      font-size: 14px;
      font-weight: 700;
      flex-shrink: 0;
      box-shadow: 0 2px 6px rgba(29, 99, 237, 0.25);
      transition: background-color 0.15s ease;
    }

    .btn-copy-pn:hover {
      background: var(--color-blue-hover);
    }

    .btn-copy-pn.vibrating {
      animation: hapticVibrate 0.28s ease-in-out;
    }

    .btn-copy-pn.copied-state {
      background: var(--color-success-text);
      box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
    }

    .btn-copy-pn.btn-copy-sm {
      min-height: 36px;
      padding: 0 12px;
      font-size: 13px;
    }

    /* ==========================================================================
       6. SCREEN 1: HOME / UNIFIED SEARCH / 16 SETS / SYMPTOM WIZARD
       ========================================================================== */
    .filter-card {
      padding: 14px;
      margin-bottom: var(--space-3);
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }

    .vehicle-segment {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      background: var(--bg-canvas);
      padding: 4px;
      border-radius: var(--radius-md);
      gap: 4px;
    }

    .vehicle-seg-btn {
      min-height: 40px;
      border-radius: 9px;
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      transition: all 0.15s ease;
    }

    .vehicle-seg-btn.active {
      background: var(--bg-surface);
      color: var(--color-navy);
      box-shadow: var(--shadow-xs);
    }

    .brand-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
    }

    .year-chips-scroll {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      overflow-x: auto;
      scrollbar-width: none;
      padding-bottom: 2px;
    }

    .year-chips-scroll::-webkit-scrollbar {
      display: none;
    }

    .year-chip-btn {
      min-height: 35px;
      padding: 0 13px;
      border-radius: var(--radius-pill);
      background: var(--bg-subtle);
      border: 1px solid var(--border-default);
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      white-space: nowrap;
      transition: all 0.15s ease;
    }

    .year-chip-btn.active {
      background: var(--color-navy);
      border-color: var(--color-navy);
      color: var(--text-inverse);
    }

    /* 통합 검색창 */
    .search-field-wrapper {
      position: relative;
      margin-bottom: 10px;
    }

    .search-field-input {
      width: 100%;
      height: 54px;
      padding: 0 46px;
      border-radius: var(--radius-lg);
      background: var(--bg-surface);
      border: 2px solid var(--color-navy);
      font-size: 16px;
      font-weight: 600;
      color: var(--text-primary);
      box-shadow: var(--shadow-sm);
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .search-field-input::placeholder {
      color: var(--text-muted);
      font-weight: 500;
      font-size: 14px;
    }

    .search-field-input:focus {
      outline: none;
      border-color: var(--color-blue);
      box-shadow: 0 0 0 4px rgba(29, 99, 237, 0.14);
    }

    .search-icon-prefix {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--color-navy);
      display: flex;
      pointer-events: none;
    }

    .search-clear-suffix {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--bg-canvas);
      color: var(--text-secondary);
      font-size: 13px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 인기 현장 은어 빠른 검색 칩 */
    .slang-quick-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-bottom: var(--space-5);
    }

    .slang-bar-label {
      font-size: 12px;
      font-weight: 800;
      color: var(--text-secondary);
      margin-right: 2px;
    }

    .slang-chip {
      padding: 5px 11px;
      border-radius: var(--radius-pill);
      background: var(--bg-surface);
      border: 1px solid var(--border-default);
      font-size: 12.5px;
      font-weight: 700;
      color: var(--color-navy);
      transition: all 0.15s ease;
    }

    .slang-chip:hover {
      border-color: var(--color-blue);
      background: var(--color-blue-soft);
      color: var(--color-blue);
    }

    /* 조회된 부품 카드 그리드 (PC 2단 / 모바일 1단) */
    .parts-results-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-3);
      margin-bottom: var(--space-6);
    }

    @media (min-width: 768px) {
      body:not(.mobile-preview-active) .parts-results-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .part-item-card {
      padding: var(--space-4);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: var(--space-3);
      cursor: pointer;
      transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .part-item-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      border-color: var(--color-blue);
    }

    .part-card-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: var(--space-2);
    }

    .badges-wrap {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
    }

    .part-card-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      margin-top: 6px;
    }

    .part-card-summary {
      font-size: 13px;
      color: var(--text-secondary);
      margin-top: 2px;
    }

    .part-card-link-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 10px;
      margin-top: 10px;
      border-top: 1px solid var(--border-default);
      font-size: 13px;
      font-weight: 700;
      color: var(--color-blue);
    }

    /* 빠른 진입 2개 탭 (세트 묶음 16종 / 증상별 가변 선택창) */
    .quick-tabs-switch {
      display: grid;
      grid-template-columns: 1fr 1fr;
      background: var(--bg-surface);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-lg);
      padding: 5px;
      margin-bottom: var(--space-4);
      box-shadow: var(--shadow-xs);
    }

    .quick-tab-btn {
      min-height: 46px;
      border-radius: var(--radius-md);
      font-size: 14px;
      font-weight: 800;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: all 0.15s ease;
    }

    .quick-tab-btn.active {
      background: var(--color-navy);
      color: var(--text-inverse);
      box-shadow: var(--shadow-xs);
    }

    .tab-pill-count {
      padding: 1px 7px;
      border-radius: var(--radius-pill);
      font-size: 11px;
      font-weight: 800;
      background: rgba(255, 255, 255, 0.2);
    }

    .quick-tab-btn:not(.active) .tab-pill-count {
      background: var(--bg-canvas);
      color: var(--text-secondary);
    }

    /* 세트 묶음 16종 그리드 (PC 3단 / 태블릿 2단 / 모바일 1단) */
    .sets-card-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-3);
    }

    @media (min-width: 640px) {
      body:not(.mobile-preview-active) .sets-card-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      body:not(.mobile-preview-active) .sets-card-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .set-bundle-card {
      padding: 15px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .set-bundle-card:hover {
      border-color: var(--color-blue);
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }

    .set-code-badge {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 800;
      color: var(--color-blue);
      background: var(--color-blue-soft);
      padding: 2px 7px;
      border-radius: 5px;
    }

    .set-bundle-title {
      font-size: 15.5px;
      font-weight: 800;
      color: var(--text-primary);
      margin-top: 6px;
      line-height: 1.35;
    }

    .set-components-box {
      background: var(--bg-subtle);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-sm);
      padding: 9px 11px;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .set-comp-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 12.5px;
      color: var(--text-secondary);
    }

    .set-comp-pn {
      font-family: var(--font-mono);
      font-weight: 700;
      color: var(--color-navy);
      font-size: 12px;
      flex-shrink: 0;
    }

    /* 증상별 가변 선택창 (인터랙티브 위자드) */
    .wizard-box {
      padding: var(--space-5);
    }

    .wizard-steps-bar {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      margin-bottom: var(--space-4);
    }

    .wizard-bar-seg {
      height: 6px;
      flex: 1;
      border-radius: var(--radius-pill);
      background: var(--border-default);
      transition: background 0.2s ease;
    }

    .wizard-bar-seg.active {
      background: var(--color-blue);
    }

    .wizard-step-title {
      font-size: 18px;
      font-weight: 800;
      color: var(--text-primary);
      margin-bottom: 4px;
      letter-spacing: -0.02em;
    }

    .wizard-step-desc {
      font-size: 13.5px;
      color: var(--text-secondary);
      margin-bottom: var(--space-4);
    }

    .wizard-choices-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
    }

    @media (min-width: 768px) {
      body:not(.mobile-preview-active) .wizard-choices-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .wizard-choice-card {
      padding: 15px 16px;
      border-radius: var(--radius-md);
      background: var(--bg-subtle);
      border: 1.5px solid var(--border-default);
      text-align: left;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-3);
      transition: all 0.15s ease;
    }

    .wizard-choice-card:hover {
      border-color: var(--color-blue);
      background: var(--color-blue-soft);
    }

    .wizard-choice-main {
      font-size: 15px;
      font-weight: 800;
      color: var(--text-primary);
      display: block;
    }

    .wizard-choice-sub {
      font-size: 12.5px;
      color: var(--text-secondary);
      margin-top: 3px;
      display: block;
    }

    /* ==========================================================================
       7. SCREEN 2: A/B SPECIFICATION COMPARISON VIEW
       ========================================================================== */
    .top-back-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      margin-bottom: var(--space-4);
      flex-wrap: wrap;
    }

    .btn-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 38px;
      padding: 0 13px;
      border-radius: var(--radius-sm);
      background: var(--bg-surface);
      border: 1px solid var(--border-default);
      font-size: 13.5px;
      font-weight: 700;
      color: var(--text-primary);
      transition: background-color 0.15s ease;
    }

    .btn-back:hover {
      background: var(--bg-hover);
    }

    /* 분기 케이스 빠른 전환 칩 (워터펌프 / 제네레다 벨트 / 클러치 디스크) */
    .split-case-switcher {
      display: flex;
      align-items: center;
      gap: 6px;
      overflow-x: auto;
      scrollbar-width: none;
      margin-bottom: var(--space-3);
      padding-bottom: 2px;
    }

    .split-case-switcher::-webkit-scrollbar {
      display: none;
    }

    .case-switch-chip {
      padding: 6px 12px;
      border-radius: var(--radius-pill);
      background: var(--bg-surface);
      border: 1px solid var(--border-strong);
      font-size: 12.5px;
      font-weight: 700;
      color: var(--text-secondary);
      white-space: nowrap;
    }

    .case-switch-chip.active {
      background: var(--color-navy);
      border-color: var(--color-navy);
      color: #FFFFFF;
    }

    /* 1줄 핵심 분기 이유 배너 */
    .split-why-banner {
      background: var(--color-amber-bg);
      border: 1.5px solid var(--color-amber-border);
      border-radius: var(--radius-lg);
      padding: 14px 16px;
      margin-bottom: var(--space-4);
      display: flex;
      align-items: flex-start;
      gap: var(--space-3);
    }

    .split-why-badge {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      background: var(--color-amber-strong);
      color: #FFFFFF;
      font-weight: 800;
      font-size: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .split-why-heading {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--color-amber-text);
      margin-bottom: 2px;
    }

    .split-why-desc {
      font-size: 14px;
      font-weight: 600;
      color: #78350F;
      line-height: 1.45;
    }

    /* A안 / B안 2열 나란히 비교 그리드 */
    .ab-cards-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }

    @media (min-width: 860px) {
      body:not(.mobile-preview-active) .ab-cards-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .ab-option-card {
      padding: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 14px;
      border-width: 2px;
    }

    .ab-option-card.card-opt-a {
      border-color: var(--border-strong);
    }

    .ab-option-card.card-opt-b {
      border-color: #93C5FD;
    }

    .ab-pill {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12.5px;
      font-weight: 800;
    }

    .ab-pill.pill-a {
      background: var(--color-navy);
      color: #FFFFFF;
    }

    .ab-pill.pill-b {
      background: var(--color-blue);
      color: #FFFFFF;
    }

    .ab-option-title {
      font-size: 19px;
      font-weight: 800;
      color: var(--text-primary);
      margin-top: 8px;
      letter-spacing: -0.02em;
    }

    /* 자/눈으로 바로 구분하는 체크포인트 박스 */
    .checkpoint-box {
      background: var(--bg-subtle);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-md);
      padding: 13px 14px;
    }

    .checkpoint-title {
      font-size: 13px;
      font-weight: 800;
      color: var(--color-navy);
      margin-bottom: var(--space-2);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .checkpoint-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .checkpoint-list li {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--text-primary);
      padding-left: 18px;
      position: relative;
      line-height: 1.4;
    }

    .checkpoint-list li::before {
      content: "✓";
      position: absolute;
      left: 0;
      color: var(--color-blue);
      font-weight: 800;
    }

    .ab-svg-frame {
      position: relative;
      height: 185px;
      background: #FFFFFF;
      border: 1px solid var(--border-default);
      border-radius: var(--radius-md);
      overflow: hidden;
      cursor: zoom-in;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ab-svg-frame svg,
    .ab-svg-frame img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .zoom-badge-overlay {
      position: absolute;
      right: 10px;
      bottom: 10px;
      background: rgba(15, 41, 74, 0.85);
      color: #FFFFFF;
      font-size: 11.5px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: var(--radius-pill);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .btn-choose-spec {
      width: 100%;
      min-height: 48px;
      border-radius: var(--radius-md);
      background: var(--color-navy);
      color: #FFFFFF;
      font-size: 15px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      transition: background-color 0.15s ease;
    }

    .btn-choose-spec:hover {
      background: var(--color-navy-hover);
    }

    .btn-choose-spec.btn-blue-spec {
      background: var(--color-blue);
    }

    .btn-choose-spec.btn-blue-spec:hover {
      background: var(--color-blue-hover);
    }

    /* ==========================================================================
       8. SCREEN 3: FINAL DETAIL RESULT (TOP -> MIDDLE -> BOTTOM)
       ========================================================================== */
    .detail-grid-layout {
      display: grid;
      grid-template-columns: 1fr;
      gap: var(--space-4);
    }

    @media (min-width: 960px) {
      body:not(.mobile-preview-active) .detail-grid-layout {
        grid-template-columns: 1.35fr 1fr;
        align-items: start;
        gap: var(--space-5);
      }
      body:not(.mobile-preview-active) .detail-companions-aside {
        position: sticky;
        top: calc(var(--header-height) + 20px);
      }
    }

    .detail-primary-col {
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
    }

    /* 상단 핵심 식별 카드 */
    .hero-spec-card {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .hero-part-heading {
      font-size: 22px;
      font-weight: 800;
      color: var(--text-primary);
      letter-spacing: -0.02em;
      line-height: 1.3;
    }

    .caution-alert-box {
      background: var(--color-amber-bg);
      border: 1.5px solid var(--color-amber-border);
      border-radius: var(--radius-md);
      padding: 13px 14px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    .caution-alert-icon {
      font-size: 17px;
      line-height: 1.35;
      flex-shrink: 0;
    }

    .caution-alert-title {
      font-size: 13.5px;
      font-weight: 800;
      color: var(--color-amber-text);
      display: block;
      margin-bottom: 2px;
    }

    .caution-alert-text {
      font-size: 13.5px;
      font-weight: 600;
      color: #78350F;
      line-height: 1.45;
    }

    /* 중단 WPC 도면 뷰어 카드 */
    .wpc-viewer-card {
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }

    .wpc-canvas-stage {
      position: relative;
      width: 100%;
      height: 270px;
      background: #FFFFFF;
      border: 1.5px solid var(--border-default);
      border-radius: var(--radius-md);
      overflow: hidden;
      cursor: zoom-in;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @media (min-width: 768px) {
      body:not(.mobile-preview-active) .wpc-canvas-stage {
        height: 330px;
      }
    }

    .wpc-canvas-stage svg,
    .wpc-canvas-stage img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .location-info-bar {
      background: var(--bg-subtle);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-sm);
      padding: 10px 12px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: var(--space-2);
    }

    /* 하단 연관 부품 추천 카드 (품번 복사 버튼 + 도면 썸네일 한 쌍 배치) */
    .companions-section-card {
      padding: 18px;
    }

    .companions-helper-text {
      font-size: 13px;
      color: var(--text-secondary);
      margin-bottom: 14px;
      line-height: 1.45;
    }

    .companions-stack {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
    }

    .companion-row-card {
      background: var(--bg-subtle);
      border: 1px solid var(--border-default);
      border-radius: var(--radius-md);
      padding: 13px;
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      gap: var(--space-3);
      transition: border-color 0.15s ease, background-color 0.15s ease;
    }

    .companion-row-card:hover {
      border-color: var(--color-blue);
      background: #FFFFFF;
    }

    .companion-left-meta {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 6px;
    }

    .companion-tag {
      display: inline-block;
      font-size: 11px;
      font-weight: 800;
      color: var(--color-navy);
      background: var(--badge-hyundai-bg);
      padding: 2px 7px;
      border-radius: 4px;
      margin-bottom: 3px;
    }

    .companion-title {
      font-size: 14.5px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.3;
    }

    .companion-spec-note {
      font-size: 12px;
      color: var(--text-secondary);
    }

    .companion-pn-display {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-top: 2px;
    }

    .companion-pn-code {
      font-family: var(--font-mono);
      font-size: 16.5px;
      font-weight: 800;
      color: var(--color-navy);
      letter-spacing: 0.02em;
    }

    .companion-pn-read {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    /* 우측 한 쌍 컨트롤: [품번 복사 버튼] + [도면 썸네일] */
    .companion-right-pair {
      display: flex;
      align-items: center;
      gap: var(--space-2);
      flex-shrink: 0;
    }

    .companion-thumb-btn {
      width: 78px;
      height: 78px;
      border-radius: var(--radius-sm);
      background: #FFFFFF;
      border: 1px solid var(--border-strong);
      position: relative;
      overflow: hidden;
      cursor: zoom-in;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color 0.15s ease;
    }

    .companion-thumb-btn:hover {
      border-color: var(--color-blue);
    }

    .companion-thumb-btn svg,
    .companion-thumb-btn img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .thumb-zoom-tag {
      position: absolute;
      bottom: 3px;
      right: 3px;
      background: rgba(15, 41, 74, 0.84);
      color: #FFFFFF;
      font-size: 10px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: 4px;
    }

    /* ==========================================================================
       9. ZOOM MODAL & TOAST NOTIFICATION
       ========================================================================== */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(15, 23, 42, 0.78);
      backdrop-filter: blur(4px);
      display: none;
      align-items: center;
      justify-content: center;
      padding: var(--space-4);
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-card {
      width: 100%;
      max-width: 720px;
      max-height: 90vh;
      background: var(--bg-surface);
      border-radius: var(--radius-xl);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-lg);
      animation: modalPop 0.18s ease-out;
    }

    @keyframes modalPop {
      from { opacity: 0; transform: scale(0.95); }
      to { opacity: 1; transform: scale(1); }
    }

    .modal-top-bar {
      padding: 14px 18px;
      border-bottom: 1px solid var(--border-default);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .modal-heading {
      font-size: 16px;
      font-weight: 800;
      color: var(--text-primary);
    }

    .modal-close-icon {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--bg-canvas);
      font-size: 17px;
      font-weight: 800;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-content-body {
      padding: var(--space-4);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .zoom-viewport {
      width: 100%;
      height: 360px;
      background: #FFFFFF;
      border: 1px solid var(--border-default);
      border-radius: var(--radius-md);
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .zoom-transform-layer {
      width: 100%;
      height: 100%;
      transition: transform 0.2s ease;
      transform-origin: center center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .zoom-controls-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--space-2);
      flex-wrap: wrap;
    }

    .zoom-btn-group {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* Toast Notification */
    .toast-banner {
      position: fixed;
      bottom: 24px;
      left: 50%;
      transform: translateX(-50%) translateY(24px);
      z-index: 200;
      background: var(--color-navy);
      color: #FFFFFF;
      padding: 12px 20px;
      border-radius: var(--radius-pill);
      font-size: 14px;
      font-weight: 700;
      box-shadow: var(--shadow-lg);
      display: flex;
      align-items: center;
      gap: 8px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease, transform 0.2s ease;
      white-space: nowrap;
    }

    .toast-banner.visible {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    .toast-pn-highlight {
      font-family: var(--font-mono);
      color: #93C5FD;
      font-weight: 800;
    }
  
  /* ==========================================================================
     10. 실제 데이터 부품도감 추가 컴포넌트 (시안 토큰 위에 얹는다)
     ========================================================================== */
  .wide-btn { width: 100%; justify-content: center; min-height: 44px; }
  .link-reset { font-size: 12.5px; font-weight: 700; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
  .sub-heading { font-size: 14px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
  .small-hint { font-size: 12px; font-weight: 700; color: var(--text-muted); }
  .pn-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: 0.02em; }
  .badge-pnc { background: var(--color-blue-soft); color: var(--color-blue-hover); }

  /* 로딩 */
  .loading-box { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 42px 16px; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
  .loading-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border-default); border-top-color: var(--color-blue); animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* 빈 상태 */
  .empty-card { padding: 30px 18px; text-align: center; margin-bottom: 22px; }
  .empty-title { font-size: 16px; font-weight: 800; color: var(--text-primary); margin-bottom: 6px; }
  .empty-desc { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.55; }
  .empty-inline { padding: 14px 4px; font-size: 13px; color: var(--text-muted); }

  /* 홈 카드 보강 */
  .card-meta-row { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .pn-box-label { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
  .split-mini-box { align-items: flex-start; }
  .split-mini-row { display: flex; align-items: center; gap: 7px; font-size: 14px; }
  .split-mini-row .pn-mono { font-size: 14.5px; color: var(--color-navy); }
  .pn-mini-read { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
  .pn-more { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
  .mini-copy-btn {
    width: 30px; height: 30px; border-radius: 8px; background: var(--bg-surface);
    border: 1px solid var(--border-strong); font-size: 13px; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .mini-copy-btn:active { background: var(--color-blue-soft); }
  .btn-compare { background: var(--color-navy); }
  .slang-meaning-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--color-blue-soft); border: 1px solid var(--color-blue-border);
    border-radius: var(--radius-md); padding: 9px 12px; margin-bottom: 12px;
    font-size: 12.5px; color: var(--color-navy);
  }

  /* 세트 카드 */
  .set-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .opt-tag { font-size: 10.5px; font-weight: 700; color: var(--color-amber-text); }

  /* 위자드 */
  .wizard-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
  .wizard-picks { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
  .wizard-pick-card { background: var(--bg-subtle); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 13px; display: flex; flex-direction: column; gap: 10px; }
  .wizard-pick-name { font-size: 15.5px; font-weight: 800; color: var(--text-primary); margin-top: 4px; }
  .wizard-pick-veh { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
  .wizard-pick-loc { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; line-height: 1.45; }
  .wizard-pick-pn { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px; flex-wrap: wrap; }
  .wizard-pick-pn .pn-10digit-main { font-size: 20px; }
  .wizard-pick-actions { display: flex; gap: 6px; }
  .wizard-thumb { position: relative; height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--border-default); background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .wizard-thumb .thumb-img { max-height: 100%; max-width: 100%; object-fit: contain; }
  .wizard-companions { margin-top: 14px; border-top: 1px dashed var(--border-strong); padding-top: 12px; }
  .wizard-comp-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border-default); }
  .wizard-comp-name { flex: 1; font-size: 12.5px; color: var(--text-secondary); }
  .wizard-comp-pn { font-size: 13px; color: var(--color-navy); }

  /* A/B 비교 */
  .compare-title-row { margin-bottom: 12px; }
  .compare-title { font-size: 21px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; line-height: 1.3; }
  .compare-sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; line-height: 1.5; }
  .ab-option-veh { font-size: 12.5px; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }
  .split-why-check { font-size: 12.5px; color: var(--color-amber-text); font-weight: 700; margin-top: 6px; }
  .compare-foot-note { margin: 18px 2px 4px; font-size: 11.5px; color: var(--text-muted); line-height: 1.55; }
  .ab-cards-grid { grid-template-columns: 1fr; }
  @media (min-width: 860px) {
    body:not(.mobile-preview-active) .ab-cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  }

  /* 도면 */
  button.wpc-canvas-stage, button.ab-svg-frame { padding: 0; background: #fff; }
  .drawing-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
  .wpc-canvas-stage .drawing-img { max-height: 100%; }
  .thumb-img { max-width: 100%; max-height: 100%; object-fit: contain; }
  .thumb-empty { font-size: 10px; font-weight: 700; color: var(--text-muted); text-align: center; line-height: 1.25; }
  .drawing-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); font-size: 12.5px; font-weight: 700; width: 100%; height: 100%; min-height: 120px; }
  .drawing-empty.big { min-height: 180px; }
  .drawing-empty small { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
  .drawing-pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(29, 99, 237, 0.9); border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(29, 99, 237, 0.25); }
  .drawing-pin.big { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .diagram-caption { display: flex; flex-direction: column; gap: 6px; }
  .diagram-meta { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
  .diagram-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; }
  .diagram-thumb { position: relative; width: 92px; height: 66px; flex-shrink: 0; border: 1.5px solid var(--border-default); border-radius: var(--radius-sm); background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
  .diagram-thumb.active { border-color: var(--color-blue); box-shadow: 0 0 0 2px rgba(29, 99, 237, 0.15); }
  .diagram-thumb .thumb-img { max-height: 100%; max-width: 100%; }
  .diagram-thumb-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(15, 41, 74, 0.72); color: #fff; font-size: 9.5px; font-weight: 700; text-align: center; padding: 1px 0; }

  /* 상세 상단 */
  .engine-spec-block { padding: 10px 12px; background: var(--bg-subtle); border-radius: var(--radius-sm); border: 1px solid var(--border-default); }
  .engine-veh-line { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; }
  .info-alert-box { display: flex; gap: 10px; padding: 12px; background: var(--color-success-bg); border: 1px solid #A7F3D0; border-radius: var(--radius-md); }
  .info-alert-box .caution-alert-title { color: var(--color-success-text); }
  .caution-alert-text.muted { color: var(--text-secondary); font-size: 12px; }
  .applies-box { border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
  .applies-head { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--bg-subtle); font-size: 12.5px; font-weight: 800; color: var(--text-secondary); }
  .applies-list { max-height: 240px; overflow-y: auto; }
  .applies-row { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-top: 1px solid var(--border-default); text-align: left; }
  .applies-row.active { background: var(--color-blue-soft); }
  .applies-model { font-size: 13px; font-weight: 700; color: var(--text-primary); }
  .applies-meta { font-size: 11.5px; color: var(--text-secondary); }

  /* 연관 부품 */
  .companion-copy-btn { height: 78px !important; flex-direction: column; padding: 0 11px !important; gap: 3px; }
  .companion-thumb-btn.small { width: 44px; height: 44px; }
  .minor-toggle { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
  .minor-list { margin-top: 8px; border-top: 1px dashed var(--border-strong); padding-top: 8px; }
  .minor-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
  .minor-name { flex: 1; font-size: 12px; color: var(--text-secondary); }
  .minor-row .pn-mono { font-size: 12.5px; color: var(--text-primary); }

  /* 세트 상세 */
  .set-detail-head { margin-bottom: 12px; }
  .set-vehicle-card { padding: 14px; margin-bottom: 14px; }
  .set-vehicle-chips { display: flex; gap: 7px; flex-wrap: wrap; }
  .chip-sub { font-size: 10px; color: var(--text-muted); font-weight: 600; margin-left: 3px; }
  .set-items-card { padding: 16px; }
  .set-role-block { border-top: 1px solid var(--border-default); padding-top: 10px; margin-top: 10px; }
  .set-role-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
  .set-role-head { font-size: 12px; font-weight: 800; color: var(--color-blue-hover); margin-bottom: 6px; }
  .set-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border-default); }
  .set-item-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .set-item-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
  .qty-tag { font-size: 11px; font-weight: 700; color: var(--text-secondary); }
  .set-item-loc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
  .set-item-pn { font-size: 14px; color: var(--color-navy); }
  .set-item-read { font-size: 11px; color: var(--text-muted); font-weight: 600; }
  .set-item-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
  .missing-box { margin-top: 14px; background: var(--color-amber-bg); border: 1px solid var(--color-amber-border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
  .missing-title { font-size: 12.5px; font-weight: 800; color: var(--color-amber-text); }
  .missing-row { font-size: 12px; color: var(--color-amber-text); }

  /* 모달 보강 */
  .zoom-img { max-width: 100%; max-height: 68vh; object-fit: contain; display: block; }
  .modal-pn-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0; flex-wrap: wrap; }
  .modal-pn-read { font-size: 12px; color: var(--text-muted); font-weight: 600; }
  .modal-caption { font-size: 12.5px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

  /* 토스트 오류 */
  .toast-banner.toast-err { background: #B91C1C; }

  /* 품번 정확 일치 카드 */
  .exact-hit-card { padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 9px; border: 1.5px solid var(--color-blue-border); box-shadow: var(--shadow-sm); }
  .exact-hit-card .part-card-title { font-size: 18px; }

  /* 그리드가 내용 최소폭 때문에 화면을 밀어내지 않게 */
  .detail-grid-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-primary-col, .detail-companions-aside { min-width: 0; }
  @media (min-width: 960px) {
    body:not(.mobile-preview-active) .detail-grid-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
  }
  .ab-cards-grid { grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 860px) {
    body:not(.mobile-preview-active) .ab-cards-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  }
  .surface-card { min-width: 0; }
  .companion-left-meta { min-width: 0; flex: 1; }
  .companion-pn-code { word-break: break-all; }
  .hero-part-heading, .part-card-title, .caution-alert-text, .compare-title { overflow-wrap: anywhere; }

  /* ---- 모바일 미세 조정 ---- */
  @media (max-width: 560px) {
    .brand-sub { display: none; }
    .brand-title { font-size: 17px; }
    .vehicle-segment { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .vehicle-seg-btn { flex: 0 0 auto; }
    .set-vehicle-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .set-vehicle-chips .year-chip-btn { flex: 0 0 auto; }
    .companion-row-card { flex-direction: column; align-items: stretch; }
    .companion-right-pair { justify-content: flex-end; }
    .companion-copy-btn { height: 44px !important; flex-direction: row !important; width: 96px; }
    .companion-thumb-btn { width: 64px; height: 64px; }
    .pn-10digit-main { font-size: 21px; }
    .hero-pn-box .pn-10digit-main { font-size: 26px; }
  }
  .ab-option-when { font-size: 15px; font-weight: 800; color: var(--text-primary); margin-top: 8px; line-height: 1.4; }
  .ab-svg-frame.compact-empty { height: 110px; background: var(--bg-subtle); }

  .wizard-head-row .link-reset { flex-shrink: 0; }
  .wizard-head-row .badge { white-space: normal; text-align: left; line-height: 1.4; }

  /* 차종 세그먼트가 넓은 화면에서 늘어나지 않게 */
  .vehicle-segment { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
  .vehicle-seg-btn { flex: 0 0 auto; }
  @media (min-width: 561px) {
    .vehicle-seg-btn { padding-left: 18px; padding-right: 18px; }
  }
  @media (min-width: 961px) {
    body:not(.mobile-preview-active) .wpc-canvas-stage { height: 380px; }
  }

  /* 모바일: 차종 칩은 한 줄 가로 스크롤 (위 규칙보다 뒤에 와야 적용됨) */
  @media (max-width: 560px) {
    .vehicle-segment { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .vehicle-seg-btn { flex: 0 0 auto; }
  }

  /* 차종 칩 크기 고정(늘어남·찌그러짐 방지) */
  .vehicle-seg-btn { flex: 0 0 auto; padding: 0 16px; min-height: 40px; white-space: nowrap; }

  /* 하단 데이터 기준 */
  .app-footnote { margin: 26px 2px 10px; padding-top: 14px; border-top: 1px solid var(--border-default); }
  .app-footnote p { font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }
  .app-footnote strong { color: var(--text-secondary); }

  /* 비교 카드의 사양 설명 줄은 조금 낮춰서 */
  .ab-option-when { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
