/* 연두교실 · 학원용 학습 웹 앱의 회원·정기결제·운영자 화면 시연 (classpay) · 공책 크림 + 칠판 녹색 + 분필 노랑 · 모서리 12 */
.cp {
  --bg: #F4F1E6;
  --surface: #FFFDF7;
  --surface-2: #EAE5D3;
  --text: #1D2A22;
  --muted: #586057;
  --line: #DDD7C3;
  --line-2: #C4BDA5;
  --primary: #24513F;
  --primary-2: #2F6A52;
  --primary-soft: #E1ECE4;
  --chalk: #F7F3E3;
  --accent: #F0C53F;
  --accent-ink: #5E4800;
  --ok: #2A7650;
  --ok-soft: #DCEEE2;
  --warn: #855600;
  --warn-soft: #FBEFD0;
  --danger: #AE3428;
  --danger-soft: #F8E1DC;
  --radius: 12px;
  --f-display: "Gaegu", "Pretendard Variable", Pretendard, sans-serif;
  --f-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.cp *, .cp *::before, .cp *::after { box-sizing: border-box; }
.cp [hidden] { display: none !important; }
.cp a { color: var(--primary-2); }
.cp h1, .cp h2, .cp h3 { margin: 0; }
.cp p { margin: 0; }
.cp button, .cp input { font: inherit; color: inherit; }
.cp :focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.cp-num { font-variant-numeric: tabular-nums; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── 안내 띠·머리 ── */
.cp-band {
  height: 28px; display: flex; align-items: center; justify-content: center;
  padding: 0 16px; background: var(--surface-2); color: var(--muted);
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-top {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 10px 16px 0; background: var(--surface); border-bottom: 1px solid var(--line);
}
.cp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; min-height: 44px; }
.cp-brand__mark svg { width: 36px; height: 36px; display: block; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cp-brand__mark svg rect { fill: var(--primary-soft); }
.cp-brand__mark svg .leaf { fill: #8BC34A; stroke: var(--primary); }
.cp-brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.cp-brand__name b { font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--primary); }
.cp-brand__name small { font-size: 12px; color: var(--muted); }
.cp-top__right { display: flex; align-items: center; gap: 10px; }
.cp-who { font-size: 13px; color: var(--muted); display: none; }
.cp-nav { grid-column: 1 / -1; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 12px; }
.cp-nav::-webkit-scrollbar { display: none; }
.cp-nav a {
  flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px;
  border-bottom: 3px solid transparent;
}
.cp-nav a.is-active { color: var(--primary); border-bottom-color: var(--accent); }
.cp-nav a:hover { color: var(--primary); }
@media (min-width: 760px) {
  .cp-who { display: inline; }
  .cp-top { padding: 10px 24px 0; }
  .cp-nav { margin: 0 -24px; padding: 0 20px; }
}

/* ── 공통 틀 ── */
.cp-main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 96px; }
@media (min-width: 760px) { .cp-main { padding: 28px 24px 96px; } }
.cp-wrap { display: grid; gap: 16px; }
.cp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.cp-kicker { font-size: 12.5px; font-weight: 700; color: var(--primary-2); letter-spacing: .02em; }
.cp-h1 { font-size: 26px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.cp-h1--sm { font-size: 22px; }
.cp-h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.cp-h3 { font-size: 14.5px; font-weight: 800; margin: 18px 0 6px !important; }
.cp-date { font-size: 13px; color: var(--muted); }
.cp-note { font-size: 13px; color: var(--muted); line-height: 1.55; }
.cp-note--foot { margin-top: 12px !important; }
.cp-caption { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px !important; display: flex; gap: 8px; align-items: center; }
.cp-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
@media (min-width: 760px) { .cp-card { padding: 20px; } }
.cp-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cp-card__head--wrap { flex-wrap: wrap; align-items: center; }
.cp-grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .cp-grid2 { grid-template-columns: 1fr 1fr; } }

/* ── 버튼·태그 ── */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text) !important;
  font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.cp-btn:hover { border-color: var(--primary-2); }
.cp-btn:disabled { opacity: .55; cursor: default; }
.cp-btn--primary { background: var(--primary); border-color: var(--primary); color: #fff !important; }
.cp-btn--primary:hover { background: var(--primary-2); }
.cp-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.cp-btn--danger-line { border-color: var(--danger); color: var(--danger) !important; }
.cp-btn--ghost { background: transparent; border-color: transparent; color: var(--primary-2) !important; }
.cp-btn--ghost:hover { background: var(--primary-soft); border-color: transparent; }
.cp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.cp-btn--block { width: 100%; }
.cp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cp-actions--sm { margin-top: 10px; }
.cp-actions--col { flex-direction: column; align-items: stretch; }
.cp-actions--col .cp-btn { white-space: normal; text-align: center; }
.cp-link { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; min-height: 36px; margin-top: 8px; }
.cp-link--btn { border: 0; background: none; padding: 0 6px; cursor: pointer; color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; margin: 0; min-height: 32px; }
.cp-tag {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; font-style: normal; white-space: nowrap; line-height: 1.6;
}
.cp-tag--ok { background: var(--ok-soft); color: var(--ok); }
.cp-tag--warn { background: var(--warn-soft); color: var(--warn); }
.cp-tag--danger { background: var(--danger-soft); color: var(--danger); }
.cp-tag--muted { background: var(--surface-2); color: var(--muted); }
.cp-tag--new { background: var(--accent); color: var(--accent-ink); }
.cp-pill { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(247,243,227,.16); color: var(--chalk); border: 1px solid rgba(247,243,227,.4); }
.cp-pill.is-paid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cp-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 13.5px; font-weight: 600;
}
.cp-chip small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cp-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 알림 띠 ── */
.cp-alert { display: grid; grid-template-columns: 1fr; gap: 6px 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; }
.cp-alert b { font-size: 14px; }
.cp-alert p { font-size: 14px; }
.cp-alert .cp-btn { justify-self: start; }
@media (min-width: 760px) { .cp-alert { grid-template-columns: auto 1fr auto; } .cp-alert .cp-btn { justify-self: end; } }
.cp-alert--danger { background: var(--danger-soft); border-color: #E7B5AC; color: #6E1E16; }
.cp-alert--warn { background: var(--warn-soft); border-color: #E8CF8F; color: #5A3B00; }
.cp-alert--info { background: var(--primary-soft); border-color: #B9D1C1; color: var(--primary); }

/* ── 원장 화면: 칠판 좌석 미터 ── */
.cp-hero { display: grid; gap: 16px; }
@media (min-width: 900px) { .cp-hero { grid-template-columns: 1fr 340px; } }
.cp-seats { background: var(--primary); border-color: var(--primary); color: var(--chalk); position: relative; overflow: hidden; }
.cp-seats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0, rgba(255,255,255,.07), transparent 60%); pointer-events: none; }
.cp-seats { display: flex; flex-direction: column; }
.cp-seats .cp-kicker { color: #CFE3D6; }
.cp-seats__foot { margin-top: auto !important; padding-top: 16px; font-size: 12.5px; color: #CFE3D6; max-width: 60ch; }
.cp-seats__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp-seats__count { font-family: var(--f-display); font-weight: 700; line-height: 1; margin: 10px 0 6px !important; display: flex; align-items: baseline; gap: 6px; }
.cp-seats__count b { font-size: 76px; font-weight: 700; }
.cp-seats__count .sl { font-size: 44px; opacity: .6; }
.cp-seats__count small { font-size: 26px; margin-left: 4px; }
.cp-seats__count.is-full b:first-child { color: var(--accent); }
.cp-seats__count--sm b { font-size: 52px; }
.cp-seats__count--sm .sl { font-size: 32px; }
.cp-seats__msg { font-size: 14.5px; max-width: 46ch; }
.cp-seats .cp-actions .cp-btn { border-color: rgba(247,243,227,.5); background: transparent; color: var(--chalk) !important; }
.cp-seats .cp-actions .cp-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }

.cp-desks { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); gap: 10px; margin-top: 16px; }
.cp-desks--md { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 520px; }
.cp-desks--sm { grid-template-columns: repeat(auto-fill, minmax(18px, 1fr)); gap: 4px; }
.cp-desk {
  aspect-ratio: 1 / 1; border-radius: 10px; border: 2px dashed rgba(247,243,227,.45);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 26px; color: var(--primary);
  position: relative;
}
.cp-desk.is-on { background: var(--chalk); border: 2px solid var(--chalk); }
.cp-desk.is-new { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); animation: cp-pop .5s ease-out; }
.cp-desks--md .cp-desk { border-radius: 6px; font-size: 15px; border-width: 1.5px; }
.cp-desks--sm .cp-desk { border-radius: 4px; font-size: 0; border-width: 1px; }
@keyframes cp-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cp-desk.is-new { animation: none; } }
.cp-join__right .cp-card:first-child { background: var(--primary); border-color: var(--primary); color: var(--chalk); }
.cp-join__right .cp-card:first-child .cp-kicker { color: #CFE3D6; }
.cp-join__right .cp-card:first-child .cp-note { color: #D9E6DC; margin-top: 12px; }

.cp-side { display: grid; gap: 16px; align-content: start; }
.cp-code__value { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 30px; font-weight: 700; letter-spacing: .12em; color: var(--primary); margin: 4px 0 6px !important; }
.cp-dl { margin: 8px 0 0; display: grid; gap: 6px; }
.cp-dl div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 14px; align-items: baseline; }
.cp-dl dt { color: var(--muted); font-size: 13px; }
.cp-dl dd { margin: 0; font-weight: 600; }
.cp-dl dd small { color: var(--muted); font-weight: 500; }
.cp-dl--box { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }

/* ── 표(작은 화면에서는 카드) ── */
.cp-rows { display: grid; }
.cp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.cp-row--head { display: none; }
.cp-rows--students .cp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-row > span { min-width: 0; }
.cp-row > span[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.cp-row__name { grid-column: 1 / -1; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.cp-row__name small, .cp-row > span small { display: block; width: 100%; font-size: 12px; color: var(--muted); font-weight: 500; }
.cp-row__act { grid-column: 1 / -1; display: flex; gap: 4px; flex-wrap: wrap; }
.cp-row__act:empty { display: none; }
.cp-row.is-me { background: linear-gradient(90deg, rgba(240,197,63,.16), transparent 70%); }
.cp-row.is-attn { background: var(--warn-soft); }
.cp-empty { padding: 16px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .cp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 11px 8px; }
  .cp-row--head { display: grid; font-size: 12px; color: var(--muted); font-weight: 700; border-top: 0; padding-top: 0; }
  .cp-row > span[data-label]::before { display: none; }
  .cp-row__name { grid-column: auto; }
  .cp-row__act { grid-column: auto; justify-content: flex-end; }
  .cp-row__act:empty { display: block; }
  .cp-rows--students .cp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .cp-rows--pay .cp-row { grid-template-columns: 1.3fr 2fr 1fr .9fr 1.3fr; }
  .cp-rows--members .cp-row { grid-template-columns: 2.2fr .8fr 1.5fr 1.6fr .9fr; }
  .cp-rows--payments .cp-row { grid-template-columns: 1.4fr 2.2fr 1fr .9fr 1fr; }
  .cp-rows--mig .cp-row { grid-template-columns: 1.2fr 1fr 1fr .8fr; }
}
.cp .cp-consent { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px dashed var(--warn); background: var(--warn-soft); color: var(--warn); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.cp .cp-consent.is-ok { border: 1.5px solid var(--ok-soft); background: var(--ok-soft); color: var(--ok); }
.cp-bar { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; max-width: 160px; margin-top: 4px; }
.cp-bar i { display: block; height: 100%; background: var(--primary-2); border-radius: 4px; }
.cp-bar.is-full i { background: var(--warn); }

/* ── 시연 순서 ── */
.cp-steps ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 760px) { .cp-steps ol { grid-template-columns: repeat(5, 1fr); } }
.cp-steps a { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text) !important; min-height: 44px; height: 100%; }
.cp-steps a:hover { border-color: var(--primary-2); }
.cp-steps__no { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.cp-steps b { display: block; font-size: 14px; }
.cp-steps small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ── 가입·로그인 ── */
.cp-auth { align-items: start; }
@media (min-width: 900px) { .cp-auth { grid-template-columns: minmax(0, 480px) 1fr; gap: 24px; } }
.cp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.cp-tabs button { min-height: 40px; border: 0; background: none; border-radius: 8px; font-weight: 700; cursor: pointer; color: var(--muted); }
.cp-tabs button.is-active { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(29,42,34,.12); }
.cp-form { display: grid; gap: 12px; }
.cp-field { display: grid; gap: 4px; }
.cp-field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.cp-field input { min-height: 46px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; width: 100%; }
.cp-field input:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.cp-field-row { display: grid; gap: 12px; }
@media (min-width: 520px) { .cp-field-row { grid-template-columns: 1fr 1fr; } }
.cp-agree { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 2px; }
.cp-agree legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.cp-agree label, .cp-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; min-height: 32px; padding-top: 6px; }
.cp-agree input, .cp-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.cp-error { color: var(--danger); font-size: 13.5px; font-weight: 600; }
.cp-done { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 8px 0; }
.cp-done svg { width: 56px; height: 56px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cp-done svg circle { fill: var(--ok-soft); stroke-width: 0; }
.cp-done__title { font-weight: 700; font-size: 15.5px; max-width: 36ch; }
.cp-done .cp-actions { justify-content: center; }
.cp-auth__aside { display: grid; gap: 12px; }
.cp-compare { display: grid; gap: 12px; }
@media (min-width: 600px) { .cp-compare { grid-template-columns: 1fr 1fr; } }
.cp-compare > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cp-compare > div:last-child { border-style: dashed; }
.cp-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }

/* ── 요금제 ── */
.cp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .cp-plans { grid-template-columns: repeat(4, 1fr); } }
.cp-plan { display: grid; gap: 4px; align-content: start; position: relative; }
.cp-plan.is-current { border: 2px solid var(--primary); }
.cp-plan__name { font-weight: 800; font-size: 15px; color: var(--primary); }
.cp-plan__seats { font-family: var(--f-display); font-weight: 700; font-size: 22px; line-height: 1; }
.cp-plan__seats b { font-size: 52px; }
.cp-plan__price { font-weight: 800; font-size: 16px; }
.cp-plan .cp-btn { margin-top: 10px; }
.cp-plan__current { position: absolute; top: 12px; right: 12px; font-size: 11.5px; font-weight: 700; background: var(--accent); color: var(--accent-ink); padding: 1px 8px; border-radius: 999px; }
.cp-progress { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.cp-progress li { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; }
.cp-progress small { color: var(--muted); font-size: 12px; }
.cp-progress__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); }
.cp-progress li.is-run .cp-progress__dot { border-color: var(--accent); background: var(--accent); }
.cp-progress li.is-ok .cp-progress__dot { border-color: var(--ok); background: var(--ok); }
.cp-progress li.is-ok small { color: var(--ok); font-weight: 700; }

/* ── 결제 관리 ── */
.cp-billing { display: grid; gap: 16px; }
@media (min-width: 900px) { .cp-billing { grid-template-columns: 1fr 320px; } }
.cp-sum__plan { font-size: 24px; font-weight: 800; margin: 2px 0 6px !important; }
.cp-sum__plan small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.cp-demo-panel { background: transparent; border-style: dashed; }
.cp-demo-panel .cp-actions { margin-top: 10px; }
.cp-mail__body { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; display: grid; gap: 6px; font-size: 14px; }
.cp-mail__to { font-size: 12.5px; color: var(--muted); }
.cp-mail__subject { font-weight: 800; font-size: 15px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px !important; }

/* ── 학생 입장(지금 화면) ── */
.cp-join { align-items: start; }
@media (min-width: 900px) { .cp-join { grid-template-columns: 400px 1fr; gap: 24px; } }
.cp-join__right { display: grid; gap: 16px; }
.cp-legacy { background: #fff; border: 1px solid #D5D9DE; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(29,42,34,.10); max-width: 400px; color: #222831; font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.cp-legacy__bar { display: flex; gap: 6px; padding: 12px 16px; background: #F1F3F5; border-bottom: 1px solid #E3E6EA; }
.cp-legacy__bar span { width: 10px; height: 10px; border-radius: 50%; background: #CDD2D8; }
.cp-legacy__body { display: grid; gap: 12px; padding: 28px 24px 24px; }
.cp-legacy__logo { font-size: 24px; font-weight: 800; text-align: center; color: #2B6E4F; }
.cp-legacy__sub { text-align: center; color: #5B636D; font-size: 14px; }
.cp-legacy__field { display: grid; gap: 4px; font-size: 13px; color: #5B636D; font-weight: 600; }
.cp-legacy__field input { min-height: 48px; padding: 0 14px; border: 1px solid #C9CED4; border-radius: 8px; background: #fff; font-size: 16px; color: #222831; width: 100%; }
.cp .cp-legacy__btn { min-height: 50px; border: 0; border-radius: 8px; background: #2B6E4F; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; }
.cp-legacy__error { color: #B3261E; font-size: 13.5px; font-weight: 600; }
.cp-legacy__examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 10px; border-top: 1px dashed #D5D9DE; }
.cp-legacy__examples > span { font-size: 12px; color: #6B737D; width: 100%; }
.cp-legacy__hello { font-size: 22px; font-weight: 800; text-align: center; }
.cp-legacy__lesson { display: flex; justify-content: space-between; gap: 8px; padding: 14px; border: 1px solid #E3E6EA; border-radius: 10px; font-size: 14px; }
.cp-legacy__lesson span { color: #5B636D; }
.cp-legacy__result { min-height: 340px; align-content: center; }
.cp-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: ck; }
.cp-checks li { position: relative; padding: 10px 12px 10px 44px; border-radius: 10px; border: 1px solid var(--line); counter-increment: ck; transition: background-color .2s, border-color .2s; }
.cp-checks li::before { content: counter(ck); position: absolute; left: 12px; top: 11px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); }
.cp-checks b { display: block; font-size: 14px; }
.cp-checks small { display: block; font-size: 12.5px; color: var(--muted); }
.cp-checks li.is-run { border-color: var(--accent); background: #FFF8DD; }
.cp-checks li.is-ok { border-color: #B9D9C4; background: var(--ok-soft); }
.cp-checks li.is-ok::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.cp-checks li.is-skip { opacity: .55; }
.cp-checks li.is-skip::before { content: "–"; }
.cp-checks li.is-fail { border-color: #E7B5AC; background: var(--danger-soft); }
.cp-checks li.is-fail::before { content: "!"; background: var(--danger); border-color: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { .cp-checks li { transition: none; } }

/* ── 기록 목록 ── */
.cp-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; }
.cp-log li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cp-log li:first-child { border-top: 0; }
.cp-log time { white-space: nowrap; min-width: 44px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.cp-log em { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }
.cp-log em.cp-tag { font-size: 12px; }
.cp-log li.is-empty { display: block; color: var(--muted); }
.cp-log--backup li { grid-template-columns: 96px 1fr auto; }
.cp-log li.is-new { background: #FFF8DD; }
.cp-log--backup + .cp-note { margin-top: 8px; }

/* ── 운영자 ── */
.cp-subtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cp-subtabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); background: var(--surface); }
.cp-subtabs a.is-active { background: var(--text); border-color: var(--text); color: #fff; }
.cp-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .cp-kpis { grid-template-columns: repeat(4, 1fr); } }
.cp-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.cp-kpi p { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.cp-kpi b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cp-kpi small { font-size: 12px; color: var(--muted); }
.cp-kpi--danger { border-color: #E7B5AC; background: var(--danger-soft); }
.cp-kpi--danger b { color: var(--danger); }
.cp-kpi--warn { border-color: #E8CF8F; background: var(--warn-soft); }
.cp-search input { min-height: 40px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; width: 180px; max-width: 100%; }
.cp-privacy { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.cp-privacy li { display: grid; gap: 2px; padding-left: 14px; border-left: 3px solid var(--accent); }
.cp-privacy b { font-size: 14px; }
.cp-privacy span { font-size: 13.5px; color: var(--muted); }
.cp-checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.cp-checklist li { display: flex; gap: 8px; align-items: baseline; }
body.cp--admin .cp-top { border-bottom-color: var(--text); }

/* ── 시트·알림·대응표 ── */
.cp-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; background: var(--text); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: min(92vw, 520px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.cp-mapbtn { position: fixed; right: 16px; bottom: 40px; z-index: 40; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--primary); background: var(--surface); color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(29,42,34,.16); }
.cp-sheet { position: fixed; inset: 0; z-index: 70; }
.cp-sheet__scrim { position: absolute; inset: 0; background: rgba(29,42,34,.45); }
.cp-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--surface); border-radius: 16px 16px 0 0; padding: 16px 16px 28px; }
@media (min-width: 760px) { .cp-sheet__panel { left: auto; top: 0; width: 480px; max-height: none; border-radius: 0; padding: 24px; } }
.cp-sheet__panel--center { display: grid; gap: 16px; font-size: 15px; }
@media (min-width: 760px) { .cp-sheet__panel--center { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: 420px; border-radius: 16px; } }
.cp-sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cp-sheet__head h2 { font-size: 19px; font-weight: 800; color: var(--primary); }
.cp-iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 10px; }
.cp-iconbtn svg { width: 20px; height: 20px; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.cp-map { list-style: none; margin: 0; padding: 0; }
.cp-map li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cp-map__no { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.cp-map__req { font-weight: 800; font-size: 14.5px; }
.cp-map__shown { font-size: 13.5px; color: var(--muted); }
.cp-map a { font-size: 13.5px; font-weight: 700; display: inline-flex; min-height: 32px; align-items: center; }
.cp-sheet__foot { margin-top: 12px !important; font-size: 12.5px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }
.cp .demo-notice { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 16px 24px; }
