/* SleepMoney 강의 사이트(api.9bix.com) — 다운로드·강의 구매·키 등록·내 강의실·관리
 * 2026-10-04 SleepMoney 브랜드(밤하늘 남색 + 금색)로 다시 칠함 — 사용자 요청·docs/api-site-plan.md 6장
 *  기존 코드(밝은 테마): --bg #F5F7FB · --panel #FFF · --text #0F172A · --accent #2F5BEA(파랑) · 버튼/머리/꼬리 흰 바탕
 *  변경 이유: 9bix.com 강의 페이지와 같은 SleepMoney 디자인 언어 — 어두운 밤하늘 바탕, 금색 강조, 얇은 반투명 테두리
 *  클래스 이름은 그대로 두고 색·모양만 바꿈(서버 HTML 은 그대로 동작) */
:root {
  --bg: #0b0d24; --bg-2: #05060f; --panel: rgba(255, 255, 255, .035); --panel2: rgba(255, 255, 255, .055); --panel-solid: #10122e;
  --line: rgba(255, 255, 255, .09); --line-strong: rgba(255, 255, 255, .18);
  --text: #f4f4ff; --dim: #c3c5e0; --muted: #8c8fb3;
  --accent: #ffc24b; --accent-2: #ffd47a; --accent-soft: rgba(255, 194, 75, .12); --accent-text: #ffd98a; --on-accent: #1a1300;
  --moon: #c9cbff; --night-glow: rgba(124, 108, 255, .22);
  --ok: #6ee7b7; --ok-soft: rgba(110, 231, 183, .1); --warn: #fcd34d; --warn-soft: rgba(252, 211, 77, .1); --err: #fca5a5; --err-soft: rgba(252, 165, 165, .1);
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* 기존 코드: html { -webkit-text-size-adjust: 100%; } — 변경 이유: 사용자 요청(2026-10-05) "메뉴를 이동할 때마다 가로 사이즈 변동" — 내용이 짧은 페이지(/login 등)는 세로 스크롤바가 없어 화면 폭이 15px 넓어졌다가 다른 페이지에서 다시 좁아졌다. 스크롤바 자리를 늘 비워 둔다 */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--text);
  /* 기존 코드: …, linear-gradient(180deg, var(--bg), var(--bg-2)) fixed — 변경 이유: fixed 그라데이션이 긴 페이지에서 화면 높이마다 띠가 생김 → 위 1400px 만 그라데이션, 아래는 단색 */
  background: radial-gradient(1100px 560px at 50% -120px, var(--night-glow), transparent 70%) no-repeat, linear-gradient(180deg, var(--bg) 0, var(--bg-2) 1400px) no-repeat; background-color: var(--bg-2);
  font: 15.5px/1.7 'Pretendard Variable', 'Pretendard', 'Gothic A1', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; }
/* 밤하늘 별(아주 은은하게) */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.5), transparent 60%), radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.4px 1.4px at 47% 9%, rgba(255,217,138,.65), transparent 60%), radial-gradient(1px 1px at 66% 38%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 84% 14%, rgba(255,255,255,.45), transparent 60%), radial-gradient(1px 1px at 92% 58%, rgba(255,217,138,.45), transparent 60%),
    radial-gradient(1.1px 1.1px at 6% 80%, rgba(255,255,255,.3), transparent 60%); }
main { flex: 1 0 auto; }
/* 기존 코드: img { max-width: 100%; } — 변경 이유: width·height 속성이 있는 사진이 폭만 줄고 높이는 그대로라 세로로 늘어짐 → 비율 유지 */
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
::selection { background: rgba(255, 194, 75, .35); }

/* ── 머리 ── */
header.top { position: sticky; top: 0; z-index: 20; padding: 12px 0 0; }
/* 기존 코드: header.top .wrap { … padding: 6px 10px 6px 14px; } — 변경 이유: .wrap 의 좌우 20px 여백을 덮어써 1120px 보다 좁은 화면에서 머리 막대가 화면 끝까지 튀어나옴 → 본문과 같은 여백 */
header.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: nowrap; background: rgba(16, 18, 46, .72); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; padding: 6px 10px 6px 14px; width: calc(100% - 40px); max-width: 1080px; }
header nav { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { display: block; line-height: 1.1; font-size: 17px; }
.brand b i { font-style: normal; color: var(--accent); }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; line-height: 1.2; }
header nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
header nav a { padding: 7px 12px; border-radius: 10px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
header nav a:hover, header nav a.on { background: rgba(255, 255, 255, .07); color: var(--text); }
header nav a.cta { background: var(--accent); color: var(--on-accent); font-weight: 700; }
header nav a.cta:hover { background: var(--accent-2); color: var(--on-accent); }
header nav a.out { color: var(--muted); font-size: 13.5px; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 19px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px rgba(255, 194, 75, .6); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); }
.btn.danger { background: transparent; color: var(--err); border-color: rgba(252, 165, 165, .35); }
.btn.danger:hover { background: var(--err-soft); }
.btn.big { padding: 14px 24px; font-size: 16.5px; border-radius: 14px; }
.btn.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.google { background: #fff; color: #1F1F1F; border-color: #DADCE0; gap: 10px; }
.btn.google:hover { background: #F8FAFF; border-color: #C6D3F5; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── 첫 화면 ── */
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center; padding: 60px 0 30px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.18; letter-spacing: -.03em; margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 30%, #ffd98a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: normal; }
.hero .lead { font-size: 17.5px; color: var(--dim); margin: 0 0 24px; }
.hero .shot { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 194, 75, .06); transform: perspective(1200px) rotateY(-6deg); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.hero .shot:hover { transform: perspective(1200px) rotateY(0deg); }
.hero .note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border-radius: 99px; padding: 4px 12px; margin-bottom: 16px; }

/* ── 세 갈래 시작 카드(강의 구매 · 키 등록 · 무료판) ── */
.choose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 10px; }
.choose a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; transition: border-color .25s, background .25s, transform .25s; overflow: hidden; }
.choose a:hover { border-color: rgba(255, 194, 75, .45); background: rgba(255, 194, 75, .05); transform: translateY(-3px); }
.choose a .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; margin-bottom: 4px; }
.choose a b { font-size: 18px; letter-spacing: -.01em; }
.choose a span { color: var(--muted); font-size: 14px; }
.choose a.main { border-color: rgba(255, 194, 75, .4); background: linear-gradient(160deg, rgba(255, 194, 75, .1), rgba(255, 255, 255, .02) 60%); }

/* ── 두 갈래(무료판·강의판) ── */
.section-title { text-align: center; margin: 56px 0 6px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.track { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 26px; display: flex; flex-direction: column; position: relative; }
.track.course { border: 1px solid rgba(255, 194, 75, .55); box-shadow: 0 24px 60px -24px rgba(255, 194, 75, .35); background: linear-gradient(170deg, rgba(255, 194, 75, .07), rgba(255, 255, 255, .02) 55%); }
.track .badge { position: absolute; top: -13px; right: 22px; background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.tag { display: inline-block; white-space: nowrap; vertical-align: middle; line-height: 1.5; font-size: 12.5px; font-weight: 700; padding: 3px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.tag.free { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.err { background: var(--err-soft); color: var(--err); }
.tag.gray { background: rgba(255, 255, 255, .07); color: var(--dim); }
.track h3 { margin: 12px 0 0; font-size: 23px; letter-spacing: -.01em; }
.track .ver { color: var(--muted); font-size: 13.5px; }
.price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 0; line-height: 1.2; }
.price small { font-size: 14.5px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
ul.check { list-style: none; padding: 0; margin: 16px 0 22px; flex: 1; }
ul.check li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--dim); }
ul.check li::before { content: ''; position: absolute; left: 1px; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC24B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.track.free ul.check li::before { background-color: var(--ok-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236EE7B7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
ul.check li b { color: var(--text); }
.track .sub { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ── 비교표 ── */
.tbl-wrap { overflow-x: auto; margin: 30px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.cmp th, table.cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp thead th { background: var(--panel2); font-weight: 700; }
table.cmp td:first-child { color: var(--muted); font-weight: 600; width: 26%; }
table.cmp .yes { color: var(--ok); font-weight: 700; } table.cmp .no { color: #5f6288; }

/* ── 설명 블록 ── */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center; margin: 60px 0; }
/* 기존: .feature-row img 만 — 변경(2026-10-05): 움직이는 장면(video)도 같은 모양 */
.feature-row video { width: 100%; height: auto; display: block; }
.feature-row img, .feature-row video { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9); }
.feature-row h3 { font-size: 24px; margin: 0 0 10px; letter-spacing: -.015em; }
.feature-row p { color: var(--dim); margin: 0 0 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 44px; color: var(--dim); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 28px; height: 28px; border-radius: 50%; background: var(--panel-solid); border: 1px solid rgba(255, 194, 75, .6); color: var(--accent); font-weight: 800; font-size: 13.5px; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 31px; bottom: 2px; width: 1px; background: linear-gradient(rgba(255, 194, 75, .5), transparent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.panel + .panel { margin-top: 18px; }
.panel h2 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.01em; }
.panel h2 + .muted { margin-top: -2px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ── 진행 단계 표시(계좌이체·내 강의실 공용) ── */
.progress { display: flex; gap: 0; margin: 16px 0 6px; list-style: none; padding: 0; }
.progress li { flex: 1; position: relative; text-align: center; font-size: 13px; color: var(--muted); padding-top: 34px; }
.progress li::before { content: ''; position: absolute; left: 50%; top: 4px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--panel-solid); z-index: 1; }
.progress li::after { content: ''; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px; background: var(--line-strong); }
.progress li:first-child::after { display: none; }
.progress li.done, .progress li.now { color: var(--text); font-weight: 700; }
.progress li.done::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1300' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--accent); }
.progress li.done::after, .progress li.now::after { background: var(--accent); }
.progress li.now::before { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 194, 75, .18); animation: sm-pulse 1.8s ease-in-out infinite; }
@keyframes sm-pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 194, 75, .05); } }

/* ── 복사 버튼 ── */
.copy { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; vertical-align: middle; transition: background .2s, color .2s, border-color .2s; }
.copy:hover { background: rgba(255, 255, 255, .09); color: var(--text); }
.copy.done { border-color: var(--ok); color: var(--ok); }

/* ── 폼 ── */
.form-card { max-width: 480px; margin: 48px auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px 28px; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.form-card h1 { margin: 0 0 6px; font-size: 25px; letter-spacing: -.02em; }
.form-card .muted { margin: 0 0 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 700; color: var(--dim); }
/* 기존: text·email·password·tel 만 — 변경(2026-10-05): 관리 화면 강의·가격 폼의 url·number 칸도 같은 모양 */
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel], .field input[type=url], .field input[type=number], .table-input, .field textarea, .field select, input.keyin {
  width: 100%; font: inherit; font-size: 15.5px; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); }
.field input:focus, .field textarea:focus, input.keyin:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
input.keyin { font-family: Consolas, 'D2Coding', monospace; font-size: 19px; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; padding: 14px; }
.field .hint { font-size: 12.8px; color: var(--muted); }
.check-line { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--dim); margin: 8px 0; }
.check-line input { margin-top: 5px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); }
.form-foot { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.alert { padding: 12px 15px; border-radius: 12px; font-size: 14.5px; margin: 0 0 16px; border: 1px solid; }
.alert.err { background: var(--err-soft); color: var(--err); border-color: rgba(252, 165, 165, .3); }
.alert.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(110, 231, 183, .3); }
.alert.info { background: rgba(201, 203, 255, .08); color: var(--moon); border-color: rgba(201, 203, 255, .22); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(252, 211, 77, .3); }
/* 키 등록 단계 표시 */
.redeem-steps { display: flex; gap: 8px; margin: 0 0 20px; }
.redeem-steps span { flex: 1; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); }
.redeem-steps span.on { color: var(--accent-text); border-color: rgba(255, 194, 75, .45); background: var(--accent-soft); }
.help { margin-top: 18px; display: grid; gap: 8px; }
.help details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .02); }
.help summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--dim); }
.help p { margin: 8px 0 2px; font-size: 14px; color: var(--muted); }

/* ── 내 강의실 ── */
.page-head { padding: 38px 0 12px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.status-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-status { border-color: rgba(255, 194, 75, .35); background: linear-gradient(160deg, rgba(255, 194, 75, .08), rgba(255, 255, 255, .02) 60%); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv span:nth-child(odd) { color: var(--muted); }
.list { display: grid; gap: 8px; margin-top: 10px; }
.list .item { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: rgba(255, 255, 255, .025); flex-wrap: wrap; }
.list .item > div:first-child { flex: 1 1 240px; min-width: 0; }
.list .item b { display: block; }
.list .item small { color: var(--muted); display: block; }
.list .item .end { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
details.more { margin-top: 4px; }
details.more > summary { cursor: pointer; font-weight: 700; color: var(--dim); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
details.more[open] > summary { margin-bottom: 12px; }
.link-item { text-decoration: none; color: var(--text); transition: border-color .2s; }
.link-item:hover { border-color: rgba(255, 194, 75, .5); }
.dl-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, #2a2e7a, #3b2f86 55%, #6b4b1f); color: #fff; border-radius: 14px; padding: 20px 22px; margin-top: 12px; border: 1px solid rgba(255, 194, 75, .25); }
.dl-box .muted { color: rgba(255, 255, 255, .78); }
.dl-box .btn { background: var(--accent); color: var(--on-accent); }
.app-login { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 14px; color: var(--dim); line-height: 1.9; }
.who { display: flex; gap: 12px; align-items: center; }
.who img, .who .av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.who .av { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; }
.who b { display: block; line-height: 1.3; }
.who small { color: var(--muted); }

/* ── 결제 ── */
.checkout { max-width: 640px; margin: 40px auto; }
.order-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-sum .price { margin: 0; }
.bank { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 16px; margin: 14px 0; align-items: center; }
.bank span:nth-child(odd) { color: var(--muted); font-size: 14.5px; }
.bank b { font-size: 17px; }

/* ── 관리 ── */
.console-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 6px; }
.console-nav a { padding: 7px 13px; border-radius: 10px; text-decoration: none; color: var(--dim); font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.console-nav a.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13.5px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { background: var(--panel2); font-weight: 700; white-space: nowrap; }
table.data td.nw { white-space: nowrap; }
table.data form { display: inline; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.keytext { font-family: Consolas, 'D2Coding', monospace; font-weight: 700; background: rgba(255, 194, 75, .12); color: var(--accent-text); border: 1px solid rgba(255, 194, 75, .3); padding: 2px 9px; border-radius: 7px; letter-spacing: .5px; white-space: nowrap; user-select: all; }
.next-key { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px; border-radius: 14px; border: 1px solid rgba(255, 194, 75, .35); background: var(--accent-soft); margin-top: 14px; }
.next-key .keytext { font-size: 18px; padding: 6px 12px; }

/* ── 자주 묻는 질문 ── */
.faq { max-width: 860px; margin: 10px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px 20px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 194, 75, .3); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); font-weight: 500; flex: none; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 2px; color: var(--dim); }

/* ── 문서(약관) ── */
.doc { max-width: 820px; margin: 34px auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; }
.doc h1 { margin: 0 0 6px; font-size: 26px; }
.doc h2 { font-size: 17.5px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--dim); font-size: 15px; }

/* ── 꼬리 ── */
footer.site { margin-top: 72px; border-top: 1px solid var(--line); background: rgba(5, 6, 15, .6); color: var(--muted); font-size: 13px; line-height: 1.75; padding: 30px 0 42px; }
footer.site .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--dim); font-weight: 700; }
footer.site .brandline img { width: 26px; height: 26px; border-radius: 8px; }
footer.site .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
footer.site .links a { color: var(--dim); text-decoration: none; font-weight: 600; }
footer.site .links a:hover { color: var(--accent-text); }
footer.site .biz span + span::before { content: '·'; margin: 0 7px; color: #44476e; }

/* ── 화면에 들어올 때 올라오기 ── */
.rise { animation: sm-rise .8s cubic-bezier(.2, .85, .25, 1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes sm-rise { from { opacity: 0; transform: translateY(24px); filter: blur(4px); } }

/* ── SleepMoney 첫 접속 인트로(Remotion — public/sm-intro.js, 원본 web-intro/) ──
   <head> 스크립트가 처음 방문이면 html.sm-intro 를 붙이고 sm-intro.js 를 부른다 → 그리기 전부터 밤하늘로 덮어 두었다가
   인트로가 퍼지기 시작하면 html.sm-open 으로 머리·본문·꼬리가 차례로 올라온다(브라우저당 한 번, ?intro=1 로 다시) */
html.sm-intro body { overflow: hidden; }
html.sm-intro body::after { content: ''; position: fixed; inset: 0; z-index: 999; background: radial-gradient(900px 520px at 50% 45%, #1b1e55, #0b0c22 60%, #05060f); }
html.sm-intro.sm-ready body::after { display: none; }
html.sm-intro:not(.sm-open) main, html.sm-intro:not(.sm-open) header.top, html.sm-intro:not(.sm-open) footer.site { opacity: 0; }
html.sm-open main, html.sm-open header.top, html.sm-open footer.site { animation: sm-rise .9s cubic-bezier(.2, .85, .25, 1) both; }
html.sm-open header.top { animation-delay: .05s; } html.sm-open main { animation-delay: .15s; } html.sm-open footer.site { animation-delay: .3s; }
#sm-intro { position: fixed; inset: 0; z-index: 1000; }
#sm-intro .skip { position: absolute; right: 22px; bottom: 22px; z-index: 2; padding: 8px 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: var(--moon); font: inherit; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }

/* ── Lazyweb 보고서 반영(2026-10-04) — 가격 먼저 · 구성품 · 정직한 안내 · 진단 · 선택 탭 ── */
.hero-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 2px 0 20px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(255, 194, 75, .35); background: var(--accent-soft); width: fit-content; }
.hero-price b { font-size: 30px; letter-spacing: -.02em; color: var(--accent); line-height: 1.1; }
.hero-price span { color: var(--dim); font-size: 14.5px; font-weight: 600; }
ul.kit { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
ul.kit li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
ul.kit li b { color: var(--text); }
ul.kit li span { color: var(--dim); font-size: 14.5px; }
.buy-card .progress { margin: 0 0 18px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.buy-links a { color: var(--dim); }
.buy-links a:hover { color: var(--accent-text); }
ul.honest { list-style: none; padding: 14px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; font-size: 13.2px; color: var(--muted); }
ul.honest li { display: grid; grid-template-columns: 58px 1fr; gap: 8px; }
ul.honest b { color: var(--dim); font-weight: 700; }
.quiz { margin-top: 34px; }
.quiz-head h2 { margin: 10px 0 4px; font-size: 22px; }
.quiz-q { margin-top: 18px; }
.quiz-q > b { display: block; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--dim); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .2s; }
.opts button:hover { border-color: rgba(255, 255, 255, .32); color: var(--text); }
.opts button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); box-shadow: 0 0 0 3px rgba(255, 194, 75, .12); }
.quiz-result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quiz-result h3 { margin: 0 0 8px; }
.seg { margin: 6px 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.seg-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.seg-tabs button { padding: 14px 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.seg-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); background: rgba(255, 194, 75, .05); }
.seg-pane { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 22px; animation: sm-rise .45s ease-out both; }
.seg-pane[hidden] { display: none; }
.seg-pane > div:first-child { display: grid; gap: 2px; }
.seg-pane .muted { font-size: 14px; }

/* ── Price-First Fold 목업(강의 첫 화면) ── */
.pf-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.pf-price b { font-size: clamp(36px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.pf-price span { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; color: var(--text); }
.pf-pill { display: inline-flex; align-items: center; justify-content: center; padding: 9px 22px; border-radius: 12px; border: 1.5px solid rgba(255, 194, 75, .75); background: rgba(255, 194, 75, .05); color: var(--accent-text); font-weight: 700; font-size: 15px; min-width: min(100%, 420px); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.pf-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); font-weight: 600; font-size: 14.5px; }
.pf-chips svg { color: var(--accent); }

/* ── 3경로 스위처 목업(첫 화면) — 가로 탭 + 아코디언 카드 ── */
.switcher { margin: 10px 0 8px; display: grid; gap: 14px; }
.sw-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.sw-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .25s, color .25s; }
.sw-tabs button:hover { color: var(--text); }
.sw-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -12px rgba(255, 194, 75, .7); }
.sw-card { border-radius: 16px; border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .25s, background .25s; }
.sw-card.open { border-color: rgba(255, 194, 75, .7); background: linear-gradient(160deg, rgba(255, 194, 75, .05), rgba(255, 255, 255, .02) 60%); }
.sw-head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.sw-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 194, 75, .12); color: var(--accent); transition: background .25s, color .25s; }
.sw-card.open .sw-ic { background: var(--accent); color: var(--on-accent); }
.sw-t { flex: 1; display: grid; gap: 1px; }
.sw-t b { font-size: 17px; }
.sw-t small { color: var(--muted); font-size: 13.5px; }
.sw-chev { color: var(--muted); transition: transform .3s; }
.sw-card.open .sw-chev { transform: rotate(180deg); color: var(--text); }
.sw-body { display: none; padding: 4px 20px 20px; border-top: 1px solid var(--line); }
.sw-card.open .sw-body { display: block; animation: sm-rise .4s ease-out both; }
ul.sw-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; margin: 14px 0 16px; flex: none; }
ul.sw-list li { font-size: 14px; margin: 5px 0; }
.sw-body .tier-now { margin-top: 4px; }

/* ── 단계별 가격(2026-10-04) — 남은 자리 · 막대 · 가격 표 ── */
.tier-now { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 194, 75, .3); background: rgba(255, 194, 75, .06); font-size: 14px; color: var(--dim); }
.tier-now b { color: var(--text); }
.tier-now b.hot { color: var(--accent); font-size: 16px; }
.tier-now.compact { margin: -8px 0 20px; width: fit-content; min-width: 320px; }
.tier-bar { height: 6px; margin-top: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tier-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f5a623, var(--accent)); box-shadow: 0 0 12px rgba(255, 194, 75, .6); }
.tier-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tier { display: grid; gap: 4px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.tier b { font-size: 22px; letter-spacing: -.02em; }
.tier .tier-n { font-size: 13px; font-weight: 700; color: var(--muted); }
.tier .tag { width: fit-content; margin-top: 6px; }
.tier.now { border-color: rgba(255, 194, 75, .55); background: linear-gradient(160deg, rgba(255, 194, 75, .1), rgba(255, 255, 255, .02) 60%); box-shadow: 0 18px 50px -24px rgba(255, 194, 75, .45); }
.tier.now b { color: var(--accent); }
.tier.done { opacity: .55; }
.tier.done b { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }

/* ── 모바일 옆 서랍(2026-10-04) — 860px 아래에서 머리 메뉴 대신 ☰ + 오른쪽 서랍 ── */
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); display: flex; flex-direction: column; background: #10122e; border-left: 1px solid var(--line); box-shadow: -30px 0 80px rgba(0, 0, 0, .5); transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
html.drawer-open { overflow: hidden; }
html.drawer-open .drawer { pointer-events: auto; }
html.drawer-open .drawer-bg { opacity: 1; }
html.drawer-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); }
.drawer-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.drawer ul { list-style: none; margin: 0; padding: 12px; flex: 1; overflow-y: auto; }
.drawer li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; color: var(--dim); text-decoration: none; font-size: 17px; font-weight: 700; }
.drawer li a:hover { background: rgba(255, 255, 255, .05); }
.drawer li a.on { background: rgba(255, 255, 255, .08); color: var(--text); }
.drawer li a.on::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
html.drawer-open .drawer li { animation: sm-rise .5s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(60ms + var(--i) * 45ms); }
.drawer-foot { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.drawer-foot a.small { text-decoration: none; text-align: center; }

@media (max-width: 860px) {
  header nav { display: none; }
  .menu-btn { display: inline-flex; }
  ul.kit li { grid-template-columns: 1fr; gap: 2px; }
  .seg-tabs { grid-template-columns: 1fr; }
  .tier-now.compact { min-width: 0; width: auto; }
  .sw-tabs button span { font-size: 13.5px; }
  ul.sw-list { grid-template-columns: 1fr; }
  .pf-pill { min-width: 0; width: 100%; }
  .seg-tabs button { text-align: left; padding: 12px 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; }
  .hero .shot { transform: none; }
  .tracks, .grid2, .feature-row, .choose { grid-template-columns: 1fr; }
  .feature-row { margin: 40px 0; }
  .doc { padding: 26px 22px; }
  .form-card { margin: 28px auto; padding: 28px 22px; }
}
@media (max-width: 520px) {
  header.top .wrap { min-height: 54px; width: calc(100% - 28px); }
  .wrap { padding: 0 14px; }
  table.cmp { min-width: 0; font-size: 13.5px; }
  table.cmp th, table.cmp td { padding: 10px 10px; }
  .panel { padding: 22px 18px; }
  .dl-box { padding: 18px; }
  .dl-box .btn { width: 100%; }
  header nav a { padding: 6px 9px; font-size: 13.5px; }
  .brand small { display: none; }
  .track { padding: 24px 20px 22px; }
  .btn.big { width: 100%; }
}

/* ── 2026-10-04 3개 언어 전환(KO·EN·ES) + 강의 목록(/courses) — 사용자 요청 ── */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 99px; margin: 0 4px; }
header nav .lang-switch a, .lang-switch a { padding: 3px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); text-decoration: none; background: transparent; line-height: 1.5; }
header nav .lang-switch a:hover, .lang-switch a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
header nav .lang-switch a.on, .lang-switch a.on { background: var(--accent-soft); color: var(--accent-text); }
.lang-switch.foot { margin-left: auto; }
.lang-switch.wide { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.lang-switch.wide a { text-align: center; padding: 8px 0; font-size: 13.5px; }
.krw-note { margin: 10px 0 0; }
.legal-note { margin-top: 28px; }
.legal-note ul { margin: 6px 0 0; padding-left: 20px; }
.page-hero { padding: 56px 0 8px; text-align: center; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; }
.page-hero .lead { font-size: 17px; color: var(--dim); margin: 0; }
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 36px 0 70px; }
.ccard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: border-color .25s, transform .25s; }
.ccard:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.ccard.open { border-color: rgba(255, 194, 75, .35); }
.ccover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel2); }
.ccover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ccard:hover .ccover img { transform: scale(1.03); }
.ccard.soon .ccover img { filter: grayscale(.6) brightness(.7); }
.ccover .tag { position: absolute; top: 12px; left: 12px; background: rgba(8, 9, 28, .82); color: var(--accent-text); border: 1px solid rgba(255, 194, 75, .45); backdrop-filter: blur(6px); }
.ccover .tag.gray { color: #e6e7f5; border-color: rgba(255, 255, 255, .25); }
.cbody .kicker { align-self: flex-start; }
.cbody { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.cbody h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.cbody h3 a { color: var(--text); text-decoration: none; }
.cbody p { margin: 0; font-size: 14.5px; }
.cbody .row { margin-top: auto; padding-top: 6px; }
.cprice { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cprice b { font-size: 22px; }
/* 강의가 하나일 때(2026-10-05) — 가로로 넓은 카드: 왼쪽 화면 사진 · 오른쪽 소개·가격·버튼 */
.catalog.single { grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin: 36px auto 22px; }
.catalog.single .ccard { flex-direction: row; }
.catalog.single .ccover { flex: 1.15 1 0; aspect-ratio: auto; min-height: 340px; }
.catalog.single .cbody { flex: 1 1 0; padding: 32px 32px 30px; gap: 14px; justify-content: center; }
.catalog.single .cbody h3 { font-size: 26px; }
.catalog.single .cbody p { font-size: 15.5px; }
.catalog.single .cbody .row { margin-top: 8px; }
.catalog-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 1040px; margin: 0 auto 70px; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
@media (max-width: 1000px) { .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); } .catalog.single { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .catalog.single .ccard { flex-direction: column; } .catalog.single .ccover { flex: none; min-height: 0; aspect-ratio: 16 / 10; } .catalog.single .cbody { flex: none; } .catalog.single .cbody { padding: 22px 20px; } .catalog.single .cbody h3 { font-size: 21px; } }
@media (max-width: 640px) { .catalog { grid-template-columns: 1fr; } .page-hero { padding-top: 36px; } }
/* 영어·스페인어는 버튼 글이 길다 — 좁은 화면에서 줄바꿈 허용(가로 넘침 방지) */
.hero > * { min-width: 0; }
@media (max-width: 520px) { .btn.big.block { white-space: normal; text-align: center; line-height: 1.35; } }

/* ── 관리 화면 · 뉴스 글쓰기(2026-10-05, 사용자 요청 "뉴스를 작성할 수 있는 페이지") ── */
.ne-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ne-side .panel { padding: 18px; }
.ne-side .panel + .panel, .ne-side form { margin-top: 14px; }
.news-ed .field input, .news-ed .field select, .ne-desc, .ne-html { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--text); }
.news-ed .field select option { background: var(--panel-solid); }
.news-ed .field input:focus, .news-ed .field select:focus, .ne-desc:focus, .ne-html:focus, .ne-title:focus, .ne-body:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.news-ed [hidden] { display: none !important; }   /* .btn 의 display 가 hidden 을 이기지 않게 */
.news-ed .grid2 { grid-template-columns: 1fr; gap: 0; }   /* 날짜 칸은 옆 칸(320px)에서 두 개 나란히 들어가지 않음 */
.ne-title { width: 100%; font: inherit; font-size: 26px; font-weight: 800; letter-spacing: -.02em; padding: 8px 10px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text); }
.ne-desc { resize: vertical; margin-top: 6px; }
.ne-count { text-align: right; margin: 2px 2px 8px; }
.ne-count.over { color: var(--warn); }
.ne-tools { position: sticky; top: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; margin: 10px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-solid); }
.ne-tools button { font: inherit; font-size: 13.5px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); cursor: pointer; }
.ne-tools button:hover, .ne-tools button.on { background: rgba(255, 255, 255, .08); color: var(--text); }
.ne-tools .sep { width: 1px; margin: 4px 2px; background: var(--line); }
.ne-body { min-height: 420px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .02); line-height: 1.8; font-size: 16px; }
.ne-body:empty::before { content: '본문을 쓰세요 — [소제목]으로 단락을 나누면 홈페이지에 목차가 생깁니다'; color: var(--muted); }
.ne-body h2 { font-size: 22px; margin: 1.4em 0 .5em; } .ne-body h3 { font-size: 18px; margin: 1.2em 0 .4em; }
.ne-body p { margin: 0 0 1em; } .ne-body img { max-width: 100%; height: auto; border-radius: 10px; }
.ne-body figure { margin: 1.4em 0; } .ne-body figcaption { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 6px; }
.ne-body blockquote { margin: 1em 0; padding: 4px 16px; border-left: 3px solid var(--accent); color: var(--dim); }
.ne-body table { border-collapse: collapse; width: 100%; margin: 1em 0; } .ne-body th, .ne-body td { border: 1px solid var(--line-strong); padding: 7px 10px; text-align: left; }
.ne-body hr { border: 0; border-top: 1px solid var(--line-strong); margin: 2em 0; }
.ne-html { min-height: 420px; font-family: Consolas, 'D2Coding', monospace; font-size: 13.5px; line-height: 1.6; }
.ne-serp { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #fff; color: #202124; font-family: Arial, sans-serif; }
.ne-serp .u { font-size: 12.5px; color: #4d5156; } .ne-serp .t { font-size: 18px; color: #1a0dab; margin: 3px 0; line-height: 1.3; } .ne-serp .d { font-size: 13.5px; color: #4d5156; line-height: 1.5; }
@media (max-width: 900px) { .ne-grid { grid-template-columns: 1fr; } .ne-title { font-size: 20px; } }
