/* ===========================================================
   업무비서 — 공통 디자인 시스템
   모든 화면(로그인 / 대시보드 / 채팅)이 이 파일 하나를 공유합니다.
   =========================================================== */

:root {
  /* 색상 */
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-alt: #eef3fa;
  --border: #e1e9f2;
  --border-strong: #cbd8e6;

  --ink: #16202c;
  --ink-muted: #5b6b7c;
  --ink-faint: #93a2b0;

  --primary: #2f6fed;
  --primary-dark: #1d54c9;
  --primary-soft: #eaf1ff;

  --success: #1f9d55;
  --success-soft: #e6f7ec;
  --warning: #b8860b;
  --warning-soft: #fdf3df;
  --danger: #d64550;
  --danger-soft: #fdeaec;

  --shadow-sm: 0 2px 8px rgba(23, 43, 77, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 43, 77, 0.10);

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; }

::selection { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-secondary { background: var(--surface-alt); color: var(--ink); border: 1px solid var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: #e2eaf3; }

.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #fbd8db; }

.btn-block { width: 100%; }

/* ---------- 입력 폼 ---------- */
.field { text-align: left; margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.input, select.input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* ---------- 카드 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- 배지 / 칩 ---------- */
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }

/* ===========================================================
   로그인 화면
   =========================================================== */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 111, 237, 0.08), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(47, 111, 237, 0.06), transparent 40%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 44px 40px;
  text-align: center;
}

.auth-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.auth-logo { height: 55px; width: auto; margin: 0 auto 18px; display: block; }

.auth-back-link {
  display: inline-block;
  font-size: 12.5px;
  color: var(--ink-faint);
  text-decoration: none;
  margin-bottom: 14px;
}
.auth-back-link:hover { color: var(--ink-muted); }

.auth-card h1 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.auth-card .lede {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 28px;
}

.btn-group { display: flex; gap: 10px; margin-top: 4px; }
.btn-group .btn { flex: 1; }

.forgot-pw-link { margin: 16px 0 0; text-align: center; }
.forgot-pw-link a { font-size: 13px; color: var(--ink-muted); text-decoration: none; }
.forgot-pw-link a:hover { color: var(--primary); text-decoration: underline; }

/* ===========================================================
   앱 셸 (사이드바 + 콘텐츠)
   =========================================================== */
.app-shell {
  display: none;
  width: 100%;
  height: 100vh;
}
.app-shell.is-active { display: flex; }

.sidebar {
  width: 264px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

/* 모바일 햄버거 메뉴 — 기본(PC 포함 모든 화면)은 항상 숨김.
   @media (max-width: 720px) 안에서만 보이게 뒤집는다(실수로 빠뜨려도 PC에는 영향 없음). */
.mobile-topbar, .hamburger-btn, .sidebar-backdrop { display: none; }

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo { height: 37px; width: auto; display: block; }

.office-switcher {
  display: none;
  background: var(--primary-soft);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.office-switcher label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 7px;
}
.office-switcher .office-select {
  background: var(--surface);
  border: 1px solid var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.sidebar-nav { list-style: none; margin: 0 0 18px; padding: 0; }
.sidebar-nav li { margin-bottom: 4px; }
.sidebar-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background .15s ease, color .15s ease;
}
.sidebar-nav a:hover { background: var(--surface-alt); color: var(--ink); }
.sidebar-nav a.is-active { background: var(--primary-soft); color: var(--primary-dark); }

/* 받은 인수인계/사무공유 요청 개수 — account.html을 직접 안 열어도 사이드바에서 바로 보이는 배지 */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* 다중(복합) 사무 검토 모드일 때 비활성화되는 메뉴(문서등록/라이브러리) */
.sidebar-nav a.is-disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
  position: relative;
}
.sidebar-nav a.is-disabled:hover { background: none; color: var(--ink-faint); }
.nav-tooltip { display: none; }
.sidebar-nav a.is-disabled .nav-tooltip {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  z-index: 50;
  pointer-events: none;
}
.sidebar-nav a.is-disabled:hover .nav-tooltip { display: block; }

.btn-add-office {
  width: 100%;
  padding: 11px;
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-add-office:hover { background: #e2eaf3; }

/* 사무 선택 드롭다운 — 체크박스로 2~3개까지 동시에 묻어 "다중 사무 검토 모드"로 들어갈 수 있다 */
.office-dropdown { position: relative; }
.office-dropdown-trigger {
  width: 100%;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.office-dropdown-trigger span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.office-dropdown-trigger .chevron { font-size: 10px; color: var(--ink-faint); transition: transform .15s ease; flex-shrink: 0; }
.office-dropdown.is-open .office-dropdown-trigger .chevron { transform: rotate(180deg); }

.office-dropdown-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
  z-index: 40;
  max-height: 280px;
  overflow-y: auto;
  display: none;
}
.office-dropdown.is-open .office-dropdown-panel { display: block; }

.office-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 13px;
}
.office-option:hover { background: var(--surface-alt); }
.office-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.office-option.is-checkbox-disabled input[type="checkbox"] { cursor: not-allowed; opacity: .4; }
.office-option .office-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-muted);
  font-weight: 600;
  cursor: pointer;
}
.office-option .office-name:hover { color: var(--primary-dark); }

.office-dropdown-hint {
  padding: 8px 12px;
  font-size: 11.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--border);
}

.multi-mode-chip {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-top: 4px;
}

.sidebar-user {
  font-size: 12.5px;
  color: var(--ink-faint);
  padding: 0 6px;
}

.content-area {
  border: none;
  width: calc(100% - 264px);
  height: 100%;
}

/* ===========================================================
   대시보드 (문서등록)
   =========================================================== */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}
.page-header h1 { font-size: 22px; font-weight: 800; margin: 0 0 5px; color: var(--ink); }
.page-header .lede { font-size: 13.5px; color: var(--ink-muted); margin: 0; }

.dropzone {
  background: var(--surface);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 32px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone .icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.dropzone p {
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}
.dropzone .hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  font-weight: 400;
}

.result-card {
  margin-top: 20px;
  padding: 20px 22px;
  display: none;
}
.result-card .file-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.result-card .file-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--success-soft);
  color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 17px;
}
.result-card .file-name { font-weight: 700; font-size: 14.5px; color: var(--ink); word-break: break-all; }
.result-card .file-status { font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

.progress-track {
  width: 100%;
  height: 7px;
  background: var(--surface-alt);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 14px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width .2s ease;
}

/* 포인트 잔액 게이지 — .progress-track/.progress-fill과 달리 배경색을 진하게 줘서
   흰 트랙이 카드 배경(흰색)에 묻혀 안 보이던 문제를 해결 */
.points-track {
  width: 100%;
  height: 8px;
  background: var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 14px;
}
.points-fill {
  height: 100%;
  width: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width .2s ease;
}

/* ---------- 홈 대시보드 달력 ---------- */
.calendar-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.calendar-toolbar .btn { padding: 8px 14px; }
.calendar-title { font-size: 15.5px; font-weight: 800; color: var(--ink); min-width: 108px; text-align: center; }
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-strong);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.calendar-cell {
  min-height: 92px;
  min-width: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px;
  box-sizing: border-box;
}
.calendar-cell.is-outside { background: var(--surface-alt); }
.calendar-cell.is-today { background: var(--primary-soft); }
.calendar-daynum { font-size: 12.5px; font-weight: 700; color: var(--ink-muted); margin-bottom: 4px; }
.calendar-events { display: flex; flex-direction: column; gap: 3px; max-height: 64px; overflow-y: auto; }
.calendar-pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex-shrink: 0;
}
.calendar-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.doc-list { margin-top: 34px; }
.doc-list h2 { font-size: 15.5px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.doc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.doc-row:last-child { border-bottom: none; }
.doc-row .name { font-weight: 600; color: var(--ink); flex: 1; }
.doc-download-link { color: inherit; text-decoration: none; cursor: pointer; }
.doc-download-link:hover { text-decoration: underline; }
.doc-download-link .doc-date { color: var(--ink-faint); font-weight: 500; margin-right: 2px; }
.doc-row .year { color: var(--ink-faint); font-size: 12.5px; }
.doc-row .doc-status { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.doc-row-wrap { border-bottom: 1px solid var(--border); }
.doc-row-wrap:last-child { border-bottom: none; }
.doc-row-wrap .doc-row { border-bottom: none; }
.doc-unmatched { padding: 0 16px 12px; font-size: 12px; color: #b8860b; }
.doc-extract-help {
  margin: 0 16px 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7a2d20;
  background: #fdeceb;
  border: 1px solid #f3c9c5;
  border-radius: 8px;
}
.doc-extract-help strong { color: #c0392b; }
.doc-delete-btn {
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
}
.doc-delete-btn:hover { background: rgba(192, 57, 43, 0.12); }
.doc-empty { padding: 18px; color: var(--ink-faint); font-size: 13.5px; text-align: center; }

.empty-cta {
  text-align: center;
  padding: 56px 32px;
}
.empty-cta .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.empty-cta p {
  font-size: 14.5px;
  color: var(--ink-muted);
  margin: 0 0 20px;
}

/* ---------- 공용 카드 제목/설명 ---------- */
.section-title { font-size: 15.5px; font-weight: 800; margin: 0 0 10px; color: var(--ink); }
.card-desc { font-size: 13px; color: var(--ink-faint); margin: 0 0 18px; line-height: 1.6; }

/* ---------- 라이브러리 책갈피(색인) 탭 ---------- */
.library-tabs { display: flex; gap: 6px; margin-bottom: 0; }
.library-tab {
  padding: 10px 18px 9px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  top: 1px;
}
.library-tab.is-active {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--border-strong);
  box-shadow: 0 -2px 6px rgba(23, 43, 77, 0.04);
  z-index: 1;
}
.library-panel { border-top: 1px solid var(--border-strong); padding-top: 20px; }

/* ---------- 투두 리스트 ---------- */
.todo-add-row { display: flex; gap: 8px; margin-bottom: 16px; }
.todo-add-row .input { flex: 1; }
.todo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}
.todo-row:last-child { border-bottom: none; }
.todo-checkbox { margin-top: 3px; width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); flex-shrink: 0; }
.todo-text-wrap { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.todo-text { font-size: 14px; color: var(--ink); line-height: 1.6; }
.todo-row.is-done .todo-text { color: var(--ink-faint); text-decoration: line-through; }
.todo-source-tag { font-size: 12px; cursor: default; }
.todo-done-date { font-size: 11.5px; color: var(--ink-faint); }
.todo-divider {
  margin: 14px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
}

/* ---------- 핵심요약서 ---------- */
.cs-section { margin-bottom: 16px; }
.cs-section:last-child { margin-bottom: 0; }
.cs-section-title { font-size: 13px; font-weight: 700; color: var(--ink-muted); margin: 0 0 6px; }
.cs-section-body p { margin: 0 0 4px; font-size: 14px; color: var(--ink); line-height: 1.6; }
.cs-empty { font-size: 13.5px; color: var(--ink-faint); }
.cs-details { margin-top: 6px; padding: 10px 12px; background: var(--surface-alt); border-radius: var(--radius-sm); }
.cs-detail-line { font-size: 13px; color: var(--ink-muted); margin: 0 0 4px; line-height: 1.6; }
.cs-detail-line:last-child { margin-bottom: 0; }

/* ---------- 사무 정보 파라미터 (클릭해서 바로 수정) ---------- */
.param-card .card-desc {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0 0 18px;
}
.param-group { margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.param-group:last-child { margin-bottom: 0; border-bottom: none; }
.param-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 12px 4px;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.param-group-header:hover .param-group-title { color: var(--ink); }
.param-group-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .15s ease;
}
.param-group-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: auto;
}
.param-group-chevron {
  font-size: 11px;
  color: var(--ink-faint);
  transition: transform .18s ease;
}
.param-group.is-open .param-group-chevron { transform: rotate(180deg); }
.param-group-body { display: none; padding: 0 2px 12px; }
.param-group.is-open .param-group-body { display: block; }
.param-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--border);
}
.param-group .param-row:last-child { border-bottom: none; }
.param-label {
  width: 148px;
  flex-shrink: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 600;
}
.param-value-wrap { flex: 1; min-width: 0; }
.param-value {
  font-size: 14.5px;
  color: var(--ink);
  padding: 7px 9px;
  border-radius: 7px;
  cursor: text;
  transition: background .15s ease;
  word-break: break-word;
  line-height: 1.4;
}
.param-value:hover { background: var(--surface-alt); }
.param-value.is-empty { color: var(--ink-faint); }
.param-input {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface-alt);
  border: none;
  border-radius: 7px;
  padding: 7px 9px;
  outline: none;
}
.param-input:focus { box-shadow: 0 0 0 2px var(--primary-soft); }

.param-pending {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: -2px 0 10px 148px;
  padding: 9px 12px;
  background: var(--warning-soft);
  border-radius: 8px;
  font-size: 12.5px;
  color: #7a5c00;
}
.param-pending .btn { padding: 5px 13px; font-size: 12px; }

.param-delete-btn {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 5px;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}
.param-delete-btn:hover { background: var(--danger-soft); color: var(--danger); }

.param-custom-empty {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 12px 2px;
  margin: 0;
}

.param-add-row { display: flex; align-items: center; gap: 8px; padding: 10px 2px 2px; }
.param-add-trigger {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
}
.param-add-trigger:hover { text-decoration: underline; }

/* 새 항목 추가 — 박스 하나(드래그앤드롭 + 붙여넣기 + 직접입력)로 통합된 흐름 */
.param-add-box { display: flex; flex-direction: column; gap: 8px; padding: 12px 2px 4px; max-width: 480px; }

.param-dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 4px;
  transition: border-color .15s ease, background .15s ease;
}
.param-dropzone.is-dragover { border-color: var(--primary); background: var(--primary-soft); }
.param-dropzone-textarea {
  width: 100%;
  min-height: 64px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: none;
  border: none;
  outline: none;
  resize: vertical;
  padding: 10px;
  box-sizing: border-box;
}
.param-dropzone-status { font-size: 12px; color: var(--ink-muted); padding: 0 10px 6px; }

.param-detect-preview { display: none; padding: 8px 10px 10px; border-top: 1px dashed var(--border-strong); }
.param-detect-badge { font-size: 12.5px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.param-preview-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 4px; }
.param-preview-table th, .param-preview-table td {
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.param-preview-table th { font-weight: 700; color: var(--ink); }
.param-preview-more { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 4px; }
.param-preview-group { font-size: 12.5px; color: var(--ink-muted); display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.param-detect-override {
  border: none;
  background: none;
  color: var(--ink-faint);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 0;
}
.param-detect-override:hover { color: var(--ink); }

.param-table-choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: 7px;
  padding: 7px 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
  color: var(--ink);
  cursor: pointer;
}
.param-table-choice:hover { border-color: var(--primary); background: var(--primary-soft); }

.param-add-form-actions { display: flex; gap: 8px; }
.param-add-form-actions .btn { flex: 1; padding: 8px 14px; font-size: 13px; }

/* 표/그룹처럼 여러 줄로 구성된 커스텀 항목 카드 */
.param-custom-item {
  padding: 12px 2px 16px;
  border-bottom: 1px solid var(--border);
}
.param-custom-item-header { display: flex; align-items: center; gap: 10px; padding: 4px 0 8px; }
.param-custom-item-title { font-size: 13.5px; color: var(--ink); font-weight: 700; flex: 1; }

/* 표는 다른 파라미터 행과 같은 글자체·크기(14.5px 본문/13.5px 라벨)를 쓰고, 카드 폭을 넘는 부분은
   커지는 대신 이 박스 안에서만 가로·세로로 스크롤되게 한다(칸마다 너비를 고정해 <input> 기본 폭 때문에
   표가 의도치 않게 확 넓어지는 것도 함께 방지). */
.param-table-wrap {
  overflow: auto;
  max-width: 100%;
  max-height: 320px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.param-table { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 14.5px; }
.param-table th {
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 9px;
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface-alt);
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.param-table td { padding: 2px; border-bottom: 1px solid var(--border); }
.param-table-cell {
  width: 130px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: none;
  border: none;
  border-radius: 6px;
  padding: 7px 9px;
  outline: none;
  box-sizing: border-box;
}
.param-table-cell:focus { background: var(--surface-alt); box-shadow: 0 0 0 2px var(--primary-soft); }

.param-table-head-cell { display: flex; align-items: center; gap: 4px; }
.param-table-head-name { cursor: text; border-radius: 4px; padding: 2px 4px; }
.param-table-head-name:hover { background: var(--surface); color: var(--ink); }
.param-table-head-input {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  outline: none;
  width: 90px;
}
.param-table-add-col {
  flex-shrink: 0;
  border: 1px dashed var(--border-strong);
  background: none;
  -webkit-appearance: none;
  appearance: none;
  color: var(--ink-faint);
  border-radius: 6px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
}
.param-table-add-col:hover { color: var(--primary); border-color: var(--primary); }

.param-table-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.param-table-actions .param-add-trigger { padding: 6px 10px; }

.param-paste-form { margin-top: 8px; padding: 10px; background: var(--surface-alt); border-radius: 8px; }
.param-paste-hint { font-size: 12px; color: var(--ink-muted); margin: 0 0 8px; }
.param-paste-textarea {
  width: 100%;
  min-height: 90px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 8px 10px;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 8px;
}
.param-paste-textarea:focus { box-shadow: 0 0 0 2px var(--primary-soft); }

.param-group-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.param-group-item-row { display: flex; align-items: center; gap: 8px; }
.param-group-sub-label { flex: 0 0 148px; }
.param-group-sub-value { flex: 1; min-width: 0; }

/* ---------- 모달 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 40, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  padding: 20px;
}
.modal-card {
  background: var(--surface);
  padding: 30px;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.modal-card h3 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0 0 22px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ===========================================================
   채팅
   =========================================================== */
.chat-page {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
}

.chat-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  height: 100%;
}

.chat-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.chat-header h1 { font-size: 16.5px; font-weight: 800; margin: 0 0 3px; color: var(--ink); }
.chat-header .lede { font-size: 12.5px; color: var(--ink-muted); margin: 0; }

.icon-btn {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.icon-btn:hover:not(:disabled) { background: #e2eaf3; color: var(--ink); transform: rotate(-40deg); }
.icon-btn:disabled { opacity: .5; cursor: not-allowed; }

.chat-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  padding: 26px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  max-width: 62%;
  padding: 13px 17px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  word-break: break-word;
}
.bubble.system {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.bubble.user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble.is-pending { opacity: .55; }
.bubble:has(.bubble-markdown) { max-width: 82%; }

/* ---------- AI 답변 마크다운(표/목록/굵게) ---------- */
.bubble-markdown p { margin: 0 0 10px; }
.bubble-markdown p:last-child { margin-bottom: 0; }
.bubble-markdown strong { font-weight: 700; }
.bubble-markdown ul, .bubble-markdown ol { margin: 0 0 10px; padding-left: 20px; }
.bubble-markdown li { margin-bottom: 3px; }
.bubble-markdown h1, .bubble-markdown h2, .bubble-markdown h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0 8px;
}
.bubble-markdown h1:first-child, .bubble-markdown h2:first-child, .bubble-markdown h3:first-child { margin-top: 0; }
.bubble-markdown code {
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 13px;
}
.bubble-markdown table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 6px 0 10px;
  font-size: 13.5px;
  max-width: 100%;
}
.bubble-markdown th, .bubble-markdown td {
  border: 1px solid var(--border-strong);
  padding: 6px 10px;
  text-align: left;
  white-space: nowrap;
}
.bubble-markdown th { background: var(--surface-alt); font-weight: 700; }

/* 체크리스트 — `- [ ] 항목` 문법이 marked에서 <input type=checkbox disabled>로 바뀐 것 */
.bubble-markdown input[type="checkbox"] { margin-right: 6px; transform: translateY(1px); }
.bubble-markdown li:has(> input[type="checkbox"]) { list-style: none; margin-left: -20px; }

/* 흐름도/타임라인(mermaid가 그린 svg) */
.bubble-diagram { overflow-x: auto; margin: 8px 0 10px; }
.bubble-diagram svg { max-width: 100%; height: auto; }

/* 그래프(Chart.js 캔버스) */
.bubble-chart { position: relative; width: 100%; max-width: 420px; height: 220px; margin: 8px 0 10px; }

/* 흐름도/그래프 데이터가 잘못돼서 렌더링에 실패했을 때, 원본 코드블록을 흐리게 숨김 처리 */
.bubble-rich-error { opacity: .45; font-size: 11.5px; }

.bubble-citations {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12.5px;
}
.citation-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.citation-icon { color: var(--ink-faint); }
.citation-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.chat-composer {
  background: var(--surface);
  padding: 16px 28px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
}
.chat-composer input.input { flex: 1; }
.chat-composer .btn { padding-left: 24px; padding-right: 24px; }

.model-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.model-toggle-label {
  font-size: 12.5px;
  color: var(--ink-faint);
  transition: color 0.15s;
  user-select: none;
}
.model-toggle-label.is-active { color: var(--ink); font-weight: 600; }
.model-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: var(--radius-pill);
  border: none;
  background: var(--border-strong);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.model-toggle.is-advanced { background: var(--primary); }
.model-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.model-toggle.is-advanced .model-toggle-knob { transform: translateX(18px); }

/* ---------- 보조창(사이드바): 검토보고서 작성 / 서식채우기 ---------- */
.side-panel {
  width: 380px;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--border);
}
.side-panel[hidden] { display: none; }

.side-panel-resizer {
  width: 6px;
  flex-shrink: 0;
  height: 100%;
  cursor: col-resize;
  background: transparent;
  position: relative;
}
.side-panel-resizer[hidden] { display: none; }
.side-panel-resizer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 2px;
  width: 2px;
  background: var(--border);
  transition: background .15s ease;
}
.side-panel-resizer:hover::after,
.side-panel-resizer.is-dragging::after {
  background: var(--primary);
}
body.is-resizing-side-panel { cursor: col-resize !important; user-select: none; }
body.is-resizing-side-panel .chat-page { pointer-events: none; }
body.is-resizing-side-panel .side-panel-resizer { pointer-events: auto; }

.side-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.side-panel-tabs { display: flex; gap: 6px; }
.side-tab {
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}
.side-tab.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.side-panel-body { flex: 1; overflow-y: auto; padding: 18px; }
.side-pane { display: block; }
.side-empty { color: var(--ink-muted); font-size: 13px; line-height: 1.7; text-align: center; padding: 40px 8px; }
.side-hint { color: var(--ink-muted); font-size: 12.5px; line-height: 1.6; margin: 0 0 14px; }

.side-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  padding: 6px;
}
.side-link:hover { text-decoration: underline; }

.report-template-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin-bottom: 14px;
}
.side-link-inline {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.side-link-inline:hover { text-decoration: underline; }
.report-template-upload {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}

.dropzone-sm { min-height: 160px; padding: 20px 16px; margin-bottom: 18px; }
.dropzone-sm .icon { width: 42px; height: 42px; font-size: 19px; }
.dropzone-sm p { font-size: 13px; }

.report-doc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.report-doc-title { font-size: 15.5px; font-weight: 800; color: var(--ink); margin: 0 0 4px; }
.report-doc-subtitle { font-size: 12.5px; color: var(--ink-muted); margin: 0 0 14px; }
.report-doc-section { margin-bottom: 14px; }
.report-doc-section:last-child { margin-bottom: 0; }
.report-doc-section h4 { font-size: 13px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.report-doc-section p { font-size: 13px; color: var(--ink); line-height: 1.6; margin: 0 0 4px; }

/* ---------- 반응형(모바일) ---------- */
@media (max-width: 720px) {
  .mobile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 52px;
    padding: 0 14px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 30;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
  }
  .mobile-topbar-logo { height: 24px; width: auto; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 80vw;
    max-width: 264px;
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.18);
  }
  .sidebar.is-open { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 35;
  }
  .sidebar-backdrop.is-open { display: block; }

  .content-area {
    width: 100%;
    margin-top: 52px;
    height: calc(100% - 52px);
  }

  .param-row {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .param-label {
    width: auto;
  }
  .param-pending {
    margin-left: 0;
  }

  .library-tabs {
    flex-wrap: wrap;
  }
  .todo-add-row {
    flex-direction: column;
    align-items: stretch;
  }

  .doc-row {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .doc-row .name {
    flex: 1 1 100%;
  }
}

/* ===========================================================
   랜딩페이지 (index.html)
   =========================================================== */
.landing-body { background: var(--surface); }

.landing-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.landing-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-brand { display: flex; align-items: center; text-decoration: none; }
.landing-brand-logo { height: 28px; width: auto; display: block; }

.landing-nav { display: flex; gap: 22px; flex: 1; }
.landing-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}
.landing-nav a:hover { color: var(--ink); }

.landing-header-actions { display: flex; align-items: center; gap: 10px; }
.landing-header-actions .btn { padding: 9px 16px; font-size: 13.5px; }

.landing-hero {
  padding: 88px 24px;
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 111, 237, 0.08), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(47, 111, 237, 0.06), transparent 40%),
    var(--surface);
}
.landing-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}
.landing-hero-badge { margin-bottom: 18px; }
.landing-hero h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 18px;
}
.landing-hero-lede {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin: 0 0 32px;
}
.landing-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.landing-hero-cta { padding: 13px 26px; font-size: 15px; }
.landing-hero-visual { display: flex; justify-content: center; width: 100%; min-width: 0; box-sizing: border-box; }
.landing-hero-img { width: 100%; max-width: 480px; min-width: 0; height: auto; display: block; }

.landing-section-inner { max-width: 1120px; margin: 0 auto; padding: 72px 24px; }
.landing-section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  margin: 0 0 10px;
}
.landing-section-lede {
  font-size: 14.5px;
  color: var(--ink-muted);
  text-align: center;
  margin: 0 0 40px;
}

.landing-features { background: var(--bg); }
.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.landing-feature-card { padding: 26px 22px; }
.landing-feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.landing-feature-icon svg { width: 21px; height: 21px; }
.landing-feature-card h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.landing-feature-card .card-desc { margin: 0; }

/* ---------- 도입 효과(Before/After) ---------- */
.landing-compare { background: var(--surface); }
.landing-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.landing-compare-col {
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  border: 1px solid var(--border);
}
.landing-compare-col h3 { font-size: 15px; font-weight: 800; margin: 0 0 16px; }
.landing-compare-col ul { margin: 0; padding-left: 20px; }
.landing-compare-col li { font-size: 13.5px; line-height: 1.8; color: var(--ink-muted); margin-bottom: 4px; }
.landing-compare-col.is-before { background: var(--surface-alt); }
.landing-compare-col.is-before h3 { color: var(--ink-muted); }
.landing-compare-col.is-after { background: var(--primary-soft); border-color: rgba(47, 111, 237, 0.25); }
.landing-compare-col.is-after h3 { color: var(--primary-dark); }
.landing-compare-col.is-after li { color: var(--ink); }

/* ---------- 요금 ---------- */
.landing-pricing { background: var(--bg); }
.landing-pricing-card {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 36px;
}
.landing-pricing-amount {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.landing-pricing-amount span { font-size: 18px; font-weight: 700; margin-left: 2px; }
.landing-pricing-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.75; margin: 0 0 24px; }

/* ---------- FAQ ---------- */
.landing-faq { background: var(--surface); }
.landing-faq-list { max-width: 760px; margin: 0 auto; }
.landing-faq-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.landing-faq-item:last-child { border-bottom: none; }
.landing-faq-item h3 { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.landing-faq-item .card-desc { margin: 0; }

.landing-how { background: var(--surface); }
.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.landing-step { text-align: center; padding: 0 12px; }
.landing-step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.landing-step h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.landing-step .card-desc { margin: 0; }

.landing-cta { background: var(--primary); }
.landing-cta-inner { text-align: center; padding: 64px 24px; }
.landing-cta h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 10px; }
.landing-cta .landing-section-lede { color: rgba(255, 255, 255, 0.85); margin-bottom: 28px; }
.landing-cta .btn-primary { background: #fff; color: var(--primary-dark); }
.landing-cta .btn-primary:hover { background: #f1f5fb; }

/* ---------- 회사정보 / 약관 / 개인정보처리방침 (준비중 페이지) ---------- */
.landing-legal { background: var(--surface); min-height: 50vh; }
.landing-legal-inner { max-width: 640px; padding-top: 56px; }
.landing-legal-title { font-size: 24px; font-weight: 800; color: var(--ink); margin: 18px 0 20px; }
.landing-legal-card { padding: 32px 28px; }
.landing-legal-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.7; margin: 0; }
.landing-legal-note {
  display: inline-block;
  margin-top: 14px !important;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  color: var(--ink-faint) !important;
  font-size: 12px !important;
  font-weight: 600;
}

.landing-footer { border-top: 1px solid var(--border); padding: 32px 24px; background: var(--bg); }
.landing-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-footer-main { display: flex; align-items: flex-start; gap: 16px; }
.landing-footer-logo { height: 20px; width: auto; opacity: .7; margin-top: 2px; flex-shrink: 0; }
.landing-footer-info { display: flex; flex-direction: column; gap: 4px; }
.landing-footer-info p { font-size: 12.5px; color: var(--ink-faint); margin: 0; line-height: 1.7; }
.landing-footer-links { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.landing-footer-links a { font-size: 12.5px; color: var(--ink-muted); text-decoration: none; font-weight: 600; }
.landing-footer-links a:hover { color: var(--ink); }
.landing-footer-divider { color: var(--border-strong); font-size: 12px; }

@media (max-width: 760px) {
  .landing-nav { display: none; }
  .landing-hero { padding: 56px 20px 48px; }
  .landing-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 36px; text-align: center; }
  .landing-hero h1 { font-size: 28px; }
  .landing-hero-lede { font-size: 14.5px; }
  .landing-hero-actions { justify-content: center; }
  .landing-hero-visual { order: -1; }
  .landing-hero-img { max-width: 280px; }
  .landing-section-inner { padding: 52px 20px; }
  .landing-feature-grid { grid-template-columns: 1fr; }
  .landing-steps { grid-template-columns: 1fr; gap: 28px; }
  .landing-compare-grid { grid-template-columns: 1fr; }
  .landing-pricing-card { padding: 32px 24px; }
  .landing-header-actions .btn { padding: 8px 12px; font-size: 12.5px; }
  .landing-footer-inner { flex-direction: column; gap: 18px; }
  .landing-footer-main { flex-direction: column; gap: 10px; }
}

@media (max-width: 420px) {
  .landing-hero-img { max-width: 240px; }
}

/* ===========================================================
   온보딩 투어 (§7.14 — 첫 로그인 가이드)
   =========================================================== */
.onboarding-blocker {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: transparent;
}

.onboarding-spotlight {
  position: fixed;
  z-index: 2001;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, .65);
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease;
  pointer-events: none;
}

.onboarding-popover {
  position: fixed;
  z-index: 2002;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  transition: top .35s ease, left .35s ease;
}

.onboarding-popover.is-intro {
  width: 340px;
  text-align: center;
}

.onboarding-popover-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.onboarding-popover-text {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.onboarding-popover-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.onboarding-step-count {
  font-size: 12px;
  color: var(--ink-faint);
}

.onboarding-btn-skip {
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
}
.onboarding-btn-skip:hover { color: var(--ink-muted); }

.onboarding-btn-next {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.onboarding-btn-next:hover { background: var(--primary-dark); }
