@import url('plandeck-ui.css');   /* 엔터프라이즈 모바일 컴포넌트 + 아이폰 프레임 */
/* ═══════════════════════════════════════════════════════════════════
   PlanDeck 엔진 확장 스타일 (engine/plandeck.css)
   PDK 코어(common.css)를 건드리지 않고 가산.
   - 와이어프레임 유틸(.pd-screen / .pd-sk-* / 역할 .pd-*)  ※ common.css 와 동일 디자인 언어
   - 신규 패널(.pd-cases / .pd-interface) — .page-detail 패턴 미러
   - 상태 칩 · 커버리지 그리드 · 린트 배너 · PRD 표지
   토큰: Pretendard · primary #3182f6
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --pd-primary: #3182f6;
  --pd-ink: #111827;
  --pd-sub: #6b7280;
  --pd-line: #e5e7eb;
  --pd-bg: #ffffff;
  --pd-soft: #f3f4f6;
}

/* ── 와이어프레임 루트/스켈레톤 (common.css 의 .pdk-screen/.pdk-sk-* 미러) ──
   ※ W-3: .device-screen 직속 단일 자식이어야 hover dim 작동 */
.pd-screen {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; gap: 16px; padding: 28px;
  background: #ffffff;
  font-family: "Pretendard", -apple-system, sans-serif; color: #111;
}
.pd-sk-title { height: 36px; border-radius: 10px; background: #e9ecef; }
.pd-sk-line  { height: 14px; border-radius: 7px; background: #eef0f2; }
.pd-sk-line.sm { height: 10px; } .pd-sk-line.w-50 { width: 50%; } .pd-sk-line.w-70 { width: 70%; }
.pd-sk-box   { background: #e9ecef; border-radius: 12px; min-height: 48px; }
.pd-sk-hero  { flex: 1; min-height: 120px; border-radius: 18px; background: #eef0f2; }
.pd-sk-list  { display: flex; flex-direction: column; gap: 8px; }
.pd-sk-row   { height: 56px; border-radius: 12px; background: #f2f4f5; }
.pd-sk-btn   { height: 56px; border: none; border-radius: 14px; background: #3182f6; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.pd-sk-btn.sec { background: #eef2f6; color: #333; }
.pd-sk-input { height: 52px; border: 1px solid #d8dde3; border-radius: 12px; background: #fff; }
.pd-sk-tabbar { height: 56px; border-radius: 14px; background: #f2f4f5; display: flex; }
.pd-sk-header { height: 44px; display: flex; align-items: center; gap: 8px; }
.pd-sk-chip  { height: 28px; border-radius: 14px; background: #eef0f2; }

/* ═══ 공통 우측 드로어 패널 (.pd-cases / .pd-interface) ═══ */
.pd-panel {
  position: fixed; right: 16px; top: 16px;
  width: 440px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 92px);
  display: flex; flex-direction: column;
  background: var(--pd-bg); border: 1px solid var(--pd-line);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  z-index: 110; font-family: "Pretendard", -apple-system, sans-serif;
  overflow: hidden;
}
.pd-panel.is-hidden { display: none; }
.pd-panel-head {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  height: 44px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--pd-line);
}
.pd-panel-title { font-size: 12px; font-weight: 800; color: var(--pd-sub); letter-spacing: 0.4px; }
.pd-panel-close {
  width: 30px; height: 30px; border: none; background: transparent; cursor: pointer;
  border-radius: 8px; color: #9ca3af; font-size: 15px; font-family: inherit;
}
.pd-panel-close:hover { background: var(--pd-soft); color: var(--pd-ink); }
.pd-panel-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 18px; }
.pd-panel-body::-webkit-scrollbar { width: 8px; }
.pd-panel-body::-webkit-scrollbar-thumb { background: var(--pd-line); border-radius: 4px; }

.pd-dim { color: #9ca3af; }
.pd-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--pd-sub); background: var(--pd-soft); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.pd-req { display: inline-block; font-size: 10px; font-weight: 700; color: #b91c1c; background: #fee2e2; border-radius: 5px; padding: 0 5px; }

/* ── CASES: 커버리지 그리드 ── */
.pd-cov-grid { margin-bottom: 14px; }
.pd-cov-label { font-size: 12px; font-weight: 700; color: var(--pd-sub); margin-bottom: 6px; }
.pd-cov-ok { color: #059669; } .pd-cov-warn { color: #d97706; }
.pd-cov-cells { display: flex; flex-wrap: wrap; gap: 5px; }
.pd-cov-cell { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 8px; }
.pd-cov-cell.is-covered { background: #dcfce7; color: #166534; }
.pd-cov-cell.is-missing { background: #fef2f2; color: #b91c1c; border: 1px dashed #fca5a5; }
.pd-cov-cell.is-na { background: #f3f4f6; color: #9ca3af; text-decoration: line-through; }

/* 우선순위 배지 */
.pd-prio { display: inline-block; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 5px; vertical-align: middle; }
.pd-prio-P0 { background: #fee2e2; color: #b91c1c; }
.pd-prio-P1 { background: #ffedd5; color: #9a3412; }
.pd-prio-P2 { background: #f3f4f6; color: #6b7280; }
.pd-case-state.is-na-tag { background: #f3f4f6; color: #9ca3af; }

/* ── 표 (cases) ── */
.pd-table-wrap { overflow-x: auto; margin-bottom: 12px; }
.pd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; } /* dup-ok: 문서표 폰트(와이어 .pd-table와 0.5px 차·저영향) */
.pd-table th { text-align: left; font-weight: 700; color: var(--pd-sub); padding: 6px 8px; border-bottom: 2px solid var(--pd-line); white-space: nowrap; }
.pd-table td { padding: 8px; border-bottom: 1px solid #f1f3f5; vertical-align: top; color: #374151; line-height: 1.45; }
.pd-case-row { cursor: pointer; }
.pd-case-row:hover { background: #f8fafc; }
.pd-case-state { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.pd-case-state.is-screen { background: #e7f0ff; color: #1d4ed8; }
.pd-case-state.is-valid  { background: #fef9c3; color: #854d0e; }

/* ── GWT(수용기준) ── */
.pd-gwt-wrap { display: flex; flex-direction: column; gap: 6px; }
.pd-gwt { font-size: 12px; color: #475569; background: #f8fafc; border-left: 3px solid var(--pd-primary); border-radius: 0 8px 8px 0; padding: 7px 10px; line-height: 1.5; }

/* ── INTERFACE ── */
.pd-itf-tools { margin-bottom: 12px; }
.pd-copy-btn { font-size: 12px; font-weight: 700; color: var(--pd-primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: inherit; }
.pd-copy-btn:hover { background: #dbeafe; }
.pd-sec { margin-bottom: 16px; }
.pd-sec-t { font-size: 12px; font-weight: 800; color: var(--pd-ink); margin-bottom: 8px; }
.pd-op { border: 1px solid var(--pd-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.pd-op:hover { border-color: #bfdbfe; box-shadow: 0 2px 10px rgba(49,130,246,.08); }
.pd-op-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.pd-method { font-size: 10.5px; font-weight: 800; color: #fff; background: #10b981; border-radius: 5px; padding: 2px 7px; letter-spacing: .3px; }
.pd-op-read .pd-method { background: #0ea5e9; }
.pd-op-write .pd-method { background: #f97316; }
.pd-method.is-event { background: #8b5cf6; }
.pd-path { font-size: 12.5px; color: var(--pd-ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.pd-op-intent { font-size: 12.5px; color: #475569; margin-bottom: 6px; line-height: 1.45; }
.pd-op-kv { display: flex; gap: 8px; font-size: 12px; margin-top: 4px; }
.pd-op-kv > span:first-child { flex-shrink: 0; width: 42px; font-weight: 700; color: var(--pd-sub); }
.pd-err { font-size: 12px; color: #475569; margin-bottom: 2px; }
.pd-status { font-weight: 800; color: #b91c1c; }
.pd-entity { font-size: 12px; }
.pd-entity summary { cursor: pointer; font-weight: 600; color: var(--pd-primary); }
.pd-entity-field { font-size: 11.5px; color: #475569; padding: 2px 0 2px 12px; }
.pd-entity-field code { font-weight: 700; color: var(--pd-ink); }
.pd-type { color: #0ea5e9; font-size: 11px; }

/* ── 공통 empty ── */
.pd-empty { margin: 8px 0; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #f9fafb; border: 1px dashed #d8dee5; border-radius: 12px; }
.pd-empty-icon { font-size: 30px; opacity: .55; }
.pd-empty-title { font-size: 15px; font-weight: 700; color: var(--pd-sub); }
.pd-empty-sub { font-size: 13px; color: #9ca3af; line-height: 1.6; }
.pd-empty-sub code, .pd-cov-label code { background: #eef2ff; color: var(--pd-primary); border-radius: 5px; padding: 1px 6px; font-size: 12px; }

/* ── dock 이모지 버튼 ── */
.pd-dock-emoji { font-size: 20px; line-height: 1; }

/* ── 상태 칩(좌측 목록) ── */
.pd-status-chip { display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.pd-status-chip.is-draft { background: #f3f4f6; color: #6b7280; }
.pd-status-chip.is-wire { background: #e0e7ff; color: #4338ca; }
.pd-status-chip.is-confirmed { background: #dcfce7; color: #166534; }
.pd-status-chip.is-ready { background: #3182f6; color: #fff; }
.pd-status-chip.is-changed { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.nav-row.is-active .pd-status-chip.is-draft,
.nav-row.is-active .pd-status-chip.is-wire { background: rgba(255,255,255,.25); color: #fff; }

/* ── 린트 배너 (좌하단) ── */
.pd-lint-banner {
  position: fixed; left: 296px; bottom: 16px; z-index: 105;
  max-width: 420px; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 12px;
  padding: 10px 40px 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.1);
  font-family: "Pretendard", sans-serif; font-size: 13px; color: #92400e;
}
.pd-lint-icon { margin-right: 6px; }
.pd-lint-text { font-weight: 700; }
.pd-lint-list { margin-top: 6px; font-size: 12px; color: #a16207; max-height: 160px; overflow-y: auto; line-height: 1.6; }
.pd-lint-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: none; background: transparent; cursor: pointer; color: #a16207; font-size: 13px; }

/* ═══ PRD 표지/문서 (index · prd.html) ═══ */
.pd-prd-doc {
  max-width: 880px; margin: 0 auto; padding: 48px 32px 96px;
  font-family: "Pretendard", -apple-system, sans-serif; color: #1f2937; line-height: 1.7;
}
.pd-prd-doc h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; color: #111827; }
.pd-prd-doc .pd-prd-sub { font-size: 15px; color: var(--pd-sub); margin-bottom: 28px; }
.pd-prd-sec { margin-bottom: 26px; padding: 18px 20px; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; }
.pd-prd-sec h2 { font-size: 16px; font-weight: 800; color: var(--pd-primary); margin-bottom: 10px; }
.pd-prd-sec ul { margin: 0 0 0 18px; }
.pd-prd-sec li { margin-bottom: 4px; }
/* 통일 글로벌 네비(문서형 페이지 상단 고정) */
.pd-prd-nav { position: fixed; top: 16px; right: 16px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; z-index: 50; max-width: calc(100vw - 32px); }
.pd-prd-nav a, .pd-prd-nav .pd-nav-link { font-size: 13px; font-weight: 700; color: var(--pd-primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 14px; text-decoration: none; white-space: nowrap; }
.pd-prd-nav a:hover, .pd-prd-nav a.pd-nav-link:hover { background: #dbeafe; }
.pd-prd-nav .is-current { background: var(--pd-primary); color: #fff; border-color: var(--pd-primary); cursor: default; }
.pd-prd-nav .pd-nav-extra { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
.pd-prd-nav .pd-nav-extra:hover { background: #e2e8f0; }

/* 디바이스 화면: 좌측 패널(.page-nav) 최상단 — 기획 문서로 점프하는 글로벌 네비 */
.pd-screen-topnav { flex-shrink: 0; padding: 11px 14px; border-bottom: 1px solid #e5e7eb; background: #f8fafc; }
.pd-topnav-caption { display: block; font-size: 10px; font-weight: 800; letter-spacing: .05em; color: #9aa0a8; margin-bottom: 8px; }
.pd-topnav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-screen-topnav .pd-nav-link { font-size: 11.5px; font-weight: 700; color: var(--pd-primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 4px 9px; text-decoration: none; white-space: nowrap; }
.pd-screen-topnav .pd-nav-link:hover { background: #dbeafe; }
.pd-floating-nav { left: 50%; right: auto; transform: translateX(-50%); }
/* 좌측 패널의 '현재 화면 정보(타이틀·ID·Figma)'는 목업 상단(.pd-topbar)으로 이동 → 여기선 숨김.
   좌측 상단 = 전체 메뉴(글로벌 네비) + 전체 화면 목록 전용(정보 위계 정리). */
.page-nav-head { display: none; } /* dup-ok: 리뷰모드에서 숨김(common.css 기반 override) */

/* 화면 목록 밀도 축소(목록이 많아질 때 대비 — 더 작은 폰트·조밀) */
.page-nav .page-nav-scroll { padding: 10px 10px; gap: 10px; }
.page-nav .nav-group { gap: 2px; }
.page-nav .nav-cat { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 4px 2px; text-transform: none; }
.page-nav .nav-row { gap: 8px; padding: 7px 10px; border-radius: 8px; }
.page-nav .nav-row-title { font-size: 12.5px; font-weight: 500; }
.page-nav .nav-bdg { width: 15px; height: 15px; }
.page-nav .page-nav-cols { font-size: 10px; }

/* 화면 목록 검색(페이지명·코드) — 스크롤과 분리되어 목록 위에 고정 */
.pd-nav-search { flex-shrink: 0; padding: 10px 10px 8px; border-bottom: 1px solid #f0f1f3; background: #fff; }
.pd-nav-search-box { display: flex; align-items: center; gap: 6px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 8px; padding: 6px 8px; }
.pd-nav-search-box:focus-within { border-color: var(--pd-primary); background: #fff; }
.pd-nav-search-box > svg { color: #9ca3af; flex-shrink: 0; }
.pd-nav-search input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 12.5px; font-family: "Pretendard", sans-serif; color: #374151; }
.pd-nav-search input::placeholder { color: #9ca3af; }
.pd-nav-search input::-webkit-search-cancel-button { display: none; }
.pd-nav-search-clear { border: none; background: transparent; cursor: pointer; color: #9ca3af; font-size: 12px; line-height: 1; padding: 2px; flex-shrink: 0; }
.pd-nav-search-clear:hover { color: #6b7280; }
.pd-nav-search-count { font-size: 11px; color: #6b7280; margin-top: 7px; padding: 0 2px; }
.pd-nav-search-count.is-empty { color: #b91c1c; }

/* ═══════════════════════════════════════════════════════════════════
   작업 콘솔 앱 셸 — 문서형 페이지(개요/PRD/플로우/상세기획서/핸드오프)
   좌측 고정 사이드바(네비·프로젝트정보·액션) + 넓은 본문(가로 폭 최대 활용)
   ═══════════════════════════════════════════════════════════════════ */
.pd-appshell { display: flex; align-items: stretch; min-height: 100vh; }
.pd-sidenav {
  position: fixed; left: 0; top: 0; bottom: 0; width: 236px; z-index: 40;
  background: #f8fafc; border-right: 1px solid var(--pd-line);
  display: flex; flex-direction: column; padding: 20px 14px 16px; gap: 3px;
  overflow-y: auto; font-family: "Pretendard", -apple-system, sans-serif;
}
.pd-side-brand { font-size: 18px; font-weight: 800; color: var(--pd-primary); text-decoration: none; padding: 0 8px 2px; letter-spacing: -0.3px; }
.pd-side-proj { font-size: 13px; font-weight: 700; color: var(--pd-ink); padding: 6px 8px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--pd-line); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.35; }
.pd-side-ver { font-size: 10.5px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border-radius: 5px; padding: 1px 6px; }
.pd-side-nav { display: flex; flex-direction: column; gap: 2px; }
.pd-side-link { font-size: 13.5px; font-weight: 600; color: var(--pd-sub); text-decoration: none; padding: 9px 12px; border-radius: 8px; white-space: nowrap; }
.pd-side-link:hover { background: #eef2f7; color: var(--pd-ink); }
.pd-side-link.is-current { background: var(--pd-primary); color: #fff; }
.pd-side-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pd-line); display: flex; flex-direction: column; gap: 6px; }
.pd-side-action { font-size: 12.5px; font-weight: 700; color: var(--pd-primary); text-decoration: none; padding: 7px 11px; border: 1px solid #bfdbfe; border-radius: 8px; background: #eff6ff; }
.pd-side-action:hover { background: #dbeafe; }
.pd-side-ws { margin-top: auto; padding: 12px 10px 2px; font-size: 12.5px; font-weight: 700; color: var(--pd-sub); text-decoration: none; }
.pd-side-ws:hover { color: var(--pd-primary); }
.pd-main { margin-left: 236px; flex: 1 1 auto; min-width: 0; padding: 36px 48px 90px; }
.pd-appshell .pd-prd-doc, .pd-appshell .pd-flows-doc { max-width: 1360px; margin: 0; padding: 0; }
/* IA·기능정의서·컴포넌트 = 구조/표/트리 중심 → 좌측 메뉴 제외 본문 가로폭 전체 사용(여백 최소화) */
.pd-appshell .pd-ia-doc, .pd-appshell .pd-feat-doc, .pd-appshell .pd-catalog-doc { max-width: none; margin: 0; padding: 0; }
/* 상세 기획서 = 목차(다단 트리)+화면카드 구조 중심 → 넓게 써서 우측 여백 최소화(PRD 본문보다 넓게).
   ★depth 트리(config/ia.js)가 있는 프로젝트에만 적용(:has) — 트리 없는 타 프로젝트 spec은 기존 1360 유지(무회귀). :has 미지원 시 1360 폴백(트리는 1360 내 다단) */
.pd-appshell:has(.pd-spec-toc-tree) .pd-spec-doc { max-width: 1760px; }

/* ═══ 워크스페이스(와이드) + 새 프로젝트 만들기 가이드 ═══ */
.pd-ws { max-width: 1320px; margin: 0 auto; padding: 44px 40px 90px; font-family: "Pretendard", -apple-system, sans-serif; color: var(--pd-ink); line-height: 1.6; }
.pd-ws-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: #111827; margin-bottom: 6px; }
.pd-ws .pd-prd-sub { font-size: 15px; color: var(--pd-sub); margin-bottom: 6px; }
.pd-newproj { margin: 22px 0 34px; border: 1px solid #bfdbfe; background: linear-gradient(180deg, #f5f9ff, #ffffff); border-radius: 16px; padding: 22px 24px; }
.pd-newproj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.pd-newproj-title { font-size: 18px; font-weight: 800; color: var(--pd-ink); }
.pd-newproj-badge { font-size: 12px; font-weight: 700; color: var(--pd-primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 20px; padding: 3px 10px; }
.pd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.pd-step-item { display: flex; gap: 12px; align-items: flex-start; }
.pd-step-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--pd-primary); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pd-step-t { font-size: 14px; font-weight: 700; color: var(--pd-ink); margin-bottom: 3px; line-height: 1.45; }
.pd-step-d { font-size: 12.5px; color: var(--pd-sub); line-height: 1.6; }
.pd-newproj-foot { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #cdddf5; font-size: 12.5px; color: var(--pd-sub); line-height: 1.75; }
.pd-newproj code, .pd-step-d code, .pd-step-t code, .pd-newproj-foot code { background: #eef2ff; color: var(--pd-primary); border-radius: 4px; padding: 1px 6px; font-size: 12px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* 워크스페이스 홈 — 활용 가이드(역할 요약 + 상세 링크) */
.pd-howto { margin: 20px 0 10px; border: 1px solid #e3e6ea; background: #fff; border-radius: 16px; padding: 20px 24px; }
.pd-howto-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pd-howto-title { font-size: 17px; font-weight: 800; color: var(--pd-ink); }
.pd-guide-btn { font-size: 13px; font-weight: 800; color: #fff; background: var(--pd-primary); border-radius: 22px; padding: 8px 16px; text-decoration: none; white-space: nowrap; }
.pd-guide-btn:hover { filter: brightness(1.08); }
.pd-howto-lead { font-size: 13.5px; color: var(--pd-sub); line-height: 1.65; margin-bottom: 14px; max-width: 780px; }
.pd-role-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 10px; }
.pd-role-chip { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #eceef1; background: #fafbfc; border-radius: 10px; padding: 11px 13px; }
.pd-rc-ico { font-size: 18px; line-height: 1.25; flex-shrink: 0; }
.pd-rc-n { font-size: 13.5px; font-weight: 800; color: var(--pd-ink); }
.pd-rc-d { font-size: 12px; color: var(--pd-sub); line-height: 1.45; margin-top: 1px; }
.pd-ws-projects h2 { font-size: 16px; font-weight: 800; color: var(--pd-primary); margin: 10px 0 14px; }
.pd-chip-cta { background: var(--pd-primary) !important; color: #fff !important; font-weight: 700; padding: 8px 16px !important; border-radius: 10px !important; font-size: 13px !important; }
.pd-chip-cta:hover { background: #2a6fe0 !important; }
.pd-surf-chip { cursor: pointer; }
.pd-surf-chip:hover { background: #e2e8f0; }

/* 문서 검색/필터 바 + 카테고리 접기 + 목차(화면 많아질 때 탐색) */
.pd-inv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 12px; }
.pd-inv-head h2 { font-size: 16px; font-weight: 800; color: var(--pd-primary); margin: 0; }
.pd-doc-filter { display: inline-flex; align-items: center; gap: 7px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 9px; padding: 7px 11px; min-width: 260px; flex: 1 1 260px; max-width: 420px; }
.pd-doc-filter:focus-within { border-color: var(--pd-primary); background: #fff; }
.pd-doc-filter > svg { color: #9ca3af; flex-shrink: 0; }
.pd-doc-filter input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-size: 13px; font-family: "Pretendard", sans-serif; color: #374151; }
.pd-doc-filter input::placeholder { color: #9ca3af; }
.pd-doc-filter input::-webkit-search-cancel-button { display: none; }
.pd-doc-filter-count { font-size: 11.5px; font-weight: 700; color: var(--pd-primary); white-space: nowrap; }
.pd-collapse-toggle { font-size: 12.5px; font-weight: 700; color: var(--pd-sub); background: #fff; border: 1px solid var(--pd-line); border-radius: 8px; padding: 7px 12px; cursor: pointer; font-family: "Pretendard", sans-serif; }
.pd-collapse-toggle:hover { border-color: #bfdbfe; color: var(--pd-primary); }
.pd-cat-group { padding: 0; overflow: visible; }
.pd-cat-group > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-size: 15px; font-weight: 800; color: var(--pd-ink); display: flex; align-items: center; gap: 8px; }
.pd-cat-group > summary::-webkit-details-marker { display: none; }
.pd-cat-group > summary::before { content: '▸'; color: var(--pd-sub); font-size: 12px; transition: transform .12s; }
.pd-cat-group[open] > summary::before { transform: rotate(90deg); }
.pd-cat-group > summary + * { margin: 0 14px 14px; }
.pd-cat-title { color: var(--pd-primary); }

/* 상세 기획서: 화면 카드 접기 + 목차 */
.pd-spec-screen > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 800; margin-bottom: 4px; }
.pd-spec-screen > summary::-webkit-details-marker { display: none; }
.pd-spec-screen > summary::before { content: '▸'; color: var(--pd-sub); font-size: 12px; transition: transform .12s; }
.pd-spec-screen[open] > summary::before { transform: rotate(90deg); }
.pd-spec-sum-title { font-size: 17px; color: var(--pd-ink); }
.pd-spec-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 20px; }
.pd-spec-toc a { font-size: 12px; font-weight: 600; color: var(--pd-sub); background: var(--pd-soft); border-radius: 7px; padding: 4px 10px; text-decoration: none; }
.pd-spec-toc a:hover { background: #dbeafe; color: var(--pd-primary); }

/* 상세 기획서 목차 — depth 트리(채널→섹션→부모/자식, config/ia.js 있을 때). additive·고유 클래스 */
.pd-spec-toc-tree { margin: 4px 0 22px; border: 1px solid var(--pd-line); border-radius: 12px; padding: 10px 16px 4px; background: var(--pd-soft); }
.pd-stoc-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 2px 10px; border-bottom: 1px solid var(--pd-line); margin-bottom: 12px; }
/* 반응형 다단: 폭에 따라 1→2→3열 자동(column-width), 최대 3열(column-count 상한) — 넓은 PC에서 우측 여백 최소화 */
.pd-stoc-body { columns: 3 300px; column-gap: 24px; }
.pd-stoc-head-t { font-size: 12px; font-weight: 800; color: var(--pd-sub); letter-spacing: .02em; }
.pd-stoc-toggle { font-size: 11px; font-weight: 700; color: var(--pd-sub); background: #fff; border: 1px solid var(--pd-line); border-radius: 7px; padding: 3px 10px; cursor: pointer; }
.pd-stoc-toggle:hover { color: var(--pd-primary); border-color: var(--pd-primary); }
.pd-stoc-chan { break-inside: avoid; -webkit-column-break-inside: avoid; border: 1px solid var(--pd-line); border-radius: 10px; background: #fff; padding: 2px 12px 8px; margin: 0 0 16px; }
.pd-stoc-chan > summary { list-style: none; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--pd-ink); padding: 8px 2px; }
.pd-stoc-chan > summary::-webkit-details-marker { display: none; }
.pd-stoc-chan > summary::before { content: '▸'; display: inline-block; width: 1.1em; color: var(--pd-sub); transition: transform .15s; }
.pd-stoc-chan[open] > summary::before { transform: rotate(90deg); }
.pd-stoc-sec { margin: 0 0 3px 16px; }
.pd-stoc-sec > summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--pd-sub); padding: 4px 2px; }
.pd-stoc-sec > summary::-webkit-details-marker { display: none; }
.pd-stoc-sec > summary::before { content: '▸'; display: inline-block; width: 1em; font-size: 10px; color: var(--pd-sub); transition: transform .15s; }
.pd-stoc-sec[open] > summary::before { transform: rotate(90deg); }
.pd-stoc-tree, .pd-stoc-children { list-style: none; margin: 2px 0; padding: 0 0 0 18px; }
.pd-stoc-sec .pd-stoc-tree { padding-left: 10px; }
.pd-stoc-node { margin: 2px 0; }
.pd-stoc-link { display: inline-block; font-size: 12px; font-weight: 600; color: var(--pd-sub); background: #fff; border: 1px solid var(--pd-line); border-radius: 7px; padding: 3px 9px; text-decoration: none; }
.pd-stoc-link:hover { background: #dbeafe; color: var(--pd-primary); border-color: var(--pd-primary); }
.pd-stoc-node.has-kids > .pd-stoc-link { font-weight: 700; color: var(--pd-ink); }
.pd-stoc-count { font-size: 10px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border: 1px solid var(--pd-line); border-radius: 999px; padding: 0 6px; margin-left: 5px; }
.pd-stoc-chan > summary .pd-stoc-count, .pd-stoc-sec > summary .pd-stoc-count { background: #fff; }

/* 역할별로 시작하기 — 각 역할 진입 카드(쉬운 온보딩) */
.pd-roles { margin: 18px 0 8px; }
.pd-roles-head { font-size: 15px; font-weight: 800; color: var(--pd-ink); margin-bottom: 12px; }
.pd-roles-head .pd-dim { font-size: 12.5px; font-weight: 500; }
.pd-roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pd-role-card { border: 1px solid var(--pd-line); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.pd-role-top { display: flex; align-items: center; gap: 8px; }
.pd-role-ic { font-size: 18px; }
.pd-role-name { font-size: 14px; font-weight: 800; color: var(--pd-ink); }
.pd-role-job { font-size: 12.5px; color: var(--pd-sub); line-height: 1.55; flex: 1; }
.pd-role-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pd-role-links a { font-size: 12px; font-weight: 700; color: var(--pd-primary); background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 7px; padding: 4px 9px; text-decoration: none; }
.pd-role-links a:hover { background: #dbeafe; }

/* PRD 요구사항 추적(Traceability) + 보강 알림 */
.pd-trace-head { font-size: 13.5px; color: var(--pd-sub); }
.pd-trace-head b { color: var(--pd-ink); }
.pd-table tr.is-gap { background: #fff7ed; }
.pd-trace-gap { color: #b45309; font-weight: 700; }
.pd-trace-gaps { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-trace-note { font-size: 12.5px; line-height: 1.55; color: var(--pd-sub); background: #f8fafc; border: 1px solid var(--pd-line); border-left: 3px solid #cbd5e1; border-radius: 8px; padding: 9px 12px; }
.pd-trace-note.is-warn { background: #fffbeb; border-color: #fcd34d; border-left-color: #f59e0b; color: #92400e; }
.pd-trace-note.is-ok { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #22c55e; color: #166534; }
.pd-gap-card { border-color: #fcd34d !important; background: #fffdf5 !important; }
.pd-gap-card h2 { color: #b45309 !important; }

/* ═══ 앱 셸 반응형 ═══ */
@media (max-width: 1024px) { .pd-steps { grid-template-columns: 1fr; } }
@media (max-width: 920px) {
  .pd-appshell { flex-direction: column; }
  .pd-sidenav { position: static; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; border-right: none; border-bottom: 1px solid var(--pd-line); padding: 12px 16px; overflow: visible; }
  .pd-side-brand { padding: 0 6px 0 0; }
  .pd-side-proj { border-bottom: none; margin: 0; padding: 0 10px 0 0; }
  .pd-side-nav { flex-direction: row; flex-wrap: wrap; }
  .pd-side-actions { flex-direction: row; border-top: none; margin: 0; padding: 0; }
  .pd-side-ws { margin: 0; padding: 0 6px; }
  .pd-main { margin-left: 0; padding: 22px 16px 70px; }
  .pd-ws { padding: 24px 16px 70px; }
}

/* 디바이스 목업 세로 시작점 통일 — 모바일/PC/태블릿이 폭·높이와 무관하게
   동일한 상단 위치에서 시작(중앙정렬 시 짧은 화면이 아래로 내려가던 문제 해결).
   scale 기준점도 상단으로 두어 축소해도 상단선이 고정된다.
   padding-top은 상단 바(.pd-topbar: 검토 모드·화면정보)와 겹치지 않도록 그 아래로. */
.device-stage { align-items: flex-start; padding-top: 72px; } /* dup-ok: 리뷰모드 스테이지 리파인(common.css 기반 가산) */
.device-mockup { transform-origin: top center; } /* dup-ok: 리뷰모드 스케일 기준점 */

/* 우측 DESCRIPTION 패널 내용 폰트 축소(더 조밀하게) */
.page-detail .page-detail-list { gap: 6px; }
.page-detail .page-detail-item { padding: 6px 8px; }
.page-detail .page-detail-item-num { width: 17px; height: 17px; font-size: 10.5px; }
.page-detail .page-detail-item-text { font-size: 12px; line-height: 1.45; }

/* ═══ Flow Diagram 패널 — 저장 버튼 + 코너 리사이즈 ═══ */
.page-flow { min-width: 240px; min-height: 160px; } /* dup-ok: 플로우 노드 최소크기(common.css 기반 가산) */
.pd-flow-save {
  height: 26px; padding: 0 10px; margin-right: 4px; border-radius: 7px;
  border: 1px solid #e5e7eb; background: #f3f4f6; color: #9ca3af;
  font-size: 12px; font-weight: 700; font-family: "Pretendard", sans-serif;
  cursor: not-allowed; flex-shrink: 0; white-space: nowrap;
}
.pd-flow-save.is-dirty { background: var(--pd-primary); border-color: var(--pd-primary); color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(49,130,246,.3); }
.pd-flow-save.is-dirty:hover { background: #2a6fe0; }
/* 좌상단 코너 리사이즈 그립(패널은 우하단 고정 → 좌·상으로 확장) */
.page-flow .pd-flow-resize {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; z-index: 6;
  cursor: nwse-resize; border-top: 2px solid #c4c9d4; border-left: 2px solid #c4c9d4;
  border-top-left-radius: 7px; opacity: .55; touch-action: none;
}
.page-flow .pd-flow-resize:hover { opacity: 1; border-color: var(--pd-primary); }

/* Description 패널도 Flow와 동일하게 크기 조절(좌하단 그립 — 패널은 우상단 고정 → 좌·하로 확장) */
.page-detail .pd-desc-resize {
  position: absolute; bottom: 2px; left: 2px; width: 16px; height: 16px; z-index: 6;
  cursor: nesw-resize; border-bottom: 2px solid #c4c9d4; border-left: 2px solid #c4c9d4;
  border-bottom-left-radius: 7px; opacity: .55; touch-action: none;
}
.page-detail .pd-desc-resize:hover { opacity: 1; border-color: var(--pd-primary); }
/* 리사이즈로 명시 높이를 주면 max-height 제한을 풀고, 리스트가 남는 높이를 채우며 스크롤 */
.page-detail.pd-desc-resized { max-height: none; }
.page-detail.pd-desc-resized .page-detail-body { flex: 1 1 auto; overflow-y: auto; }

/* 워크스페이스: 버전(브랜치) 스위처 — 같은 프로젝트의 여러 버전을 한 카드에서 전환(git 브랜치 개념) */
.pd-proj-card-grouped { display: flex; flex-direction: column; }
.pd-proj-name-link { color: inherit; text-decoration: none; }
.pd-proj-name-link:hover { color: var(--pd-primary); text-decoration: underline; }
.pd-ver-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px dashed #e5e7eb; }
.pd-ver-switch-label { font-size: 11px; font-weight: 700; color: #9ca3af; margin-right: 2px; }
.pd-ver-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; border: 1px solid #e5e7eb; background: #fff; font-size: 11.5px; color: #4b5563; text-decoration: none; transition: border-color .12s, color .12s, background .12s; }
.pd-ver-pill:hover { border-color: var(--pd-primary); color: var(--pd-primary); }
.pd-ver-pill.is-current { background: var(--pd-primary); border-color: var(--pd-primary); color: #fff; font-weight: 700; }
.pd-ver-num { font-variant-numeric: tabular-nums; }
.pd-ver-tag { font-size: 10px; opacity: .8; }

/* 프로젝트 내 버전(브랜치) 드롭다운 스위처 — 사이드내비·화면 상단 크롬 공용 */
.pd-ver-dd { position: relative; display: inline-block; }
.pd-ver-dd > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--pd-primary); background: var(--pd-primary); color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pd-ver-dd > summary::-webkit-details-marker { display: none; }
.pd-ver-dd > summary::after { content: '▾'; font-size: 9px; opacity: .85; }
.pd-ver-dd[open] > summary::after { content: '▴'; }
.pd-ver-dd-menu { position: absolute; z-index: 60; top: calc(100% + 5px); left: 0; min-width: 180px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); padding: 5px; display: flex; flex-direction: column; gap: 2px; }
.pd-ver-dd-head { font-size: 10px; font-weight: 700; color: #9ca3af; padding: 4px 10px 2px; letter-spacing: .02em; }
.pd-ver-dd-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; font-size: 12px; color: #374151; text-decoration: none; }
.pd-ver-dd-item:hover { background: #f3f4f6; }
.pd-ver-dd-item.is-current { background: #eff4ff; color: var(--pd-primary); font-weight: 700; }
.pd-ver-dd-tag { font-size: 10.5px; color: #9ca3af; font-weight: 500; }
.pd-ver-dd-item.is-current .pd-ver-dd-tag { color: var(--pd-primary); opacity: .75; }

/* 좌측 화면 목록 토글(우하단 dock 아이콘으로 열고/닫기) */
.page-nav.is-hidden { display: none; }
.pd-nav-toggle-btn.is-off { opacity: .5; }
.pd-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* 문서용 칩(overview/workspace/flows 필터) — 와이어프레임 pill 칩(.pd-chips .pd-chip)과 충돌 방지 위해 doc 컨테이너로 스코프 */
.pd-chip-row .pd-chip, .pd-flow-filter .pd-chip { font-size: 12px; font-weight: 600; color: #475569; background: var(--pd-soft); border-radius: 8px; padding: 4px 10px; }

/* ═══ 상세 기획서(spec.html) ═══ */
.pd-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 10px 0; }
.pd-spec-grid h3 { font-size: 13px; font-weight: 800; color: var(--pd-sub); margin-bottom: 6px; }
.pd-spec-grid ul { margin: 0 0 0 16px; font-size: 13.5px; }
.pd-spec-screen h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-spec-screen h2 code { font-size: 13px; color: var(--pd-sub); font-weight: 600; }
.pd-spec-doc code { background: #eef2ff; color: var(--pd-primary); border-radius: 4px; padding: 0 5px; font-size: 12px; }
@media (max-width: 640px) { .pd-spec-grid { grid-template-columns: 1fr; } }
@media print {
  .pd-prd-nav, .pd-mode-toggle { display: none !important; }
  .pd-prd-sec { break-inside: avoid; box-shadow: none; }
}

/* ═══ 목업 상단 바 — 검토 모드 버튼 + 현재 화면 정보(좌측 패널에서 이동) ═══ */
.pd-topbar {
  position: fixed; left: 296px; top: 16px; z-index: 106;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 320px);
}
/* 현재 화면 정보 카드(타이틀 · ID · Figma) */
.pd-screen-meta {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  background: #fff; border: 1px solid var(--pd-line); border-radius: 10px; padding: 7px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06); font-family: "Pretendard", sans-serif;
}
.pd-sm-title { font-size: 14px; font-weight: 800; color: var(--pd-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.pd-sm-id { flex-shrink: 0; font-size: 11px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border-radius: 6px; padding: 2px 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.pd-sm-id.is-tbd { font-style: italic; }
.pd-sm-figma { flex-shrink: 0; font-size: 12px; font-weight: 700; color: var(--pd-primary); text-decoration: none; white-space: nowrap; }
.pd-sm-figma:hover { text-decoration: underline; }
.pd-sm-figma.is-disabled { color: #9aa0a8; cursor: not-allowed; }

/* ═══ 검토 모드(의사결정자): 기술 패널 숨김 ═══ */
.pd-mode-toggle {
  position: static; flex-shrink: 0;
  font-size: 13px; font-weight: 700; color: var(--pd-primary);
  background: #fff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 8px 14px;
  cursor: pointer; font-family: "Pretendard", sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.pd-mode-toggle:hover { background: #eff6ff; }
/* 검토 모드: 화면명만 남기고 기술정보(ID·Figma) 숨김 */
.pd-review-mode .pd-sm-id, .pd-review-mode .pd-sm-figma { display: none; }
/* 검토 모드: 상단 서비스 배너 아래로 상단 바·목업을 차례로 내려 겹침 방지
   (배너 → 상단 바 → 목업 순서로 스택) */
.pd-review-mode .pd-topbar { top: 64px; }
.pd-review-mode .device-stage { padding-top: 112px; }

/* ═══ 충실도(Fidelity): 디자인 이미지 / 프로토타입 임베드 렌더 + 토글 ═══ */
.device-screen { position: relative; } /* dup-ok: 리뷰 오버레이 앵커(common.css 기반 가산) */
.pd-figma-img-wrap { position: absolute; inset: 0; z-index: 30; overflow: hidden; }
.pd-figma-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-figma-proto { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 30; display: block; background: #fff; }
.pd-figma-hotspot { position: absolute; z-index: 31; display: block; cursor: pointer; border-radius: 6px; }
.pd-figma-hotspot:hover { background: rgba(49,130,246,.14); outline: 2px solid rgba(49,130,246,.55); }
.device-stage.pd-fidelity-design .pd-screen, .device-stage.pd-fidelity-proto .pd-screen { visibility: hidden; }
.device-stage.pd-fidelity-design .pd-statusbar, .device-stage.pd-fidelity-design .pd-dynamic-island, .device-stage.pd-fidelity-design .pd-homebar, .device-stage.pd-fidelity-design .pd-browserbar,
.device-stage.pd-fidelity-proto .pd-statusbar, .device-stage.pd-fidelity-proto .pd-dynamic-island, .device-stage.pd-fidelity-proto .pd-homebar, .device-stage.pd-fidelity-proto .pd-browserbar { display: none !important; }
.pd-fid-toggle { display: inline-flex; background: #fff; border: 1px solid var(--pd-line); border-radius: 9px; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.pd-fid-btn { border: none; background: transparent; font-size: 12px; font-weight: 700; color: var(--pd-sub); padding: 7px 11px; cursor: pointer; font-family: "Pretendard", sans-serif; border-right: 1px solid var(--pd-line); }
.pd-fid-btn:last-child { border-right: none; }
.pd-fid-btn.is-on { background: var(--pd-primary); color: #fff; }
.pd-fid-btn:not(.is-on):hover { background: #eff6ff; color: var(--pd-primary); }
.pd-review-mode .pd-cases,
.pd-review-mode .pd-interface,
.pd-review-mode .pd-lint-banner,
.pd-review-mode .pd-dock-btn { display: none !important; }
.pd-review-mode .pd-status-chip { display: none; }
/* 검토 모드: 좌측 목록의 개발/프로세스 노이즈(코드·Figma·UI DESIGN·뱃지) 숨김 */
.pd-review-mode .page-nav-figma,
.pd-review-mode .page-nav-cols,
.pd-review-mode .nav-bdg,
.pd-review-mode .page-nav-head-code { display: none !important; }

/* 검토 모드 상단 서비스 요약 배너 (의사결정자: '무슨 서비스인지' 즉시 파악) */
.pd-review-banner {
  position: fixed; top: 0; left: 280px; right: 0; z-index: 90;
  background: #111827; color: #fff; padding: 10px 20px; font-size: 14px;
  font-family: "Pretendard", sans-serif; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pd-review-banner b { font-weight: 800; }
.pd-review-ctx { font-size: 12.5px; color: #cbd5e1; margin-top: 3px; }

/* ═══ 모바일 레이아웃 (고정 3패널 겹침 방지) ═══ */
@media (max-width: 820px) {
  .page-nav { position: fixed; inset: 0 0 auto 0; width: 100%; height: auto; max-height: none; border-right: none; border-bottom: 1px solid #e5e7eb; z-index: 120; }
  .page-nav-scroll { display: none; }           /* 긴 목록은 숨김(겹침 방지) — 이동은 플로우/CTA로 */
  .page-nav-head { padding: 12px 16px; }
  .device-stage { padding: 84px 8px 84px; min-height: auto; align-items: flex-start; }
  .device-mockup { margin: 0 auto; }
  .page-detail, .page-flow { left: 8px !important; right: 8px !important; width: auto !important; top: auto !important; bottom: 72px !important; max-height: 50vh; }
  .page-flow { height: 50vh; }
  .pd-panel { left: 8px !important; right: 8px !important; width: auto !important; max-width: none !important; top: 72px !important; max-height: 70vh; }
  .pd-topbar { left: auto; right: 70px; top: 10px; z-index: 130; max-width: calc(100vw - 90px); }
  .pd-screen-meta { display: none; }   /* 모바일 상단 공간 부족 — 화면정보는 목록/Description으로 */
  .pd-nav-search { display: none; }    /* 모바일은 목록 자체가 숨겨짐(이동=플로우/CTA) */
  .pd-lint-banner { left: 8px; right: 8px; max-width: none; bottom: 72px; }
  .pd-review-banner { left: 0; top: auto; bottom: 0; }
  .pd-prd-doc { padding: 24px 16px 80px; }
  .pd-prd-nav { position: static; margin-bottom: 12px; flex-wrap: wrap; }
}

/* ═══ 홈 대시보드(실무 기획자 길잡이) ═══ */
.pd-dash-row { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.pd-dash-stat { font-size: 13px; color: var(--pd-sub); }
.pd-dash-stat b { font-size: 22px; font-weight: 800; color: var(--pd-ink); margin-right: 4px; }
.pd-bar { height: 10px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.pd-bar-fill { height: 100%; background: linear-gradient(90deg, #3182f6, #60a5fa); border-radius: 6px; transition: width .4s; }
.pd-dash-pct { font-size: 12px; color: var(--pd-sub); margin-top: 6px; font-weight: 600; }
.pd-next { background: linear-gradient(180deg, #eff6ff, #fff); border-color: #bfdbfe; }
.pd-next h2 { color: var(--pd-primary); }
.pd-next-cmd code { font-size: 15px; font-weight: 800; background: var(--pd-primary); color: #fff; border-radius: 8px; padding: 4px 12px; }
.pd-next-why { margin-top: 8px; font-size: 14px; color: var(--pd-ink); }
.pd-link { text-decoration: none; color: var(--pd-primary) !important; background: #eff6ff; border: 1px solid #dbeafe; }
.pd-link:hover { background: #dbeafe; }
.pd-cheat summary { cursor: pointer; font-size: 15px; font-weight: 800; color: var(--pd-sub); }
.pd-cheat td code { background: #eef2ff; color: var(--pd-primary); border-radius: 4px; padding: 0 6px; }

/* ═══ 워크스페이스(다중 프로젝트) 홈 ═══ */
.pd-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.pd-proj-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--pd-line); border-radius: 14px; padding: 18px 20px; transition: border-color .12s, box-shadow .12s, transform .12s; }
.pd-proj-card:hover { border-color: #bfdbfe; box-shadow: 0 8px 24px rgba(49,130,246,.1); transform: translateY(-2px); }
.pd-proj-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pd-proj-name { font-size: 18px; font-weight: 800; color: var(--pd-ink); }
.pd-proj-desc { font-size: 13.5px; color: var(--pd-sub); line-height: 1.5; margin-bottom: 12px; min-height: 2.6em; }
.pd-ver-badge { display: inline-block; font-size: 12px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.pd-changelog { font-size: 12.5px; }
.pd-changelog li { margin-bottom: 4px; }
.pd-changelog code { background: #eef2ff; color: var(--pd-primary); border-radius: 4px; padding: 0 5px; }

/* ═══ IA(정보구조) 뷰 ═══ */
.pd-ia-cat { margin-bottom: 26px; }
.pd-ia-cat h2 { font-size: 16px; font-weight: 800; color: var(--pd-ink); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--pd-line); }
.pd-ia-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pd-ia-node { border: 1px solid var(--pd-line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.pd-ia-node-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-ia-screen { font-size: 14.5px; font-weight: 700; color: var(--pd-primary); text-decoration: none; }
.pd-ia-screen:hover { text-decoration: underline; }
.pd-ia-id { font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; }
.pd-ia-reqs { margin-left: auto; display: flex; gap: 4px; }
.pd-ia-edges { margin-top: 8px; font-size: 12.5px; color: var(--pd-sub); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pd-ia-arrow { color: #9ca3af; font-weight: 700; }
.pd-ia-edge { display: inline-block; background: var(--pd-soft); border-radius: 6px; padding: 2px 9px; font-size: 12px; color: var(--pd-ink); text-decoration: none; }
.pd-ia-edge:hover { background: #e0e7ff; }
.pd-ia-entries { margin-top: 10px; font-size: 13px; color: var(--pd-sub); }
.pd-ia-entries a { color: var(--pd-primary); text-decoration: none; }

/* ═══ IA 메뉴 depth 트리 + 표현방식(config/ia.js 기반 renderIA) ═══ */
.pd-ia-legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 14px; background: #fafbfc; border: 1px solid var(--pd-line); border-radius: 10px; }
.pd-ia-legend-t { font-size: 12px; font-weight: 800; color: var(--pd-ink); margin-right: 2px; }
.pd-ia-channel { margin-bottom: 32px; }
.pd-ia-chan-head { font-size: 18px; font-weight: 800; color: var(--pd-ink); margin: 0 0 14px; padding-bottom: 9px; border-bottom: 2px solid var(--pd-primary); display: flex; align-items: center; gap: 8px; }
.pd-ia-chan-dev { font-size: 11px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border-radius: 5px; padding: 2px 8px; letter-spacing: .2px; }
.pd-ia-section { margin: 0 0 14px; }
.pd-ia-sec-head { font-size: 13.5px; font-weight: 800; color: var(--pd-primary); margin: 16px 0 9px; display: flex; align-items: center; gap: 8px; }
.pd-ia-sec-head::before { content: ''; width: 4px; height: 15px; background: var(--pd-primary); border-radius: 2px; }
.pd-ia-tree { list-style: none; margin: 0; padding: 0; }
.pd-ia-tree--root { display: flex; flex-direction: column; gap: 7px; }
.pd-ian { position: relative; margin: 0; }
/* 하위(중첩) 트리: 좌측 가이드선 + 들여쓰기 */
.pd-ian .pd-ia-tree { margin: 7px 0 2px 13px; padding-left: 18px; border-left: 1.5px solid #dbe2ea; display: flex; flex-direction: column; gap: 7px; }
.pd-ian .pd-ia-tree > .pd-ian::before { content: ''; position: absolute; left: -18px; top: 19px; width: 14px; height: 1.5px; background: #dbe2ea; }
.pd-ian-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: #fff; border: 1px solid var(--pd-line); border-radius: 9px; }
.pd-ian[data-depth="1"] > .pd-ian-row { border-color: #cbd5e1; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.pd-ian-label { font-size: 14px; font-weight: 700; color: var(--pd-primary); text-decoration: none; }
.pd-ian-label:hover { text-decoration: underline; }
.pd-ian-id { font-size: 11px; font-family: ui-monospace, Menlo, monospace; }
.pd-ian-count { font-size: 11px; font-weight: 700; color: var(--pd-sub); background: var(--pd-soft); border-radius: 5px; padding: 1px 8px; }
.pd-ian-reqs { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.pd-ian-note { font-size: 12px; color: var(--pd-sub); margin: 3px 0 0 12px; line-height: 1.5; }
.pd-ian-edges { margin: 5px 0 1px 12px; font-size: 12px; color: var(--pd-sub); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* 표현방식 배지 */
.pd-present { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; border: 1px solid transparent; line-height: 1.5; }
.pd-present b { margin-left: 3px; font-weight: 800; }
.pd-present--page    { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.pd-present--modal   { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pd-present--sheet   { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.pd-present--drawer  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.pd-present--step    { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.pd-present--tab     { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.pd-present--alert   { background: #fff1f2; color: #be123c; border-color: #fecdd3; }
.pd-present--popover { background: #f8fafc; color: #334155; border-color: #e2e8f0; }
.pd-present--toast   { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.pd-ia-unplaced .pd-ia-chan-head { border-bottom-color: #f59e0b; color: #b45309; }
@media (max-width: 820px) { .pd-ian .pd-ia-tree { margin-left: 7px; padding-left: 13px; } .pd-ian-reqs { margin-left: 0; } }

/* ═══ 기능 정의서 ═══ */
.pd-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.pd-feat-table td { vertical-align: middle; }
.pd-feat-type { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pd-feat-type.is-write { background: #fff1e6; color: #c2410c; }
.pd-feat-type.is-read { background: #e0f2fe; color: #0369a1; }
.pd-feat-type.is-event { background: #f3e8ff; color: #7e22ce; }

/* export 버튼(일부가 <button>) — a.pd-side-action 과 동일 외형 */
button.pd-side-action { font-family: inherit; text-align: left; width: 100%; cursor: pointer; }

/* ═══ 인쇄(PDF로 저장) 최적화 — 사이드·네비 숨김, 본문 전폭, 화면 단위 페이지 분할 ═══ */
@media print {
  .pd-sidenav, .pd-side-actions, .pd-doc-filter, .pd-prd-nav, .pd-fab, .pd-dock { display: none !important; }
  .pd-main { margin: 0 !important; }
  .pd-doc { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .pd-spec-screen, .pd-ia-node, .pd-prd-card, .pd-role-card, .pd-step-item { break-inside: avoid; page-break-inside: avoid; }
  .pd-table thead { display: table-header-group; }
  .pd-table tr { break-inside: avoid; }
  body { background: #fff !important; }
  a[href] { color: inherit; text-decoration: none; }
}

/* ─── 컴포넌트 라이브러리(카탈로그) 뷰 ─── */
.pd-catalog .pd-comp-group { margin-bottom: 30px; }
.pd-catalog .pd-comp-group > h2 { font-size: 15px; font-weight: 800; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.pd-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pd-comp-item { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pd-comp-head { padding: 10px 14px; border-bottom: 1px solid #f0f1f3; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pd-comp-name { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; color: var(--pd-primary, #3182f6); background: #eff4ff; padding: 2px 7px; border-radius: 6px; }
.pd-comp-desc { font-size: 12px; color: #6b7280; }
.pd-comp-preview { padding: 16px; background: #f6f7f9; display: flex; justify-content: center; }
.pd-comp-preview .pd-screen { width: 100%; max-width: 340px; height: auto !important; min-height: 0; overflow: visible; background: #fff; border-radius: 10px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.pd-comp-preview .pd-appbar, .pd-comp-preview .pd-tabbar { position: static; }
