/* ============================================================================
   Moart 커뮤니티(cafe.moart.kr) 공통 디자인 시스템 (외부 캐싱 CSS)
   Editorial Daylight (#FFFFFF / #F4F5F7) + Obsidian (#0B0E14) + Royal Blue (#1858FA)
   ============================================================================ */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --subtle: #f4f5f7;
  --ink: #0b0e14;
  --ink-strong: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --brand: #1858fa;
  --brand-hover: #1246d6;
  --brand-soft: #eff4ff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --success-border: #34d399;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-border: #fecaca;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.03);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: clip;
  word-break: keep-all;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Accessibility Helpers & Global Focus Ring */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.tab:focus-visible,
.nav-link:focus-visible,
.qna-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Top GNB — Editorial Daylight (User) & Dark Console (Admin) */
.gnb { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); color: var(--ink); border-bottom: 1px solid var(--line); }
.gnb.gnb-admin { background: var(--ink-strong); color: #f8fafc; border-bottom: 1px solid rgba(255,255,255,0.08); }
.gnb-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-badge { background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gnb-admin .brand-badge { background: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); transition: background .15s, color .15s; white-space: nowrap; }
.nav-link:hover { background: var(--subtle); color: var(--ink); }
.nav-link.active { background: var(--subtle); color: var(--ink); }
.gnb-utils { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Unified Button System (Primary / Secondary + 3 Sizes) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, color .15s;
}
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 14.5px; font-weight: 700; border-radius: 10px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; height: 36px; padding: 0 15px; font-size: 12.5px; font-weight: 700; }
.btn-dark:hover { background: #1e293b; }
.btn-emerald { background: var(--emerald); color: #fff; box-shadow: var(--shadow-xs); }
.btn-emerald:hover { background: #047857; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink-2); height: 36px; padding: 0 13px; font-size: 12.5px; border-radius: 999px; }
.btn-outline:hover { background: var(--subtle); border-color: var(--line-strong); color: var(--ink); }
.gnb-admin .btn-outline { background: transparent; border-color: rgba(255,255,255,0.24); color: #f8fafc; border-radius: 8px; }
.gnb-admin .btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-light { background: #fff; border-color: var(--line-strong); color: var(--ink-2); box-shadow: var(--shadow-xs); }
.btn-light:hover { background: var(--subtle); border-color: #9ca3af; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.pt-pill {
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px;
  background: var(--brand-soft); border: 1px solid #dbeafe;
  color: var(--brand); border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}

/* Page Shell & Cards */
main.page-body { min-height: calc(100vh - 220px); padding: 32px 0 84px; }
.page-header { margin-bottom: 24px; }
.page-header h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.page-header p { margin: 0; font-size: 14px; color: var(--muted); }
.hero {
  background: var(--ink-strong);
  background-image: radial-gradient(circle at 90% 10%, rgba(24, 88, 250, 0.35), transparent 48%), radial-gradient(circle at 10% 95%, rgba(5, 150, 105, 0.25), transparent 45%);
  color: #fff; border-radius: var(--radius-lg); padding: 30px 32px; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero h1 { margin: 0 0 8px; font-size: 25px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.3; }
.hero p { margin: 0; color: #cbd5e1; font-size: 14px; max-width: 820px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}
.card h2 { margin: 0 0 6px; font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; }
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }

/* Precision SaaS Grids */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.workspace-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sticky-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }

/* Precision SaaS Form System */
.form-sheet {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.form-sheet-head {
  padding: 22px 28px; border-bottom: 1px solid var(--line); background: #ffffff;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.form-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.form-sheet-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.form-section { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: none; }
.form-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.form-section-title { font-size: 14.5px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.form-section-sub { font-size: 12.5px; color: var(--muted); }
.field-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; }
.field-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; align-items: start; }
.field-grid-1 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.span-2 { grid-column: 1 / -1; }

.form-row { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.form-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.form-row label {
  display: flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  margin-bottom: 6px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.form-row-head label { margin-bottom: 0; }
.char-counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.req-dot { color: var(--brand); font-weight: 800; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.draft-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 28px; background: var(--brand-soft); border-bottom: 1px solid #dbeafe;
  font-size: 12.5px; color: var(--brand); font-weight: 600;
}
.draft-bar button {
  background: transparent; border: none; color: var(--ink-2); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 2px 4px;
}

.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 13.5px; font-family: inherit; color: var(--ink); background: #ffffff;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #9ca3af; }
.input:hover { border-color: #9ca3af; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 88, 250, 0.14); }
select.input {
  appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; cursor: pointer;
}
textarea.input { height: auto; min-height: 104px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.input-sm, select.input-sm { height: 34px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
select.input-sm { padding: 0 24px 0 9px; background-position: right 6px center; min-width: 74px; }

/* Prefix Channel Input */
.input-group { display: flex; align-items: stretch; height: 42px; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 88, 250, 0.14); }
.input-prefix { display: inline-flex; align-items: center; justify-content: center; min-width: 102px; padding: 0 12px; background: var(--subtle); border-right: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.input-group input { flex: 1; min-width: 0; border: none; outline: none; padding: 0 12px; font-size: 13px; font-family: inherit; color: var(--ink); background: transparent; }
.input-group input::placeholder { color: #9ca3af; }

/* Consent Box & Form Footer */
.consent-box { display: flex; flex-direction: column; gap: 10px; background: var(--subtle); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.consent-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.consent-item input[type="checkbox"] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.form-sheet-foot { margin-top: auto; padding: 18px 28px; background: var(--subtle); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

.alert-ok { display: flex; align-items: center; gap: 10px; background: var(--emerald-soft); border: 1px solid #a7f3d0; color: #065f46; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.alert-err { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--danger-soft); border: 1px solid var(--danger-border); color: #991b1b; padding: 12px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }

/* Showcase Cards, Article Prose, Q&A Cards, Empty State & Pagination */
.showcase-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .15s, box-shadow .15s, border-color .15s; }
.showcase-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--line-strong); }
.showcase-thumb { position: relative; width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.showcase-card-foot { margin-top: auto; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--subtle); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

.qna-list { display: flex; flex-direction: column; gap: 10px; }
.qna-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 18px 22px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.qna-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.qna-card-main { min-width: 0; flex: 1; }
.qna-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 7px; }
.qna-card-title {
  margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.42;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qna-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); }
.qna-card-stats { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qna-stat-pill {
  min-width: 58px; padding: 8px 10px; border-radius: 10px; background: var(--subtle);
  text-align: center; border: 1px solid var(--line);
}
.qna-stat-pill.solved { background: var(--emerald-soft); border-color: #a7f3d0; color: #047857; }
.qna-stat-pill strong { display: block; font-size: 15px; font-weight: 800; line-height: 1.1; }
.qna-stat-pill span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.seg-ctrl {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--subtle); border: 1px solid var(--line); border-radius: 10px;
}
.seg-item {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 7px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.seg-item:hover { color: var(--ink); }
.seg-item.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.empty-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--subtle); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
.empty-box h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.empty-box p { margin: 0; max-width: 460px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.empty-tip {
  background: var(--subtle); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 8px;
}

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager-btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
}
.pager-btn:hover { border-color: var(--line-strong); background: var(--subtle); }
.pager-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager-btn[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }

.article-prose { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.article-prose h2 { margin: 26px 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.article-prose h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.article-prose p { margin: 0 0 14px; }
.article-prose ul, .article-prose ol { margin: 0 0 14px; padding-left: 22px; }
.article-prose li { margin-bottom: 6px; }
.article-prose blockquote { margin: 16px 0; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--subtle); border-radius: 0 8px 8px 0; color: var(--ink-2); }
.article-prose code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.article-prose a { color: var(--brand); text-decoration: underline; }
.answer-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 14px; box-shadow: var(--shadow-xs); }
.answer-card.accepted { border-color: var(--success-border); background: #f0fdf9; }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }

/* Tabs, Badges, Tables */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.tabs-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; flex-shrink: 0;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  background: #fff; border: 1px solid var(--line); color: var(--muted); transition: all .15s;
}
.tab:hover { border-color: var(--line-strong); color: var(--ink); }
.tab.active { background: var(--ink-strong); border-color: var(--ink-strong); color: #fff; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #f3f4f6; color: #374151; white-space: nowrap; }
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-green { background: var(--emerald-soft); color: #047857; }
.badge-amber { background: var(--amber-soft); color: #b45309; }
.badge-red { background: #fee2e2; color: #b91c1c; }

.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); overflow-x: auto; box-shadow: var(--shadow-xs); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl th { background: var(--subtle); font-weight: 700; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tbl tbody tr:hover { background: #fcfcfd; }

/* Filter & Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.toolbar .input, .toolbar select.input { height: 36px; font-size: 13px; }
.toolbar .btn { height: 36px; padding: 0 13px; font-size: 12.5px; }

/* Footer, Mobile Nav, Floating + FAB & Bottom Sheet */
.site-footer { background: var(--ink-strong); color: #94a3b8; padding: 30px 0 88px; font-size: 12.5px; border-top: 1px solid #1e293b; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; color: #e2e8f0; font-weight: 600; }
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); height: 62px; grid-template-columns: repeat(5, 1fr); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mobile-nav a.active { color: var(--brand); }

.mobile-fab {
  display: none; position: fixed; right: 16px; bottom: 76px; z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: var(--brand); color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -4px rgba(24, 88, 250, 0.5);
  transition: transform .15s ease, background .15s ease;
}
.mobile-fab:hover { background: var(--brand-hover); transform: scale(1.04); }

.moart-sheet-backdrop {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(15, 23, 42, 0.52); backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  animation: moartFadeIn .15s ease-out;
}
.moart-sheet-backdrop[hidden] { display: none; }
.moart-sheet {
  width: 100%; max-width: 520px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 16px 20px 28px;
  box-shadow: 0 -16px 40px rgba(15, 23, 42, 0.22);
}
.moart-sheet-handle { width: 40px; height: 4px; border-radius: 999px; background: #cbd5e1; margin: 0 auto 14px; }
.moart-sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.moart-sheet-head h3 { margin: 0; font-size: 16.5px; font-weight: 800; color: var(--ink); }
.moart-sheet-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--subtle); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.moart-sheet-list { display: flex; flex-direction: column; gap: 10px; }
.moart-sheet-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line); background: #fff;
  transition: border-color .15s, background .15s;
}
.moart-sheet-item:hover { border-color: var(--brand); background: var(--brand-soft); }
.moart-sheet-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.moart-sheet-item strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.moart-sheet-item span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* Admin Shell */
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - 74px); }
.admin-side { background: var(--ink-strong); color: #cbd5e1; padding: 18px 14px; border-right: 1px solid #1e293b; }
.admin-side a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; color: #cbd5e1; transition: background .15s; }
.admin-side a.active, .admin-side a:hover { background: #1e293b; color: #fff; }
.admin-side a.active { background: var(--brand); color: #fff; }
.admin-main { padding: 26px 30px 60px; min-width: 0; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 0; }
.progress-track { height: 8px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-fill { height: 100%; background: var(--emerald); border-radius: 999px; }

/* Global SaaS Modal Popup System */
.moart-modal-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(15, 23, 42, 0.56); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: moartFadeIn .15s ease-out; }
.moart-modal-dialog { width: 100%; max-width: 440px; background: #ffffff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.28); overflow: hidden; animation: moartPopIn .18s cubic-bezier(.16, 1, .3, 1); }
.moart-modal-head { padding: 24px 24px 20px; display: flex; align-items: flex-start; gap: 14px; }
.moart-modal-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.moart-modal-icon.tone-warning { background: var(--amber-soft); color: #b45309; }
.moart-modal-icon.tone-error { background: #fee2e2; color: #dc2626; }
.moart-modal-icon.tone-success { background: var(--emerald-soft); color: #059669; }
.moart-modal-icon.tone-info { background: var(--brand-soft); color: var(--brand); }
.moart-modal-copy { flex: 1; min-width: 0; }
.moart-modal-title { margin: 0 0 6px; font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.moart-modal-message { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; word-break: keep-all; }
.moart-modal-foot { padding: 14px 24px; background: var(--subtle); border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
@keyframes moartFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes moartPopIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 980px) {
  .workspace-split, .admin-shell { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .gnb-inner { padding: 0 14px; height: 60px; gap: 8px; }
  .wrap { padding: 0 14px; }
  .brand { gap: 7px; }
  .brand-logo { height: 28px; }
  .brand-badge { font-size: 11px; padding: 2px 7px; }
  .gnb-utils { gap: 6px; }
  .gnb-utils .btn, .gnb-utils .btn-dark, .gnb-utils .btn-outline, .gnb-utils .pt-pill { height: 32px; padding: 0 10px; font-size: 12px; }
  .gnb-utils .btn-hide-mobile { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .field-grid-2, .field-grid-3 { grid-template-columns: 1fr; }
  .mobile-nav { display: grid; }
  .mobile-fab { display: inline-flex; }
  .qna-card { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .qna-card-stats { justify-content: flex-start; }
  .qna-stat-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; min-width: 0; }
  .qna-stat-pill strong { font-size: 13px; }
  .qna-stat-pill span { margin-top: 0; }
  .form-section, .form-sheet-head, .form-sheet-foot { padding-left: 18px; padding-right: 18px; }
}

/* 콘텐츠 신고 SaaS 모달 */
.moart-report-dialog { max-width: 480px; }
.moart-report-body { padding: 0 22px 18px; display: grid; gap: 14px; }
.moart-report-reasons { display: grid; gap: 8px; }
.moart-report-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  background: #fff; transition: border-color 0.12s, background 0.12s;
}
.moart-report-opt:hover { border-color: var(--brand); background: #f8faff; }
.moart-report-opt input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.moart-report-detail-wrap { display: grid; gap: 6px; }
.moart-report-detail-wrap label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.moart-report-detail-wrap textarea { min-height: 76px; resize: vertical; }
