/* ============================================================
   페이퍼 — 스타일시트
   디자인 언어: Apple (랜딩) + iOS 17/18 (앱 내부)
   ============================================================ */

:root {
  --ink: #1d1d1f;
  --ink-2: #86868b;
  --ink-3: #6e6e73;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --bg: #f5f5f7;
  --app-bg: #f2f2f7;
  --white: #fff;
  --black: #000;
  --line: #d2d2d7;
  --danger: #ff3b30;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro KR", "SF Pro Display",
          "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.logged-out { background: var(--black); }
body.logged-in { background: var(--app-bg); }

.hidden { display: none !important; }

/* ───────── 내비게이션 (프로스티드 글래스) ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(251, 251, 253, .8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
body.logged-out .nav {
  background: rgba(0,0,0,.8);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
body.logged-in .nav {
  background: rgba(242,242,247,.82);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 980px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
}
.nav-logo {
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font-family: inherit;
}
body.logged-out .nav-logo { color: #f5f5f7; }
.nav-search { flex: 1; display: flex; justify-content: center; }
body.logged-out .nav-search { visibility: hidden; }
.nav-search input {
  width: 100%; max-width: 420px;
  height: 36px; padding: 0 16px 0 38px;
  border: none; border-radius: 999px;
  background: rgba(118,118,128,.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")
    no-repeat 13px center;
  font-size: 15px; font-family: inherit; color: var(--ink);
  transition: background-color .2s, box-shadow .2s;
}
.nav-search input::placeholder { color: #8e8e93; }
.nav-search input:focus {
  outline: none; background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(0,113,227,.25), 0 1px 4px rgba(0,0,0,.1);
}
.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-2); white-space: nowrap;
}
.nav-user .btn-ghost { padding: 6px 14px; font-size: 13px; }

/* ───────── 랜딩 히어로 ───────── */
.hero {
  background: var(--black); color: #f5f5f7;
  text-align: center;
  padding: clamp(80px, 14vh, 160px) 24px clamp(70px, 10vh, 120px);
}
.hero-eyebrow {
  font-size: 17px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .01em; margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 500; line-height: 1.35;
  color: #a1a1a6; margin-bottom: 36px;
}
.hero-note { font-size: 13px; color: #6e6e73; margin-top: 14px; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 999px;
  padding: 14px 30px;
  font-size: 17px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-cta:hover { background: var(--blue-hover); transform: scale(1.02); }
.btn-cta:active { transform: scale(.98); }
.g-logo { background: #fff; border-radius: 50%; padding: 2px; }

/* ───────── 랜딩 섹션 ───────── */
.section {
  background: var(--bg); text-align: center;
  padding: clamp(80px, 12vh, 140px) 24px;
}
.section-dark { background: var(--black); color: #f5f5f7; }
.section-headline {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 20px;
}
.section-copy {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5;
  color: var(--ink-2); max-width: 640px; margin: 0 auto;
}
.section-dark .section-copy { color: #a1a1a6; }
.section-dark .btn-cta { margin-top: 36px; }
.grad {
  background: linear-gradient(90deg, #0090f7, #6c5ce7, #e84393);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bento {
  max-width: 980px; margin: 56px auto 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
}
.bento-wide { grid-column: 1 / -1; }
.bento-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.09); }
.bento-icon { font-size: 34px; margin-bottom: 14px; }
.bento-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.bento-card p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.footer {
  background: var(--bg); color: var(--ink-2);
  font-size: 12px; text-align: center;
  padding: 28px 24px; border-top: 1px solid var(--line);
}

/* ============================================================
   앱 내부 — iOS 스타일
   ============================================================ */

.app-view {
  max-width: 680px; margin: 0 auto;
  padding: 8px 20px 140px;
}

.page-head { margin: 16px 0 4px; }
.page-eyebrow {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px;
}
.page-title {
  font-size: 34px; font-weight: 800; letter-spacing: -.024em; line-height: 1.12;
}
#view-list .page-title { margin: 2px 0 18px; }
.group-title {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  letter-spacing: -.005em; margin: 30px 4px 10px;
}

.demo-banner {
  background: rgba(255,204,0,.14); border: 1px solid rgba(255,204,0,.4);
  border-radius: var(--r-sm);
  padding: 11px 15px; font-size: 13px; color: #6b5300;
  margin: 8px 0 0;
}

/* 폴더 그리드 — 카드 + 틴트 아이콘 */
.folder-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 22px;
}
.folder-card {
  background: var(--white); border-radius: 20px;
  padding: 17px; cursor: pointer;
  display: flex; flex-direction: column; gap: 14px;
  border: 0.5px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s;
}
.folder-card:active { transform: scale(.97); }
.folder-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.folder-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.folder-icon svg { width: 21px; height: 21px; }
.folder-card .f-name { font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.folder-card .f-count { color: var(--ink-2); font-size: 13px; margin-top: -10px; }

/* + 새 폴더 카드 */
.folder-add {
  background: transparent;
  border: 1.5px dashed rgba(0,0,0,.14);
  box-shadow: none; text-align: left; font-family: inherit;
}
.folder-add:hover { border-color: var(--blue); box-shadow: none; background: rgba(0,113,227,.03); }
.folder-add .folder-icon.add-icon { background: rgba(118,118,128,.14); color: var(--ink-2); }
.folder-add .f-name { color: var(--ink); }

/* 그룹 리스트 — 하나의 카드 안에 행들 */
.group-list {
  background: var(--white); border-radius: 18px;
  border: 0.5px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  overflow: hidden;
}
.doc-card {
  padding: 10px 14px 10px 14px;
  display: flex; align-items: center; gap: 13px;
  cursor: pointer; position: relative;
  transition: background .12s;
}
.doc-card:not(:last-child)::after {
  content: ""; position: absolute; left: 70px; right: 0; bottom: 0;
  height: 0.5px; background: rgba(0,0,0,.08);
}
.doc-card:active { background: rgba(0,0,0,.04); }
.doc-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  object-fit: cover; background: var(--app-bg);
  display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden;
}
.doc-thumb svg { width: 21px; height: 21px; }
.doc-card .d-body { flex: 1; min-width: 0; }
.doc-card .d-title {
  font-weight: 600; font-size: 16px; letter-spacing: -.012em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.doc-card .d-sub { color: var(--ink-2); font-size: 13px; margin-top: 1px; }
.lock-badge { color: var(--ink-2); display: inline-flex; flex-shrink: 0; }
.lock-badge svg { width: 12px; height: 12px; display: block; }
.chev { color: #c4c4c8; flex-shrink: 0; display: inline-flex; }
.chev svg { width: 8px; height: 14px; display: block; }
.empty-msg { color: var(--ink-2); font-size: 15px; padding: 28px 18px; text-align: center; }

/* 뒤로 가기 */
.btn-back {
  background: none; border: none;
  color: var(--blue); font-size: 16px; font-weight: 500;
  font-family: inherit; cursor: pointer; padding: 8px 0 2px;
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-back svg { display: block; }

/* 플로팅 캡처 바 */
.capture-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center;
  padding: 24px 20px calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--app-bg) 50%, rgba(242,242,247,0));
  pointer-events: none;
}
body:not(.logged-in) .capture-bar { display: none; }
.btn-capture {
  pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--blue); color: #fff;
  border: none; border-radius: 999px;
  padding: 15px 30px;
  font-size: 16px; font-weight: 600; font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,113,227,.4);
  transition: transform .15s, background .2s;
}
.btn-capture:hover { background: var(--blue-hover); }
.btn-capture:active { transform: scale(.96); }
.btn-capture svg { display: block; }

/* ───────── 버튼 공통 ───────── */
.btn-pill {
  background: var(--blue); color: #fff;
  border: none; border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background .2s, transform .12s;
}
.btn-pill:hover { background: var(--blue-hover); }
.btn-pill:active { transform: scale(.97); }
.btn-pill:disabled { opacity: .5; cursor: default; }
.btn-ghost {
  background: rgba(118,118,128,.12); color: var(--ink);
  border: none; border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: background .2s;
}
.btn-ghost:hover { background: rgba(118,118,128,.2); }
.btn-danger {
  background: rgba(255,59,48,.1); color: var(--danger);
  border: none; border-radius: 999px;
  padding: 11px 20px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: background .2s;
}
.btn-danger:hover { background: rgba(255,59,48,.18); }
.btn-x {
  background: rgba(118,118,128,.12); border: none;
  width: 30px; height: 30px; border-radius: 50%;
  font-size: 14px; cursor: pointer; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.btn-x:hover { background: rgba(118,118,128,.2); }

/* ───────── 모달 (iOS 시트) ───────── */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
  animation: modal-fade .2s ease;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--white); border-radius: 22px;
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  padding: 26px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: modal-rise .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes modal-rise { from { transform: translateY(12px) scale(.98); } to { transform: none; } }
.modal-card.narrow { max-width: 340px; text-align: center; }
.modal-card.narrow .modal-actions { justify-content: center; }
.modal-card h3 {
  font-size: 21px; font-weight: 700; letter-spacing: -.018em;
  margin-bottom: 16px;
}
.modal-card label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--ink-3); margin: 14px 0 4px;
}
.modal-card input[type="text"],
.modal-card input[type="date"],
.modal-card input[type="password"],
.modal-card select,
.modal-card textarea {
  width: 100%; padding: 12px 14px; margin-top: 4px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 16px; font-family: inherit;
  background: var(--white); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,113,227,.18);
}
#modal-pin input { text-align: center; font-size: 22px; letter-spacing: 6px; }
.check-label {
  display: flex !important; align-items: center; gap: 10px;
  cursor: pointer; margin-top: 18px !important;
  font-size: 15px !important; color: var(--ink) !important;
}
.check-label input { width: auto !important; accent-color: var(--blue); transform: scale(1.2); margin-top: 0 !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.modal-actions.wrap { flex-wrap: wrap; }

.preview-img {
  width: 100%; max-height: 320px; object-fit: contain;
  border-radius: 14px; background: var(--app-bg);
  border: 0.5px solid rgba(0,0,0,.06);
}

/* 문서 뷰어 (상세화면: PDF 전체 열람 / 사진) */
.doc-viewer { width: 100%; }
.doc-viewer .preview-img { max-height: 56vh; }
.doc-viewer.pdf {
  max-height: 64vh; overflow-y: auto;
  background: var(--app-bg); border-radius: 14px;
  padding: 10px; border: 0.5px solid rgba(0,0,0,.08);
  -webkit-overflow-scrolling: touch;
}
.pdf-page {
  display: block; width: 100%; height: auto;
  border-radius: 6px; margin: 0 auto 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.12); background: #fff;
}
.pdf-page:last-child { margin-bottom: 0; }
.viewer-loading {
  height: 200px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); font-size: 14px;
  background: var(--app-bg); border-radius: 14px;
}

#ocr-progress-wrap { margin-top: 16px; }
.progress-label { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.progress-bar { height: 6px; background: rgba(0,0,0,.08); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--blue); border-radius: 99px; transition: width .25s ease; }

.ocr-details { margin-top: 16px; }
.ocr-details summary { font-size: 13px; color: var(--blue); cursor: pointer; font-weight: 500; }
.ocr-details pre, .ocr-details textarea {
  margin-top: 10px; white-space: pre-wrap; word-break: break-all;
  font-size: 13px; line-height: 1.6;
  background: var(--app-bg); border-radius: 12px; padding: 14px;
  max-height: 220px; overflow-y: auto; color: var(--ink-3);
}

.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.doc-head h3 { display: flex; align-items: center; gap: 7px; }
.doc-meta { color: var(--ink-2); font-size: 13px; margin: 2px 0 14px; }
.pin-error { color: var(--danger); font-size: 13px; margin-top: 10px; }
#modal-pin p { font-size: 14px; color: var(--ink-3); margin-bottom: 14px; line-height: 1.5; }

/* 토스트 */
.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%);
  background: rgba(29,29,31,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f5f5f7; padding: 12px 24px;
  border-radius: 999px; font-size: 14px; font-weight: 500;
  z-index: 200; box-shadow: 0 8px 28px rgba(0,0,0,.25);
  animation: toast-in .25s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ───────── AI 리뷰 카드 (Phase 1) ───────── */
.review-badge {
  display: inline-block; vertical-align: middle;
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: rgba(0,113,227,.12); border-radius: 999px;
  padding: 3px 10px; margin-left: 6px;
}
.review-spin {
  width: 40%; animation: review-slide 1.1s ease-in-out infinite alternate;
}
@keyframes review-slide { from { margin-left: 0; } to { margin-left: 60%; } }
#review-body > label { display: block; font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
#review-summary {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); resize: vertical;
}
.review-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.review-field { display: flex; flex-direction: column; gap: 4px; }
.rf-label { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.rf-flag {
  font-size: 11px; font-weight: 600; color: var(--danger);
  background: rgba(255,59,48,.1); border-radius: 6px; padding: 1px 7px;
}
.rf-input {
  height: 42px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
}
.rf-input:focus { outline: none; border-color: var(--blue); }
.review-field.low .rf-input { border-color: rgba(255,59,48,.4); background: rgba(255,59,48,.03); }
.review-note { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; }
.review-errmsg { font-size: 14px; color: var(--ink-3); line-height: 1.55; white-space: pre-line; margin-bottom: 14px; }

/* ───────── 다가오는 일정(알림 카드) — Phase 2 ───────── */
.timeline-section { margin-bottom: 28px; }
.timeline-list { display: flex; flex-direction: column; gap: 12px; }
.alert-card {
  background: var(--white); border-radius: var(--r-md);
  padding: 16px 18px; border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.alert-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.alert-headl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert-dday {
  font-weight: 700; font-size: 13px; color: var(--blue);
  background: rgba(0,113,227,.1); padding: 3px 10px; border-radius: 999px;
}
.alert-title { font-weight: 600; font-size: 15px; color: var(--ink); }
.alert-date { color: var(--ink-2); font-size: 13px; }
.alert-x { background: none; border: none; color: var(--ink-2); font-size: 15px; cursor: pointer; padding: 2px 6px; line-height: 1; }
.agenda-list { margin: 12px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.agenda-item { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink-3); cursor: pointer; line-height: 1.45; }
.agenda-item input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; }
.agenda-item input:checked + span { color: var(--ink-2); text-decoration: line-through; }
.decision-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.btn-decision {
  border: none; border-radius: 999px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer;
  background: var(--blue); color: #fff;
}
.btn-decision:nth-child(n+2) { background: rgba(118,118,128,.12); color: var(--ink); }
.btn-decision:hover { opacity: .9; }

/* ───────── 문서 Q&A 챗 (Phase 3) ───────── */
.chat-fab {
  position: fixed; right: 20px; bottom: 96px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: pointer; z-index: 60;
}
body.logged-out .chat-fab { display: none; }
.chat-fab:active { transform: scale(.95); }
.chat-card { max-width: 480px; display: flex; flex-direction: column; height: min(72vh, 640px); }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 2px; }
.chat-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.chat-bubble.bot { background: var(--app-bg); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 5px; }
.chat-bubble.me { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.chat-bubble.temp { opacity: .55; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 7px 13px; font-size: 13px; font-family: inherit; color: var(--ink); cursor: pointer;
}
.chat-chip:hover { background: var(--app-bg); }
.chat-input-row { display: flex; gap: 8px; margin-top: 12px; }
.chat-input-row input {
  flex: 1; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; font-family: inherit; font-size: 15px; color: var(--ink);
}
.chat-input-row input:focus { outline: none; border-color: var(--blue); }
.chat-input-row .btn-pill { flex-shrink: 0; }

/* ───────── 반응형 ───────── */
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .nav-inner { gap: 10px; }
  .nav-search input { font-size: 16px; }
}

/* ───────── 리뷰 카드 — 문서유형 선택 / 신뢰도 (P1 #4) ───────── */
.review-typepick {
  margin-bottom: 14px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--white);
}
.review-typepick.low { border-color: var(--blue); background: rgba(0,113,227,.05); }
.rtp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rtp-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.rtp-conf { font-size: 12px; font-weight: 600; color: #1a9b6b; }
.rtp-conf.low { color: var(--blue); }
.rtp-conf.hidden { display: none; }
.rtp-select {
  width: 100%; padding: 9px 12px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
}
.review-typepick.low .rtp-select { border-color: var(--blue); }
.rtp-hint { margin: 8px 0 0; font-size: 12px; color: var(--blue); }
.rtp-hint.hidden { display: none; }
