/* 몬크의 기존 토큰을 사용하는 커뮤니티 화면 공용 스타일. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'SUIT Variable', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; color: var(--text-muted); background: var(--bg2); }
::selection { background: var(--action-tint); color: var(--action); }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
input, textarea { caret-color: var(--action); }
.cm-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.cm-icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cm-app { max-width: 740px; margin: 0 auto; padding-top: 60px; }
.cm-demo { padding: 10px 20px 0; color: var(--text-dim); font-size: 12px; display: flex; justify-content: space-between; }
.cm-demo span { color: var(--text-dim); }
.cm-page-head { padding: 20px 20px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cm-page-head > div { min-width: 0; }
.cm-page-head h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.025em; font-weight: 800; line-height: 1.3; }
.cm-page-head p { margin: 0; max-width: 48ch; font-size: 14px; color: var(--text-muted); line-height: 1.7; text-wrap: pretty; }
.cm-tabs { display: flex; padding: 0 20px; gap: 24px; border-bottom: 1px solid var(--border); }
.cm-tabs a { position: relative; min-width: 44px; min-height: 48px; display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--text-muted); text-decoration: none; white-space: nowrap; }
.cm-tabs a[aria-current="page"] { color: var(--action); }
.cm-tabs a[aria-current="page"]::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--action); }
.cm-main { padding: 20px 20px 36px; min-height: 460px; }
.cm-main h2, .cm-main h3, .cm-sheet h2, .cm-sheet h3 { color: var(--text); }
.cm-main h2, .cm-sheet h2 { font-size: 19px; font-weight: 800; line-height: 1.5; margin: 0; text-wrap: balance; }
.cm-main h3, .cm-sheet h3 { font-size: 16px; font-weight: 700; line-height: 1.5; margin: 0; }
.cm-main p, .cm-sheet p { line-height: 1.65; }
.cm-main a, .cm-sheet a { color: var(--action); text-underline-offset: 4px; }
.cm-section { margin-top: 28px; }
.cm-section:first-child { margin-top: 0; }
.cm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cm-section-head h2 { font-size: 19px; }
.cm-muted { color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.cm-caption { font-size: 12px; line-height: 1.6; color: var(--text-dim); }
.cm-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.cm-label { display: block; font-size: 14px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.cm-btn, .cm-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; font-size: 14px; font-weight: 700; border: 1px solid var(--action); border-radius: var(--radius-xs, 8px); text-decoration: none; }
.cm-btn, .cm-main a.cm-btn, .cm-sheet a.cm-btn { background: var(--action); color: white; }
.cm-btn-ghost { background: white; color: var(--action); border-color: var(--border-strong); }
.cm-full { width: 100%; }
.cm-icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: var(--radius-xs, 8px); background: transparent; color: var(--text-muted); flex-shrink: 0; }
.cm-notification { position: relative; margin: -2px -8px 0 0; }
.cm-notification-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--action); border: 1px solid white; }
.cm-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; font-size: 12px; line-height: 1.5; font-weight: 700; border-radius: var(--radius-xs, 8px); color: var(--action); background: var(--action-tint); }
.cm-tag .cm-icon { width: 14px; height: 14px; }
.cm-tag-neutral { color: var(--text-muted); background: var(--bg2); }
.cm-tag-outline { background: white; border: 1px solid var(--border); }
.cm-tag8 { display: inline-flex; padding: 4px 8px; border-radius: var(--radius-xs,8px); background: var(--action-tint); color: var(--action); font-size: 12px; font-weight: 700; line-height: 1.5; }
.cm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cm-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bg3); color: var(--action); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.cm-avatars { display: flex; gap: 4px; }
.cm-divider { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.cm-input, .cm-field input, .cm-field textarea, .cm-field select { width: 100%; min-height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs, 8px); background: white; color: var(--text); padding: 12px; font-size: 16px; line-height: 1.5; }
.cm-field { margin-bottom: 18px; }
.cm-field textarea { min-height: 128px; resize: vertical; }
.cm-field select { padding-right: 36px; }
.cm-input::placeholder, .cm-field input::placeholder, .cm-field textarea::placeholder { color: var(--text-dim); opacity: 1; }
.cm-search { position: relative; margin-bottom: 16px; }
.cm-search .cm-icon { position: absolute; left: 12px; top: 14px; color: var(--text-muted); }
.cm-search .cm-input { padding-left: 42px; background: var(--bg2); }
.cm-empty { padding: 48px 16px; text-align: center; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.cm-empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 8px; }
.cm-empty .cm-btn-ghost { margin-top: 12px; }
.cm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; }
.cm-toolbar select { min-height: 44px; max-width: 150px; border: 0; background: white; font-size: 16px; color: var(--text-muted); padding: 0 24px 0 0; }
.cm-toolbar select:focus-visible { outline-offset: 0; }
.cm-filter-tabs { display: flex; gap: 8px; padding-bottom: 4px; }
.cm-filter-tabs button { min-width: 62px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs, 8px); color: var(--text-muted); background: white; font-size: 14px; font-weight: 700; }
.cm-filter-tabs button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: white; }
.cm-thread-list { border-top: 1px solid var(--border); }
.cm-post { padding: 20px 0 16px; border-bottom: 1px solid var(--border); }
.cm-post-head { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.cm-post-title { display: block; width: 100%; padding: 0; min-height: 44px; text-align: left; border: 0; background: white; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.55; }
.cm-post-excerpt { margin: 8px 0 10px; color: var(--text-muted); font-size: 14px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-post-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-dim); font-size: 12px; }
.cm-post-foot .cm-row { gap: 6px; }
.cm-post-tools { display: flex; gap: 8px; }
.cm-reply-btn { display: inline-flex; align-items: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 0 6px; background: white; border: 0; color: var(--text-muted); font-size: 12px; }
.cm-reply-btn .cm-icon { width: 16px; height: 16px; }
.cm-icon-btn[aria-pressed="true"] { color: var(--action); background: var(--action-tint); }
.cm-create-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.cm-create-row p { margin: 0; font-size: 14px; color: var(--text-muted); }
.cm-thread-body { font-size: 16px; line-height: 1.8; margin: 18px 0 24px; white-space: pre-wrap; }
.cm-comment { padding: 18px 0; border-top: 1px solid var(--border); }
.cm-comment p { margin: 10px 0 0; font-size: 14px; }
.cm-comment .cm-caption { margin-left: auto; }
.cm-form-error { color: #a22b22; font-size: 14px; margin: 8px 0 16px; }
.cm-sheet-backdrop { position: fixed; inset: 0; background: rgba(20,32,52,.46); z-index: 10001; display: flex; justify-content: center; align-items: flex-end; }
.cm-sheet { width: 100%; max-width: 640px; max-height: 88dvh; background: white; border-radius: var(--radius-md, 20px) var(--radius-md, 20px) 0 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -6px 32px rgba(20,32,52,.12); }
.cm-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px; position: sticky; top: 0; background: white; z-index: 1; border-bottom: 1px solid var(--border); }
.cm-sheet-head h2 { flex: 1; min-width: 0; margin: 0; padding-top: 8px; font-size: 19px; font-weight: 800; line-height: 1.5; text-align: left; text-wrap: balance; }
.cm-sheet-body { padding: 24px 20px calc(28px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 1.7; text-align: left; }
/* 설명과 버튼을 분리하고 한글은 단어 단위로, 긴 주소만 칸 안에서 줄바꿈한다. */
.cm-sheet-body p { margin: 0 0 16px; text-wrap: pretty; }
.cm-sheet-body > :last-child, .cm-sheet-body form > :last-child { margin-bottom: 0; }
.cm-sheet-body .cm-help { font-size: 14px; line-height: 1.7; }
.cm-sheet-body .cm-caption { font-size: 12px; }
.cm-sheet-body .cm-check { line-height: 1.7; }
.cm-sheet-body .cm-list-row > b { display: block; font-size: 16px; line-height: 1.6; }
.cm-sheet-body .cm-list-row:first-child { padding-top: 0; }
.cm-login-copy { margin-bottom: 24px; }
.cm-login-copy p { margin-bottom: 12px; }
.cm-login-copy p:last-child { margin-bottom: 0; color: var(--text-muted); }
.cm-login-next { display: block; }
.cm-dialog:has(.cm-login-copy) { max-width: 480px; }
.cm-sheet-open { overflow: hidden; }
.cm-toast { position: fixed; z-index: 10003; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); border-radius: var(--radius-xs, 8px); padding: 12px 18px; color: white; background: var(--action-dark); font-size: 14px; line-height: 1.5; box-shadow: 0 4px 16px rgba(20,32,52,.2); }
.cm-footer { border-top: 1px solid var(--border); margin: 0 20px; padding: 20px 0 28px; font-size: 14px; font-weight: 800; color: var(--action); display: flex; justify-content: space-between; gap: 12px; }
.cm-footer span { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.cm-alert-row { display: flex; gap: 12px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); font-size: 14px; }
.cm-alert-row > .cm-icon { color: var(--action); margin-top: 3px; }
.cm-alert-row p { color: var(--text-muted); margin: 8px 0 12px; }
.cm-study-search { position: relative; display: block; margin-bottom: 12px; }
.cm-study-search > .cm-icon { position: absolute; left: 12px; top: 14px; color: var(--text-muted); }
.cm-study-search .cm-input { padding-left: 42px; background: var(--bg2); }
.cm-study-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.cm-study-filters button { min-height: 44px; padding: 8px 12px; font-size: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs, 8px); background: white; color: var(--text-muted); }
.cm-study-filters button[aria-pressed="true"] { border-color: var(--action); color: var(--action); background: var(--action-tint); }
.cm-studies-list { display: grid; gap: 16px; }
.cm-study { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-sm, 14px); background: white; }
.cm-study-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 12px; color: var(--text-dim); }
.cm-study-title { font-size: 19px; font-weight: 800; line-height: 1.45; margin: 0 0 12px; color: var(--text); }
.cm-study button.cm-study-title { display: block; width: 100%; background: white; border: 0; padding: 0; text-align: left; min-height: 44px; }
.cm-study-title button { text-align: left; font: inherit; line-height: inherit; min-height: 44px; color: inherit; background: white; border: 0; padding: 0; }
.cm-study-meta { display: grid; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.55; }
.cm-study-meta .cm-icon { width: 16px; height: 16px; }
.cm-study-condition { font-size: 14px; padding-top: 14px; border-top: 1px solid var(--border); line-height: 1.7; margin: 0; }
.cm-study-condition b { font-size: 12px; color: var(--text-dim); display: block; font-weight: 400; margin-bottom: 4px; }
.cm-study-condition > span { display: block; color: var(--text-dim); font-size: 12px; margin-bottom: 4px; }
.cm-study-proof { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; padding: 12px 0 0; font-size: 12px; color: var(--action); line-height: 1.7; }
.cm-study-proof .cm-icon { width: 14px; height: 14px; }
.cm-study-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.cm-study-detail-list { display: grid; gap: 16px; }
.cm-study-detail-list p { font-size: 14px; margin: 0; }
.cm-study-member { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cm-study-member p { margin: 0; }
.cm-study-member > .cm-row { justify-content: space-between; }
.cm-study-member-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-study-detail-list { margin: 20px 0 28px; }
.cm-study-detail-list > div { display: flex; gap: 12px; font-size: 14px; }
.cm-study-detail-list dt { flex: 0 0 70px; font-size: 12px; color: var(--text-dim); padding-top: 2px; }
.cm-study-detail-list dd { margin: 0; line-height: 1.6; }
.cm-study-subtitle { margin-top: 24px !important; margin-bottom: 12px !important; }
.cm-study > .cm-row:last-child { justify-content: space-between; margin-top: 12px; }
.cm-study-member .cm-btn-ghost { margin-left: auto; }
.cm-profile-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 20px; }
.cm-profile-head > .cm-avatar { width: 60px; height: 60px; font-size: 24px; background: var(--action); color: white; border-radius: var(--radius-sm, 14px); }
.cm-profile-name { font-size: 24px; font-weight: 800; line-height: 1.3; margin: 0 0 6px; }
.cm-profile-bio { font-size: 14px; color: var(--text-muted); margin: 8px 0 0; }
.cm-proof-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border: 1px solid var(--border); border-radius: var(--radius-sm, 14px); overflow: hidden; margin: 20px 0 0; }
.cm-proof { padding: 18px 14px; min-width: 0; }
.cm-proof-grid button.cm-proof { border: 0; border-radius: 0; background: white; text-align: left; display: flex; flex-direction: column; align-items: flex-start; color: var(--text); font: inherit; }
.cm-proof-grid button.cm-proof + button.cm-proof { border-left: 1px solid var(--border); }
.cm-proof + .cm-proof { border-left: 1px solid var(--border); }
.cm-proof-title { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--action); margin: 0 0 12px; }
.cm-proof-title .cm-icon { width: 16px; height: 16px; }
.cm-proof-value { font-size: 16px; font-weight: 800; line-height: 1.6; margin: 0 0 8px; }
.cm-proof p { margin: 0 0 8px; }
.cm-proof .cm-btn-ghost { font-size: 12px; padding: 6px 9px; min-height: 44px; }
.cm-skill-list { margin: 0; padding: 0; list-style: none; }
.cm-skill { padding: 16px 0; border-top: 1px solid var(--border); }
.cm-skill { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cm-skill > div { min-width: 0; }
.cm-skill-status { flex-shrink: 0; white-space: nowrap; font-weight: 400; color: var(--text-dim); }
.cm-skill-status.is-verified { color: var(--action); font-weight: 700; }
.cm-skill-status.is-verified::before { content: ''; width: 12px; height: 12px; background: currentColor; clip-path: polygon(0 48%,23% 28%,44% 55%,86% 6%,100% 22%,44% 86%); }
.cm-skill-status.is-sample { color: var(--action); }
.cm-skill:first-child { border-top: 0; padding-top: 4px; }
.cm-skill-title { font-size: 16px; font-weight: 700; margin: 0; }
.cm-skill-status { display: inline-flex; gap: 4px; align-items: center; color: var(--action); font-size: 12px; font-weight: 700; padding: 4px 0; }
.cm-skill-status .cm-icon { width: 14px; height: 14px; }
.cm-skill > .cm-row:first-child { justify-content: space-between; align-items: center; }
.cm-skill p { font-size: 14px; margin: 6px 0 0; color: var(--text-muted); }
.cm-sample { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cm-sample p { margin: 4px 0 0; }
.cm-sample b { font-size: 14px; }
.cm-sample { width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border); background: white; color: var(--text); font-size: 14px; }
.cm-sample > span { display: flex; align-items: center; gap: 12px; }
.cm-sample > span > .cm-icon { color: var(--action); }
.cm-sample strong, .cm-sample small { display: block; }
.cm-sample small { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.cm-sample + .cm-btn-ghost { margin-top: 16px; }
.cm-icon-btn44 { width: 44px; height: 44px; padding: 0; display: inline-flex; justify-content: center; align-items: center; border: 0; background: white; color: var(--text-muted); border-radius: var(--radius-xs,8px); }
.cm-profile-detail { margin: 0 0 20px; }
.cm-profile-detail > div { display: flex; align-items: flex-start; gap: 12px; }
.cm-profile-detail dt { flex: 0 0 80px; color: var(--text-dim); font-size: 12px; padding-top: 2px; }
.cm-profile-detail dd { flex: 1; min-width: 0; font-size: 14px; line-height: 1.7; }
.cm-verification > h3 { margin-top: 16px; }
.cm-sample-answer { padding: 18px; background: var(--bg2); border-radius: var(--radius-xs,8px); font-size: 16px; line-height: 1.8; }
.cm-wave svg { width: 100%; height: 100%; }
.cm-profile-detail { display: grid; gap: 14px; }
.cm-profile-detail .cm-row { align-items: flex-start; }
.cm-profile-detail .cm-row > span:first-child { flex: 0 0 80px; font-size: 12px; color: var(--text-dim); padding-top: 2px; }
.cm-profile-detail .cm-row > span:last-child { font-size: 14px; line-height: 1.6; }
.cm-profile-detail dl, .cm-profile-detail dd { margin: 0; }
.cm-wave { width: 100%; height: 72px; color: var(--action); display: block; }
.cm-wave path, .cm-wave line { stroke: currentColor; stroke-width: 3px; stroke-linecap: round; }
.cm-wave.is-playing { animation: cm-wave-pulse 1.1s ease-in-out infinite alternate; }
.cm-private-note { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-dim); margin: 12px 0; }
.cm-private-note .cm-icon { width: 14px; height: 14px; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cm-form-checks { display: grid; gap: 8px; font-size: 14px; }
.cm-form-checks label { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.cm-form-checks input[type="checkbox"] { width: 20px; min-height: 20px; accent-color: var(--action); }
@keyframes cm-wave-pulse { from { opacity: .5; } to { opacity: 1; } }
@media (hover:hover) { .cm-btn:hover { background: var(--action-hover); } .cm-btn-ghost:hover, .cm-icon-btn:hover { background: var(--bg2); } .cm-post-title:hover { color: var(--action); } }
@media (min-width:768px) { .cm-main, .cm-page-head { padding-left: 28px; padding-right: 28px; } .cm-demo, .cm-tabs { padding-left: 28px; padding-right: 28px; } .cm-studies-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .cm-profile-head > .cm-avatar { width: 72px; height: 72px; } }
@media (prefers-reduced-motion:reduce) { .cm-wave.is-playing { animation: none; } }
/* 모바일 화면에서는 실제 휴대폰처럼 스크롤바가 본문 폭을 차지하지 않게 한다. */
@media (max-width:480px) { html { scrollbar-width: none; } body::-webkit-scrollbar { width: 0; } }
.cm-dialog{border:0;padding:0;width:calc(100% - 32px);max-width:640px;max-height:90dvh;border-radius:16px;color:var(--text);background:white;overscroll-behavior:contain}.cm-dialog::backdrop{background:rgba(20,32,52,.46)}.cm-dialog h2{font-size:19px}.cm-dialog p{line-height:1.7}.cm-main,.cm-sheet-body{overflow-wrap:anywhere}.cm-wrap{display:flex;flex-wrap:wrap;gap:8px}.cm-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px}.cm-check input{width:18px;height:18px;flex:0 0 auto}.cm-dialog .cm-field input[type=checkbox]{min-height:0;width:18px}.cm-radio-list{display:grid;gap:4px}.cm-danger{color:#a22b22}.cm-back{margin-bottom:16px}.cm-file-view{width:100%;max-height:65dvh;object-fit:contain}.cm-top-actions{display:flex;gap:4px}.cm-error{padding:24px 0;color:#a22b22}.cm-list-row{padding:16px 0;border-bottom:1px solid var(--border)}.cm-list-row p{margin:8px 0;font-size:14px}.cm-list-row>button.cm-post-title{background:transparent}.cm-help{font-size:12px;color:var(--text-dim);line-height:1.6}.cm-head-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.cm-filter-tabs{flex-wrap:wrap}.cm-toolbar{flex-wrap:wrap}.cm-proof-grid{grid-template-columns:1fr 1fr}.cm-proof ul{padding-left:16px;font-size:12px;line-height:1.7}.cm-source{display:block;min-height:44px;padding:12px 0;font-size:14px}.cm-admin-panel{border-top:1px solid var(--border);padding:20px 0}.cm-app a.cm-btn-ghost{color:var(--action)}.cm-status{padding:12px;background:var(--bg2);border-radius:8px;font-size:14px;line-height:1.7}@media(max-width:480px){.cm-dialog{margin:auto 0 0;width:100%;max-height:90dvh;border-radius:20px 20px 0 0}.cm-dialog[open]{display:block}.cm-profile-name{font-size:24px}.cm-proof{padding:16px 12px}}
.cm-search>.cm-wrap{flex-wrap:nowrap}.cm-search .cm-input{flex:1;min-width:0;text-align:left;padding-left:12px}.cm-search button{flex:0 0 auto}.cm-main>.cm-btn-ghost{margin-bottom:12px}fieldset{border:0;padding:0;margin:0 0 18px}.cm-sheet-body .cm-check{align-items:flex-start;padding:10px 0}.cm-check input{margin-top:3px}
.cm-main>[data-action=more]{width:100%;margin-top:20px}
/* 소개 홈과 같은 브랜드를 유지하고 목록·내비게이션은 반복 방문에 맞춘다. */
.cm-app { padding-top:57px; padding-bottom:84px; }
.cm-page-head { padding-top:24px; padding-bottom:10px; }
.cm-page-head h1 { font-size:24px; margin-bottom:6px; }
.cm-main { padding-top:8px; }
.cm-search { margin-bottom:12px; }
.cm-search .cm-input { padding:12px 50px 12px 14px; border-radius:10px; background:var(--bg2); }
.cm-search>.cm-icon-btn { position:absolute; top:2px; right:2px; }
.cm-search .cm-icon { position:static; }
.cm-filter-tabs { gap:6px; }
.cm-filter-tabs button { min-width:44px; padding:0 10px; }
.cm-filter-tabs button[aria-pressed=true] { background:var(--action-tint); color:var(--action); border-color:var(--action); }
.cm-post { padding:15px 0; }
.cm-post-head { margin-bottom:6px; flex-wrap:wrap; }
.cm-post-title { background:transparent; }
.cm-post-foot { margin-top:4px; }
.cm-text-link { display:flex; align-items:center; min-height:44px; font-size:14px; font-weight:700; text-decoration:none; }
.cm-program-entry { display:flex; align-items:center; min-height:48px; margin-top:28px; padding:12px 0; border-top:1px solid var(--border); font-size:14px; text-decoration:none; }
.cm-bottom-nav { position:fixed; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:740px; z-index:40; display:grid; grid-template-columns:repeat(4,1fr); padding:6px 12px calc(6px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); background:rgba(255,255,255,.98); }
.cm-bottom-nav a { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:4px; min-height:52px; min-width:44px; color:var(--text-muted); font-size:12px; line-height:1.2; font-weight:700; text-decoration:none; border-radius:8px; }
.cm-bottom-nav a[aria-current=page] { color:var(--action); background:var(--action-tint); }
.cm-activity-profile { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.cm-toast { bottom:88px; }
.cm-study { border-radius:14px; padding:16px; }
.cm-study-title { font-size:17px; line-height:1.5; }
.cm-study-meta { display:grid; gap:6px; margin:12px 0 0; line-height:1.7; }
.cm-study-tags { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 0; }
.cm-study-condition { font-size:12px; margin:8px 0; line-height:1.7; }
.cm-study-proof { display:flex; flex-wrap:wrap; gap:4px 12px; margin-top:12px; font-size:12px; line-height:1.7; }
.cm-study-bottom { border-top:1px solid var(--border); padding-top:10px; margin-top:12px; }
/* PC의 내부 탐색은 공용 상단 메뉴로 모으고 하단 공간을 비운다. */
@media(min-width:881px) {
  .cm-app { padding-top:78px; padding-bottom:0; }
  .cm-bottom-nav { display:none; }
  .cm-toast { bottom:24px; }
}

/* 모집 절차와 개인 인증의 의미를 첫 방문에서도 확인한다. */
.cm-entry-nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
.cm-entry-nav a { display:flex; flex-direction:column; gap:8px; padding:18px 14px; border:1px solid var(--border); border-radius:12px; color:var(--action); text-decoration:none; }
.cm-entry-nav strong { display:flex; justify-content:space-between; gap:8px; font-size:18px; }
.cm-entry-nav a > span { color:var(--text-muted); font-size:14px; line-height:1.7; word-break:keep-all; }
.cm-entry-nav a:hover { border-color:var(--action); }
.cm-study-help { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.cm-study-help summary { min-height: 44px; padding: 10px 0; color: var(--action); font-weight: 700; cursor: pointer; }
.cm-study-help ol { margin: 8px 0 12px; padding-left: 20px; }
.cm-study-help li { margin-bottom: 6px; }
.cm-study-help p { margin: 0 0 8px; }

/* 게시판별 이용 안내는 제목 한 줄을 고정하고 본문은 요청할 때 펼친다. */
.cm-board-guides{margin-bottom:20px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.cm-board-guides details+details{border-top:1px solid var(--border-soft)}
.cm-board-guides summary{min-height:48px;padding:12px 0;line-height:1.6;font-size:14px;font-weight:700;color:var(--action);cursor:pointer;overflow-wrap:anywhere}
.cm-board-guides summary span{font-size:12px;border:1px solid var(--border);border-radius:4px;padding:3px 6px;margin-right:8px}
.cm-guide-body{padding:8px 0 20px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}

/* 직접 작성한 모집 조건과 검색 태그를 자격 조건과 구분한다. */
.cm-study-options { margin:28px 0; }
.cm-study-options h3 { font-size:16px; line-height:1.5; margin:0 0 8px; }
.cm-study-options h3 span { color:var(--text-muted); font-size:14px; font-weight:400; }
.cm-study-options .cm-help, .cm-study-advanced .cm-help { font-size:14px; margin:8px 0 12px; }
.cm-condition-row, .cm-tag-entry { display:flex; align-items:flex-start; gap:8px; margin-bottom:10px; }
.cm-condition-row input, .cm-tag-entry input { flex:1; min-width:0; }
.cm-condition-row button, .cm-tag-entry button { flex:none; min-height:48px; }
.cm-edit-tag { display:inline-flex; align-items:center; gap:4px; max-width:100%; border-bottom:1px solid var(--border); font-size:14px; }
.cm-edit-tag > span { overflow-wrap:anywhere; min-width:0; }
.cm-edit-tag button { flex:none; min-height:44px; padding:8px; }
[data-study-tags]:not(:empty) { margin-bottom:16px; }
.cm-study-advanced { margin:24px 0; padding:12px 0; border-block:1px solid var(--border); }
.cm-study-advanced summary { cursor:pointer; min-height:44px; padding:10px 0; font-size:14px; font-weight:700; color:var(--action); }
.cm-study-conditions { padding-left:20px; font-size:16px; line-height:1.7; white-space:pre-wrap; }
.cm-study-conditions li + li { margin-top:8px; }
.cm-study-tags:empty { display:none; }
.cm-study-tags button { font-size:14px; min-height:44px; }
.cm-field [aria-invalid="true"], .cm-condition-row [aria-invalid="true"] { border-color:#a22b22; }
.cm-condition-row { flex-wrap:wrap; }
.cm-condition-row [data-field-error] { flex-basis:100%; margin:0; }
.cm-field [data-field-error] { margin:8px 0 0; }
.cm-time-range { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.cm-time-range .cm-field { min-width:0; margin-bottom:8px; }
.cm-time-range input { min-width:0; max-width:100%; }
#cm-time-help { font-size:14px; margin-bottom:18px; }

/* 모집 상세는 핵심 정보와 읽을 내용, 운영 기능의 위계를 구분한다. */
.cm-app:has(.cm-study-detail) { max-width:1000px; }
.cm-app:has(.cm-study-detail) .cm-page-head { padding-bottom:0; align-items:center; }
.cm-app:has(.cm-study-detail) .cm-page-head h1 { font-size:16px; margin:0; }
.cm-app:has(.cm-study-detail) .cm-page-head p { display:none; }
.cm-detail-back { margin-bottom:16px; }
.cm-detail-back button { border:0; padding:8px 0; color:var(--text-muted); font-weight:500; }
.cm-detail-hero { padding:28px; border:1px solid var(--border); border-top:4px solid var(--action); border-radius:14px; background:white; }
.cm-detail-status { display:flex; align-items:center; gap:12px; margin-bottom:12px; font-size:14px; color:var(--text-muted); }
.cm-detail-status strong { color:var(--ink); }
.cm-main .cm-detail-hero h2 { font-size:32px; line-height:1.35; letter-spacing:-.025em; text-align:left; color:var(--ink); }
.cm-detail-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.cm-detail-tags button { border:0; border-radius:8px; background:var(--bg2); padding:8px 12px; min-height:44px; font-size:14px; font-weight:500; color:var(--action); }
.cm-detail-tags button:hover { color:var(--action); text-decoration:underline; text-underline-offset:4px; }
.cm-detail-facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px 24px; margin:24px -28px -28px; padding:24px 28px; background:var(--bg2); border-top:1px solid var(--border); border-radius:0 0 13px 13px; }
.cm-detail-facts dt { margin-bottom:6px; font-size:13px; color:var(--text-muted); }
.cm-detail-facts dd { margin:0; color:var(--ink); font-size:16px; font-weight:700; line-height:1.6; }
.cm-detail-action { margin:28px -28px -28px; padding:20px 28px; background:white; border-top:1px solid var(--border); border-radius:0 0 13px 13px; }
.cm-detail-facts:has(+ .cm-detail-action) { margin-bottom:0; border-radius:0; }
.cm-detail-facts + .cm-detail-action { margin-top:0; }
.cm-detail-action > .cm-btn { min-width:220px; }
.cm-detail-state { font-size:14px; font-weight:700; color:var(--action); }
.cm-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; padding-top:24px; align-items:start; }
.cm-detail-main,.cm-detail-aside { min-width:0; display:grid; gap:20px; }
.cm-detail-block { padding:24px; border:1px solid var(--border); border-radius:14px; background:white; }

.cm-main .cm-detail-block h3 { font-size:18px; color:var(--ink); margin-bottom:20px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.cm-main .cm-detail-copy { margin:0; font-size:16px; line-height:1.85; white-space:pre-wrap; overflow-wrap:anywhere; }
.cm-detail-copy + button { margin-top:16px; }
.cm-detail-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.cm-main .cm-detail-section-head h3 { margin:0; padding:0; border:0; }
.cm-detail-section-head { padding-bottom:16px; border-bottom:1px solid var(--border); }
.cm-detail-conditions { padding-left:20px; margin:0; font-size:16px; line-height:1.8; white-space:pre-wrap; }
.cm-detail-conditions li + li { margin-top:8px; }
.cm-detail-restrictions { margin-top:20px; }
.cm-detail-restrictions h4 { margin:0 0 8px; font-size:14px; }
.cm-detail-restrictions ul { margin:0; padding-left:20px; font-size:14px; line-height:1.8; color:var(--text-muted); }
.cm-detail-person { display:flex; align-items:center; gap:10px; padding:12px 0; }
.cm-detail-person + .cm-detail-person { border-top:1px solid var(--border-soft); }
.cm-detail-person > div { flex:1; min-width:0; }
.cm-detail-person strong { font-size:14px; }
.cm-person-role { display:block; font-size:12px; color:var(--text-muted); margin-top:3px; }
.cm-detail-person .cm-caption { margin:4px 0 0; }
.cm-detail-person button { border:0; padding:8px; font-size:13px; flex:none; }
.cm-detail-manage { border:1px solid var(--border); border-radius:14px; background:var(--bg2); overflow:hidden; }
.cm-detail-manage summary { display:flex; align-items:center; gap:8px; padding:20px; min-height:64px; font-size:16px; font-weight:700; cursor:pointer; list-style:none; }
.cm-detail-manage summary::-webkit-details-marker { display:none; }
.cm-detail-manage summary::after { content:''; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-left:auto; margin-right:4px; }
.cm-detail-manage[open] summary::after { transform:rotate(225deg); }
.cm-manage-content { padding:20px; border-top:1px solid var(--border); }
.cm-manage-content > .cm-wrap { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cm-manage-content > .cm-wrap button { padding:10px 8px; }
.cm-main .cm-manage-content h3 { margin:24px 0 12px; font-size:15px; }
.cm-manage-content h3 span { font-weight:400; color:var(--text-muted); }
.cm-applicant { padding:16px 0; border-bottom:1px solid var(--border-soft); }
.cm-applicant .cm-detail-copy { font-size:14px; margin:8px 0 12px; }
.cm-detail-footer { display:flex; justify-content:flex-end; gap:16px; padding-top:20px; }
.cm-detail-footer button { border:0; padding:8px 0; color:var(--text-muted); font-weight:400; font-size:13px; }
@media(max-width:880px) {
  .cm-main .cm-detail-hero h2 { font-size:27px; }
  .cm-detail-layout { grid-template-columns:minmax(0,1fr); gap:20px; }
  .cm-detail-facts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 16px; }
  .cm-detail-action > .cm-btn { width:100%; }
  .cm-detail-hero { padding:20px; }
  .cm-detail-facts { margin:20px -20px -20px; padding:20px; }
  .cm-detail-action { margin:20px -20px -20px; padding:20px; }
  .cm-detail-block { padding:20px; }
}
/* 모집 목록과 작성창도 상세 화면과 같은 구획·활자 기준을 쓴다. */
.cm-app:has(.cm-study-search-panel) { max-width:1000px; }
.cm-study-search-panel { padding:20px; border:1px solid var(--border); border-radius:14px; background:var(--bg2); }
.cm-study-search-panel .cm-search { margin-bottom:16px; }
.cm-study-search-panel .cm-input { background:white; }
.cm-study-search-panel .cm-study-filters { margin:0; gap:8px; }
.cm-study-search-panel .cm-help { margin:12px 0 0; }
.cm-study { padding:20px; display:flex; flex-direction:column; min-width:0; }
.cm-study-head { font-size:14px; color:var(--text-muted); }
.cm-study button.cm-study-title { font-size:21px; line-height:1.4; margin:0 0 8px; }
.cm-study-tags button { border:0; background:var(--bg2); padding:8px 12px; font-weight:500; }
.cm-study-facts { display:grid; gap:10px; margin:20px -20px 0; padding:20px; background:var(--bg2); border-block:1px solid var(--border); }
.cm-study-facts > div { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; font-size:14px; line-height:1.6; }
.cm-study-facts dt { color:var(--text-muted); }
.cm-study-facts dd { margin:0; color:var(--ink); font-weight:700; }
.cm-study-bottom { margin-top:auto; padding-top:16px; border:0; gap:12px; }
.cm-study-proof { padding:12px 0 0; margin:0; }
.cm-dialog:has([data-form="study"]) { max-width:720px; }
[data-form="study"] .cm-form-section, [data-form="study"] .cm-study-options { padding:20px; margin:0 0 20px; border:1px solid var(--border); border-radius:14px; background:white; }
[data-form="study"] .cm-form-section h3, [data-form="study"] .cm-study-options h3 { font-size:18px; margin:0 0 20px; padding:0 0 16px; border-bottom:1px solid var(--border); }
[data-form="study"] .cm-form-section:first-of-type { border-top:4px solid var(--action); }
[data-form="study"] .cm-form-section > .cm-field:last-child { margin-bottom:0; }
[data-form="study"] .cm-study-options .cm-help { margin-bottom:16px; }
[data-form="study"] .cm-study-advanced { margin:0 0 20px; padding:12px 20px; border:1px solid var(--border); border-radius:14px; background:var(--bg2); }
[data-form="study"] .cm-label { font-size:14px; line-height:1.6; }
[data-form="study"] .cm-time-range { gap:12px; }
[data-form="study"] #cm-time-help { margin-bottom:0; }
@media(max-width:480px) {
 .cm-dialog:has([data-form="study"]) .cm-sheet-body { padding:20px 12px calc(28px + env(safe-area-inset-bottom)); }
 [data-form="study"] .cm-form-section, [data-form="study"] .cm-study-options { padding:16px; }
 .cm-study-search-panel { padding:16px; }
}
.cm-weekdays { margin:0; }
.cm-weekday-options { display:flex; flex-wrap:wrap; gap:8px; }
.cm-weekday-options label { position:relative; cursor:pointer; }
.cm-weekday-options input { position:absolute; opacity:0; width:44px; height:44px; margin:0; }
.cm-weekday-options span { display:flex; align-items:center; justify-content:center; width:44px; min-height:44px; border:1px solid var(--border-strong); border-radius:8px; font-size:16px; background:white; }
.cm-weekday-options input:checked + span { background:var(--action); border-color:var(--action); color:white; font-weight:700; }
.cm-weekday-options input:focus-visible + span { outline:3px solid var(--action); outline-offset:3px; }
.cm-weekdays legend span { font-weight:400; color:var(--text-muted); }
.cm-member-manage { padding:12px 0; border-top:1px solid var(--border); }
.cm-member-manage > strong { display:block; font-size:14px; margin-bottom:12px; }
.cm-member-manage + .cm-member-manage { margin-top:8px; }
.cm-recruitment-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:20px; }
.cm-recruitment-tabs [aria-pressed="true"] { background:var(--action); color:white; }
.cm-reopen-panel > strong { display:block; font-size:16px; }
.cm-reopen-panel > button { width:100%; margin-top:8px; }
.cm-study-end { border-top:1px solid var(--border); margin-top:24px; padding-top:16px; }
.cm-study-end .cm-help { margin:0 0 8px; font-size:14px; }

/* 조장 전용 연락처와 신청자 제공 동의 */
.cm-private-contact{margin:12px 0;padding:16px;background:var(--cm-surface,#f3f6fb);border:1px solid #dce2ec;border-radius:10px;overflow-wrap:anywhere}.cm-private-contact p{margin:4px 0}.cm-private-contact dl{margin:12px 0}.cm-private-contact dt{font-size:13px;color:#58677e}.cm-private-contact dd{margin:2px 0 12px;font-weight:600}.cm-contact-consent{margin:20px 0;padding-top:16px;border-top:1px solid #dce2ec}.cm-contact-consent p{font-size:13px;line-height:1.7;word-break:keep-all}.cm-contact-consent .cm-check{align-items:flex-start;line-height:1.6;font-size:14px}.cm-contact-consent input[type=checkbox]{flex:none;margin-top:5px}.cm-contact-request{padding:16px;margin-top:16px;background:#f3f6fb;border-radius:10px}
