/* 커널아카데미 색(남색 #16264a, 옅은 초록 #f1f6ef, 선 #dfe5db). 운영 화면은 표가 많아 촘촘하게. */
:root {
  --navy: #16264a;
  --navy-2: #2d4675;
  --ink: #111;
  --ink-2: #444;
  --muted: #777;
  --soft: #f1f6ef;
  --line: #dfe5db;
  --page: #f5f7f4;
  --yellow: #fff4c2;
  --red: #c8372d;
  --green: #2f7a3b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; color: var(--ink); font-size: 14px; line-height: 1.5; background: var(--page); word-break: keep-all; }
a { color: var(--navy); }
h1 { font-size: 24px; margin: 0 0 6px; letter-spacing: -0.02em; }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; color: var(--navy-2); }
.eyebrow a { text-decoration: none; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: baseline; gap: 5px; color: var(--navy); text-decoration: none; }
.logo-k { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.logo-p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 15px; color: var(--navy-2); }
.nav { display: flex; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: 4px 0; }
.nav a.on { color: var(--navy); border-bottom: 2px solid var(--navy); }
.who { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 80px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 32px 20px 60px; }
section { margin: 0 0 28px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 99px; background: var(--navy); color: #fff; font-size: 12px; text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary, .btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary { width: 100%; height: 52px; font-size: 16px; border-radius: 10px; }
.btn.ghost { background: transparent; }
button.link { border: 0; background: none; color: var(--navy); cursor: pointer; padding: 0; font: inherit; text-decoration: underline; }

.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { display: flex; gap: 12px; padding: 9px 12px; border-radius: 8px; margin-bottom: 4px; background: var(--soft); }
.tasks li.urgent { background: #fdecea; }
.tasks .when { min-width: 52px; font-weight: 800; color: var(--navy); }
.tasks li.urgent .when { color: var(--red); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.cohort-card, .cards li a { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; color: var(--ink); }
.cohort-card:hover, .cards li a:hover { border-color: var(--navy); }
.cc-top { display: flex; justify-content: space-between; }
.cc-top .d { font-weight: 800; color: var(--navy); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--navy-2); font-size: 12px; font-weight: 700; }
.tag.ok { background: #e3f3e5; color: var(--green); }
.funnel { display: flex; gap: 6px; margin: 6px 0; }
.funnel span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 8px; background: var(--soft); font-size: 11px; color: var(--ink-2); }
.funnel b { font-size: 18px; color: var(--navy); }
.funnel .ok { background: var(--yellow); }
.funnel .dim b { color: var(--muted); }
.money { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }

.filters { display: flex; gap: 6px; }
.filters a { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-size: 13px; }
.filters a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.legend { font-size: 12px; margin: 6px 0; }

.grid { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.grid th, .grid td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { background: var(--soft); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.grid.compact td { padding: 6px 10px; }
.grid td.step, .grid th.step { text-align: center; padding: 9px 4px; width: 44px; }
.grid tr[data-status="paid"] td:first-child { box-shadow: inset 3px 0 0 #f2c94c; }
.sub { display: block; font-size: 12px; color: var(--muted); }
.msg { display: block; font-size: 12px; color: var(--ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-weight: 700; }
.s-paid { color: var(--green); }
.s-invoiced { color: #b7791f; }
.s-cancelled, .s-refunded { color: var(--muted); }
.dot { font-size: 14px; }
.dot.sent { color: var(--green); }
.dot.covered { color: var(--navy-2); }
.dot.failed { color: var(--red); font-weight: 800; }
.dot.wait { color: #b8c2b2; }
.dot.none { color: #d5dbd1; }
form.inline { display: inline; }

.row-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.row-actions input { width: 96px; height: 28px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }
.mini { height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mini.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.mini.ghost { color: var(--muted); }
.mini.danger { color: var(--red); border-color: #f0c7c3; }
.mini.on { background: var(--yellow); }
.refund summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.refund[open] { display: flex; gap: 4px; flex-wrap: wrap; }

.settings, .stack { display: grid; gap: 12px; max-width: 640px; }
.settings label, .stack label, .apply-form label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.settings small, .apply-form small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
label.check { display: flex !important; gap: 8px; align-items: center; font-weight: 600; }
.add { margin-top: 12px; }
.add summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.add form { margin-top: 12px; }
.search { display: flex; gap: 8px; }
pre { background: var(--soft); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.error { background: #fdecea; color: var(--red); padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline .when { display: inline-block; min-width: 92px; color: var(--muted); font-variant-numeric: tabular-nums; }

.facts { display: grid; gap: 6px; margin: 12px 0; }
.facts div { display: flex; gap: 12px; }
.facts dt { min-width: 72px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* 신청 화면 */
.apply { background: #fff; }
.apply .top-inner { max-width: 620px; }
.apply-head { padding: 20px; background: var(--soft); border-radius: 14px; margin-bottom: 20px; }
.apply-form { display: grid; gap: 16px; }
.apply-form input, .apply-form select, .apply-form textarea { padding: 12px; font-size: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.consent { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; }
.consent legend { font-weight: 800; padding: 0 6px; }
.consent ul { padding-left: 18px; margin: 6px 0; color: var(--ink-2); }
.sheet { max-width: 520px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.lead { font-size: 16px; color: var(--ink-2); }
.hint { font-size: 13px; color: var(--muted); }
.foot { max-width: 620px; margin: 0 auto; padding: 24px 20px 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.foot p { margin: 2px 0; }

@media (max-width: 760px) {
  .grid { display: block; overflow-x: auto; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .who span { display: none; }
}

/* 데모 사이트 띠 */
.demo-band { background: #fff4c2; color: #6b4e00; text-align: center; font-size: 13px; font-weight: 600; padding: 7px 12px; }
.demo-band a { color: #6b4e00; }
.sim { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.outbox td { font-size: 13px; }
.mail-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mini:disabled { opacity: 0.35; cursor: not-allowed; }

/* 성과 지표: 숫자 칸과 단계 막대(한 색, 숫자를 옆에 적어 색 없이도 읽힘) */
.scope { flex-wrap: wrap; margin: 0 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 24px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: help; }
.t-label { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.t-value { font-size: 28px; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.t-sub { font-size: 12px; color: var(--muted); }
.fbars { display: grid; gap: 6px; }
.fbar { display: grid; grid-template-columns: 120px 1fr 110px; align-items: center; gap: 10px; }
.fb-label { font-size: 13px; color: var(--ink-2); }
.fb-track { height: 14px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.fb-fill { display: block; height: 100%; background: var(--navy); border-radius: 0 4px 4px 0; min-width: 2px; }
.fb-n { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fb-n small { color: var(--muted); font-weight: 400; }
