/* ─────────────────────────────────────────────
   M-WORKS — Miro 팔레트
   흰 캔버스 · 검정 잉크 · 스티키노트 파스텔 틴트
   검정 필 버튼이 주 행동, 파랑은 링크·AI, 노랑은 강조 표시에만.
   ───────────────────────────────────────────── */
:root {
  --ink: #1c1c1e;          /* 본문·제목 */
  --ink-soft: #555a6a;     /* 보조 텍스트 (slate) */
  --stone: #8e91a0;        /* 캡션·흐린 라벨 */
  --canvas: #ffffff;
  --surface-soft: #f7f8fa;
  --hairline: #e0e2e8;
  --hairline-soft: #eef0f3;
  --hairline-strong: #c7cad5;

  /* ── 스티키노트 파스텔 — 화이트보드에 붙이는 메모 색 그대로 ── */
  --lime:  #aef2e9;        /* teal-light */
  --mint:  #ffeda6;        /* yellow-light */
  --coral: #ffd9af;        /* orange-light */
  --lilac: #ffc9ee;        /* brand-rose */
  --pink:  #ffb1b1;        /* coral-light */
  --sky:   #f5f3ff;        /* pale lavender */
  --steel: #eef0f3;        /* 중립 면 */
  --olive: #187574;        /* moss-dark — 짙은 청록 글자 */
  --cream: #fbf4e2;        /* surface-yellow — 원고용 종이색 */

  /* ── 악센트 — 팔레트는 닫혀 있다 ── */
  --blue: #0fbcb0;         /* brand-teal — AI 작업 */
  --fin: #0fbcb0;          /* AI 작업 버튼·표시 (teal) */
  --link: #187574;         /* moss-dark — 읽히는 청록 링크 */
  --red: #600000;          /* coral-dark — 경고·필수·삭제 글자 */
  --magenta: #600000;
  --red-soft: #fbd4d4;     /* 경고 바탕 */
  --gold: #ffd02f;         /* brand-yellow — 강조 표시에만, 버튼 금지 */
  --purple: #187574;       /* 낭독 호흡 표시 */
  --success: #00b473;      /* 완료 표시 */
  --navy: #1c1c1e;         /* 어두운 패널 */
  --r-xs: 2px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-feature: 28px;
  --r-pill: 50px;
  --r-full: 9999px;
  --sans: "figmaSans", Inter, -apple-system, BlinkMacSystemFont, system-ui, "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --mono: "figmaMono", "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 17px; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.025em; }
.hidden { display: none !important; }
::selection { background: var(--gold); }

/* ───────── 상단 바 — 화이트 top-nav ───────── */
#topbar {
  display: flex; align-items: center; gap: 14px;
  background: var(--canvas); color: var(--ink);
  border-bottom: 1px solid var(--hairline);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px; position: sticky; top: 0; z-index: 50;
  min-height: 76px;
}
.logo { display: flex; align-items: center; gap: 18px; cursor: pointer; margin-left: 28px; }
.logo-lockup { height: 72px; width: auto; display: block; }
.logo-mark {
  width: 72px; height: 72px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; justify-content: flex-end; line-height: 1.1; height: 72px; }
/* 워드마크 글자체 — Dell 1996 로고의 Univers 계열 헤비 그로테스크를 시스템 폰트로 재현 */
.logo-text strong { font-family: 'Helvetica Neue', Helvetica, 'Arial', sans-serif; font-size: 3.55rem; line-height: 1; font-weight: 700; letter-spacing: -0.022em; color: var(--ink); position: relative; top: -7.4px; font-feature-settings: 'kern' 1; }
/* 워드마크 — 두 머리글자(M·W)를 굵게 세우고, 사이 벌어짐을 광학적으로 조인다 */
.wm-c { font-weight: 800; }
.wm-w { margin-left: -0.065em; }
.wm-t { font-weight: 600; margin-left: -0.055em; letter-spacing: -0.004em; }
.top-title {
  flex: 1; text-align: center; font-size: .84rem; font-weight: 400;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.save-status { font-size: .66rem; font-family: var(--mono); letter-spacing: .04em; color: var(--ink); opacity: .75; min-width: 88px; text-align: right; margin-left: auto; }
.save-status:empty { min-width: 0; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.top-btn {
  background: var(--canvas); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-pill);
  padding: 8px 16px; font-size: .78rem; font-weight: 500; letter-spacing: -0.01em;
  transition: transform .12s ease, border-color .15s;
}
.top-btn:hover { border-color: var(--ink); }
.top-btn:active { transform: scale(0.96); }
.icon-btn {
  background: none; border: none; color: inherit; font-size: 1.05rem;
  padding: 6px 9px; border-radius: var(--r-full);
  transition: transform .12s ease, background .15s;
}
.icon-btn:hover { background: var(--surface-soft); }
.icon-btn:active { transform: scale(0.95); }
.top-tool { color: var(--ink); opacity: .85; }
.top-tool:hover { opacity: 1; }
#btn-menu { display: none; color: var(--ink); }
#nav-backdrop { display: none; }
/* 산뜻한 파스텔 스트립 — 상단바 아래 시그니처 라인 */
#topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--gold) 0 20%, var(--lime) 20% 40%, var(--coral) 40% 60%, var(--lilac) 60% 80%, var(--pink) 80% 100%);
}

/* ───────── 레이아웃 ───────── */
#layout {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 280px;
  /* 상단바 높이를 실제 값으로 빼서 불필요한 스크롤이 생기지 않게 한다 */
  min-height: calc(100dvh - var(--topbar-h, 83px));
}

/* ───────── 왼쪽 내비 — 화이트 + 헤어라인 ───────── */
#sidenav {
  background: var(--canvas); color: var(--ink);
  border-right: 1px solid var(--hairline);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 6px;
  max-height: calc(100dvh - var(--topbar-h, 83px)); overflow-y: auto; /* 화면이 낮아도 메뉴에 닿을 수 있게 */
}
.new-btn {
  background: var(--ink); color: #fff; font-weight: 500;
  border: none; border-radius: var(--r-pill); padding: 11px 20px; font-size: .92rem;
  margin-bottom: 12px; transition: transform .12s ease;
}
.new-btn:active { transform: scale(0.96); }
.nav-project {
  font-size: .7rem; font-family: var(--mono); letter-spacing: .03em;
  color: var(--ink); opacity: .78; padding: 2px 8px 12px;
  border-bottom: 1px solid var(--hairline); margin-bottom: 10px;
  display: flex; align-items: center; gap: 7px;
}
.nav-project span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-project .nav-ico { flex-shrink: 0; opacity: .8; }
.step-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.step-nav li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--r-pill); cursor: pointer;
  font-size: .88rem; font-weight: 400; color: var(--ink); transition: background .15s;
}
.step-nav li:hover { background: var(--surface-soft); }
.step-nav li.active { background: var(--lime); color: #000; font-weight: 700; }
/* 활성 색을 그 단계의 타일 색과 맞춘다 — 본문찾기 lime · 중심사상 mint · 형식결정 coral · 설교작성 lilac · 연습하기 pink */
.step-nav li[data-step="1"].active { background: var(--lime); }
.step-nav li[data-step="2"].active { background: var(--mint); }
.step-nav li[data-step="4"].active { background: var(--coral); }
.step-nav li[data-step="3"].active { background: var(--lilac); }
.step-nav li[data-step="5"].active { background: var(--pink); }
.step-nav li.active .num { background: rgba(0,0,0,.10); }
.step-nav li.done .chk::after { content: "✓"; color: var(--success); font-weight: 700; }
.step-nav li.active .chk::after { color: var(--success); }
.step-nav li.locked { opacity: .35; cursor: not-allowed; }
.step-nav .num {
  width: 23px; height: 23px; border-radius: var(--r-full);
  background: var(--surface-soft); color: var(--ink);
  font-size: .74rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* 새 설교 시작(첫 항목) — 라일락으로 구별 */
.step-nav li[data-step="0"] { background: var(--gold); color: #1c1c1e; font-weight: 700; }
.step-nav li[data-step="0"]:hover { filter: brightness(1.04); background: var(--gold); }
.step-nav li[data-step="0"].active { background: var(--gold); color: #1c1c1e; }
.step-nav li[data-step="0"] .num { background: rgba(0,0,0,.1); color: #000; }
.step-nav li[data-step="0"].active .num { background: rgba(0,0,0,.1) !important; color: #000; }
/* 단계별 파스텔 번호 */
.step-nav li[data-step="1"] .num { background: var(--lime); }
.step-nav li[data-step="2"] .num { background: var(--mint); }
.step-nav li[data-step="3"] .num { background: var(--lilac); }
.step-nav li[data-step="4"] .num { background: var(--coral); }
.step-nav li[data-step="5"] .num { background: var(--pink); }
.step-nav li.active .num { background: #fff !important; color: #000; }
.step-nav .lbl { flex: 1; }
.nav-progress {
  height: 5px; background: var(--hairline-soft); border-radius: 3px;
  margin: 16px 8px 6px; overflow: hidden;
}
.nav-progress-bar { height: 100%; width: 0; background: var(--ink); transition: width .4s; }
.nav-progress-label { font-size: .66rem; font-family: var(--mono); letter-spacing: .05em; color: var(--ink); opacity: .75; padding: 0 8px; }
/* 메뉴는 원래대로 맨 아래. 화면이 낮으면 왼쪽 칸이 스크롤되어 어느 경우에도 닿는다 */
.nav-footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 16px; }
.nav-link {
  background: none; border: none; color: var(--ink); text-align: left;
  padding: 8px 12px; font-size: .8rem; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 9px;
}
.nav-link:hover { background: var(--surface-soft); }
.nav-ico, .btn-ico {
  width: 16px; height: 16px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.btn-ico { width: 17px; height: 17px; vertical-align: -3px; margin-right: 7px; }
.ai-badge {
  margin-top: 10px; font-size: .68rem; font-family: var(--mono); letter-spacing: .02em;
  padding: 9px 12px; border-radius: var(--r-md);
  background: var(--surface-soft); color: var(--ink); line-height: 1.5;
}
.ai-badge.ok { background: var(--lime); }
.ai-badge.bad { background: var(--pink); }

/* ───────── 중앙 ───────── */
#main { padding: 36px 40px 90px; max-width: 980px; width: 100%; margin: 0 auto; }
.step-head {
  margin-bottom: 8px; font-size: .72rem; font-family: var(--mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .78;
}
.step-title { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; color: #222; }
.step-desc { color: var(--ink); font-weight: 400; font-size: .94rem; margin-bottom: 28px; max-width: 640px; }

.card {
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.card h4 { font-size: .96rem; font-weight: 600; margin: 14px 0 6px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field label .req { color: var(--magenta); }
.field label .opt { color: var(--ink); opacity: .75; font-weight: 400; font-size: .74rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--canvas); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 74px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--lime);
}
.field .hint { font-size: .74rem; color: var(--ink); opacity: .75; margin-top: 4px; }

.btn {
  border: none; border-radius: var(--r-pill); padding: 10px 20px; font-size: .92rem;
  font-weight: 500; letter-spacing: -0.005em;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: #1c1c1e; font-weight: 700; }
/* 새 설교 시작(홈) — 라일락으로 구별 */
#home-new { background: var(--ink) !important; color: #fff !important; font-weight: 500; }
#home-new:hover { filter: brightness(1.04); }
.btn-ghost { background: var(--canvas); border: 1px solid var(--hairline-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 8px 15px; font-size: .8rem; }
.btn-danger { background: var(--canvas); border: 1px solid var(--hairline); color: var(--magenta); }
.btn-danger:hover { border-color: var(--magenta); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
/* AI 실행 버튼 — Fin Orange 악센트 (🤖 버튼에 자동 적용) */
.btn-ai { background-color: var(--fin) !important; background-image: none !important; color: #06332e !important; border: none !important; }
.btn-ai:hover { filter: brightness(1.07); }
.ai-badge.ok { background: rgba(15,188,176,.12); color: var(--link); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline);
  border-radius: var(--r-pill); padding: 8px 16px; font-size: .78rem; font-weight: 400;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.chip:hover { background: var(--surface-soft); border-color: var(--ink); }
.chip:active { transform: scale(0.96); }

/* 참고 자료 드롭존 */
.dropzone {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 2px dashed var(--hairline); border-radius: var(--r-md);
  padding: 22px 16px; text-align: center; cursor: pointer;
  font-size: .84rem; color: var(--ink); background: var(--surface-soft);
  transition: border-color .15s, background .15s;
}
.dropzone small { opacity: .6; font-size: .72rem; }
.dropzone:hover, .dropzone.dragover { border-color: var(--ink); background: var(--lime); }
.dropzone.dragover { border-style: solid; }
.ref-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--hairline); border-radius: var(--r-md);
  margin-bottom: 6px; font-size: .84rem; background: var(--canvas);
}
.paste-row { display: flex; gap: 8px; margin-top: 10px; }
.paste-row textarea {
  flex: 1; min-height: 60px; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: var(--r-md); line-height: 1.5;
}
.paste-row textarea:focus { outline: none; border-color: var(--ink); }
.paste-row .btn { align-self: flex-end; }
/* 뒤로 가기 — 언제나 보이는 원형 버튼 (없으면 홈으로) */
#btn-back {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--hairline); border-radius: var(--r-full);
  background: var(--canvas); opacity: 1 !important;
}
#btn-back:hover { border-color: var(--ink); background: var(--surface-soft); }

/* 본문 후보 카드 */
.cand {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 20px 22px;
  margin-bottom: 14px; background: var(--canvas); cursor: pointer; transition: border-color .15s;
}
.cand:hover { border-color: var(--ink); }
.cand.selected { border: 2px solid var(--ink); padding: 19px 21px; background: var(--surface-soft); }
.cand-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cand-ref { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--ink); }
.cand-fit { margin-left: auto; font-size: .7rem; font-family: var(--mono); letter-spacing: .04em; color: var(--ink); background: var(--lime); border-radius: var(--r-pill); padding: 3px 10px; }
.cand-title { color: var(--ink); opacity: .78; font-size: .88rem; font-weight: 400; }
.cand dl { margin-top: 10px; font-size: .85rem; display: none; }
.cand.open dl { display: block; }
.cand dt { font-weight: 600; color: var(--ink); margin-top: 8px; font-size: .76rem; }
.cand dd { margin-left: 0; color: var(--ink); font-weight: 400; }
.cand-toggle { font-size: .78rem; font-weight: 500; color: var(--ink); margin-top: 8px; background: none; border: none; text-decoration: underline; }

/* 중심사상 3문장 — 파스텔 스티키 노트 */
.three-sent { display: grid; gap: 12px; }
.sent-box { padding: 14px 18px; background: var(--surface-soft); border-radius: var(--r-md); }
.sent-box.exe { background: var(--cream); }
.sent-box.theo { background: var(--mint); }
.sent-box.hom { background: var(--lilac); }
.sent-box .tag { font-size: .66rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; color: var(--ink); opacity: .85; }
.sent-box textarea {
  width: 100%; border: none; background: transparent; font-family: var(--sans);
  font-size: .98rem; line-height: 1.55; resize: vertical; min-height: 48px; margin-top: 5px; color: var(--ink);
}
.sent-box textarea:focus { outline: 1px dashed var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.check-pill { font-size: .7rem; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--hairline); color: var(--ink); }
.check-pill.ok { background: var(--lime); border-color: transparent; }
.check-pill.no { background: var(--pink); border-color: transparent; }

/* ───────── 편집기 ───────── */
#editor-wrap { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
#editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 8px 10px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline);
}
#editor-toolbar button, #editor-toolbar select {
  background: none; border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 5px 11px; font-size: .8rem; color: var(--ink);
  transition: transform .12s ease, background .15s;
}
#editor-toolbar button:hover { background: var(--canvas); border-color: var(--hairline); }
#editor-toolbar button:active { transform: scale(0.95); }
#editor-toolbar button.on { background: var(--ink); color: #fff; }
#editor-toolbar .sep { width: 1px; background: var(--hairline); margin: 4px 6px; }
/* 원고 조판 — 작고 단단하게. 한 줄 길이를 제한해 눈이 편하고 인쇄물처럼 보이게 */
#editor {
  min-height: 480px; padding: 40px 44px 48px; outline: none; overflow-y: auto;
  font-family: var(--sans); font-size: .875rem; font-weight: 400; line-height: 1.72; color: #23252b;
  letter-spacing: -0.012em; max-width: 100%; word-break: keep-all; text-align: left;
}
#editor > * { max-width: 40em; margin-left: auto; margin-right: auto; }  /* 읽기 좋은 단 폭 */
#editor:empty::before { content: "여기에 설교 원고가 작성됩니다…"; color: var(--ink); opacity: .35; }
#editor h1 {
  font-size: 15pt; font-weight: 800; letter-spacing: -0.035em; line-height: 1.35;
  margin: .2em auto .9em; padding-top: 56px; padding-bottom: .5em; border-bottom: 2px solid var(--ink); text-align: center;
}
/* 소제목은 위로 딱 한 줄 비우고, 아래 본문은 바로 잇는다 */
#editor h2 {
  font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; color: #1a1c22;
  margin: 1.72em auto .5em; padding-left: .55em; border-left: 3px solid var(--ink); border-bottom: 0;
}
#editor h3 { font-size: .94rem; font-weight: 700; letter-spacing: -0.015em; color: #3a3d46; margin: 1.5em auto .35em; }
#editor p { margin: .34em auto; }
#editor blockquote { font-size: .85rem; color: #4a4d55; }
/* 단락 시작(pgap) — 빈 줄로 구분된 단락 사이만 한 줄 여백으로 나뉘게 */
#editor p.pgap, .stream-preview p.pgap, #rehearsal-text p.pgap { margin-top: 1.1em; }
/* 설교 파일 탐색기 */
.fx-row {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--r-md);
  font-size: .9rem; cursor: pointer;
  border-bottom: 1px solid var(--hairline-soft);
}
.fx-row:last-child { border-bottom: none; }
.fx-row:hover { background: var(--surface-soft); }
.fx-row.fx-dim { opacity: .55; cursor: default; }
.fx-ico { flex-shrink: 0; }
/* T-파싱 단어 주해 상자 — 해당 행 바로 아래에 펼쳐진다 */
.tp-ex {
  background: var(--surface-soft); border-left: 3px solid var(--ink);
  border-radius: var(--r-md); padding: 10px 14px; margin: 2px 0 8px;
}
/* 왼쪽 메뉴 자료 서랍 개수 배지 */
.nav-count {
  margin-left: auto; flex-shrink: 0;
  min-width: 20px; height: 18px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--canvas, #fff);
  border-radius: 999px; font-size: .66rem; font-weight: 700; font-family: var(--mono);
}
#editor blockquote {
  background: var(--cream); padding: 14px 18px;
  margin: .8em 0; color: var(--ink); border-radius: var(--r-md);
}
#editor ul, #editor ol { padding-left: 1.4em; margin: .5em 0; }
#editor .pause-mark { color: var(--ink); font-weight: 600; background: var(--lilac); border-radius: var(--r-pill); padding: 0 7px; font-size: .82em; }
#editor .stress-mark { background: var(--lime); border-radius: 3px; padding: 0 2px; }
#editor .eye-mark { color: var(--ink); font-weight: 600; background: var(--mint); border-radius: var(--r-pill); padding: 0 7px; font-size: .82em; }
#editor .note-mark { background: var(--cream); border-radius: var(--r-sm); padding: 0 5px; font-size: .88em; color: var(--ink); }
#editor .breath-mark, #rehearsal-text .breath-mark { color: var(--ink); background: var(--mint); border-radius: var(--r-pill); padding: 0 6px; font-weight: 700; font-size: .82em; margin: 0 2px; }
#rehearsal-text .breath-mark { color: var(--purple); }
/* ─ 나란히 쓰기 — 왼쪽 MWorks 원고, 오른쪽 내 설교문 ─
   평소엔 오른쪽 칸을 접어 두고, 툴바 [⇔ 내 설교문]으로 편다. */
#editor-split { display: flex; align-items: stretch; }
#editor-split .ed-pane { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
#editor-split #mine-pane { display: none; border-left: 1px solid var(--hairline); }
.split-writing #editor-split #mine-pane { display: flex; }
#mine-bar { display: none; }
.split-writing #mine-cta { display: none !important; }
.split-writing #mine-bar {
  display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 7px 14px;
  font-size: .74rem; white-space: nowrap; overflow: hidden;
  background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-md);
}
.split-writing #mine-bar .opt { font-weight: 400; opacity: .7; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.split-writing #mine-bar .mb-sep { opacity: .35; margin: 0 4px; }
.split-writing #mine-bar .chip { font-size: .68rem; padding: 3px 10px; flex: none; }
.split-writing #editor > *, .split-writing #editor-mine > * { max-width: 34em; }
#editor-mine {
  min-height: 480px; padding: 40px 36px 48px; outline: none; overflow-y: auto;
  background: rgba(255, 208, 47, .045);
  font-family: var(--sans); font-size: .875rem; line-height: 1.72; color: #23252b;
  letter-spacing: -0.012em; max-width: 100%; word-break: keep-all; text-align: left;
}
#editor-mine > * { max-width: 40em; margin-left: auto; margin-right: auto; }
#editor-mine:empty::before { content: "여기에 내 설교문을 씁니다…"; color: var(--ink); opacity: .35; }
#editor-mine h1 { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.03em; margin: 0 auto .5em; }
#editor-mine h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; margin: 1.7em auto .4em; }
#editor-mine h3 { font-size: .94rem; font-weight: 700; margin: 1.5em auto .35em; }
#editor-mine p { margin: .34em auto; }
#editor-mine blockquote { font-size: .85rem; color: #4a4d55; }
@media (max-width: 900px) {
  #editor-split { flex-direction: column; }
  #editor-split #mine-pane { border-left: none; border-top: 2px solid var(--hairline); }
  .split-writing #mine-bar { flex-wrap: wrap; white-space: normal; height: auto; }
}
#editor-status {
  display: flex; gap: 18px; padding: 10px 18px; font-size: .68rem;
  font-family: var(--mono); letter-spacing: .03em; color: var(--ink); opacity: .75;
  border-top: 1px solid var(--hairline); background: var(--canvas); flex-wrap: wrap;
}
#editor-status b { color: var(--ink); font-weight: 700; }
.fullscreen-editor #layout { grid-template-columns: 0 1fr 0 !important; }
.fullscreen-editor #sidenav, .fullscreen-editor #context { display: none !important; }
.fullscreen-editor #main { max-width: 860px; }

/* 형식 카드 */
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.fcard {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 22px;
  background: var(--canvas); transition: border-color .15s;
  display: flex; flex-direction: column; gap: 6px;
}
.fcard:hover { border-color: var(--ink); }
.fcard.selected { border: 2px solid var(--ink); padding: 21px; background: var(--surface-soft); }
.fcard h4 { margin: 0; font-size: 1.02rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fcard .fit-badge { margin-left: auto; font-size: .66rem; font-family: var(--mono); color: var(--ink); background: var(--lime); border-radius: var(--r-pill); padding: 3px 9px; }
.fcard p { font-size: .82rem; font-weight: 400; color: var(--ink); }
.fcard .meta { font-size: .76rem; font-weight: 400; color: var(--ink); }
.fcard .meta b { font-weight: 600; }
.fcard .btn { margin-top: auto; }

/* 비교 화면 */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare .col { border-radius: var(--r-md); padding: 18px 20px; font-size: .84rem; }
.compare .col:first-child { background: var(--cream); }
.compare .col:last-child { background: var(--mint); }
.compare .col h4 { margin-top: 0; }
.compare .col ul { padding-left: 1.2em; }

/* 피드백 */
.fb-section { margin-bottom: 8px; }
.fb-item { padding: 13px 17px; background: var(--surface-soft); border-radius: var(--r-md); margin-bottom: 8px; font-size: .87rem; font-weight: 400; }
.fb-item b { display: block; font-size: .68rem; font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; font-weight: 400; color: var(--ink); opacity: .85; margin-bottom: 3px; }
.fb-item.warn { background: var(--pink); }
.fb-item ul { padding-left: 1.2em; }

/* 제스처 */
.gesture {
  border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 17px 19px; margin-bottom: 10px; background: var(--canvas);
}
.gesture .g-sent { color: var(--ink); font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.gesture .g-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 4px 14px; font-size: .8rem; font-weight: 400; color: var(--ink); }
.gesture .g-grid span b { font-weight: 700; }

/* 리허설 모드 — 네이비 컬러블록 */
#rehearsal {
  position: fixed; inset: 0; background: #333d5c; color: #fff;
  z-index: 200; display: flex; flex-direction: column; padding: 24px;
}
#rehearsal-text {
  flex: 1; overflow-y: auto; max-width: 900px; margin: 0 auto; width: 100%;
  font-size: 1.9rem; font-weight: 500; line-height: 1.9; letter-spacing: -0.02em;
  padding: 30px 10px; color: #f4f6fb;
}
#rehearsal-text .para { opacity: .72; transition: opacity .3s; margin-bottom: 1.2em; }
#rehearsal-text h1, #rehearsal-text h2, #rehearsal-text h3, #rehearsal-text b, #rehearsal-text strong { color: #ffffff; }
#rehearsal-text .para.now { opacity: 1; color: #ffffff; text-shadow: 0 0 22px rgba(255,255,255,.14); }
#rehearsal-text .pause-mark { color: var(--navy); background: var(--lilac); }
#rehearsal-text .stress-mark { background: var(--lime); color: var(--navy); }
#rehearsal-text .eye-mark { color: var(--navy); background: var(--mint); }
#rehearsal-bar {
  display: flex; align-items: center; gap: 16px; justify-content: center;
  padding: 12px; background: rgba(255,255,255,.1);
  border-radius: var(--r-lg); max-width: 900px; margin: 0 auto; width: 100%;
}
#rehearsal-bar .timer { font-size: 1.8rem; font-family: var(--mono); font-weight: 400; color: #fff; min-width: 130px; text-align: center; }
#rehearsal-bar button { background: rgba(255,255,255,.16); border: none; color: #fff; border-radius: var(--r-pill); padding: 10px 18px; font-size: .88rem; font-weight: 500; transition: transform .12s ease; }
#rehearsal-bar button:active { transform: scale(0.95); }

/* 체크리스트 */
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; font-size: .88rem; font-weight: 400; cursor: pointer; }
.checklist input { margin-top: 4px; accent-color: var(--ink); width: 17px; height: 17px; }

/* ───────── 오른쪽 패널 ───────── */
#context {
  background: var(--canvas); border-left: 1px solid var(--hairline);
  padding: 26px 18px; font-size: .82rem;
}
#context h3 { font-size: .72rem; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; opacity: .78; margin-bottom: 16px; }
.ctx-item { margin-bottom: 14px; }
.ctx-item .k { font-size: .64rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; color: var(--ink); opacity: .75; }
.ctx-item .v { color: var(--ink); line-height: 1.45; font-weight: 400; }
.ctx-item .v.serif { font-weight: 600; letter-spacing: -0.015em; }
.ctx-empty { color: var(--ink); opacity: .75; font-weight: 400; }
.ctx-next {
  margin-top: 18px; background: var(--navy); color: #fff;
  padding: 16px 18px; border-radius: var(--r-lg); font-size: .8rem; font-weight: 400; line-height: 1.5;
}
.ctx-next b { color: var(--lime); font-weight: 600; }

/* ───────── 보관함 ───────── */
.proj-toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.proj-toolbar input { flex: 1; min-width: 180px; padding: 10px 18px; border: 1px solid var(--hairline); border-radius: var(--r-pill); background: var(--canvas); }
.proj-toolbar input:focus { outline: none; border-color: var(--ink); }
.proj-toolbar select { border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 8px 14px; background: var(--canvas); }
.proj-table { width: 100%; border-collapse: collapse; font-size: .84rem; background: var(--canvas); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.proj-table th { text-align: left; background: var(--canvas); color: var(--ink); opacity: .75; padding: 12px; font-family: var(--mono); font-weight: 400; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border-bottom: 1px solid var(--hairline); }
.proj-table td { padding: 13px 12px; border-bottom: 1px solid var(--hairline-soft); vertical-align: middle; font-weight: 400; }
.proj-table tr:last-child td { border-bottom: none; }
.proj-table tr:hover td { background: var(--surface-soft); }
.proj-title-cell { font-weight: 600 !important; letter-spacing: -0.015em; color: var(--ink); cursor: pointer; }
.proj-fav { cursor: pointer; font-size: 1rem; color: var(--ink); }
.badge { display: inline-block; padding: 3px 12px; border-radius: var(--r-pill); font-size: .68rem; font-family: var(--mono); letter-spacing: .02em; background: var(--surface-soft); color: var(--ink); }
.mini-progress { width: 70px; height: 5px; border-radius: 3px; background: var(--hairline-soft); display: inline-block; overflow: hidden; vertical-align: middle; }
.mini-progress i { display: block; height: 100%; background: var(--ink); }

/* ───────── 모달 ───────── */
#modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#modal {
  background: var(--canvas); border-radius: var(--r-lg); max-width: 760px; width: 100%;
  max-height: 88vh; display: flex; flex-direction: column;
}
#modal-head { display: flex; align-items: center; padding: 18px 26px; border-bottom: 1px solid var(--hairline-soft); }
#modal-head h3 { font-size: 1.15rem; font-weight: 600; flex: 1; letter-spacing: -0.02em; }
#modal-body { padding: 24px 26px; overflow-y: auto; }

/* ───────── 토스트/AI 진행 ───────── */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 26px;
  border-radius: var(--r-pill); font-size: .85rem; font-weight: 400; z-index: 400;
}
#ai-progress {
  position: fixed; inset: 0; background: rgba(255,255,255,.85);
  z-index: 350; display: flex; align-items: center; justify-content: center;
}
.ai-progress-box {
  background: var(--lime); border-radius: var(--r-lg);
  padding: 32px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  max-width: 680px; width: 92%;
}
#ai-progress-sub { font-size: .84rem; color: var(--ink); opacity: .9; }
#ai-progress-preview {
  background: #ffffff; color: #111; text-align: left; width: 100%;
  font-size: .95rem; line-height: 1.75; border-radius: 12px;
  padding: 14px 16px; max-height: 42vh; overflow-y: auto; white-space: pre-wrap;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.ai-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(0,0,0,.14); border-top-color: var(--ink);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* 진행 링 — 경과·남은 시간 */
.ai-ring { position: relative; width: 132px; height: 132px; }
.ai-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ai-ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-bg { stroke: rgba(0,0,0,.10); }
.ring-fg {
  stroke: var(--fin);
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .9s linear;
}
.ai-ring-mid {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
#ai-progress-timer {
  font-size: 1.5rem; font-weight: 700; font-family: var(--mono);
  letter-spacing: -0.02em; color: var(--ink); opacity: 1;
}
#ai-ring-left { font-size: .64rem; font-family: var(--mono); color: var(--ink); opacity: .7; letter-spacing: .02em; }
#ai-progress-stage {
  font-size: .78rem; color: var(--ink); opacity: .8;
  background: rgba(255,255,255,.55); border-radius: var(--r-pill);
  padding: 5px 14px; letter-spacing: -0.01em;
}
#ai-progress-label { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
#ai-progress-timer { font-size: .72rem; font-family: var(--mono); letter-spacing: .04em; color: var(--ink); opacity: .85; }
#ai-progress .btn-ghost { background: transparent; border-color: rgba(0,0,0,.25); }

/* AI 스트리밍 미리보기 */
.stream-preview {
  background: var(--surface-soft); border-radius: var(--r-md);
  padding: 16px 18px; margin-top: 14px; max-height: 300px; overflow-y: auto;
  font-size: .86rem; font-weight: 400; white-space: pre-wrap; color: var(--ink);
}
.ai-note {
  font-size: .76rem; font-weight: 400; color: var(--ink); background: var(--cream);
  border-radius: var(--r-md); padding: 12px 16px; margin-top: 10px;
}
.ai-note b { font-weight: 600; }

/* ───────── 반응형 ───────── */
@media (max-width: 1120px) {
  #layout { grid-template-columns: 210px 1fr; }
  #context { display: none; }
}
@media (max-width: 760px) {
  html { font-size: 16px; }
  #layout { grid-template-columns: 1fr; }
  #sidenav {
    position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 100;
    transform: translateX(-100%); transition: transform .25s;
    padding-top: calc(88px + env(safe-area-inset-top, 0px));
    border-right: 1px solid var(--hairline); background: var(--canvas);
  }
  body.nav-open #sidenav { transform: translateX(0); box-shadow: 4px 0 30px rgba(0,0,0,.15); }
  body.nav-open #nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.28);
  }
  #btn-menu { display: block; font-size: 1.25rem; padding: 8px 10px; }
  #btn-back { font-size: 1.15rem; padding: 8px 10px; }
  .top-title { display: none; }
  .save-status { display: none; }
  .logo-text > span { display: none; }
  .logo { margin-left: 2px; }
  #topbar { gap: 4px; }
  .logo-mark { width: 54px; height: 54px; border-radius: 12px; }
  .logo-text strong { font-size: 2rem; top: -4px; }
  .logo-text { height: 54px; }
  #top-settings { margin-left: auto; }
  .top-btn { white-space: nowrap; padding: 6px 12px; }
  /* 펀치홀·상태바를 피해 상단바를 아래로 내림 */
  #topbar { gap: 6px; padding: calc(16px + env(safe-area-inset-top, 0px)) 12px 12px; }
  #main { padding: 20px 16px 70px; }
  .step-title { font-size: 1.55rem; }
  .form-grid { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  #editor { padding: 24px 20px; }
  #editor-toolbar { top: 0; }
  #rehearsal-text { font-size: 1.4rem; }
  .card, .cand, .fcard { border-radius: var(--r-md); }
  /* 휴대폰 가독성 */
  .dropzone { flex-direction: column; gap: 8px; padding: 18px 12px; font-size: .82rem; }
  .paste-row { flex-direction: column; }
  .paste-row .btn { align-self: stretch; }
  .step-desc { font-size: .92rem; }
  .proj-toolbar { flex-direction: column; }
  .btn { padding: 12px 20px; }
}

/* ───────── 인쇄 ───────── */
@media print {
  #topbar, #sidenav, #context, #editor-toolbar, #editor-status, .btn-row, #toast, #ai-progress { display: none !important; }
  #layout { display: block; }
  #main { max-width: 100%; padding: 0; }
  #editor-wrap { border: none; }
  #editor { font-size: 12pt; line-height: 1.9; padding: 0; }
  body.print-large #editor { font-size: 17pt; line-height: 2.1; }
  body { background: #fff; }
}

/* 원고 위치 표시(제스처·쉼멈춤) */
.gmark {
  display: inline-block; background: var(--fin); color: #06332e; border: none;
  border-radius: 6px; padding: 1px 7px; font-size: .78rem; font-weight: 700;
  margin: 0 3px; cursor: pointer; vertical-align: baseline; line-height: 1.5;
}
.gmark.bmark { background: var(--navy); }
.gmark.on { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.app-ver { font-size: .64rem; font-family: var(--mono); letter-spacing: .04em; color: var(--ink); opacity: .55; padding: 4px 12px 0; }

/* 앱 잠금 화면 */
#app-lock {
  position: fixed; inset: 0; z-index: 10000; background: var(--canvas);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.lock-box { padding: 30px; }
/* 글자체 선택 */
body.gothic-ui, body.gothic-ui button, body.gothic-ui input, body.gothic-ui textarea, body.gothic-ui select {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}
body.serif-ui, body.serif-ui button, body.serif-ui input, body.serif-ui textarea, body.serif-ui select {
  font-family: "Apple Myungjo", "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", serif;
}

/* 화면 밝기 오버레이 */
#bright-ov { position: fixed; inset: 0; pointer-events: none; z-index: 99999; background: transparent; }

/* 오른쪽 패널 도구 */
.tool-row { display: flex; gap: 6px; margin: 8px 0 4px; }
.tool-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 8px; font-size: .82rem; }
.tool-out { font-size: .8rem; line-height: 1.65; background: var(--surface-soft); border-radius: 8px; padding: 9px 11px; margin-top: 5px; max-height: 300px; overflow-y: auto; }
.tool-out:empty { display: none; }
.tool-out p { margin: 0 0 6px; }

/* 4단계 AI 형식 추천 카드 */
.rec-card { border: 2px solid var(--fin); }
.rec-best {
  background: var(--cream); border-radius: var(--r-md);
  padding: 14px 16px; margin-top: 10px;
}
.rec-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.rec-best p { font-size: .88rem; line-height: 1.65; margin: 0 0 8px; }
.rec-best .meta { font-size: .8rem; line-height: 1.6; margin-top: 4px; opacity: .9; }

/* 5단계 천재화 리포트 */
.genius-box { margin-top: 4px; }
.gn-verdict {
  background: var(--navy); color: #fff; border-radius: var(--r-md);
  padding: 14px 16px; font-size: .95rem; font-weight: 600; line-height: 1.6; margin-bottom: 12px;
}
.gn-scores { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.gn-score { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.gn-k { width: 100px; flex-shrink: 0; opacity: .85; }
.gn-bar { flex: 1; height: 8px; background: var(--hairline-soft); border-radius: 4px; overflow: hidden; }
.gn-bar i { display: block; height: 100%; background: var(--fin); border-radius: 4px; }
.gn-v { width: 22px; text-align: right; font-family: var(--mono); font-size: .78rem; font-weight: 700; }
.gn-note { font-size: .82rem; opacity: .85; line-height: 1.6; margin-bottom: 10px; }
.gn-card {
  background: var(--surface-soft); border-radius: var(--r-md);
  padding: 14px 16px; margin-top: 10px;
}
.gn-card.gn-bright { background: var(--cream); }
.gn-card.gn-ideas { background: var(--lime); }
.gn-title { font-weight: 700; font-size: .9rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.gn-card blockquote {
  border-left: 3px solid rgba(0,0,0,.25); margin: 0 0 6px; padding: 2px 0 2px 12px;
  font-size: .9rem; line-height: 1.65;
}
.gn-card p { font-size: .85rem; line-height: 1.65; margin: 0 0 6px; }
.gn-card .meta { font-size: .8rem; line-height: 1.6; margin-top: 4px; }
.gn-fix { background: rgba(255,255,255,.6); border-radius: 6px; padding: 6px 9px; }
.gn-dull + .gn-dull, .gn-idea + .gn-idea { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(0,0,0,.08); }
.gn-idea b { font-size: .88rem; }

/* 제스처 동작 그림 */
.g-art {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 12px 14px; margin: 8px 0 10px;
}
.g-art-fig { color: var(--ink); flex-shrink: 0; }
.g-fig { width: 76px; height: 92px; display: block; }
.g-art-sm .g-fig { width: 54px; height: 66px; }
.g-art-sm { padding: 8px 12px; gap: 10px; }
.g-art-cap { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.g-art-cap b { font-size: .92rem; letter-spacing: -0.02em; }
.g-art-sm .g-art-cap b { font-size: .84rem; }
.g-art-cap span { font-size: .76rem; opacity: .78; line-height: 1.5; }

/* 편집기 높이 조절 손잡이 */
#editor-resize {
  height: 16px; cursor: ns-resize; background: var(--surface-soft);
  border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
#editor-resize:hover { background: var(--lime); }
#editor-resize span { width: 46px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.22); display: block; }
body.resizing-editor { user-select: none; cursor: ns-resize; }
body.resizing-editor #editor { pointer-events: none; }
@media print { #editor-resize { display: none !important; } }

/* 강약 표시 */
.smark {
  background: var(--lime); border: none; border-radius: 4px;
  padding: 1px 3px; font: inherit; cursor: pointer; color: var(--ink);
}
.smark-strong { background: var(--gold); font-weight: 700; }
.smark.on { outline: 2.5px solid var(--ink); outline-offset: 1px; }
.ms-legend { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: .78rem; }
.ms-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.st-list { display: flex; flex-direction: column; gap: 6px; }
.st-item {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  background: var(--surface-soft); border-radius: var(--r-md); padding: 8px 12px;
}
.st-item.st-strong { background: var(--cream); }
.st-word { font-weight: 700; font-size: .92rem; }
.st-how { font-size: .76rem; opacity: .8; }
.st-lv { font-size: .72rem; font-weight: 700; background: var(--lime); border-radius: var(--r-pill); padding: 1px 8px; }
.st-item.st-strong .st-lv { background: var(--gold); }
.st-why { grid-column: 1 / -1; font-size: .78rem; opacity: .82; line-height: 1.5; }

/* 적용 찬양 목록 */
.song-list { display: flex; flex-direction: column; gap: 6px; }
.song-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: var(--surface-soft); border: 1px solid transparent; border-radius: var(--r-md);
  padding: 11px 14px; font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.song-item:hover { border-color: var(--ink); background: #fff; }
.song-badge { font-size: .7rem; font-weight: 700; border-radius: var(--r-pill); padding: 2px 9px; flex-shrink: 0; }
.sb-hymn { background: var(--mint); }
.sb-gospel { background: var(--cream); }
.song-title { font-weight: 600; font-size: .92rem; }
.song-artist { font-size: .78rem; opacity: .75; }
.song-go { margin-left: auto; font-size: .76rem; opacity: .7; white-space: nowrap; }
.song-link { text-decoration: none; display: inline-flex; align-items: center; }

/* 기다리는 동안 보여주는 설교학 지식 카드 */
#ai-progress-tip {
  background: rgba(255,255,255,.72); border-radius: 12px;
  padding: 12px 16px; width: 100%; text-align: left;
  font-size: .84rem; line-height: 1.65; color: var(--ink);
  animation: tipIn .5s ease;
}
#ai-progress-tip b { display: block; font-size: .72rem; letter-spacing: .04em; opacity: .7; margin-bottom: 4px; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 앱이 지금 무엇을 하고 있는지 알려 주는 줄 */
#ai-progress-say {
  font-size: .86rem; line-height: 1.55; color: var(--ink);
  background: rgba(255,255,255,.66); border-radius: 10px;
  padding: 9px 14px; width: 100%; text-align: left;
  display: flex; gap: 8px; align-items: flex-start;
  animation: sayIn .35s ease;
}
/* 살아 움직이는 신호 — 작은 점이 숨 쉬듯 퍼진다 */
#ai-progress-say::before {
  content: ""; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fin); margin-top: 8px;
  animation: livePulse 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,188,176,.35); transform: scale(1); }
  65%  { box-shadow: 0 0 0 8px rgba(15,188,176,0); transform: scale(1.15); }
  100% { box-shadow: 0 0 0 0 rgba(15,188,176,0); transform: scale(1); }
}
@keyframes sayIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* 다섯 단계 타일 */
.step-tile {
  position: relative; border-radius: var(--r-md);
  padding: 16px 10px 14px; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  transition: transform .14s ease, filter .15s;
}
.step-tile:hover { transform: translateY(-2px); filter: brightness(1.03); }
.tile-svg {
  width: 28px; height: 28px; display: block;
  stroke-linecap: round; stroke-linejoin: round;
  /* 로고 타일처럼 아래로 떨어지는 또렷한 그림자 — 입체감 */
  filter: drop-shadow(0 1.6px 0 rgba(28, 28, 30, .22));
}
.st-ico { opacity: 1; }
.st-lb { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.st-n {
  position: absolute; top: 8px; right: 10px;
  font-family: var(--mono); font-size: .64rem; font-weight: 700;
  opacity: .42; letter-spacing: .04em;
}

/* 오른쪽 도구 제목 아이콘 */
.tool-h { display: flex; align-items: center; gap: 8px; }
.tool-ico {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; opacity: .85;
}

/* AI 반짝임 아이콘 */
.ai-spark {
  width: 15px; height: 15px; flex-shrink: 0;
  fill: currentColor; stroke: none;
  vertical-align: -2px; margin: 0 2px;
  opacity: .95;
}
.chip .ai-spark { width: 13px; height: 13px; }
h3 .ai-spark, td .ai-spark, p .ai-spark { width: 14px; height: 14px; }

.tool-hint { font-size: .7rem; line-height: 1.5; opacity: .68; margin: 2px 0 4px; }
.tool-mode { font-size: .68rem; opacity: .7; margin-bottom: 5px; display: flex; gap: 6px; align-items: center; }
.tool-mode button {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--fin); text-decoration: underline; cursor: pointer;
}

/* ═════════════════════════════════════════════
   폴리시 레이어 — 같은 디자인 언어, 한 급 위의 마감
   (레이어드 섀도 · 글래스 상단바 · 모션 · 포커스 링)
   ═════════════════════════════════════════════ */
:root {
  --shadow-xs: 0 1px 2px rgba(5, 0, 56, .04);
  --shadow-sm: 0 4px 12px rgba(5, 0, 56, .06);
  --shadow-md: 0 12px 32px -4px rgba(5, 0, 56, .10);
  --shadow-lg: 0 8px 20px rgba(17, 17, 17, .08), 0 28px 70px rgba(17, 17, 17, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
html { scroll-behavior: smooth; }

/* 상단바 — 글래스 블러 (스크롤 시 내용이 은은히 비침) */
#topbar {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}

/* 카드 — 미세한 깊이 + 호버 리프트 */
.card { box-shadow: var(--shadow-xs); transition: box-shadow .25s var(--ease-out); }
.card:hover { box-shadow: var(--shadow-sm); }
.cand, .fcard {
  box-shadow: var(--shadow-xs);
  transition: transform .22s var(--ease-out), box-shadow .25s var(--ease-out), border-color .18s;
}
.cand:hover, .fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cand.selected, .fcard.selected { box-shadow: var(--shadow-sm); }
.step-tile { transition: transform .22s var(--ease-out), box-shadow .25s var(--ease-out), filter .18s; }
.step-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
#editor-wrap { box-shadow: var(--shadow-xs); }
.proj-table { box-shadow: var(--shadow-xs); }
.proj-table tr:hover td { transition: background .12s; }

/* 버튼 — 부드러운 프레스감 + 프라이머리 호버 */
.btn, .chip, .top-btn, .new-btn {
  transition: transform .16s var(--ease-out), background .18s, border-color .18s,
              box-shadow .22s var(--ease-out), filter .18s;
}
.btn-primary:hover, .new-btn:hover {
  background: #2c2c34; box-shadow: 0 6px 18px rgba(5, 0, 56, .20); transform: translateY(-1px);
}
.btn-gold:hover { background: var(--gold); filter: brightness(1.06); box-shadow: 0 6px 18px rgba(255, 208, 47, .40); transform: translateY(-1px); }
.btn-primary:active, .btn-gold:active, .new-btn:active { transform: scale(.96); box-shadow: none; }
.btn-ghost:hover, .chip:hover { box-shadow: var(--shadow-xs); }
.btn-ai:hover { box-shadow: 0 6px 18px rgba(15, 188, 176, .30); transform: translateY(-1px); }
.btn-ai:active { transform: scale(.96); box-shadow: none; }
#home-new:hover { background: #2c2c34 !important; transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* 입력 — 호버 힌트 + 절제된 포커스 링 */
.field input:hover, .field textarea:hover, .field select:hover,
.proj-toolbar input:hover, .tool-row input:hover { border-color: #c9c9c9; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3.5px rgba(220, 238, 177, .8);
}

/* 키보드 포커스 — 접근성 링 (마우스 클릭에는 안 뜸) */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, .chip:focus-visible, .top-btn:focus-visible { outline-offset: 3px; }

/* 모달 — 딥 블러 배경 + 스프링 등장 */
#modal-backdrop {
  background: rgba(15, 15, 15, .45);
  -webkit-backdrop-filter: blur(7px) saturate(120%);
  backdrop-filter: blur(7px) saturate(120%);
  animation: bdIn .22s ease;
}
#modal { box-shadow: var(--shadow-lg); animation: modalIn .3s var(--ease-out); }
@keyframes bdIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* 토스트 — 아래에서 떠오름 */
#toast { box-shadow: var(--shadow-md); animation: toastIn .3s var(--ease-out); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* AI 진행 상자 — 깊이 + 은은한 배경 블러 */
#ai-progress {
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.ai-progress-box { box-shadow: var(--shadow-lg); animation: modalIn .32s var(--ease-out); }

/* 왼쪽 내비 — 항목 전환을 부드럽게 */
.step-nav li { transition: background .16s, transform .16s var(--ease-out); }
.step-nav li:active { transform: scale(.98); }
.step-nav .num { transition: background .2s, color .2s; }
.nav-progress-bar { transition: width .55s var(--ease-out); }

/* 스크롤바 — 가늘고 둥글게 */
* { scrollbar-width: thin; scrollbar-color: #d4d4d0 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #d9d9d5; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #bdbdb8; border: 2px solid transparent; background-clip: padding-box; }

/* 헤어라인 디테일 — 표·모달 머리 은은한 구분 */
#modal-head { background: rgba(250, 250, 248, .6); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.proj-table th { background: #fbfbfa; }

/* 배지 호흡 — AI 연결 상태 */
.ai-badge { transition: background .25s; }

/* 책 인용 머리 — [제목] -저자 (최종 원고까지 붉은 글씨) */
.book-cite { color: #c62828; font-weight: 700; }

/* 골라 넣기 — 자리 찍기 목록 */
.pp-item {
  cursor: pointer; border-radius: 8px; padding: 5px 10px; margin: 0 0 3px;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
  font-size: .88rem; line-height: 1.55;
}
.pp-item:hover { background: var(--surface-soft); border-color: var(--hairline); }
.pp-item.sel { background: var(--lime); border-color: var(--ink); font-weight: 600; }
#bp-src::selection, #bp-src *::selection { background: var(--gold); }

/* 움직임을 줄이고 싶은 사용자 존중 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* 원고 화면 타이포 — 소제목은 위로 빈 줄 하나, 문단은 촘촘하게(짜임새) */
#editor p { margin: .34em auto; }
.stream-preview h2, #cf-edit h2 { font-size: 1.06rem; font-weight: 700; margin: 1.3em 0 .35em; }
.stream-preview h3, #cf-edit h3 { font-size: .98rem; margin: 1.3em 0 .3em; }
.stream-preview p, #cf-edit p { margin: 0 0 .3em; }
#rehearsal-text h2 { font-size: 1.35rem; }

/* 제스처 그림 — 더 또렷하게 */
.g-fig { width: 96px; height: 116px; }
.g-art-sm .g-fig { width: 84px; height: 100px; }
.g-fig { width: 130px; height: 156px; }
.g-art { background: linear-gradient(180deg, #fffdf7, #fff); }

/* ─── 홈 최근 작업: 밀어서 삭제 ─── */
.swipe-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--cream-2); }
.swipe-under { position: absolute; inset: 2px; display: flex; align-items: center; justify-content: flex-end; padding-right: 20px; background: #e15b5b; color: #fff; font-weight: 700; font-size: .82rem; border-radius: 10px; }
.swipe-face { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0; background: var(--canvas); touch-action: pan-y; user-select: none; }

/* 로고스 내 서재 결과 */
.logos-lib-item { display: block; width: 100%; text-align: left; font-size: .76rem; padding: 6px 8px; margin-top: 4px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--canvas); cursor: pointer; }
.logos-lib-item:hover { border-color: var(--ink); }

/* 보관함 표 행 — 밀어서 삭제 */
.proj-table tr.ar-row { touch-action: pan-y; }

/* 1단계 — 쉬운 말·NIV 병기 */
.verse-alt { background: var(--surface-soft); border-radius: var(--r-md); padding: 12px 16px; white-space: pre-wrap; line-height: 1.8; font-size: .92rem; max-height: 260px; overflow-y: auto; }

/* ─── 홈 히어로 타이포 ─── */
/* 브랜드 눈썹줄 — 카탈로그 섹션 표제처럼 작고 넓게 벌린 대문자 */
.hero-eyebrow {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em;
  color: var(--ink-soft); margin-bottom: 16px;
}
.hero-title {
  font-size: 2.7rem; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.15;
  font-feature-settings: 'kern' 1;
}
.hero-sub {
  color: var(--ink-soft); font-size: .98rem; font-weight: 400;
  letter-spacing: .08em; margin-top: 0;
}
@media (max-width: 720px) {
  .hero-title { font-size: 1.9rem; }
  .hero-eyebrow { font-size: .64rem; letter-spacing: .18em; margin-bottom: 12px; }
  .hero-sub { font-size: .9rem; letter-spacing: .05em; }
}

/* ─── 설정 탭 ─── */
.set-tabs { display: flex; gap: 4px; margin: 0 0 18px; border-bottom: 1px solid var(--hairline); flex-wrap: wrap; }
.set-tab {
  background: none; border: none; padding: 9px 16px; font-size: .88rem; font-weight: 500;
  color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.set-tab:hover { color: var(--ink); }
.set-tab.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.set-pane.hidden { display: none; }

/* ─── 연결 코드 입력창 — 앱 톤에 맞춘 전용 스타일 ─── */
.code-input {
  font-family: var(--mono) !important;
  font-size: 1.06rem !important;
  letter-spacing: .14em;
  text-align: center;
  padding: 14px 16px !important;
  background: var(--surface-soft) !important;
  border-radius: var(--r-md);
}
.code-input::placeholder { letter-spacing: .1em; opacity: .45; font-weight: 400; }
.code-input:focus { background: var(--canvas) !important; }
.code-row { display: flex; gap: 8px; align-items: stretch; }
.code-row .btn { white-space: nowrap; padding-left: 22px; padding-right: 22px; }

/* 홈 명문장 — 슬로건 아래, 작고 단정하게 */
.hero-quote { max-width: 620px; margin: 30px auto 0; background: rgba(28, 28, 28, 0.1); border-radius: 14px; padding: 18px 26px; }
.hero-quote .hq-text { font-size: .98rem; line-height: 1.85; color: var(--ink); word-break: keep-all; margin: 0; }
.hero-quote .hq-src { font-size: .74rem; font-family: var(--mono); opacity: .6; margin: 7px 0 0; }
.hero-quote { position: relative; text-align: center; }
.hq-n { opacity: .45; margin-left: 6px; font-size: .68rem; }
/* 다음 문장 넘김 — 우하단 구석의 작은 표시. 평소엔 흐릿하다가 얹으면 또렷해진다 */
.hq-next { position: absolute; right: 8px; bottom: 6px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--ink); opacity: .35; font-size: .95rem; line-height: 22px; text-align: center; cursor: pointer; transition: opacity .15s, background .15s; }
.hq-next:hover { opacity: 1; background: rgba(28, 28, 28, 0.08); }

/* 제스처 실사 사진 */
.g-photo { width: 118px; height: 148px; object-fit: cover; object-position: top; border-radius: 12px; display: block; }
.g-art-sm .g-photo { width: 84px; height: 105px; }

/* 완성 직후 원고 맨 위로 스크롤할 때 — 고정 상단바(93px)+편집 도구 막대에 제목이 가리지 않게 */
#editor { scroll-margin-top: 152px; }

/* 제목 위 두 줄 여백은 #editor h1 자체에 조건 없이 들어 있다(설교자 지침) — 인쇄에서는 제외 */
@media print { #editor h1 { padding-top: 0; font-size: 14pt; } }

/* 키 발급 안내 — 나눠 받은 분이 스스로 키를 받도록 돕는 접이식 안내 */
.key-guide { background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 12px 14px; }
.key-guide summary { list-style: none; }
.key-guide summary::-webkit-details-marker { display: none; }
.key-guide summary::before { content: "▸ "; color: var(--ink); opacity: .6; }
.key-guide[open] summary::before { content: "▾ "; }
.key-guide summary:hover { color: var(--link); }
.key-guide a { color: var(--link); }
.key-guide li { margin-bottom: 5px; }
.key-guide li:last-child { margin-bottom: 0; }

/* .fb-item b 는 대문자 소제목 전용 규칙이다. 본문 안 강조는 strong 으로 쓴다. */
.fb-item strong { font-weight: 700; color: var(--ink); }

/* 예화 담기 — 넣은 사진을 걸어 두는 자리.
   내용을 적는 동안에도 사진이 위에 붙어 있어야 보면서 옮겨 적을 수 있다. */
#ia-shots { position: sticky; top: -4px; z-index: 3; background: var(--surface); padding: 6px 0 8px; border-bottom: 1px solid var(--hairline-soft); }
.ia-shot { margin: 0 0 8px; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--surface-soft); }
.ia-shot img { display: block; width: 100%; max-height: 210px; object-fit: contain; object-position: top; background: #fff; cursor: zoom-in; }
.ia-shot.big img { max-height: none; cursor: zoom-out; }
.ia-shot figcaption { padding: 5px 10px; font-size: .74rem; color: var(--ink-soft); }

/* 예화 창고 안의 끌어들임 박스 — 자료 서랍과 구분되도록 푸른빛 */
.dropzone.drop-blue { border-color: #9db8e8; background: #f4f8ff; }
.dropzone.drop-blue:hover, .dropzone.drop-blue.dragover { border-color: #2f6fd0; background: #e6efff; }
/* 왼쪽 메뉴 단추에 파일을 끌어올 때 — 여기 놓으면 된다는 표시 */
.nav-link.dragover { background: var(--gold); color: var(--ink); outline: 2px dashed var(--ink); outline-offset: -3px; }
/* 정리 기다리는 예화가 있을 때 — 메뉴 배지를 눈에 띄게 */
.nav-count.todo { background: var(--gold); color: var(--ink); font-weight: 800; }

/* 파일을 끌고 들어오면 창 전체가 받는 자리임을 보여 준다 — 헛놓아 사진이 사라지지 않게 */
body.file-dragging::after {
  content: "여기에 놓으면 담깁니다"; position: fixed; inset: 8px; z-index: 900; pointer-events: none;
  border: 3px dashed var(--ink); border-radius: 18px; background: rgba(255, 214, 92, .14);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 26px;
  font-size: .9rem; font-weight: 700; color: var(--ink);
}
/* 보관한 원본 밑의 단추들(열기·다시 읽기) */
.ia-shot figcaption { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ia-shot figcaption .btn { padding: 3px 10px; font-size: .72rem; }

/* 피드백 블록 고르기 — ☐를 누르면 고른 블록이 된다 */
.fb-pick, .gn-pick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.fb-pick input, .gn-pick input { margin-top: 4px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--ink); }
.fb-pick > span, .gn-pick > span { flex: 1; min-width: 0; }
.fb-pick.picked, .gn-pick.picked { outline: 2px solid var(--gold); outline-offset: -2px; background: #fff7d6; }
/* 예화 창고 목록 — 줄에 손을 올리면 눌러 볼 수 있음을 보인다 */
.ilib-row:hover { background: var(--surface-soft); }


/* 고른 지적·아이디어 반영 막대 — 창(300) 위, 토스트(400) 아래 */
#pick-bar { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 320;
  display: flex; gap: 10px; align-items: center; padding: 8px 10px 8px 14px; background: var(--ink); color: #fff; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); font-size: .86rem; max-width: calc(100vw - 24px); white-space: nowrap; animation: toastIn .25s var(--ease-out); }
#pick-bar[hidden] { display: none; }
#pick-bar #pick-bar-x { color: #fff; background: rgba(255,255,255,.18); border-color: transparent; opacity: .85; padding: 4px 9px; }
@media print { #pick-bar { display: none !important; } }

/* 인공지능 연결 따라 하기(환영 창·설명서 공용) */
.vguide{margin:0 0 16px}.vstep{display:flex;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px dashed var(--hairline-soft)}.vstep:last-child{border-bottom:none}.vn{flex:none;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.82rem}.vshot{background:var(--surface-soft);border:1px solid var(--hairline);border-radius:10px;padding:10px 12px;margin:8px 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.vbar{font-weight:800}.vhi{background:var(--gold);border-radius:6px;padding:1px 6px}.vlabel{font-size:.78rem;opacity:.7}.vsel{border:1px solid var(--hairline);border-radius:8px;padding:5px 10px;background:var(--canvas);font-size:.84rem}.vbtn{border:1px solid var(--hairline);border-radius:999px;padding:5px 12px;background:var(--canvas);font-size:.82rem;font-weight:700}.vinput{border:1px solid var(--hairline);border-radius:8px;padding:5px 12px;background:var(--canvas);letter-spacing:.15em}.vwarn{color:var(--red)}.vstep>div{font-size:.88rem;line-height:1.7}
