:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f2f5f7;
  --text: #17191f;
  --muted: #747b86;
  --line: #e3e8ee;
  --primary: #00dc64;
  --primary-dark: #00b84f;
  --primary-soft: #e9fff2;
  --accent: #111111;
  --danger: #d92d20;
  --warning: #fff5d6;
  --warning-line: #f0c04b;
  --shadow: 0 10px 28px rgba(20, 27, 38, .08);
  --radius: 18px;
}

* { box-sizing: border-box; min-width: 0; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Malgun Gothic", sans-serif;
}

html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video, canvas, svg { max-width: 100%; height: auto; }
p, h1, h2, h3, h4, strong, span, a, button, input, textarea, .comment, .community-detail-body, .article-body, .work-summary, .notice-board-row p { overflow-wrap: anywhere; }

.site-header {
  position: static;
  display: block;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(227,232,238,.9);
  box-shadow: 0 8px 24px rgba(20, 27, 38, .05);
  backdrop-filter: blur(16px);
}

.header-inner { display: flex; align-items: center; gap: 20px; width: min(1180px, calc(100% - 32px)); height: 64px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 900; white-space: nowrap; letter-spacing: -0.04em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: linear-gradient(135deg, #00ee72, #00b84f 55%, #111); color: white; font-weight: 900; box-shadow: 0 8px 18px rgba(0,184,79,.22); }
.search-box { display: flex; align-items: center; width: min(380px, 36vw); height: 40px; border: 1px solid #d9f3e4; border-radius: 999px; background: #f8fffb; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,220,100,.08); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 12px; outline: 0; }
.search-box button { display: grid; place-items: center; width: 64px; height: calc(100% - 6px); margin-right: 3px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 13px; font-weight: 900; box-shadow: 0 7px 14px rgba(0,184,79,.22); }
.main-nav { display: flex; gap: 0; width: min(1180px, calc(100% - 32px)); height: 45px; margin: 0 auto; overflow-x: auto; }
.main-nav a { display: grid; place-items: center; min-width: 92px; padding: 0 16px; color: #30343b; font-weight: 900; font-size: 15px; border-bottom: 1px solid transparent; }
.main-nav a:last-child { border-right: 0; }
.main-nav a.active, .main-nav a:hover { color: var(--primary-dark); background: transparent; border-bottom-color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .pill { white-space: nowrap; }

.app-shell { width: min(1180px, calc(100% - 32px)); margin: 22px auto 72px; }
.hero { display: grid; grid-template-columns: 1.45fr 0.8fr; gap: 22px; margin-bottom: 28px; }
.hero-main { min-height: 310px; padding: 34px; border-radius: 28px; background: linear-gradient(135deg, #111827, #263248 55%, #00a936); color: white; box-shadow: var(--shadow); }
.hero-main h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.04em; }
.hero-main p { max-width: 620px; margin: 0 0 24px; color: rgba(255,255,255,0.82); font-size: 18px; line-height: 1.6; }
.hero-side { display: grid; gap: 14px; }

.card { background: var(--surface); border: 1px solid rgba(227,232,238,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.soft-card { padding: 22px; background: var(--surface); border: 1px solid rgba(227,232,238,.9); border-radius: 22px; box-shadow: var(--shadow); }
.card, .soft-card, .work-detail, .community-detail, .article-view, .episode-board, .studio-form { max-width: 100%; overflow: hidden; }
.section { margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head.compact { padding: 16px 18px; margin-bottom: 16px; border: 1px solid rgba(227,232,238,.9); border-radius: 20px; background: linear-gradient(180deg, #fff, #fbfcfd); box-shadow: var(--shadow); }
.section-title { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.section-desc { margin: 6px 0 0; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.webtoon-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 14px; }
.toon-card { display: block; overflow: hidden; background: #fff; }
.toon-card:hover .toon-title { text-decoration: underline; }
.cover { display: block; aspect-ratio: 5 / 6.4; min-height: 0; padding: 0; border: 0; border-radius: 18px; background: #e5e7eb; box-shadow: 0 12px 28px rgba(20,27,38,.12); overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.empty-cover { border: 1px solid #d1d5db; background: #e5e7eb; box-shadow: none; }
.toon-body { padding: 9px 0 0; }
.toon-title { margin: 0 0 5px; font-size: 15px; line-height: 1.3; letter-spacing: -0.03em; }
.toon-meta, .muted { color: var(--muted); font-size: 14px; }
.toon-desc { margin: 6px 0 8px; color: #555; line-height: 1.45; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toon-stats { display: flex; flex-wrap: wrap; gap: 6px; color: #888; font-size: 12px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--surface-2); color: #394254; font-size: 13px; font-weight: 800; }
.pill.paid { background: #fff1e8; color: #b54708; }
.pill.free { background: #e9f9ee; color: var(--primary-dark); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; font-size: 14px; font-weight: 900; box-shadow: 0 8px 18px rgba(0,184,79,.22); transition: transform .14s ease, box-shadow .14s ease, filter .14s ease; }
.button:hover { filter: brightness(.98); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,184,79,.28); }
.button.secondary { background: #eef2f5; color: #222; box-shadow: none; }
.button.secondary:hover { background: #e4e9ee; box-shadow: none; }
.button.outline { background: #fff; color: #263248; border: 1px solid #d7dde5; box-shadow: none; }
.button.outline:hover { border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 8px 18px rgba(20,27,38,.08); }
.button.danger { background: linear-gradient(135deg, #ff6157, var(--danger)); box-shadow: 0 8px 18px rgba(217,45,32,.18); }
.button.block { width: 100%; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 900; }

.tabs { display: flex; gap: 0; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid #222; }
.tab { padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; font-weight: 900; color: #333; box-shadow: inset 0 0 0 1px #e2e7ef; }
.tab.active { background: #111; color: white; box-shadow: none; }
.genre-tabs { margin-top: 0; }

.challenge-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 1px solid rgba(227,232,238,.9); border-radius: 24px; background: radial-gradient(circle at top right, rgba(0,220,100,.14), transparent 34%), linear-gradient(180deg, #fff, #fbfcfd); box-shadow: var(--shadow); }
.challenge-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.challenge-head p { margin: 6px 0 0; color: #777; }
.day-tabs { display: flex; gap: 8px; min-height: 44px; margin: 14px 0 22px; overflow-x: auto; }
.day-tabs a { display: grid; place-items: center; min-width: 64px; padding: 0 16px; border-radius: 999px; background: #fff; font-weight: 900; color: #333; box-shadow: inset 0 0 0 1px #e2e7ef; }
.day-tabs a:first-child { border-left: 0; }
.day-tabs a.active, .day-tabs a:hover { color: #fff; background: #111; box-shadow: none; }
.content-layout { display: grid; grid-template-columns: 1fr 260px; gap: 28px; align-items: start; }
.favorites-layout { margin-top: 18px; }
.ranking-panel { border: 1px solid #dcdcdc; background: #fff; }
.ranking-panel h2 { margin: 0; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 18px; }
.rank-row { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rank-row strong { color: var(--primary-dark); }
.rank-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.rank-row em { grid-column: 2; color: #888; font-size: 12px; font-style: normal; }
.text-link { color: var(--primary-dark); font-weight: 900; }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 900; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 12px 13px; color: var(--text); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.checkbox-line { display: flex; align-items: center; gap: 9px; font-weight: 800; }

.legal-warning { padding: 16px; border: 1px solid var(--warning-line); border-radius: 16px; background: var(--warning); color: #593f00; line-height: 1.55; }
.legal-warning strong { color: #271900; }
.split { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 20px; align-items: start; }

.episode-list { display: grid; gap: 10px; }
.episode-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.episode-title { font-weight: 900; }
.work-detail { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 24px; border: 1px solid rgba(227,232,238,.9); border-radius: 26px; background: radial-gradient(circle at top right, rgba(0,220,100,.13), transparent 36%), #fff; box-shadow: var(--shadow); }
.work-cover { display: block; width: 100%; max-width: 100%; aspect-ratio: 5 / 6.7; padding: 0; border: 0; border-radius: 22px; background: #e5e7eb; box-shadow: 0 14px 30px rgba(20,27,38,.14); overflow: hidden; }
.work-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-info { display: grid; align-content: start; gap: 10px; }
.work-breadcrumb { color: #888; font-size: 12px; }
.work-info h1 { margin: 0; font-size: 34px; letter-spacing: -0.05em; }
.work-author { margin: 0; color: #333; font-weight: 900; }
.work-summary { max-width: 760px; margin: 0; color: #555; line-height: 1.65; }
.work-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; color: #666; font-size: 13px; }
.work-stats span { padding-right: 9px; border-right: 1px solid #ddd; }
.work-stats span:last-child { border-right: 0; }
.work-tabs { display: flex; gap: 8px; height: auto; margin-top: 14px; border: 0; background: transparent; }
.work-tabs a { display: grid; place-items: center; min-width: 104px; min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; font-weight: 900; color: #333; box-shadow: inset 0 0 0 1px #e2e7ef; }
.work-tabs a.active, .work-tabs a:hover { color: #fff; background: #111; box-shadow: none; }
.episode-board { margin-top: 14px; border: 1px solid rgba(227,232,238,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.work-notice { margin-top: 14px; border: 1px solid #cfd8e3; background: #fff; }
.notice-board-list { display: grid; }
.notice-board-row { display: grid; grid-template-columns: 1fr 110px; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e7edf4; font-size: 13px; }
.notice-board-row strong { color: #153f78; }
.notice-board-row span { color: #667085; text-align: right; font-size: 12px; }
.notice-board-row p { grid-column: 1 / -1; margin: 2px 0 0; color: #344054; line-height: 1.6; white-space: pre-wrap; }
.episode-board-head { padding: 16px 18px; border-bottom: 1px solid #eef1f5; background: linear-gradient(180deg, #fff, #fbfcfd); }
.episode-board-head h2 { margin: 0; font-size: 20px; }
.episode-board-head p { margin: 5px 0 0; color: #777; font-size: 13px; }
.episode-table { display: grid; }
.episode-table-row { display: grid; grid-template-columns: 1fr 96px 92px 82px 118px; align-items: center; min-height: 46px; padding: 0 14px; border-bottom: 1px solid #eeeeee; color: #333; font-size: 14px; }
.episode-table-row:hover { background: #fbfbfb; }
.episode-table-head { min-height: 36px; background: #fff; color: #777; font-size: 12px; font-weight: 900; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border: 1px solid rgba(227,232,238,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.viewer-head p { margin: 0 0 5px; color: #777; font-size: 13px; }
.viewer-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.viewer { overflow: hidden; margin-top: 14px; border: 1px solid rgba(227,232,238,.9); border-radius: 22px; background: #fff; color: #222; box-shadow: var(--shadow); }
.viewer-panel { min-height: 280px; display: grid; place-items: center; padding: 44px 24px; background: linear-gradient(135deg, var(--cover-a), var(--cover-b)); color: #fff; text-align: center; }
.viewer-panel h2 { font-size: clamp(30px, 5vw, 60px); margin: 0; }
.viewer-content { width: min(760px, calc(100% - 32px)); min-height: 420px; margin: 0 auto; padding: 54px 0 68px; }
.viewer-content p { margin: 0; font-size: 21px; line-height: 2; white-space: pre-wrap; }
.viewer-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; gap: 6px; }
.float-button { min-width: 76px; min-height: 32px; border: 1px solid #0d458f; border-radius: 3px; background: linear-gradient(180deg, #2f7bd5, #15539f); color: #fff; font-size: 12px; font-weight: 900; cursor: pointer; }
.author-note { margin-top: 14px; padding: 18px 20px; border: 1px solid #d9f5e5; background: linear-gradient(180deg, #f4fff8, #fff); border-radius: 18px; box-shadow: 0 8px 20px rgba(0,184,79,.06); }
.article-view { border: 1px solid #cfd8e3; background: #fff; }
.article-breadcrumb { padding: 9px 12px; border-bottom: 1px solid #e5eaf0; background: #f6f8fb; color: #667085; font-size: 12px; }
.article-head { padding: 16px 18px 12px; border-bottom: 1px solid #e5eaf0; }
.article-head h1 { margin: 0 0 10px; color: #111827; font-size: 25px; line-height: 1.35; letter-spacing: -0.04em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #667085; font-size: 12px; }
.article-meta span { padding-right: 8px; border-right: 1px solid #d7dee8; }
.article-meta span:last-child { border-right: 0; }
.article-body { min-height: 430px; padding: 28px 24px 42px; color: #202633; font-size: 17px; line-height: 2; white-space: pre-wrap; overflow: hidden; }
.article-body p { margin: 0 0 24px; }
.article-author-note { margin: 0 18px 18px; padding: 13px 14px; border: 1px solid #d7dee8; background: #f8fafc; color: #344054; }
.article-author-note p { margin: 6px 0 0; white-space: pre-wrap; }
.rating-panel { margin: 0 18px 18px; padding: 13px 14px; border: 1px solid #d7dee8; background: #fff; }
.rating-stars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rating-stars button { min-height: 28px; padding: 0 9px; border: 1px solid #b9c6d6; border-radius: 3px; background: #f8fafc; color: #153f78; font-size: 12px; font-weight: 900; }
.rating-stars button.active, .rating-stars button:hover { background: #1d62b7; color: #fff; }
.article-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #e5eaf0; background: #f6f8fb; }
.article-comments { margin-top: 14px; border: 1px solid #cfd8e3; background: #fff; }
.article-comments > .form { padding: 14px; }
.article-comments > .table-list { padding: 0 14px 14px; }

.comment { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.comment-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.comment-actions { display: flex; gap: 8px; margin-top: 10px; }
.message-mini { display: inline-flex; align-items: center; min-height: 20px; margin-left: 6px; padding: 0 6px; border: 1px solid #b9c6d6; border-radius: 3px; background: #fff; color: #1d4f91; font-size: 11px; font-weight: 900; vertical-align: middle; }
.table-list { display: grid; gap: 10px; }
.notice-list { margin: 0; padding-left: 18px; line-height: 1.7; color: #3f4757; }
.home-info-section { margin-top: 42px; }
.home-info-section .soft-card { border-top: 1px solid var(--line); }
.home-community-list { display: grid; border-top: 1px solid #eee; margin-top: 12px; }
.home-community-list a { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid #eee; }
.home-community-list a:hover strong { text-decoration: underline; }
.home-community-list strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.home-community-list span { color: #777; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(15, 23, 42, .52); }
.modal-card { position: relative; width: min(520px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 24px; border-radius: 22px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-close { position: absolute; right: 14px; top: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 13px 18px; border-radius: 999px; background: #111827; color: white; font-weight: 900; box-shadow: var(--shadow); }

.empty { padding: 34px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: white; }
.price-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.price-card strong { display: block; font-size: 22px; margin-bottom: 5px; }
.auth-page { display: grid; place-items: start center; min-height: 560px; padding: 54px 0; background: linear-gradient(180deg, #f8fff9, #fff 46%); }
.auth-card { width: min(440px, 100%); padding: 30px; border: 1px solid var(--line); background: #fff; }
.signup-card { width: min(760px, 100%); }
.auth-kicker { margin-bottom: 8px; color: var(--primary-dark); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.terms-panel { display: grid; gap: 10px; max-height: 250px; overflow: auto; padding: 14px; border: 1px solid var(--line); background: #f8fafc; }
.terms-panel strong { display: block; margin-bottom: 5px; color: #153f78; }
.terms-panel p { margin: 0; color: #475467; font-size: 13px; line-height: 1.6; }
.auth-switch { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: #555; text-align: center; }
.auth-switch a { color: var(--primary-dark); font-weight: 900; }
.mypage-stack { display: grid; gap: 20px; }
.withdraw-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border: 1px solid #cfd8e3; border-radius: 4px; background: #fff; }
.withdraw-footer strong { display: block; margin-bottom: 4px; color: #9f2f28; }
.withdraw-footer p { margin: 0; color: #667085; font-size: 13px; }
.withdraw-page { display: grid; gap: 14px; max-width: 680px; margin: 0 auto; }
.message-header-link { font-weight: 900; }
.message-compose { margin-top: 14px; border: 1px solid #cfd8e3; background: #fff; }
.message-compose > .form { padding: 14px; }
.message-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; align-items: start; }
.message-panel, .message-detail { border: 1px solid #cfd8e3; background: #fff; }
.message-list { display: grid; }
.message-row { display: grid; grid-template-columns: 1fr 110px 130px 150px; gap: 8px; align-items: center; min-height: 38px; padding: 8px 10px; border-bottom: 1px solid #e7edf4; font-size: 12px; }
.message-row:hover { background: #f8fafc; }
.message-row.unread { background: #f4f8ff; font-weight: 900; }
.message-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #153f78; }
.message-detail-top { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #e5eaf0; background: #f6f8fb; color: #667085; font-size: 12px; }
.message-detail-head { padding: 16px 18px 12px; border-bottom: 1px solid #e5eaf0; }
.message-detail-head h1 { margin: 0 0 10px; font-size: 22px; }
.message-detail-head div { display: flex; flex-wrap: wrap; gap: 10px; color: #667085; font-size: 13px; }
.message-detail-body { min-height: 240px; padding: 22px 18px; line-height: 1.8; white-space: pre-wrap; }
.message-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 14px; border-top: 1px solid #e5eaf0; background: #f6f8fb; }
.community-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.community-body { margin: 12px 0; color: #444; line-height: 1.6; }
.community-detail { border: 1px solid rgba(227,232,238,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.community-detail-top { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eeeeee; color: #777; font-size: 12px; }
.community-detail-top a { color: var(--primary-dark); font-weight: 900; }
.community-detail-head { padding: 18px 18px 14px; border-bottom: 1px solid #eeeeee; }
.community-detail-head h1 { margin: 0 0 12px; font-size: 24px; line-height: 1.35; letter-spacing: -0.04em; }
.community-detail-head div { display: flex; flex-wrap: wrap; gap: 10px; color: #777; font-size: 13px; }
.community-detail-head strong { color: #222; }
.community-detail-body { min-height: 260px; padding: 24px 18px 34px; color: #333; font-size: 16px; line-height: 1.8; white-space: pre-wrap; overflow: hidden; }
.community-recommend { display: grid; place-items: center; padding: 8px 0 22px; }
.recommend-button { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #c8f5da; border-radius: 999px; background: radial-gradient(circle at top, #fff, var(--primary-soft)); color: var(--primary-dark); font-weight: 900; box-shadow: 0 10px 22px rgba(0,184,79,.13); }
.recommend-button strong { font-size: 22px; line-height: 1; }
.recommend-button span { font-size: 12px; }
.community-detail-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid #eeeeee; background: #fafafa; }
.community-comments { margin-top: 14px; border: 1px solid rgba(227,232,238,.9); border-radius: 22px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.community-comments > .form { padding: 14px; }
.community-comments > .table-list { padding: 0 14px 14px; }
.community-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; border: 1px solid rgba(227,232,238,.9); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.community-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.04em; }
.community-head p { margin: 6px 0 0; color: #777; font-size: 13px; }
.community-tabs { display: flex; height: 36px; margin: 0 0 12px; border: 1px solid #dcdcdc; border-top: 0; background: #fff; overflow-x: auto; }
.community-tabs a { display: grid; place-items: center; min-width: 74px; padding: 0 11px; border-right: 1px solid #ececec; font-size: 13px; font-weight: 800; color: #333; }
.community-tabs a.active, .community-tabs a:hover { color: #fff; background: #333; }
.community-board-layout { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.community-board-side { border: 1px solid rgba(227,232,238,.9); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.community-board-side h2 { margin: 0; padding: 12px 14px; border-bottom: 1px solid #eef1f5; background: #fbfcfd; font-size: 15px; }
.community-board-side a { display: grid; gap: 2px; padding: 8px 11px; border-bottom: 1px solid #eeeeee; }
.community-board-side a:hover, .community-board-side a.active { background: var(--primary-soft); }
.community-board-side strong { font-size: 13px; color: #222; }
.community-board-side span { color: #777; font-size: 11px; line-height: 1.35; }
.community-board-side em { color: var(--primary-dark); font-size: 11px; font-style: normal; font-weight: 800; }
.community-board-main { border: 1px solid rgba(227,232,238,.9); border-radius: 18px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.board-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #eef1f5; background: #fbfcfd; }
.board-title h2 { margin: 0; font-size: 18px; }
.board-title p { margin: 4px 0 0; color: #777; font-size: 12px; }
.board-table { display: grid; }
.board-row { display: grid; grid-template-columns: 86px 1fr 110px 64px 64px; align-items: center; min-height: 36px; padding: 0 10px; border-bottom: 1px solid #eeeeee; color: #333; font-size: 13px; }
.board-row:hover { background: #fafafa; }
.board-header { min-height: 32px; background: #fbfbfb; color: #777; font-size: 12px; font-weight: 800; }
.board-subject { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.board-subject em { color: #f04438; font-style: normal; font-weight: 900; }
.spoiler-badge { display: inline-flex; align-items: center; margin-right: 5px; padding: 1px 5px; border: 1px solid #d92d20; background: #fff3f0; color: #b42318; font-size: 11px; font-style: normal; font-weight: 900; line-height: 1.35; vertical-align: middle; }
.studio-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.studio-side { position: sticky; top: 16px; border: 1px solid var(--line); background: #fff; }
.studio-side h2 { margin: 0; padding: 16px; border-bottom: 1px solid var(--line); font-size: 18px; }
.studio-side a { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; color: #333; }
.studio-side a.active, .studio-side a:hover { color: #fff; background: var(--primary); }
.studio-main { display: grid; gap: 18px; }
.studio-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border: 1px solid var(--line); background: #fff; }
.studio-hero h1 { margin: 0; font-size: 28px; letter-spacing: -0.04em; }
.studio-hero p { margin: 8px 0 0; color: var(--muted); }
.studio-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.studio-summary div { padding: 18px; border: 1px solid var(--line); background: #fff; }
.studio-summary strong { display: block; font-size: 28px; color: var(--primary-dark); }
.studio-summary span { color: var(--muted); font-weight: 800; }
.studio-work { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.studio-work strong { font-size: 18px; }
.studio-work p { margin: 6px 0 0; color: var(--muted); }
.type-badge { display: inline-flex; align-items: center; min-height: 22px; margin-right: 8px; padding: 0 7px; border: 1px solid #b9c6d6; border-radius: 3px; background: #f5f7fb; color: #153f78; font-size: 12px; font-weight: 900; vertical-align: middle; }
.type-badge.novel { color: #6941c6; background: #f4f0ff; border-color: #d6bbfb; }
.tag-editor { gap: 8px; }
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 7px; border: 1px solid #b9c6d6; border-radius: 3px; background: #f5f7fb; color: #153f78; font-size: 12px; font-weight: 900; }
.tag-chip button { display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 999px; background: #dbe4ef; color: #344054; font-size: 12px; line-height: 1; }
.image-editor-list { display: grid; gap: 8px; }
.image-editor-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid #cfd8e3; background: #f8fafc; }
.image-editor-item img { width: 72px; height: 90px; object-fit: cover; border: 1px solid #d7dee8; background: #fff; }
.image-editor-item strong { display: block; font-size: 13px; color: #1d2430; }
.image-editor-item span { color: #667085; font-size: 12px; }
.image-editor-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.image-editor-actions button { min-height: 26px; padding: 0 8px; border: 1px solid #b9c6d6; border-radius: 3px; background: #fff; color: #1d4f91; font-size: 12px; font-weight: 900; }
.episode-editor { gap: 10px; }
.episode-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid #cfd8e3; background: #f8fbff; }
.episode-editor-toolbar button,
.episode-block-head button { min-height: 30px; padding: 0 10px; border: 1px solid #b9c6d6; border-radius: 3px; background: #fff; color: #153f78; font-size: 12px; font-weight: 900; }
.episode-editor-list { display: grid; gap: 10px; }
.episode-editor-block { padding: 10px; border: 1px solid #cfd8e3; background: #fff; }
.episode-block-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #153f78; }
.episode-block-head div { display: flex; flex-wrap: wrap; gap: 5px; }
.episode-image-picker { display: grid; gap: 8px; }
.episode-image-picker img { width: min(100%, 420px); max-height: 520px; object-fit: contain; border: 1px solid #cfd8e3; background: #f8fafc; }
.episode-image-picker span { display: grid; place-items: center; min-height: 120px; border: 1px dashed #b9c6d6; background: #f8fafc; color: #667085; font-size: 13px; }
.episode-editor-preview { padding: 14px; border: 1px solid #dbe4ef; background: #fbfdff; }
.episode-editor-preview:empty::before { content: "미리보기가 여기에 표시됩니다."; color: #98a2b3; }
.studio-form { padding: 22px; border: 1px solid var(--line); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 180px; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.paid-box { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: end; padding: 14px; border: 1px solid var(--line); background: #fafafa; }

@media (max-width: 860px) {
  .site-header { position: static; }
  .header-inner { align-items: stretch; flex-direction: column; gap: 10px; width: calc(100% - 20px); height: auto; padding: 12px 0; }
  .brand { justify-content: center; }
  .search-box { width: 100%; }
  .main-nav { width: 100%; overflow-x: auto; }
  .main-nav a { min-width: max-content; padding: 0 14px; }
  .header-actions { width: 100%; justify-content: flex-start; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
  .header-actions .button, .header-actions .pill { flex: 0 0 auto; }
  .hero, .split, .grid-2, .grid-3, .content-layout, .community-board-layout, .work-detail { grid-template-columns: 1fr; }
  .studio-layout, .studio-summary, .form-row, .paid-box { grid-template-columns: 1fr; }
  .board-row { grid-template-columns: 64px 1fr 72px; }
  .board-row span:nth-child(4), .board-row span:nth-child(5) { display: none; }
  .studio-side { position: static; }
  .studio-work, .studio-hero { align-items: stretch; flex-direction: column; }
  .webtoon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { width: min(100% - 20px, 1180px); margin-top: 16px; }
  .favorites-layout { margin-top: 14px; }
  .episode-row { grid-template-columns: 1fr; }
  .episode-table-row { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .episode-table-head { display: none; }
  .viewer-head { align-items: stretch; flex-direction: column; }
}

@media (min-width: 861px) and (max-width: 1100px) {
  .webtoon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Board-style theme inspired by classic Korean community portals. */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --text: #1d2430;
  --muted: #667085;
  --line: #cfd8e3;
  --primary: #1d62b7;
  --primary-dark: #0f4384;
  --primary-soft: #e9f1ff;
  --shadow: none;
  --radius: 4px;
}

body { background: var(--bg); }

.site-header {
  background: #fff;
  border-bottom: 1px solid #b9c6d6;
  box-shadow: none;
  backdrop-filter: none;
}

.header-inner {
  height: 58px;
  gap: 14px;
}

.brand { font-size: 22px; color: #153f78; }
.brand-logo { display: block; width: 188px; height: auto; }
.brand-mark {
  width: 31px;
  height: 31px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a77cf, #164a93);
  box-shadow: none;
}

.search-box {
  height: 35px;
  border: 1px solid #1d62b7;
  border-radius: 2px;
  background: #fff;
  box-shadow: none;
}

.search-box input { font-size: 13px; }
.search-box button {
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: #1d62b7;
  box-shadow: none;
}

.main-nav {
  height: 39px;
  background: linear-gradient(180deg, #276fc4, #164f9a);
  border: 1px solid #0e4387;
  border-bottom: 0;
}

.main-nav a {
  min-width: 88px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.22);
  border-bottom: 0;
  font-size: 14px;
}

.main-nav a.active,
.main-nav a:hover {
  color: #fff;
  background: #0d3f82;
  border-bottom: 0;
}

.app-shell { width: min(1260px, calc(100% - 24px)); margin-top: 12px; }

.button {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid #0d458f;
  border-radius: 3px;
  background: linear-gradient(180deg, #2f7bd5, #15539f);
  color: #fff;
  font-size: 12px;
  box-shadow: none;
}

.button:hover {
  transform: none;
  filter: none;
  background: linear-gradient(180deg, #236cc3, #0f4384);
  box-shadow: none;
}

.button.secondary {
  border-color: #c3ccd8;
  background: linear-gradient(180deg, #fff, #eef2f6);
  color: #253044;
}

.button.outline {
  border-color: #b9c6d6;
  background: #fff;
  color: #1d4f91;
}

.button.danger {
  border-color: #a6322a;
  background: linear-gradient(180deg, #e4584f, #ba3027);
}

.pill {
  border-radius: 3px;
  background: #f0f4f8;
  font-size: 12px;
}

.challenge-head,
.community-head,
.soft-card,
.work-detail,
.viewer-head,
.viewer,
.episode-board,
.community-detail,
.community-comments,
.community-board-side,
.community-board-main,
.studio-side,
.studio-hero,
.studio-summary div,
.studio-work,
.studio-form,
.price-card,
.auth-card {
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

.challenge-head,
.community-head,
.viewer-head,
.studio-hero {
  padding: 14px 16px;
  border-top: 1px solid #cfd8e3;
  background: #fff;
}

.challenge-head h1,
.community-head h1,
.studio-hero h1,
.work-info h1 {
  color: #1b2c46;
}

.section-head.compact,
.board-title,
.episode-board-head,
.ranking-panel h2,
.community-board-side h2,
.studio-side h2 {
  border: 0;
  border-bottom: 1px solid #cfd8e3;
  border-radius: 0;
  background: linear-gradient(180deg, #f9fbfe, #e9eff7);
  box-shadow: none;
}

.section-head.compact {
  border: 1px solid #cfd8e3;
  border-bottom: 1px solid #cfd8e3;
}

.day-tabs,
.community-tabs {
  gap: 0;
  min-height: 34px;
  height: auto;
  margin: 8px 0 12px;
  border: 1px solid #cfd8e3;
  background: #fff;
  flex-wrap: wrap;
  overflow: visible;
}

.day-tabs a,
.community-tabs a {
  flex: 1 1 86px;
  min-width: 86px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 0;
  border-right: 1px solid #e1e7ef;
  background: #fff;
  color: #243044;
  font-size: 12px;
  box-shadow: none;
}

.day-tabs a.active,
.day-tabs a:hover,
.community-tabs a.active,
.community-tabs a:hover {
  background: #1d62b7;
  color: #fff;
}

.tabs {
  gap: 0;
  border: 1px solid #cfd8e3;
  background: #fff;
}

.tab {
  border-radius: 0;
  border-right: 1px solid #e1e7ef;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}

.tab.active { background: #1d62b7; }

.content-layout { gap: 14px; }
.ranking-panel { border: 1px solid #cfd8e3; background: #fff; }
.rank-row { padding: 8px 10px; border-bottom: 1px solid #e7edf4; font-size: 12px; }
.rank-row strong { color: #1d62b7; }

.webtoon-grid { gap: 16px 10px; }
.cover {
  border-radius: 4px;
  border: 1px solid #bfc9d5;
  box-shadow: none;
}

.toon-title { font-size: 14px; }
.toon-desc { font-size: 12px; }
.toon-stats { font-size: 11px; }

.work-detail { border-top: 1px solid #cfd8e3; }
.work-cover { border-radius: 4px; box-shadow: none; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; color: #667085; font-size: 12px; }
.tag-row span { padding: 3px 7px; border: 1px solid #cfd8e3; background: #f5f7fb; }
.work-tabs { gap: 0; border: 1px solid #cfd8e3; background: #fff; }
.work-tabs a {
  min-height: 34px;
  border-radius: 0;
  border-right: 1px solid #e1e7ef;
  background: #fff;
  box-shadow: none;
  font-size: 12px;
}
.work-tabs a.active,
.work-tabs a:hover { background: #1d62b7; color: #fff; }

.episode-table-row,
.board-row {
  min-height: 34px;
  font-size: 12px;
  border-bottom: 1px solid #e7edf4;
}

.episode-table-head,
.board-header {
  background: #f2f6fb;
  color: #43546b;
}

.community-board-layout { grid-template-columns: 190px 1fr 220px; gap: 10px; align-items: start; }
.community-board-side a { padding: 7px 9px; }
.community-board-side a:hover,
.community-board-side a.active { background: #edf4ff; }
.community-board-side strong { color: #163b70; }
.board-right { border: 1px solid #cfd8e3; background: #fff; }
.board-right h2 { margin: 0; padding: 8px 10px; border-bottom: 1px solid #cfd8e3; background: linear-gradient(180deg, #f9fbfe, #e9eff7); color: #153f78; font-size: 13px; }
.board-right .rank-row { grid-template-columns: 22px 1fr; padding: 7px 8px; }
.board-right .home-community-list { margin: 0; padding: 0 8px 8px; border-top: 0; }
.board-right .home-community-list a { padding: 8px 0; }
.board-tools { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid #e7edf4; background: #fbfdff; color: #667085; font-size: 12px; }
.board-tools a { color: #1d62b7; font-weight: 800; }
.board-tools span { margin-left: auto; }

.community-detail-top,
.community-detail-actions {
  background: #f5f8fc;
}

.community-detail-head h1 { font-size: 21px; }
.community-detail-body { font-size: 14px; }
.recommend-button {
  border-color: #9eb8d8;
  background: linear-gradient(180deg, #fff, #edf4ff);
  color: #1d62b7;
  box-shadow: none;
}

.input,
.textarea,
.select {
  border-radius: 3px;
  border-color: #bfc9d5;
  font-size: 13px;
}

.legal-warning {
  border-radius: 3px;
}
.upload-guide { padding: 14px 16px; border: 1px solid #9eb8d8; background: #f4f8ff; color: #243044; }
.upload-guide strong { display: block; margin-bottom: 8px; color: #153f78; }
.upload-guide ul { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 13px; }
.episode-image-list { display: grid; gap: 14px; margin-top: 28px; }
.episode-image-list img { display: block; width: 100%; height: auto; border: 1px solid #cfd8e3; background: #fff; }
.episode-content-blocks { display: grid; gap: 18px; }
.episode-content-blocks h2 { margin: 8px 0 0; font-size: 28px; line-height: 1.3; letter-spacing: -0.04em; }
.episode-content-blocks p { margin: 0; white-space: pre-wrap; }
.episode-content-blocks blockquote { margin: 0; padding: 14px 16px; border-left: 4px solid #1d62b7; background: #f4f8ff; color: #243044; }
.episode-content-blocks figure { margin: 0; display: grid; gap: 8px; }
.episode-content-blocks figure img { width: 100%; height: auto; border: 1px solid #cfd8e3; background: #fff; }
.episode-content-blocks figcaption { color: #667085; font-size: 13px; text-align: center; }
.episode-content-blocks hr { width: 100%; border: 0; border-top: 1px solid #cfd8e3; }
.write-layout { display: grid; grid-template-columns: 1fr 260px; gap: 14px; align-items: start; }
.write-guide { padding: 14px; border: 1px solid #cfd8e3; background: #fff; }
.write-guide h2 { margin: 0 0 10px; font-size: 16px; color: #153f78; }
.write-guide ul { margin: 0; padding-left: 18px; line-height: 1.7; color: #475467; font-size: 12px; }
.editor-textarea { min-height: 260px; }

@media (max-width: 860px) {
  .site-header { overflow: visible; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 9px;
    width: calc(100% - 20px);
    height: auto;
    min-height: 0;
    padding: 12px 0 10px;
  }
  .brand {
    justify-content: center;
    min-width: 0;
  }
  .write-layout { grid-template-columns: 1fr; }
  .message-layout { grid-template-columns: 1fr; }
  .message-row { grid-template-columns: 1fr; gap: 4px; }
  .message-actions { justify-content: stretch; flex-wrap: wrap; }
  .image-editor-item { grid-template-columns: 58px 1fr; }
  .image-editor-item img { width: 58px; height: 76px; }
  .image-editor-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .brand-logo { width: min(166px, 58vw); }
  .search-box {
    width: 100%;
    max-width: none;
    height: 36px;
  }
  .header-actions {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }
  .header-actions .button,
  .header-actions .pill {
    flex: 0 1 auto;
    white-space: nowrap;
  }
  .main-nav {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 20px);
    height: auto;
    min-height: 38px;
    margin: 0 auto;
    overflow: visible;
    align-content: stretch;
  }
  .main-nav a {
    flex: 1 1 74px;
    min-width: 72px;
    height: 37px;
    padding: 0 10px;
    white-space: nowrap;
    line-height: 1;
  }
  .auth-page { min-height: auto; padding: 18px 0 42px; }
  .auth-card { padding: 18px; }
  .signup-card .form-row { grid-template-columns: 1fr; }
  .terms-panel { max-height: 220px; }
  .community-board-layout { grid-template-columns: 1fr; }
  .community-board-main { order: 1; }
  .community-board-side { order: 2; }
  .community-tabs { display: flex; flex-wrap: wrap; height: auto; overflow: visible; }
  .community-tabs a { flex: 1 1 82px; min-width: 82px; }
  .community-board-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-board-side h2 { grid-column: 1 / -1; }
  .board-right { display: none; }
  .viewer-float { right: 10px; bottom: 10px; }
}
