/* ==========================================================================
   교회 행정 AI — 버건디·아이보리·블러시 화이트 테마
   ========================================================================== */

:root {
  --primary: #a32a57;
  --primary-hover: #871f46;
  --primary-soft: #fceef2;
  --primary-ring: rgba(163, 42, 87, 0.16);

  --bg: #fdf7f8;
  --surface: #ffffff;
  --surface-subtle: #fbf4f6;
  --border: #eedde2;
  --border-strong: #dfc5ce;

  --text: #231f20;
  --text-sub: #75686c;
  --text-muted: #988b8f;

  --ink-active: #231f20;
  --imp-accent: #e65100;
  --imp-bg: #fff6ed;
  --imp-border: #ffd8b5;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(35, 31, 32, 0.04);
  --shadow-sm: 0 2px 10px rgba(163, 42, 87, 0.06);
  --shadow-md: 0 8px 28px rgba(35, 31, 32, 0.1);
  --shadow-fab: 0 8px 22px rgba(163, 42, 87, 0.34);

  --max-width: 960px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--app-font, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: calc(15px * var(--font-scale, 1.1));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------- 공통 버튼 ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: calc(14px * var(--font-scale, 1.1));
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

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

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: var(--primary);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: #f8dfe7;
}

.btn-sm {
  padding: 6px 12px;
  font-size: calc(12.5px * var(--font-scale, 1.1));
  white-space: nowrap;
}

/* ==========================================================================
   1. 잠금 화면 (#lockScreen)
   ========================================================================== */

.lock-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 18% 15%, rgba(163, 42, 87, 0.08), transparent 42%),
    radial-gradient(circle at 82% 85%, rgba(230, 81, 0, 0.05), transparent 40%),
    var(--bg);
}

.lock-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.lock-church-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(12px * var(--font-scale, 1.1));
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.lock-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fceef2, #f7dce5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(26px * var(--font-scale, 1.1));
  box-shadow: inset 0 0 0 1px rgba(163, 42, 87, 0.12);
}

.lock-title {
  margin: 0 0 6px;
  font-size: calc(21px * var(--font-scale, 1.1));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lock-subtitle {
  margin: 0 0 24px;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
}

.lock-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.lock-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: calc(15px * var(--font-scale, 1.1));
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.lock-input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.lock-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  cursor: pointer;
  user-select: none;
  padding: 2px 2px 4px;
}

.lock-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.lock-btn {
  width: 100%;
  padding: 13px 18px;
  font-size: calc(15px * var(--font-scale, 1.1));
  border-radius: var(--radius-md);
}

.lock-err {
  margin: 2px 0 0;
  min-height: 18px;
  font-size: calc(13px * var(--font-scale, 1.1));
  font-weight: 500;
  color: #c62828;
  text-align: center;
}

.lock-status {
  margin: 0;
  min-height: 18px;
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--primary);
  text-align: center;
}

/* ==========================================================================
   2. 앱 셸 & 헤더 & 네비게이션
   ========================================================================== */

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(253, 247, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-title {
  margin: 0;
  font-size: calc(17px * var(--font-scale, 1.1));
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-meta {
  font-size: calc(11.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* 상단 네비게이션 알약 탭 */
.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4px 16px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: #463c3f;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow-xs);
}

.nav-pill:hover {
  border-color: var(--border-strong);
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-pill.active {
  background: var(--ink-active);
  border-color: var(--ink-active);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(35, 31, 32, 0.18);
}

/* 메인 컨텐츠 래퍼 */
.app-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 16px 36px;
}

.tab-panel {
  width: 100%;
}

/* ---------- 공통 칩 & 검색 알약 ---------- */

.chip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.chip,
.scope-chip,
.chip-group button {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: calc(12.5px * var(--font-scale, 1.1));
  font-weight: 500;
  line-height: 1.2;
  transition: all 0.14s ease;
}

.chip:hover,
.scope-chip:hover,
.chip-group button:hover {
  border-color: var(--border-strong);
  color: var(--primary);
  background: var(--primary-soft);
}

.chip.active,
.scope-chip.active,
.chip-group button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.search-pill-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.search-icon {
  position: absolute;
  left: 16px;
  font-size: calc(15px * var(--font-scale, 1.1));
  pointer-events: none;
  opacity: 0.7;
}

.search-pill-input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: calc(14.5px * var(--font-scale, 1.1));
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-pill-input::placeholder {
  color: var(--text-muted);
}

.search-pill-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

/* 브라우저 기본 search cancel 숨김 */
.search-pill-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-sub);
  font-size: calc(13px * var(--font-scale, 1.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease;
}

.search-clear-btn:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.count-text {
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  font-weight: 500;
  white-space: nowrap;
}

/* ==========================================================================
   3. 패널 1: AI에게 질문 (#panel-ai)
   ========================================================================== */

.panel-ai {
  padding-bottom: 112px;
}

.ai-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.btn-reset {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: calc(12.5px * var(--font-scale, 1.1));
  font-weight: 500;
  transition: all 0.14s ease;
}

.btn-reset:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.ai-welcome {
  max-width: 680px;
  margin: 8px auto 12px;
}

.ai-welcome-notice {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: #5b3a45;
  font-size: calc(13px * var(--font-scale, 1.1));
  line-height: 1.55;
  margin-bottom: 24px;
}

.ai-welcome-head {
  text-align: center;
  margin-bottom: 20px;
}

.ai-welcome-title {
  margin: 0 0 6px;
  font-size: calc(24px * var(--font-scale, 1.1));
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.ai-welcome-sub {
  margin: 0;
  font-size: calc(14px * var(--font-scale, 1.1));
  color: var(--text-sub);
}

.q-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-suggest {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: calc(14.5px * var(--font-scale, 1.1));
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.q-suggest::after {
  content: '→';
  color: var(--primary);
  font-size: calc(15px * var(--font-scale, 1.1));
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.q-suggest:hover {
  border-color: var(--primary);
  background: #fffbfc;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.q-suggest:hover::after {
  transform: translateX(3px);
  opacity: 1;
}

/* 채팅 메시지 영역 */
.ai-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.msg-user {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-ai,
.msg-assistant {
  align-self: flex-start;
  align-items: flex-start;
  max-width: 94%;
}

.msg-bubble {
  padding: 13px 16px;
  border-radius: 18px;
  font-size: calc(14.5px * var(--font-scale, 1.1));
  line-height: 1.62;
  word-break: break-word;
}

.msg-user .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 12px rgba(163, 42, 87, 0.22);
}

.msg-ai .msg-bubble,
.msg-assistant .msg-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-xs);
}

.msg-error .msg-bubble {
  background: #fff2f2;
  border: 1px solid #f5c2c7;
  color: #b71c1c;
}

.msg-bubble p {
  margin: 0 0 8px;
}

.msg-bubble p:last-child {
  margin-bottom: 0;
}

.msg-bubble ul,
.msg-bubble ol {
  margin: 6px 0 8px;
  padding-left: 20px;
}

.msg-bubble li {
  margin-bottom: 4px;
}

.msg-bubble strong {
  font-weight: 700;
}

.msg-bubble code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.9em;
}

.msg-bubble pre {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #2b2426;
  color: #fdf7f8;
  overflow-x: auto;
  font-size: calc(13px * var(--font-scale, 1.1));
}

.msg-bubble pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.msg-meta {
  margin-top: 5px;
  font-size: calc(11.5px * var(--font-scale, 1.1));
  color: var(--text-muted);
}

.msg-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.source-chip,
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: calc(12px * var(--font-scale, 1.1));
  font-weight: 500;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.source-chip:hover,
.source-link:hover {
  background: #f7dce5;
  border-color: var(--primary);
}

/* 하단 고정 입력바 */
.ai-input-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(253, 247, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}

.ai-form {
  max-width: var(--max-width);
  margin: 0 auto;
}

.ai-form-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 5px 5px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.ai-form-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.ai-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 4px;
  font-size: calc(14.5px * var(--font-scale, 1.1));
  color: var(--text);
  outline: none;
}

.ai-input::placeholder {
  color: var(--text-muted);
}

.ai-send-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #ffffff;
  font-size: calc(14px * var(--font-scale, 1.1));
  font-weight: 700;
  transition: background 0.16s ease, transform 0.12s ease;
}

.ai-send-btn:hover {
  background: var(--primary-hover);
}

.ai-send-btn:active {
  transform: scale(0.98);
}

.ai-send-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ai-model-badge {
  margin-top: 5px;
  text-align: center;
  font-size: calc(11px * var(--font-scale, 1.1));
  color: var(--text-muted);
  min-height: 15px;
}

/* ==========================================================================
   4. 패널 2: 공지·자료 (#panel-docs)
   ========================================================================== */

.panel-docs {
  padding-bottom: 76px;
}

.doc-board {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.doc-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 98px 82px;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  font-size: calc(12.5px * var(--font-scale, 1.1));
  font-weight: 700;
  color: #6b384a;
}

.doc-table-head .col-date,
.doc-table-head .col-type {
  text-align: center;
}

.doc-list {
  display: flex;
  flex-direction: column;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 98px 82px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #f4e8ec;
  border-left: 3.5px solid transparent;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.14s ease;
}

.doc-row:last-child {
  border-bottom: none;
}

.doc-row:hover {
  background: #fdf5f7;
}

/* 중요 공지 행 */
.doc-row.is-important {
  border-left: 3.5px solid var(--imp-accent);
  background: var(--imp-bg);
}

.doc-row.is-important:hover {
  background: #ffeedd;
}

.doc-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.doc-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: calc(14.5px * var(--font-scale, 1.1));
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.doc-snippet {
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-cat {
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-date {
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--text-muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.doc-type {
  text-align: center;
}

/* 배지 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: calc(11px * var(--font-scale, 1.1));
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}

.badge-imp {
  background: linear-gradient(135deg, #ff7a29, #e65100);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.25);
}

.badge-cat,
.badge-type {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-local {
  background: #eef6ff;
  color: #1565c0;
}

/* 우측 하단 플로팅 추가 버튼 */
.fab-add {
  position: fixed;
  right: max(18px, calc((100vw - var(--max-width)) / 2 + 18px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 26;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: calc(28px * var(--font-scale, 1.1));
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-fab);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.fab-add:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.04);
}

.fab-add:active {
  transform: scale(0.96);
}

/* ==========================================================================
   5. 패널 3: 카톡 7개방 (#panel-kakao)
   ========================================================================== */

.kakao-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.kakao-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.kakao-meta-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.sort-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: calc(12.5px * var(--font-scale, 1.1));
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.sort-select:focus {
  border-color: var(--primary);
}

.kakao-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kakao-item,
.kakao-card {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kakao-item:hover,
.kakao-card:hover {
  border-color: var(--border-strong);
  background: #fffcfd;
  box-shadow: var(--shadow-sm);
}

.kakao-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 7px;
  font-size: calc(12.5px * var(--font-scale, 1.1));
}

.kakao-room {
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: calc(11.5px * var(--font-scale, 1.1));
}

.kakao-sender {
  font-weight: 700;
  color: var(--text);
}

.kakao-type {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4eef0;
  color: var(--text-sub);
  font-size: calc(11px * var(--font-scale, 1.1));
  font-weight: 500;
}

.kakao-date {
  margin-left: auto;
  font-size: calc(12px * var(--font-scale, 1.1));
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.kakao-text,
.kakao-body {
  font-size: calc(14px * var(--font-scale, 1.1));
  line-height: 1.58;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

mark {
  background: #ffe1b5;
  color: var(--text);
  padding: 0 2px;
  border-radius: 3px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.load-more-btn {
  min-width: 160px;
}

/* ==========================================================================
   6. 패널 4: 체크리스트 (#panel-checklist)
   ========================================================================== */

.checklist-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 22px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #fceef2 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.checklist-hero-info {
  flex: 1 1 320px;
}

.checklist-hero-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: calc(11.5px * var(--font-scale, 1.1));
  font-weight: 700;
  margin-bottom: 8px;
}

.checklist-hero-title {
  margin: 0 0 6px;
  font-size: calc(19px * var(--font-scale, 1.1));
  font-weight: 700;
  color: var(--text);
}

.checklist-hero-desc {
  margin: 0;
  font-size: calc(13.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
  line-height: 1.55;
}

.checklist-ext-btn {
  flex-shrink: 0;
  padding: 12px 20px;
  text-decoration: none;
}

.quick-todo-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quick-todo-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-todo-title {
  margin: 0;
  font-size: calc(16px * var(--font-scale, 1.1));
  font-weight: 700;
  color: var(--text);
}

.quick-todo-hint {
  font-size: calc(12px * var(--font-scale, 1.1));
  color: var(--text-muted);
}

.quick-todo-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.quick-todo-input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-size: calc(14px * var(--font-scale, 1.1));
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quick-todo-input:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.quick-todo-add {
  flex-shrink: 0;
  padding: 10px 18px;
}

.quick-todo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #f3e6ea;
  background: var(--bg);
}

.todo-item input[type="checkbox"],
.todo-check {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}

.todo-text {
  flex: 1;
  min-width: 0;
  font-size: calc(14px * var(--font-scale, 1.1));
  word-break: break-word;
}

.todo-item.done .todo-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.todo-del {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: calc(14px * var(--font-scale, 1.1));
  padding: 4px 7px;
  border-radius: 6px;
}

.todo-del:hover {
  background: #fde8ec;
  color: #c62828;
}

/* ---------- 빈 상태 ---------- */

.empty-state {
  padding: 42px 20px;
  text-align: center;
  color: var(--text-sub);
  font-size: calc(14px * var(--font-scale, 1.1));
}

/* ==========================================================================
   7. 모달 (#detailModal, #memoModal)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(35, 31, 32, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: min(86vh, 760px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(35, 31, 32, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.16s ease-out;
}

.modal-memo {
  max-width: 560px;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
}

.modal-title-group {
  min-width: 0;
}

.modal-title {
  margin: 0;
  font-size: calc(17px * var(--font-scale, 1.1));
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.modal-meta {
  margin-top: 4px;
  font-size: calc(12.5px * var(--font-scale, 1.1));
  color: var(--text-sub);
}

.modal-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-sub);
  font-size: calc(14px * var(--font-scale, 1.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.14s ease, color 0.14s ease;
}

.modal-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
}

.detail-body {
  font-size: calc(14.5px * var(--font-scale, 1.1));
  line-height: 1.72;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* 메모 폼 */
.memo-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.form-row-2 .form-field {
  margin-bottom: 0;
}

.form-label {
  font-size: calc(13px * var(--font-scale, 1.1));
  font-weight: 700;
  color: var(--text);
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: calc(14px * var(--font-scale, 1.1));
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-field-check {
  justify-content: center;
}

.imp-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1.5px solid var(--imp-border);
  border-radius: var(--radius-sm);
  background: var(--imp-bg);
  font-size: calc(13px * var(--font-scale, 1.1));
  font-weight: 700;
  color: #b53f00;
  cursor: pointer;
  user-select: none;
}

.imp-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--imp-accent);
  cursor: pointer;
}

/* ==========================================================================
   8. 반응형 (모바일 360px ~ 640px)
   ========================================================================== */

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 12px 6px;
  }

  .header-title {
    font-size: calc(15.5px * var(--font-scale, 1.1));
  }

  .btn-sm {
    padding: 5px 9px;
    font-size: calc(12px * var(--font-scale, 1.1));
  }

  .nav-bar {
    padding: 4px 12px 10px;
    gap: 6px;
  }

  .nav-pill {
    padding: 7px 12px;
    font-size: calc(13px * var(--font-scale, 1.1));
  }

  .app-main {
    padding: 12px 12px 32px;
  }

  .ai-welcome-title {
    font-size: calc(21px * var(--font-scale, 1.1));
  }

  .q-suggest {
    padding: 13px 14px;
    font-size: calc(13.8px * var(--font-scale, 1.1));
  }

  .msg {
    max-width: 95%;
  }

  .ai-form-row {
    padding: 4px 4px 4px 13px;
  }

  .ai-send-btn {
    padding: 9px 15px;
    font-size: calc(13.5px * var(--font-scale, 1.1));
  }

  /* 모바일 공지·자료 표를 깔끔한 카드 행으로 변환 */
  .doc-table-head {
    display: none;
  }

  .doc-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'title title'
      'cat date';
    gap: 6px 10px;
    padding: 13px 14px;
  }

  .doc-title-wrap {
    grid-area: title;
  }

  .doc-cat {
    grid-area: cat;
    font-size: calc(12px * var(--font-scale, 1.1));
  }

  .doc-date {
    grid-area: date;
    text-align: right;
    font-size: calc(12px * var(--font-scale, 1.1));
  }

  .doc-type {
    display: none;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .checklist-hero-card {
    padding: 18px 16px;
  }

  .checklist-ext-btn {
    width: 100%;
  }

  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }

  .modal-card {
    max-height: 90dvh;
    border-radius: 20px 20px 14px 14px;
  }
}

@media (max-width: 400px) {
  .lock-card {
    padding: 28px 20px 24px;
  }

  .header-actions {
    gap: 4px;
  }

  .quick-todo-form {
    flex-direction: column;
  }

  .quick-todo-add {
    width: 100%;
  }
}


/* ── 글자 크기 & 글꼴 설정 컨트롤 (2026-11-22) ── */
:root {
  --font-scale: 1.1;
  --app-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html {
  font-size: calc(16px * var(--font-scale, 1.1));
}
.font-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--surface, #fff);
  border: 1px solid var(--border-strong, #dfc5ce);
  border-radius: 999px;
  padding: 2px;
  gap: 1px;
}
.font-ctrl button {
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--text, #231f20);
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.font-ctrl button:hover {
  background: var(--primary-soft, #fceef2);
  color: var(--primary, #a32a57);
}
.font-ctrl .font-pct {
  font-size: 12px !important;
  color: var(--text-sub, #75686c);
  min-width: 42px;
  text-align: center;
  padding: 4px 4px;
}
.font-ctrl .font-fam {
  border-left: 1px solid var(--border, #eedde2);
  border-radius: 0 999px 999px 0;
  padding: 4px 9px;
  color: var(--primary, #a32a57);
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .header-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
}


/* ── 교회 로고 & 품격 있는 헤더·잠금화면 브랜딩 (2026-11-22) ── */
.app-header {
  background: linear-gradient(180deg, #fffdf9 0%, #fbf5ee 100%) !important;
  border-bottom: 1px solid rgba(176, 141, 87, 0.28) !important;
  box-shadow: 0 2px 12px rgba(80, 56, 30, 0.05);
}
.header-inner {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.header-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
.brand-vdiv {
  width: 1.5px;
  height: 18px;
  background: linear-gradient(180deg, transparent, #b08d57, transparent);
  flex: none;
}
.header-title {
  font-family: 'Gowun Batang', 'Nanum Myeongjo', serif !important;
  font-size: calc(18px * var(--font-scale, 1.1)) !important;
  font-weight: 700 !important;
  color: #2f4363 !important;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.top-meta {
  font-size: 11.5px !important;
  color: #8b8074 !important;
  letter-spacing: 0.01em;
}
#btnLock {
  padding: 5px 10px !important;
  border-radius: 999px !important;
  border-color: rgba(176, 141, 87, 0.4) !important;
  background: #fffdf9 !important;
}
.lock-church-logo {
  height: 36px;
  width: auto;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
}
.lock-divider {
  width: 44px;
  height: 2px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #b08d57, transparent);
}
.lock-title {
  font-family: 'Gowun Batang', 'Nanum Myeongjo', serif !important;
  color: #2f4363 !important;
}
@media (max-width: 600px) {
  .brand-logo-img { height: 24px; }
  .header-title { font-size: calc(16px * var(--font-scale, 1.1)) !important; }
  .top-meta { font-size: 11px !important; }
}


/* ── AI 답변 가독성 대폭 개선: 어절 줄바꿈 · 넉넉한 문단/소제목 여백 · 깔끔한 출처 배지 (2026-11-22) ── */
.ai-bubble,
.msg-bubble,
.ai-answer-body,
.detail-body {
  word-break: keep-all !important;
  overflow-wrap: break-word;
  line-height: 1.8 !important;
  letter-spacing: -0.01em;
}
.ai-bubble,
.msg-bubble {
  padding: 20px 22px !important;
}
.ai-bubble p,
.msg-bubble p {
  margin: 0 0 14px !important;
}
.ai-bubble p:last-child,
.msg-bubble p:last-child {
  margin-bottom: 0 !important;
}
.ai-sec-h {
  margin: 22px 0 10px !important;
  padding: 0 0 6px 10px !important;
  border-left: 3.5px solid #a32a57;
  border-bottom: 1px solid #f2e4e8;
  font-size: calc(15.5px * var(--font-scale, 1.1)) !important;
  font-weight: 700 !important;
  color: #2f4363 !important;
  line-height: 1.45 !important;
}
.ai-sec-h:first-child {
  margin-top: 2px !important;
}
.ai-bubble ul,
.ai-bubble ol,
.msg-bubble ul,
.msg-bubble ol {
  margin: 8px 0 18px !important;
  padding-left: 20px !important;
}
.ai-bubble li,
.msg-bubble li {
  margin-bottom: 9px !important;
  line-height: 1.75 !important;
}
.ai-bubble li:last-child,
.msg-bubble li:last-child {
  margin-bottom: 0 !important;
}
.inline-ref-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px !important;
  margin: 0 3px !important;
  font-size: 11.5px !important;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #e7cfd7;
  background: #fdf4f6;
  color: #a32a57;
  vertical-align: middle;
  cursor: pointer;
}
.inline-ref-chip:hover {
  background: #a32a57;
  color: #fff;
}


/* ── 헤더 틀고정 · 로고 클릭 맨위로 · 로고/제목 확대 · topMeta 숨김 (2026-11-22 v17) ── */
.app-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 999 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}
#topMeta {
  display: none !important;
}
#brandTopBtn {
  background: transparent;
  border: 0;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#brandTopBtn:hover {
  opacity: 0.85;
}
#brandTopBtn:active {
  transform: scale(0.98);
}
.brand-logo-img {
  height: 36px !important;
}
.brand-vdiv {
  height: 24px !important;
  width: 2px !important;
}
.header-title {
  font-size: calc(22px * var(--font-scale, 1.1)) !important;
}
.nav-bar,
.cl-nav-sticky {
  position: static !important;
}
@media (max-width: 600px) {
  .brand-logo-img { height: 30px !important; }
  .brand-vdiv { height: 20px !important; }
  .header-title { font-size: calc(19px * var(--font-scale, 1.1)) !important; }
}


/* ── v23 mobile fixed lock: 모바일 가로 넘침(레이아웃 뷰포트 축소) 완전 차단 + backdrop-filter 제거 ── */
html, body {
  max-width: 100vw !important;
  overflow-x: clip !important;
}
.app-shell, .app-main, .panel {
  max-width: 100% !important;
  overflow-x: clip !important;
}
.app-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
  background: #fffdf9 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ── v32 문서 상세보기 마크다운 HTML 가독성 레이아웃 ── */
.detail-body--md {
  white-space: normal !important;
  font-size: calc(14.5px * var(--font-scale, 1.1));
  line-height: 1.82 !important;
  color: #24303e;
  padding: 20px 24px 28px !important;
}
.detail-body--md .doc-md-h1 {
  margin: 0 0 16px;
  padding: 0 0 12px;
  font-size: calc(19px * var(--font-scale, 1.1));
  font-weight: 800;
  color: #1c2c42;
  border-bottom: 2px solid #e8d9df;
  line-height: 1.4;
}
.detail-body--md .doc-md-h2 {
  margin: 24px 0 12px;
  padding: 8px 14px;
  font-size: calc(16px * var(--font-scale, 1.1));
  font-weight: 700;
  color: #263b59;
  background: #f8f2f5;
  border-left: 4px solid #a32a57;
  border-radius: 0 8px 8px 0;
  line-height: 1.45;
}
.detail-body--md .doc-md-h2:first-child {
  margin-top: 2px;
}
.detail-body--md .doc-md-hr {
  border: 0;
  border-top: 1px solid #ece5e8;
  margin: 20px 0;
}
.detail-body--md p {
  margin: 0 0 12px;
}
.detail-body--md p:last-child {
  margin-bottom: 0;
}
.detail-body--md strong {
  color: #162233;
  font-weight: 700;
}
.detail-body--md code.md-code {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #7c2244;
  background: #f6eef1;
  border: 1px solid #ead8e0;
  border-radius: 6px;
  word-break: break-all;
}
.detail-body--md pre.md-pre {
  margin: 12px 0 16px;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.9em;
  line-height: 1.65;
}
.detail-body--md pre.md-pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: #1f2937;
}
.detail-body--md ul,
.detail-body--md ol {
  margin: 8px 0 16px;
  padding-left: 22px;
}
.detail-body--md li {
  margin-bottom: 8px;
}
.detail-body--md li.md-sub {
  list-style-type: disc;
  margin-left: 18px;
  margin-bottom: 6px;
  color: #3d4b5c;
  font-size: 0.96em;
}
.detail-body--md .doc-md-quote {
  margin: 14px 0 16px;
  padding: 12px 16px;
  background: #fdf9ee;
  border-left: 4px solid #d49b27;
  border-radius: 0 8px 8px 0;
  color: #5b4312;
}
.detail-body--md .doc-md-quote p {
  margin: 0 0 6px;
}
.detail-body--md .doc-md-quote p:last-child {
  margin-bottom: 0;
}
.detail-body--md .doc-md-table-wrap {
  margin: 14px 0 18px;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e4e7ec;
}
.detail-body--md .doc-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93em;
}
.detail-body--md .doc-md-table th {
  background: #f3f5f8;
  color: #24303e;
  font-weight: 700;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #dce1e8;
}
.detail-body--md .doc-md-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: top;
}
.detail-body--md .doc-md-table tr:last-child td {
  border-bottom: 0;
}
.detail-body--md a {
  color: #a32a57;
  text-decoration: underline;
  word-break: break-all;
}
@media (max-width: 600px) {
  .detail-body--md {
    padding: 16px 16px 24px !important;
  }
}
