/* 디자인 규칙은 DESIGN.md 참고. 포인트 컬러는 #0859d4 (프리셋의 #3672fa 대신 사용). */
:root {
  --canvas: #ffffff;
  --text: #00040c;
  --body: #201e22;
  --meta: #666869;
  --line: #e8eaed;
  --border: #96989a;
  --surface: #f6f7f9;
  --accent: #0859d4;
  --accent-soft: #eef4fd;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--body); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
/* 내용이 짧아도 푸터는 화면 아래에 붙는다 */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body:not(.login-page) > header, body:not(.login-page) > main, body:not(.login-page) > footer { width: 100%; flex-shrink: 0; }
body:not(.login-page) > main { flex-grow: 1; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 18px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); text-decoration: none; }
.wordmark img { display: block; height: 28px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 24px; }
.nav a { font-size: 14px; font-weight: 500; text-decoration: none; padding: 12px 0; }
.nav a.accent { color: var(--accent); }

.btn { min-height: 52px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 100px; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.input { height: 52px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.meta { font-size: 12px; color: var(--meta); }
.error { font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface); border-radius: 8px; padding: 12px 16px; }

.h-page { text-wrap: balance; font-size: 40px; font-weight: 600; line-height: 1.28; letter-spacing: -0.025em; color: var(--text); }
.h-section { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.h-sub { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }

/* 랜딩 */
.hero { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero .kicker { font-size: 14px; font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
.hero .h-page { max-width: 760px; }
.hero .lead { max-width: 620px; font-size: 16px; color: var(--meta); }
.diagnose-form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.diagnose-form .row { display: flex; flex-wrap: wrap; gap: 10px; }
.diagnose-form .input { flex: 1 1 280px; }
.band { border-top: 1px solid var(--line); }
.band .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 2px solid var(--accent); padding-top: 20px; }
.steps .n { font-size: 12px; font-weight: 600; color: var(--accent); }
.steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.steps p { font-size: 14px; color: var(--meta); }
.formula { flex-direction: row !important; flex-wrap: wrap; gap: 48px !important; align-items: center; }
.formula > * { flex: 1 1 360px; min-width: 0; }
.formula .copy { display: flex; flex-direction: column; gap: 16px; }
.formula .copy p { font-size: 15px; }
.formula .calc { background: var(--accent-soft); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.formula .calc div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.formula .calc .k { font-size: 14px; color: var(--meta); }
.formula .calc .v { font-size: 24px; font-weight: 600; color: var(--text); }
dl.calc { margin: 0; }
dl.calc dt, dl.calc dd { margin: 0; }
.formula .calc .total { border-top: 2px solid var(--accent); padding-top: 16px; }
.formula .calc .total .v { font-size: 40px; color: var(--accent); }
.faq > div { padding: 20px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dt { font-size: 15px; font-weight: 600; color: var(--text); }
.faq dd { font-size: 14px; color: var(--meta); }

/* 결과 */
.result { padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 56px; }
.channel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--line); object-fit: cover; }
.channel-head h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 28px; }
.stats div { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--accent); padding-top: 16px; }
.stats dt { font-size: 12px; color: var(--meta); }
.stats dd { font-size: 28px; font-weight: 600; color: var(--text); }
.stats dd.accent { color: var(--accent); }
.section { display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px 20px; }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--line); border-radius: 8px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .badge { position: absolute; top: 10px; right: 10px; padding: 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.025em; color: #fff; background: var(--accent); border-radius: 100px; }
.card .badge.plain { color: var(--text); background: #fff; }
.card h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { display: flex; gap: 12px; }
.gate { background: var(--accent-soft); border-radius: 8px; padding: 40px 32px; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gate > * { flex: 1 1 360px; min-width: 0; }
.gate .copy { display: flex; flex-direction: column; gap: 12px; }
.gate .copy h2 { font-size: 24px; font-weight: 600; line-height: 1.28; letter-spacing: -0.025em; color: var(--text); }
.gate .copy p { font-size: 14px; }
.gate form { background: #fff; border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.gate form .field { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--accent); }
.state { padding: 96px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.state p { max-width: 520px; font-size: 15px; color: var(--meta); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 24px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; font-size: 12px; color: var(--meta); }
.site-footer .wrap > span { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.site-footer a { color: var(--meta); display: inline-block; padding: 10px 0; }
.site-footer .biz { flex-basis: 100%; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.6; }

@media (max-width: 640px) {
  .h-page { font-size: 30px; }
  .hero { padding-top: 56px; padding-bottom: 48px; }
  .band .wrap { padding-top: 48px; padding-bottom: 48px; }
  .gate { padding: 28px 20px; }
}

/* 회원 화면 */
.wrap.wide { max-width: 1280px; }
.head-left, .head-right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.head-right { gap: 8px 20px; }
.head-right strong { font-weight: 600; color: var(--body); }
.nav a[aria-current="page"] { font-weight: 600; color: var(--accent); border-bottom: 2px solid var(--accent); }
.link-btn { min-height: 44px; padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--body); background: none; border: 0; text-decoration: underline; cursor: pointer; }
.app { padding-top: 28px; padding-bottom: 72px; min-height: 60vh; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.stack.narrow { max-width: 760px; gap: 40px; }
.lead-s { margin-top: 8px; font-size: 15px; color: var(--meta); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-outline { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--border); border-radius: 100px; text-decoration: none; cursor: pointer; }
.btn-outline[disabled] { opacity: 0.6; cursor: default; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.title-row .meta { margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.notice { font-size: 14px; font-weight: 500; color: var(--text); background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; }
.mine-strip { background: var(--surface); border-radius: 8px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.mine-strip .who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mine-strip .who img, .mine-strip .who .ph { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; background: var(--line); object-fit: cover; }
.mine-strip .label { display: block; font-size: 12px; font-weight: 600; color: var(--accent); }
.mine-strip .name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.mine-strip dl { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.mine-strip dt { font-size: 12px; color: var(--meta); }
.mine-strip dd { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.mine-strip dd.accent { color: var(--accent); }
.mine-strip a.go { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.filter-set { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--meta); }
.filter select { min-height: 44px; padding: 0 40px 0 16px; font: inherit; font-size: 14px; color: var(--body); background: #fff; border: 1px solid var(--border); border-radius: 8px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 500; color: var(--body); background: #fff; border: 0; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button[aria-pressed="true"] { font-weight: 600; color: #fff; background: var(--accent); }
.card .badge.soft { color: var(--accent); background: var(--accent-soft); }
.card .ch { font-size: 12px; color: var(--meta); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
.vtable { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.vtable th { padding: 12px; font-size: 12px; font-weight: 500; color: var(--meta); text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.vtable td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vtable .num { text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vtable .video { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none; }
.vtable .video img, .vtable .video .ph { flex: 0 0 auto; width: 112px; aspect-ratio: 16 / 9; border-radius: 6px; background: var(--line); object-fit: cover; }
.vtable .video .t { font-size: 15px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vtable .video .c { display: block; margin-top: 4px; font-size: 12px; color: var(--meta); }
.mult { display: inline-block; min-width: 56px; padding: 4px 10px; font-size: 13px; font-weight: 600; letter-spacing: -0.025em; text-align: center; border-radius: 100px; color: var(--body); background: var(--surface); }
/* 배수 5단계: 1.5 미만 회색 → 1.5 옅은 파랑 → 3 중간 → 5 포인트 컬러 → 10 진한 남색 */
.mult.lv1, .card .badge.lv1 { color: var(--accent); background: var(--accent-soft); }
.mult.lv2, .card .badge.lv2 { color: #0647aa; background: #c7dbfb; }
.mult.lv3, .card .badge.lv3 { color: #fff; background: var(--accent); }
.mult.lv4, .card .badge.lv4 { color: #fff; background: #032f73; }
.mult.wait { font-weight: 500; color: var(--meta); }
.add-form { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.row .input { flex: 1 1 260px; }
.rows > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rows .who img, .rows .who .ph { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--line); object-fit: cover; }
.rows .name { font-size: 15px; font-weight: 600; color: var(--text); }
.card-link { display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.card-foot .ch { display: block; margin-bottom: 4px; }
.save-btn { min-height: 44px; min-width: 64px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--border); border-radius: 100px; cursor: pointer; white-space: nowrap; }
.save-btn[aria-pressed="true"] { font-weight: 600; color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.go-link { font-weight: 600; color: var(--accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan.current { border-color: var(--accent); }
.plan .price { margin: 8px 0 12px; font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.plan dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan dt { color: var(--meta); }
.plan dd { font-weight: 600; color: var(--text); text-align: right; }
.plan-cta { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }
.bullets { display: flex; flex-direction: column; gap: 6px; padding-left: 16px; list-style: disc; }
.select-bar { min-height: 60px; background: var(--accent-soft); border-radius: 8px; padding: 8px 8px 8px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text); }
.pick { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.actions.tight { gap: 8px; flex-wrap: nowrap; }
.save-btn.as-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.practice { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: stretch; }
.pane { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.player-box { aspect-ratio: 16 / 9; background: var(--line); border-radius: 8px; overflow: hidden; }
.player-box iframe { width: 100%; height: 100%; display: block; border: 0; }
.textarea { flex: 1 1 auto; min-height: 260px; padding: 16px; font: inherit; font-size: 15px; line-height: 1.7; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: 8px; resize: vertical; }
.script { font-size: 15px; line-height: 1.9; color: var(--text); background: var(--surface); border-radius: 8px; padding: 20px; white-space: normal; }
.script mark.miss { color: var(--text); background: #cfe0fa; border-radius: 3px; padding: 1px 2px; }
.script mark.extra { color: var(--meta); background: none; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.vd-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.vd-stats dt { font-size: 12px; color: var(--meta); }
.vd-stats dd { margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--text); }
.player-box > div { width: 100%; height: 100%; }
.script { white-space: pre-line; }
.script.locked { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; color: var(--meta); font-size: 14px; line-height: 1.6; }
.practice .pane .script { flex: 1 1 auto; }
#write .textarea { min-height: 180px; }
.script mark.hook { color: var(--text); background: var(--accent-soft); border-bottom: 2px solid var(--accent); padding: 1px 0; }
.hooks { display: flex; flex-direction: column; gap: 10px; }
.hooks-title { font-size: 14px; font-weight: 600; color: var(--text); }
.hooks-summary { font-size: 15px; color: var(--body); }
.hooks-list { display: flex; flex-direction: column; }
.hooks-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hooks-list .q { font-size: 15px; font-weight: 500; letter-spacing: -0.025em; color: var(--text); }
.hooks-list .meta { margin-top: 2px; }
.chip { flex: 0 0 auto; padding: 4px 10px; font-size: 12px; font-weight: 600; letter-spacing: -0.025em; color: var(--accent); background: var(--accent-soft); border-radius: 100px; white-space: nowrap; }
.practice { align-items: start; gap: 32px; }
.practice .side { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.section-line { padding-top: 32px; border-top: 1px solid var(--line); }
.practice .stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.practice .stats dd { font-size: 24px; }
@media (min-width: 900px) {
  .video-pane { position: sticky; top: 24px; }
}

.vtable a.video:hover .t, .card-link:hover h3 { text-decoration: underline; }
/* 영상과 원고 상자의 위아래 끝을 맞춘다. 두 칸의 폭이 같으므로 같은 비율을 주면 높이가 같아진다. */
.practice { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .practice { grid-template-columns: 1fr 1fr; }
  .practice .side > .pane:first-child > .script { flex: 0 0 auto; aspect-ratio: 16 / 9; overflow-y: auto; }
}
button.video, button.card-link { width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
button.video:hover .t, button.card-link:hover h3 { text-decoration: underline; }
dialog.vd { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 12px; color: var(--body); overflow: auto; }
dialog.vd::backdrop { background: rgba(22, 22, 22, 0.5); }
.vd-box { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.vd-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.vd-head .meta { margin-top: 4px; }
.vd-top { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: stretch; }
.vd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.vd-grid > div { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.vd-grid dt { font-size: 12px; color: var(--meta); }
.vd-grid dd { font-size: 20px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.vd-grid .note { font-size: 12px; color: var(--meta); }
.vd-more { display: grid; grid-template-columns: 1fr; gap: 20px; }
.vd-more section { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vd-desc { font-size: 14px; line-height: 1.6; color: var(--body); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 4px 10px; font-size: 12px; color: var(--body); background: var(--surface); border-radius: 100px; }
.vd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.player-box.blocked { position: relative; display: flex; align-items: flex-end; }
.player-box.blocked img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player-box.blocked p { position: relative; width: 100%; padding: 12px 16px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(32, 30, 34, 0.7); }
@media (min-width: 860px) {
  .vd-top { grid-template-columns: 3fr 2fr; }
  .vd-more { grid-template-columns: 3fr 2fr; }
}
.vd-line { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.vd-line .link-btn { min-height: 28px; font-size: 14px; }
.vd-more section > .hooks-title { min-height: 28px; display: flex; align-items: center; }
.vd-foot { justify-content: flex-end; }
.script.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--meta); font-size: 14px; }
/* 로딩: 브랜드 키트의 로더(O 링과 점, 바깥으로 물결이 퍼짐). <span class="vu-loader"><i></i><i></i></span> */
.vu-loader { position: relative; display: inline-block; width: 28px; height: 28px; color: var(--accent); }
.vu-loader::before { content: ""; position: absolute; inset: 22%; border-radius: 50%; border: 2px solid currentColor; }
.vu-loader::after { content: ""; position: absolute; inset: 39%; border-radius: 50%; background: currentColor; }
.vu-loader i { position: absolute; inset: 22%; border-radius: 50%; border: 1.5px solid currentColor; animation: vu-p 1.6s ease-out infinite; }
.vu-loader i:nth-child(2) { animation-delay: .8s; }
@keyframes vu-p { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress-line { display: flex; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: var(--line); border-radius: 100px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width 0.12s linear; }
@media (prefers-reduced-motion: reduce) {
  .vu-loader i { animation: none; opacity: 0; }
  .bar > span { transition: none; }
}
/* 잠긴 원고: 실제 원고는 아직 받지 않았으므로 흐린 줄 모양만 깔고 자물쇠를 올린다. */
.script.locked { position: relative; display: block; overflow: hidden; }
.script.locked .veil { display: flex; flex-direction: column; gap: 16px; filter: blur(5px); }
.script.locked .veil span { height: 12px; border-radius: 100px; background: #d5d9df; }
.script.locked .veil span:nth-child(3n) { width: 72%; }
.script.locked .veil span:nth-child(3n + 2) { width: 91%; }
.script.locked .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--body); font-size: 14px; font-weight: 500; }
.script.locked .lock svg { box-sizing: content-box; padding: 14px; color: var(--accent); background: var(--canvas); border: 1px solid var(--line); border-radius: 50%; }
/* 도입부 구조 분석: 이 화면의 핵심이라 테두리로 영역을 잡는다. */
.analysis { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--accent); border-radius: 8px; }
.analysis .h-sub { color: var(--accent); }
.analysis .hooks { gap: 16px; }
.analysis .hooks-summary { padding: 14px 16px; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--text); background: var(--accent-soft); border-radius: 8px; }
.analysis .hooks-list li { flex-direction: column; gap: 8px; padding: 18px 0; }
.analysis .hooks-list li:first-child { border-top: 0; padding-top: 4px; }
.analysis .hooks-list li:last-child { padding-bottom: 0; }
.analysis .hooks-list .q { font-size: 16px; font-weight: 600; line-height: 1.5; }
.analysis .hooks-list .meta { margin-top: 6px; font-size: 14px; line-height: 1.6; }
.reveal-row { display: flex; flex-direction: column; gap: 8px; }
.btn-wide { width: 100%; min-height: 56px; font-size: 16px; }
.row.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
/* 분석 결과가 이 화면에서 가장 먼저 읽혀야 한다. 원고보다 크게 쓴다. */
.analysis { gap: 20px; padding: 28px; border-width: 2px; }
.analysis .h-sub { font-size: 22px; }
.analysis .hooks { gap: 20px; }
.analysis .hooks-summary { padding: 18px 20px; font-size: 19px; font-weight: 600; line-height: 1.55; letter-spacing: -0.025em; }
.analysis .hooks-list li { gap: 10px; padding: 22px 0; }
.analysis .hooks-list .chip { align-self: flex-start; padding: 5px 12px; font-size: 13px; }
.analysis .hooks-list .q { font-size: 18px; line-height: 1.55; }
.analysis .hooks-list .meta { font-size: 15px; color: var(--body); }
@media (max-width: 480px) {
  .analysis { padding: 20px; }
  .analysis .hooks-summary { font-size: 17px; }
  .analysis .hooks-list .q { font-size: 17px; }
}
/* 대시보드의 내 채널: 채널마다 카드 한 장. 좁은 화면에서는 세로로 쌓인다. */
.mine-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding: 0; background: none; border-radius: 0; align-items: stretch; }
.mine-strip:empty { display: none; }
.mine-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 20px; background: var(--surface); border-radius: 8px; }
.mine-card .who .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mine-card .who > div { min-width: 0; }
.mine-card dl { gap: 8px 24px; }
.mine-card dd { font-size: 18px; }
.mine-card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: auto; }
.mine-card .foot .actions { display: flex; align-items: center; gap: 16px; }
.mine-card .foot .link-btn { font-weight: 600; }
.mine-card.empty { justify-content: space-between; background: none; border: 1px dashed var(--border); }
.mine-card.empty .name { white-space: normal; }
.mine-card.empty .meta { display: block; margin-top: 4px; }
/* 내 채널 페이지의 채널 탭 */
.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--line); }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; margin-bottom: -1px; font-size: 15px; font-weight: 500; color: var(--meta); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { font-weight: 600; color: var(--accent); border-bottom-color: var(--accent); }
/* 대시보드 조건: 윗줄은 형식·배수·기간, 아랫줄은 채널 칩. 정렬은 표 머리글에서 한다. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stack-s { display: flex; flex-direction: column; gap: 12px; }
.ch-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ch-chips { display: flex; gap: 8px; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: thin; }
.ch-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 220px; padding: 0 14px 0 6px; font: inherit; font-size: 14px; font-weight: 500; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 100px; cursor: pointer; }
.ch-chip:first-child { padding-left: 14px; }
.ch-chip img, .ch-chip .ph { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--line); object-fit: cover; }
.ch-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-chip:hover { border-color: var(--border); }
.ch-chip[aria-pressed="true"] { font-weight: 600; color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.th-sort { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.th-sort .arrow { color: var(--border); }
.th-sort:hover { color: var(--text); }
.th-sort.on { font-weight: 600; color: var(--accent); }
.th-sort.on .arrow { color: var(--accent); }
/* 채널이 많을 때: 윗줄에는 고른 채널만 두고, 버튼을 누르면 아래로 전부 펼친다. */
.ch-row { flex-wrap: wrap; }
.ch-chips { flex-wrap: wrap; overflow: visible; }
.ch-chip .n { flex: 0 0 auto; font-size: 12px; font-weight: 500; color: var(--meta); font-variant-numeric: tabular-nums; }
.ch-chip[aria-pressed="true"] .n { color: var(--accent); }
.ch-chip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ch-open { padding-left: 14px; border-style: dashed; border-color: var(--border); }
.ch-panel { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--surface); border-radius: 8px; }
.ch-panel .input { max-width: 320px; background: #fff; }
.ch-all { display: flex; flex-wrap: wrap; gap: 8px; }
#list.busy { opacity: 0.5; transition: opacity 0.15s; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 8px; }
/* 내 채널 분석: 요약 한 줄, 좌우 두 장(통하는 것 / 안 통하는 것), 제안 세 장. 세로로 길어지지 않게 가로로 편다. */
.an { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface); border-radius: 8px; }
.an-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.an-head .meta { margin-top: 2px; }
.an-head button:disabled { opacity: 1; color: var(--meta); background: none; border: 1px solid var(--line); cursor: default; }
.an-empty { max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--body); }
.an-body { display: flex; flex-direction: column; gap: 16px; }
.an-summary { padding: 16px 20px; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -0.025em; color: #fff; background: var(--accent); border-radius: 8px; }
.an-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.an-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px; background: var(--canvas); border-radius: 8px; }
.an-card.good { border-top: 3px solid var(--accent); }
.an-card.bad { border-top: 3px solid var(--border); }
.an-label { font-size: 14px; font-weight: 600; color: var(--text); }
.an-card.good .an-label { color: var(--accent); }
.an-card.bad .an-label { color: var(--meta); }
.an-point { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.an-label + .an-point { padding-top: 0; border-top: 0; }
.an-point p { font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: -0.025em; color: var(--text); }
.an-thumbs { display: flex; gap: 6px; }
.an-thumb { position: relative; flex: 0 0 auto; width: 80px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); border-radius: 4px; }
.an-thumb img, .an-thumb .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.an-thumb .x { position: absolute; right: 3px; bottom: 3px; padding: 1px 5px; font-size: 11px; font-weight: 600; line-height: 1.4; color: #fff; background: rgba(22, 22, 22, 0.75); border-radius: 4px; }
.an-block { display: flex; flex-direction: column; gap: 10px; }
.an-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.an-three .an-card { gap: 8px; }
.an-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 50%; }
.an-three strong { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); letter-spacing: -0.025em; }
.an-three p { font-size: 14px; line-height: 1.6; color: var(--body); }
.an-rewrites { padding: 0 20px; background: var(--canvas); border-radius: 8px; }
.an-rewrites summary { min-height: 52px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.an-rewrite { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 16px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.an-rewrite .before { color: var(--meta); }
.an-rewrite .arrow { color: var(--accent); }
.an-rewrite .after { font-weight: 600; color: var(--text); }
.an-rewrite .why { grid-column: 3; font-size: 13px; color: var(--meta); }
@media (max-width: 640px) {
  .an { padding: 16px; }
  .an-rewrite { grid-template-columns: 1fr; }
  .an-rewrite .arrow { display: none; }
  .an-rewrite .why { grid-column: 1; }
}
.video.plain { cursor: default; }
.an-rewrites summary { list-style: none; }
.an-rewrites summary::-webkit-details-marker { display: none; }
.an-rewrites summary::after { content: "펼치기"; margin-left: auto; font-weight: 500; color: var(--accent); }
.an-rewrites[open] summary::after { content: "접기"; }
/* 분석 안의 제목들: 본문과 구분되게 키운다. */
.an-title { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -0.025em; color: var(--text); }
.an-block { gap: 12px; padding-top: 8px; }
.an-card .an-label { font-size: 17px; letter-spacing: -0.025em; }
.an-rewrites summary { min-height: 60px; font-size: 18px; letter-spacing: -0.025em; }
.an-rewrites summary::after { font-size: 14px; }
.an-empty { max-width: none; }
.an-empty span { display: block; }
/* 분석 머리: 왼쪽 글 묶음의 세로 가운데에 버튼을 둔다. */
.an-head { flex-wrap: nowrap; align-items: center; gap: 24px; }
.an-intro { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.an-intro .an-empty { margin-top: 12px; }
.an-head > button { flex: 0 0 auto; }
@media (max-width: 640px) {
  .an-head { flex-wrap: wrap; }
}
.mine-card .foot .go { font-weight: 600; text-decoration: none; }
.mine-card .foot .go::after { content: " ›"; }
.mine-card .foot .go:hover { text-decoration: underline; }
/* 내 채널 추가 레이어 */
dialog.add-layer { width: min(560px, calc(100vw - 32px)); }
dialog.add-layer .vd-box { gap: 12px; }
dialog.add-layer .vd-head { margin-bottom: 8px; }
dialog.add-layer .row { display: flex; gap: 8px; }
dialog.add-layer .row .input { flex: 1 1 auto; min-width: 0; }
dialog.add-layer .row .btn { flex: 0 0 auto; }
.mine-card.empty button.go { align-self: flex-start; padding: 0; font: inherit; font-weight: 600; color: var(--accent); background: none; border: 0; cursor: pointer; }
.mine-card.empty button.go:hover { text-decoration: underline; }
.tabs .tab-add { min-height: 44px; padding: 0 2px; margin-bottom: -1px; font: inherit; font-size: 15px; font-weight: 500; color: var(--accent); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.tabs .tab-add:hover { text-decoration: underline; }
@media (max-width: 480px) {
  dialog.add-layer .row { flex-direction: column; }
}
/* 로그인 버튼. 카카오 버튼은 카카오 로그인 디자인 가이드의 색(#FEE500, 글자 85% 검정)과 말풍선 기호를 따른다. */
.login-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.btn-kakao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; font-size: 16px; font-weight: 600; color: rgba(0, 0, 0, 0.85); text-decoration: none; background: #fee500; border-radius: 100px; }
.btn-kakao:hover { background: #fada0a; }
.btn-kakao[hidden] { display: none; }
/* 로그인 화면: 머리말·꼬리말 없이 가운데 카드 하나만 둔다. */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--surface); }
.login-card { width: min(440px, 100%); display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 56px 40px 32px; text-align: center; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; }
.login-mark { display: inline-block; text-decoration: none; }
.login-mark img { display: block; height: 36px; width: auto; }
.login-lead { font-size: 15px; line-height: 1.6; color: var(--body); }
.login-card .error { width: 100%; }
.login-actions { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.login-btn { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; }
.login-btn[hidden] { display: none; }
.login-btn.kakao { color: rgba(0, 0, 0, 0.85); background: #fee500; }
.login-btn.kakao:hover { background: #fada0a; }
.login-btn.google { color: var(--text); background: var(--canvas); border: 1px solid var(--border); }
.login-btn.google:hover { background: var(--surface); }
.login-note { font-size: 13px; line-height: 1.6; color: var(--meta); text-align: center; }
.login-note a { color: var(--meta); }
.login-foot { width: 100%; display: flex; justify-content: center; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.login-foot a { color: var(--meta); text-decoration: none; }
.login-foot a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 480px) {
  .login-card { padding: 40px 20px 24px; }
}
/* 블로그 */
.blog { display: flex; flex-direction: column; gap: 48px; padding-top: 56px; padding-bottom: 96px; }
.blog-head .lead { margin-top: 12px; }
.blog-cat { display: flex; flex-direction: column; gap: 16px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.post-card .t { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.45; letter-spacing: -0.025em; color: var(--text); }
.post-card .d { font-size: 14px; line-height: 1.6; color: var(--meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card:hover .t { text-decoration: underline; }
/* 표지: 그림 없이 서비스명과 짧은 제목으로 만든다 */
.post-cover { position: relative; aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 20px; overflow: hidden; color: #fff; background: var(--accent); border-radius: 8px; }
.post-cover .mark { display: block; align-self: flex-start; height: 18px; width: auto; opacity: 0.9; }
.post-cover .label { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; }
.post-cover::after { content: ""; position: absolute; right: -12%; bottom: -40%; width: 60%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 50%; }
.post-cover.big { margin: 8px 0 16px; padding: 28px 32px; }
.post-cover.big .mark { height: 22px; }
.post-cover.big .label { font-size: clamp(28px, 5vw, 40px); }
.post { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.post-cat a { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
/* 본문 */
.prose { font-size: 17px; line-height: 1.8; color: var(--body); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 44px; font-size: 22px; font-weight: 600; line-height: 1.4; letter-spacing: -0.025em; color: var(--text); }
.prose h3 { margin-top: 32px; font-size: 18px; font-weight: 600; color: var(--text); }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 6px; }
.prose blockquote { margin: 18px 0 0; padding: 14px 18px; font-weight: 500; color: var(--text); background: var(--surface); border-radius: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--text); background: var(--surface); }
.post-cta { margin-top: 40px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--accent-soft); border-radius: 8px; }
.post-cta p { flex: 1 1 280px; font-size: 15px; line-height: 1.6; color: var(--text); }
@media (max-width: 640px) {
  .blog { padding-top: 32px; gap: 36px; }
  .prose { font-size: 16px; }
}

/* 무료 도구: 유튜브 수익 계산기 */
.tool { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 32px; }
.tool-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.tool-head .lead { font-size: 16px; color: var(--meta); }
.calc-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.calc-form { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.calc-form .field { display: flex; flex-direction: column; gap: 8px; }
.calc-form .seg { align-self: flex-start; }
.calc-form .input { width: 100%; }
.filter select, select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23201e22' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { min-height: 36px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 500; color: var(--body); background: var(--surface); border: 1px solid var(--line); border-radius: 100px; cursor: pointer; }
.quick button:hover { border-color: var(--border); }
.more-inputs { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.more-inputs summary { min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }
.more-inputs[open] summary { margin-bottom: 8px; }
.more-inputs .field + .field { margin-top: 16px; }
.calc-out { padding: 32px; background: var(--accent-soft); display: flex; flex-direction: column; gap: 12px; }
.out-label { font-size: 14px; font-weight: 600; color: var(--text); }
.out-main { font-size: 40px; font-weight: 700; line-height: 1.2; letter-spacing: -0.03em; color: var(--accent); }
.out-mid { min-height: 21px; font-size: 15px; font-weight: 600; color: var(--text); }
.out-rows { margin: 12px 0 4px; border-top: 2px solid var(--accent); }
.out-rows div { padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; border-bottom: 1px solid rgba(8, 89, 212, 0.15); }
.out-rows dt { font-size: 14px; color: var(--meta); }
.out-rows dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.out-note { font-size: 14px; font-weight: 500; color: var(--text); background: #fff; border-radius: 8px; padding: 10px 14px; }
.band .wrap.tool-copy { display: block; }
.tool-copy > * { max-width: 760px; }
.tool-copy > h2:first-child { margin-top: 0; }
.tool-copy .table-wrap { border-top: 0; }
.tool-copy td:nth-child(n + 2), .tool-copy th:nth-child(n + 2) { white-space: nowrap; }
.sources { margin-top: 32px; display: flex; flex-direction: column; gap: 8px; }
.sources ul { display: flex; flex-direction: column; gap: 4px; }
.sources a { color: var(--meta); }
@media (max-width: 800px) {
  .calc-box { grid-template-columns: 1fr; }
  .calc-form, .calc-out { padding: 24px 20px; }
  .out-main { font-size: 32px; }
  .tool { padding-top: 40px; }
}
.rpm-row { display: flex; gap: 8px; }
.rpm-row .input { flex: 1 1 auto; }
.rpm-row .seg { flex: 0 0 auto; }
.rpm-row .seg button { min-height: 50px; }
.card .badge.lv4 { box-shadow: 0 0 0 1.5px #fff; } /* 어두운 썸네일 위에서도 보이게 */

/* 약관·방침 문서 */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.7; }
.legal h2 { margin-top: 20px; }
.legal a { color: var(--accent); }
.legal .table-wrap { border-top: 0; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.legal th, .legal td { overflow-wrap: normal; padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 600; color: var(--text); background: var(--surface); white-space: nowrap; }
