/* 화면 톤 A안 '미드나잇 네이비' (2026-11-10 사용자 결정) — style.css 뒤에 얹는 한 겹.
   기능·구조는 style.css 그대로 두고 색·글꼴·모서리·그림자와 아래 탭·홈 카드만 여기서 바꾼다.
   되돌리려면 index.html 의 이 파일 링크 한 줄만 빼면 된다(아래 탭·홈 카드 모양은 이 파일이 있어야 한다). */
:root {
  --ground: #F4F5F7;
  --ink: #0F1B2D;
  --navy: #13294B;
  --accent: #2456D6;
  --gold-bg: #F6EFE2;
  --gold-ink: #7A5A1E;
  --blue: #2456D6;
  --blue-light: #EAF0FF;
  --gray: #5F6B82;
  --line: #E6E9EF;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 6px 20px rgba(15,27,45,.05);
}
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  background: var(--ground); color: var(--ink); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
.ico { flex: none; vertical-align: -0.2em; }

/* 위 막대 — 뿌리 화면(탭이 보이는 화면)은 바탕에 녹이고, 안쪽 화면은 흰 막대 */
#topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; min-height: 52px; box-sizing: border-box; }
#topTitle { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
body.is-root #topbar { background: var(--ground); border-bottom-color: transparent; padding: 16px 20px 6px; }
body.is-root #topTitle { font-size: 22px; color: var(--navy); letter-spacing: -0.03em; }
.icon-btn { color: var(--ink); min-width: 32px; min-height: 32px; }
#cartBadge { background: var(--navy); }
#app { padding: 16px 20px 90px; }
body.has-tabs #app { padding-bottom: 104px; }
#bottomBar { background: linear-gradient(transparent, var(--ground) 30%); padding-left: 20px; padding-right: 20px; }

/* 아래 탭 */
#tabBar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20;
  width: 100%; max-width: 480px; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
#tabBar[hidden] { display: none; }
#tabBar .tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 48px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 500; color: var(--gray);
}
#tabBar .tab.on { color: var(--navy); font-weight: 700; }
#tabBar .tab.on .ico { stroke-width: 2.1; }
body.has-tabs #toast { bottom: 96px; }

/* 버튼 — 큰 버튼은 네이비, 보조는 흰 바탕에 옅은 테두리 */
button.primary { border-radius: 14px; background: var(--navy); font-size: 15.5px; letter-spacing: -0.01em; padding: 15px; }
button.primary:disabled { background: #C9D0DC; }
button.primary.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
button.primary.loading, button.primary.loading:disabled { background-color: #9AA8C0; background-image: linear-gradient(var(--navy), var(--navy)); }
.act { border: 1px solid #D5DAE3; border-radius: 12px; color: var(--ink); background: #fff; font-family: inherit; }
.act.pick { background: var(--navy); border-color: var(--navy); color: #fff; }
.act:disabled { border-color: var(--line); color: #A6AEBD; }
a.dl { border: 1px solid #D5DAE3; border-radius: 14px; color: var(--ink); }
a.dl.solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.text-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.link-btn { color: var(--gray); }

/* 카드 — 테두리 대신 옅은 그림자 */
.card, .shelf-card, .wb-card, .unit-card, .sel-row, .shot-card, .guide-step, .week, .br-head, .ur, .ar, .home-menu, .req-list, .page-list {
  border: 0; border-radius: 18px; box-shadow: var(--shadow);
}
.card { padding: 18px; }
.card h3, .shelf-head h3 { letter-spacing: -0.02em; }
.section-title { font-size: 15px; letter-spacing: -0.02em; margin: 22px 0 10px; }
.hero h1 { color: var(--navy); font-size: 28px; letter-spacing: -0.03em; line-height: 1.3; }
label.field input, .search-row input, .name-row input { border-radius: 12px; font-family: inherit; }
label.field input:focus, .search-row input:focus, .name-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-light); }

/* 고르기 칸 — 고른 것은 네이비로 채운다 */
.preset-opt { border-width: 1px; border-radius: 14px; }
.preset-opt.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.preset-opt.selected span { color: #C9D3E6; }
.prob-chk { border: 1px solid var(--line); border-radius: 12px; background: var(--ground); padding: 9px 12px; }
.prob-chk.checked { border-color: var(--navy); background: var(--navy); color: #fff; }
.prob-chk.checked input { accent-color: #fff; }
.num-btn { border-width: 1px; border-radius: 12px; }
.num-btn.added { border-color: var(--navy); background: var(--navy); color: #fff; }
.term-chip { border-width: 1px; }
.term-chip.on, .mri-kid.on { border-color: var(--navy); background: var(--navy); }
.child-opt { border-width: 1px; }
.child-opt.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.child-chip { border: 0; background: var(--blue-light); }
.child-chip.none { background: #EEF0F4; }
.chip { border: 0; }
.page-no, .sel-page, .book-grade, .req-course { color: var(--navy); }
.note-bar { border: 0; box-shadow: var(--shadow); border-radius: 16px; }
.note-bar b { color: var(--ink); }
.sheet { border-radius: 22px 22px 0 0; }
.sheet-back { background: rgba(15,27,45,.5); }
#toast { background: rgba(15,27,45,.94); }

/* 홈 */
.home-hello { margin: 2px 0 16px; }
.home-hello p { font-size: 14px; color: var(--gray); }
.home-hello h1 { margin-top: 4px; font-size: 22px; line-height: 1.4; font-weight: 700; letter-spacing: -0.03em; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 6px; }
.quick-grid > div:empty { display: none; }
.quick-grid:not(:has(button)) { display: none; }
.quick-grid .photo-entry {
  position: relative; flex-direction: column; align-items: flex-start; gap: 0; height: 100%; min-height: 104px;
  margin: 0; padding: 14px; border: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink);
}
.quick-grid .photo-entry .pe-ico { width: auto; height: auto; background: none; color: var(--navy); margin-bottom: 14px; display: block; }
.quick-grid .photo-entry .pe-txt { gap: 3px; flex: none; margin-top: auto; }
.quick-grid .photo-entry .pe-txt b { font-size: 15px; letter-spacing: -0.02em; }
.quick-grid .photo-entry .pe-txt small { font-size: 12px; line-height: 1.4; }
.quick-grid .photo-entry .mr-go { display: none; }
.photo-entry .pe-lock { background: var(--gold-bg); color: var(--gold-ink); }
.quick-grid .photo-entry .pe-lock { position: absolute; top: 14px; right: 14px; margin: 0; padding: 2px 7px; }
.shelf-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: 10px; }
.shelf-top h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.shelf-card { padding: 16px 16px 6px; border-radius: 20px; }
.shelf-head { align-items: flex-start; gap: 14px; }
.shelf-head h3 small { color: var(--gray); font-weight: 500; font-size: 13px; }
.shelf-head .sub { font-size: 12.5px; margin-top: 4px; }
.shelf-cover { width: 48px; border-radius: 6px; border: 0; box-shadow: 0 1px 3px rgba(15,27,45,.16); }
.shelf-track { height: 4px; background: var(--line); margin: 10px 0 0; }
.shelf-track i { background: var(--accent); }
.shelf-more { flex: none; width: 44px; height: 44px; margin: -10px -12px 0 -8px; border: 0; background: none; color: var(--gray); cursor: pointer; display: grid; place-items: center; }
.shelf-more .ico { fill: currentColor; stroke: none; }
.shelf-main { display: block; width: 100%; margin-top: 14px; padding: 0; height: 48px; border-radius: 14px; font-size: 15px; }
.shelf-subs { display: flex; margin-top: 4px; }
.sub-act {
  flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; background: none; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
}
.sub-act .ico { color: var(--gray); }
.sub-act b { color: var(--accent); }
.sub-act:disabled { color: #A6AEBD; cursor: default; }
.sub-act small { font-size: 10px; }
.mri-entry { background: var(--navy); border-radius: 18px; padding: 16px; }
.mri-entry .ht-ico { background: rgba(255,255,255,.1); color: #E3C88F; }
.member-strip { border-radius: 14px; border: 0; box-shadow: var(--shadow); }
.member-strip.soft { background: var(--gold-bg); color: var(--gold-ink); box-shadow: none; }
.member-strip.soft .more { color: var(--gold-ink); }
.install-banner, .notice-banner { border: 0; border-radius: 16px; }

/* 메뉴 줄 · 리포트 탭 · 전체 탭 */
.menu-row { gap: 12px; padding: 0 16px; min-height: 54px; font-size: 15px; font-weight: 500; color: var(--ink); }
.menu-row > .ico:first-child { color: var(--navy); }
.menu-row > .ico:last-child { color: var(--gray); }
.menu-row .mr-label small { display: block; margin-top: 1px; font-size: 12px; font-weight: 400; color: var(--gray); }
.rep-list { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 4px 16px; }
.rep-row { display: block; width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.rep-row:last-child { border-bottom: 0; }
.rep-row:disabled { cursor: default; }
.rep-row:disabled .rep-top b { color: var(--gray); }
.rep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rep-top b { font-size: 14.5px; letter-spacing: -0.02em; }
.rep-top b small { font-weight: 500; color: var(--gray); font-size: 12px; }
.rep-top > span { flex: none; font-size: 12.5px; color: var(--gray); }
.rep-row .shelf-track { display: block; margin-top: 8px; }
.rep-row .shelf-track i { display: block; height: 100%; border-radius: 999px; }
.me-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin-bottom: 10px; border: 0; background: none; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.me-row > .ico { color: var(--gray); }
.me-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #DDE6F7; color: var(--navy); display: grid; place-items: center; font-size: 16px; font-weight: 700; }
.me-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-txt b { font-size: 16px; letter-spacing: -0.02em; }
.me-txt small { font-size: 12.5px; color: var(--gray); }
.plan-hero { margin-bottom: 16px; padding: 20px; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1px rgba(227,200,143,.35); }
.plan-hero .ph-top { display: flex; align-items: center; justify-content: space-between; }
.plan-hero .ph-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #E3C88F; }
.plan-hero .ph-status { font-size: 11px; font-weight: 700; color: #E3C88F; border: 1px solid rgba(227,200,143,.6); border-radius: 10px; padding: 1px 8px; }
.plan-hero h2 { margin-top: 8px; font-size: 20px; letter-spacing: -0.03em; }
.plan-hero ul { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.plan-hero li { font-size: 13px; padding-left: 20px; position: relative; }
.plan-hero li::before { content: ''; position: absolute; left: 3px; top: 4px; width: 9px; height: 5px; border-left: 2px solid #E3C88F; border-bottom: 2px solid #E3C88F; transform: rotate(-45deg); }
.plan-hero button { width: 100%; height: 48px; border: 0; border-radius: 14px; background: #fff; color: var(--navy); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* 사업자 정보 — 글자색만 읽기 좋게(문구·자리는 그대로) */
.biz { color: #6B768C; }

/* ===== 2단계(2026-11-10): 문항 고르기 · 워크북 구성 · 완성 · 워크북 · 이용권/결제 ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 아래 큰 버튼 — 흰 판 위에 */
#bottomBar { background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding-top: 12px; box-shadow: 0 -6px 20px rgba(15,27,45,.04); }
#bottomExtra { position: absolute; left: 20px; bottom: calc(100% + 10px); margin: 0; }
.bottom-extra-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; box-shadow: var(--shadow); color: var(--navy); font-family: inherit; min-height: 36px; padding: 0 14px; }
#app.has-bottom-extra { padding-bottom: 150px; }

/* 문항 고르기 */
.note-bar { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 52px; }
.note-bar > .ico:first-child { color: var(--navy); }
.note-bar b { font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.note-bar b em { font-style: normal; min-width: 22px; padding: 0 7px; border-radius: 11px; background: #FDECEA; color: #B4291F; font-size: 12px; line-height: 20px; text-align: center; box-sizing: border-box; }
.note-bar span { flex: 1; text-align: right; }
.note-bar > .ico:last-child { color: var(--gray); }
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 8px; border-radius: 14px; background: #E7EAF0; }
.mode-seg button { min-height: 38px; border: 0; border-radius: 10px; background: none; font-family: inherit; font-size: 13.5px; font-weight: 500; color: #4A566E; cursor: pointer; }
.mode-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(15,27,45,.08); cursor: default; }
.lib-modebar { border: 0; background: var(--blue-light); border-radius: 14px; padding: 10px 14px; }
.lib-modebar span { color: var(--accent); }
.pick-bar { margin: 2px 2px 4px; }
.pick-auto { color: var(--gray); font-size: 13px; }
.pick-auto input, .pill input {
  appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 0;
  border: 1.5px solid #B9C1CF; border-radius: 5px; background: #fff; cursor: pointer;
}
.pick-auto input:checked, .pill input:checked {
  border-color: var(--navy);
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hint { line-height: 1.6; }
.progress-bar { background: #fff; border: 0; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; }
.pb-row > label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; }
.pb-row > label .ico { color: #1B6B45; }
.pb-input input { border: 1px solid var(--line); border-radius: 10px; background: var(--ground); font-family: inherit; }
.pb-go { background: var(--navy); border-radius: 10px; padding: 8px 14px; font-family: inherit; }
.search-row { display: flex; align-items: center; gap: 8px; height: 46px; box-sizing: border-box; padding: 0 14px; margin: 12px 0; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: text; }
.search-row .ico { color: var(--gray); }
.search-row input { flex: 1; min-width: 0; border: 0; padding: 0; background: none; font-size: 14.5px; outline: none; }
.search-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--blue-light); }
.search-row input:focus { box-shadow: none; }
.sel-row { display: block; padding: 6px 14px 14px; margin-bottom: 12px; }
.sel-row.is-solved { background: #fff; }
.sel-head { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.sel-page { flex: none; font-size: 16px; font-weight: 700; color: var(--ink); }
.sel-unit { flex: 1; min-width: 0; font-size: 13px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-left: 2px; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px 0 8px; border-radius: 15px; border: 1px solid #D5DAE3; background: #fff; font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer; margin: 0; }
.pill:has(input:checked) { border-color: transparent; background: #EEF1F6; font-weight: 700; }
.pill.solved-tag:has(input:checked) { background: #E8F3EC; color: #1B6B45; }
.pill.solved-tag input:checked { border-color: #1B6B45; background-color: #1B6B45; }
.pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.sel-right { margin-top: 6px; }
.sel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prob-chk {
  position: relative; flex: 0 0 auto; min-width: calc((100% - 32px) / 5); min-height: 44px; box-sizing: border-box;
  justify-content: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--ground); font-size: 14px; font-weight: 500; color: var(--ink);
}
.prob-chk input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.prob-chk:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.prob-chk.checked { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 700; }
.prob-chk.checked.past { border-color: #C9D0DC; background: #E4E8EF; color: #4A566E; }
.prob-chk.lib.checked { border-color: var(--accent); background: var(--accent); color: #fff; }
.prob-chk.in-lib { opacity: .4; border-style: dashed; }
.prob-chk.in-lib input { cursor: default; }
.sel-row.is-recent { animation: recentFlash2 1.9s ease-out; }
@keyframes recentFlash2 { 0%, 45% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: var(--shadow); } }
.pick-help { color: var(--gray); }

/* 오답 노트 화면 */
.unit-card { padding: 16px; }
.unit-head .act { border-radius: 10px; }
.unit-nums { color: var(--gray); }
.lib-allbtn { border: 1px dashed var(--accent); border-radius: 14px; color: var(--accent); font-family: inherit; }

/* 워크북 구성 */
.preset-grid { gap: 8px; }
.preset-opt { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 64px; padding: 10px 4px; background: #fff; border-color: transparent; box-shadow: var(--shadow); }
.preset-opt b { font-size: 14.5px; letter-spacing: -0.02em; }
.preset-opt span { line-height: 1.35; }
.preset-opt.selected { box-shadow: none; }
.hint-inline { margin-left: 4px; }

/* 완성 */
.result-box { margin-top: 12px; }
.result-box .paper {
  position: relative; width: 120px; height: 154px; margin: 4px auto 20px; padding: 14px 12px; box-sizing: border-box;
  border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgba(15,27,45,.06), 0 14px 32px rgba(15,27,45,.12);
  display: flex; flex-direction: column; gap: 8px;
}
.result-box .paper > i:first-child { width: 50px; height: 5px; border-radius: 2px; background: var(--navy); }
.result-box .paper > i:nth-child(2) { height: 1px; background: var(--line); }
.result-box .paper > span { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.result-box .paper b { border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 0 / 8px 8px no-repeat, repeating-linear-gradient(#D5DAE3 0 3px, transparent 3px 8px) 0 14px / 100% calc(100% - 14px) no-repeat; }
.result-box h2 { font-size: 22px; letter-spacing: -0.03em; margin: 0 0 6px; }
.result-box > p { margin-bottom: 20px; }
a.dl { margin: 10px 0 0; padding: 0; min-height: 50px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: #fff; }
.dl-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; }
.result-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.ract { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; }
.ract .ico { color: var(--gray); }
.result-note { display: flex; align-items: center; gap: 8px; min-height: 48px; box-sizing: border-box; margin-top: 6px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); cursor: text; }
.result-note > .ico { color: var(--gray); }
.result-note .wb-note-input { border: 0; padding: 0; min-width: 0; background: none; font-size: 14px; font-family: inherit; }
.result-note:focus-within { border-color: var(--accent); }
.reward-mini { padding: 0; }
.reward-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px; border: 0; background: none; text-align: left; font-family: inherit; color: var(--ink); cursor: pointer; }
.reward-row > .ico:first-child { color: var(--navy); }
.reward-row > .ico:last-child { color: var(--gray); }
.reward-row span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reward-row b { font-size: 14px; }
.reward-row small { font-size: 12px; line-height: 1.5; color: var(--gray); }
.report { border: 0; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.report > summary { color: var(--navy); }

/* 워크북 */
.wb-top { margin: 0 0 12px; }
.wb-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: #E7EAF0; flex: 1; }
.wb-tab { border: 0; background: none; border-radius: 10px; min-height: 36px; padding: 0 10px; font-family: inherit; font-size: 13.5px; color: #4A566E; }
.wb-tab.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15,27,45,.08); }
.wb-select-toggle { flex: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--accent); cursor: pointer; }
.wb-card { padding: 14px 16px 12px; border-radius: 20px; }
.wb-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; font-size: 12.5px; color: var(--gray); }
.wb-head-r { gap: 4px; }
.wb-badge { height: 22px; padding: 0 8px; border-radius: 6px; background: #EEF0F4; color: #4A566E; font-size: 11.5px; line-height: 22px; font-weight: 700; white-space: nowrap; }
.wb-badge.done { background: var(--blue-light); color: var(--accent); }
.wb-more { width: 36px; height: 36px; margin-right: -8px; padding: 0; display: grid; place-items: center; color: var(--gray); }
.wb-more .ico { fill: currentColor; stroke: none; }
.wb-card .shelf-head h3 { font-size: 16px; margin-top: 4px; }
.wb-card .shelf-head h3 small { color: var(--gray); font-weight: 500; font-size: 13px; }
.wb-where { color: var(--ink); }
.wb-date { margin-top: 4px; }
.wb-folder-tag { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); }
.wb-acts { margin-top: 12px; }
.wb-acts .act { min-height: 44px; padding: 0 12px; }
.wb-acts .act.icon { flex: 0 0 44px; padding: 0; color: var(--ink); }
.wb-grade { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.wb-grade .act { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 14px; }
.wb-grade-sum b { color: #B4291F; }
.wb-group-head { border: 0; border-radius: 16px; box-shadow: var(--shadow); min-height: 54px; font-family: inherit; }
.wb-group.open .wb-group-head { box-shadow: 0 0 0 1.5px var(--navy); }
.wb-folder-row { border: 0; border-radius: 16px; box-shadow: var(--shadow); min-height: 54px; font-family: inherit; }
.wb-folder-row span { display: inline-flex; align-items: center; gap: 8px; }
.wb-folder-row .ico { color: var(--navy); }
.wb-selbar { border-radius: 16px 16px 0 0; box-shadow: 0 -6px 20px rgba(15,27,45,.06); }
.book-pick select { border-radius: 12px; border-color: var(--line); font-family: inherit; }
#wbFilter { gap: 6px; }
#wbFilter .child-opt { min-height: 34px; padding: 0 14px; border-radius: 17px; font-size: 13px; font-weight: 500; font-family: inherit; }
#wbFilter .child-opt.on { font-weight: 700; }
.wb-note { gap: 12px; }
.wb-note .link, .wb-note .flag { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-family: inherit; }
.wb-note .txt { display: inline-flex; align-items: flex-start; gap: 5px; }
.wb-note .txt .ico { margin-top: 3px; color: var(--gray); }
.wb-note .flag { color: var(--gray); }
.seq.wrong { border-color: #E5A39C; background: #FDECEA; color: #B4291F; }
.grade-bar b { color: #B4291F; }

/* 이용권 · 결제 */
.plan-lede { color: var(--gray); }
.plan-card { align-items: center; padding: 16px; }
.plan-art { width: 76px; height: 76px; }
.plan-body h3 { font-size: 16px; }
.plan-price { color: var(--ink); font-size: 22px; letter-spacing: -0.02em; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--gray); }
.plan-body .act { align-self: stretch; min-height: 44px; }
.plan-body .act.pick { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }   /* 세 장 모두 같은 무게 — 네이비 꽉 찬 버튼이 셋 쌓이지 않게 */
.plan-body .act.pick:disabled { border-color: var(--line); color: #A6AEBD; }
.plan-note { color: var(--gray); }
.plan-note a { color: var(--accent); }
/* 제휴 학원 코드 입력(2026-11-16) — 이용권 화면 맨 아래 작은 글씨, 일부러 눈에 덜 띄게 */
.code-entry { text-align: center; margin: 4px 0 14px; }
.code-entry .link { font-size: 12.5px; color: var(--gray); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 6px; }
.order-rows { gap: 10px; }
.order-total b { color: var(--ink); font-size: 18px; }
.pay-method input { accent-color: var(--navy); }
.pay-result h3 { font-size: 20px; letter-spacing: -0.02em; }
label.agree input { accent-color: var(--navy); }
label.agree a { color: var(--accent); }

/* 유료 전환 안내 단계·얼리버드(2026-11-17, app.js renderLaunchCard·launchPlansHtml) — 예고는 흰 카드, 얼리버드는 금빛, 마감 임박은 주황 */
.launch-card { position: relative; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px 16px 14px; margin: 4px 0 14px; color: var(--ink); }
.launch-card .lc-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--blue-light); border-radius: 999px; padding: 3px 10px; }
.launch-card h3 { margin: 8px 40px 6px 0; font-size: 17px; letter-spacing: -0.02em; color: var(--navy); }
.launch-card ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.7; color: #33415C; }
.launch-card ul b { color: var(--ink); }
.launch-card s { color: var(--gray); }
.launch-card .lc-me { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: #33415C; background: var(--ground); border-radius: 10px; padding: 8px 10px; }
.launch-card .lc-go { margin-top: 12px; padding: 12px; font-size: 14.5px; }
.launch-card .lc-x { position: absolute; top: 6px; right: 6px; min-width: 40px; min-height: 40px; background: none; border: 0; font-size: 20px; color: var(--gray); cursor: pointer; font-family: inherit; }
.launch-card.early { background: var(--gold-bg); }
.launch-card.early .lc-tag { background: #fff; color: var(--gold-ink); }
.launch-card.early .lc-me, .launch-card.last .lc-me { background: rgba(255,255,255,.7); }
.launch-card.last { background: #FFF4E5; }
.launch-card.last .lc-tag { background: #C2410C; color: #fff; }
.launch-plans { font-size: 13px; line-height: 1.7; color: #33415C; }
.launch-plans b { display: block; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.launch-plans.early { background: var(--gold-bg); }
.launch-plans.early b { color: var(--gold-ink); }
.eb-badge { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 700; color: var(--gold-ink); background: var(--gold-bg); border-radius: 999px; padding: 2px 8px; }
.plan-price s, s.eb-list { color: var(--gray); font-weight: 500; font-size: .75em; margin-right: 2px; }
