:root {
  --bg: #f6f4ff;
  --surface: #ffffff;
  --ink: #1f1b3a;
  --muted: #6b6788;
  --line: #e4e0f5;
  --accent: #5b3fd6;
  --accent-ink: #ffffff;
  --accent-soft: #ece7ff;
  --gold: #f4b62e;
  --good: #1f9d6b;
  --bad: #d64545;
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* 상단 바 */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 14px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a.on { color: var(--accent); font-weight: 700; }

/* 첫 화면 */
.hero { padding: 32px 0 12px; text-align: center; }
.hero h1 { font-family: "Jua", sans-serif; font-weight: 400; font-size: clamp(26px, 6vw, 38px); line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--muted); margin: 0; }

/* 기준표 탭 */
.guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 20px 0; overflow: hidden; }
.guide-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.guide-tabs button { flex: 0 0 auto; border: 0; background: none; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.guide-tabs button.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.guide-body { padding: 12px 16px 14px; font-size: 14px; }
.guide-body table { width: 100%; border-collapse: collapse; }
.guide-body td { padding: 3px 4px; line-height: 1.45; border-bottom: 1px dashed var(--line); vertical-align: top; }
.guide-body td:first-child { white-space: nowrap; font-weight: 700; color: var(--accent); width: 1%; padding-right: 12px; }
.guide-h { font-size: 14px; margin: 12px 0 4px; color: var(--ink); }
.guide-h:first-child { margin-top: 2px; }
.guide-body .chain { margin: 4px 0; }
.guide-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 4px 10px; font-size: 13px; }

/* 입력 폼 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.panel h2 { font-size: 18px; margin: 0 0 12px; }
.grades { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.grades label { cursor: pointer; }
.grades input { position: absolute; opacity: 0; pointer-events: none; }
.grades span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 28px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; background: #fff; white-space: nowrap; letter-spacing: -0.02em; }
.grades span.long { font-size: 10.5px; letter-spacing: -0.06em; }
.grades input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grades input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { width: 100%; min-height: 170px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; line-height: 1.7; resize: vertical; background: #fcfbff; }
textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hint { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 6px 2px 0; gap: 8px; }
.notice { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); width: 100%; font-size: 17px; padding: 14px; margin-top: 14px; }
.btn:disabled { opacity: 0.6; cursor: progress; }
/* 보내기 버튼: 종이비행기·공유 아이콘 + 화살표 */
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.send-btn { background: #fff7e0; border-color: var(--gold); color: #7a5300; }
.send-btn:hover { background: #ffefc2; }
#invite1 { padding: 10px 18px; font-size: 15px; border-radius: 999px; border-width: 2px; }
#invite1 .arrow { transition: transform .2s; }
#invite1:hover .arrow { transform: translateX(3px); }
.error { color: var(--bad); font-size: 14px; margin: 10px 2px 0; }
.ts { margin-top: 12px; }

/* 결과 카드 */
.card { background: var(--surface); border-radius: 20px; border: 1px solid var(--line); overflow: hidden; }
.card-head { background: var(--accent); color: #fff; padding: 18px 18px 16px; display: flex; gap: 14px; align-items: center; }
.card-head .emoji { font-size: 42px; line-height: 1; }
.card-head .wiz { font-family: "Jua", sans-serif; font-size: 26px; line-height: 1.2; }
.card-head .sub { font-size: 13px; opacity: 0.85; }
.card-body { padding: 14px 18px 6px; }
.row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row .ic { width: 22px; flex: 0 0 22px; text-align: center; }
.row b { color: var(--accent); }
.summary { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.future { margin: 12px 0 6px; border: 2px solid var(--gold); border-radius: 14px; padding: 12px 14px; background: #fffaf0; }
.future h3 { font-family: "Jua", sans-serif; font-weight: 400; font-size: 18px; margin: 0 0 6px; }
.future .row { border-bottom-color: #f6e6c2; }
.caution { background: #fff1ec; color: #a2401c; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 13px; line-height: 1.5; }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 14px; color: var(--muted); font-size: 12px; }
.card-foot strong { color: var(--ink); }
.writing { font-family: Georgia, "Times New Roman", serif; font-size: 15px; background: #fcfbff; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; }
.writing p { margin: 2px 0; }

/* 문장별 고치기 */
.fixes { list-style: none; padding: 0; margin: 0; }
.fixes li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.fixes li:last-child { border-bottom: 0; }
.fixes .orig { font-family: Georgia, serif; }
.fixes .ok { color: var(--good); font-weight: 700; font-size: 13px; }
.fixes .fix { font-family: Georgia, serif; color: var(--good); }
.fixes .why { color: var(--muted); font-size: 13px; }
.fixes .x { color: var(--bad); font-weight: 700; font-size: 13px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.actions .wide { grid-column: 1 / -1; background: var(--gold); border-color: var(--gold); }
.cta { display: block; text-align: center; background: #1d1640; color: #fff; border-radius: var(--radius); padding: 16px; text-decoration: none; margin: 14px 0; }
.cta b { color: var(--gold); }
.growth { text-align: center; font-weight: 700; color: var(--accent); margin: 10px 0 0; }

/* 게시판 */
.filters { display: flex; gap: 6px; margin: 16px 0; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.filters button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.post { cursor: pointer; }
.post .card-head { padding: 12px 14px; }
.post .card-head .emoji { font-size: 28px; }
.post .card-head .wiz { font-size: 18px; }
.post .card-body { padding: 8px 14px 4px; }
.post .row { font-size: 13px; padding: 5px 0; }
.post .writing { font-size: 13px; }
.post .more { display: none; }
.post.open .more { display: block; }
.post .clip p:nth-child(n+3) { display: none; }
.post.open .clip p { display: block; }
.post-bar { display: flex; gap: 8px; padding: 8px 14px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.post-bar button { border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; padding: 4px 6px; border-radius: 8px; }
.post-bar button.liked { color: var(--bad); font-weight: 700; }
.post-bar .sp { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 이미지 보기 */
.overlay { position: fixed; inset: 0; background: rgba(20, 16, 40, 0.75); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.overlay img { max-width: 100%; max-height: 72vh; border-radius: 12px; background: #fff; }
.overlay p { color: #fff; margin: 12px 0; text-align: center; }
.overlay .btn { margin: 4px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1640; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 60; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 0 40px; }
footer .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin-bottom: 8px; }
footer a { color: var(--muted); }
.hidden { display: none !important; }
.loading { text-align: center; padding: 30px 0; color: var(--muted); }
.loading .spin { font-size: 40px; display: inline-block; animation: wob 1.2s ease-in-out infinite; }
@keyframes wob { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }

/* 폰 화면: 맨 위 줄이 두 줄로 깨지지 않게 */
.brand, .nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .brand-sub { display: none; }
  .topbar .wrap { height: 50px; }
}

/* 한글은 단어(띄어쓰기) 단위로만 줄바꿈. 긴 영어 주소는 넘치지 않게 끊기 */
body { word-break: keep-all; overflow-wrap: break-word; }

/* 기준표 탭: 옆으로 더 있으면 오른쪽 끝에 "더 보기 ›" */
.tabs-wrap { position: relative; }
.tabs-more { display: none; position: absolute; right: 0; top: 0; bottom: 1px; border: 0; padding: 0 10px 0 28px; font: inherit; font-size: 13px; font-weight: 700; color: var(--accent); cursor: pointer;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 40%); }
.tabs-wrap.has-more .tabs-more { display: block; }
.tabs-wrap.has-more .tabs-more { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

/* 내신 감점 단골 칩: 어학원 칩보다 작게 */
.chain.small { gap: 4px; }
.chain.small span { font-size: 11px; padding: 2px 7px; }

/* 한 문장 고치기 / 문장별 고치기: 쓴 문장 vs 고친 문장 틀 */
.fix-title { font-weight: 700; font-size: 14px; margin: 10px 0 6px; }
.fixbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 4px; font-size: 14px; }
.fx-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; font-family: Georgia, "Times New Roman", serif; line-height: 1.6; }
.fx-row + .fx-row { border-top: 1px dashed var(--line); }
.fx-tag { flex: 0 0 auto; font-family: "Noto Sans KR", sans-serif; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 6px; margin-top: 2px; }
.fx-tag.bad { background: #fdecec; color: var(--bad); }
.fx-tag.good { background: #e6f6ef; color: var(--good); }
.fx-row:first-child { background: #fffafa; }
.fx-row:nth-child(2) { background: #f6fcf9; }
.fixbox del { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; background: #fde2e2; border-radius: 4px; padding: 0 2px; }
.fixbox ins { color: var(--good); text-decoration: none; font-weight: 700; background: #d6f3e5; border-radius: 4px; padding: 0 2px; }
.fx-why { font-size: 12.5px; color: var(--muted); padding: 6px 10px 8px; border-top: 1px dashed var(--line); background: #fff; }
.fixes .num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; margin-right: 6px; font-family: "Noto Sans KR", sans-serif; }
.fixes .num-line { display: flex; align-items: center; margin-bottom: 2px; }

/* 카드 맨 아래: 4BLOCKS 안내와 사이트 이름을 두 줄로 */
.card-foot { display: block; text-align: center; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.card-foot .foot-cta { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.card-foot .foot-cta b { color: var(--accent); }
.card-foot .foot-brand { font-size: 12px; color: var(--muted); }

/* 게시판 바로가기 버튼 */
.board-btn { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 14px; color: var(--ink); text-decoration: none; font-weight: 700; margin: 12px 0 24px; }
.board-btn:hover { background: var(--accent-soft); }
.board-tag { flex: 0 0 auto; background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 13px; }
.board-arrow { margin-left: auto; color: var(--accent); font-size: 18px; }

/* 한 단계 올라가려면 */
.tips { background: #eefaf4; border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-size: 13.5px; }
.tips-title { font-weight: 700; color: var(--good); margin-bottom: 4px; }
.tips ul { margin: 0; padding-left: 18px; }
.tips li { margin: 2px 0; line-height: 1.5; }
.tip-more { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #bfe5d0; font-size: 12.5px; line-height: 1.55; color: #3d5a4b; }
.tip-more a { color: var(--good); font-weight: 700; }
.tip-advice { margin: 2px 0 6px; line-height: 1.5; font-weight: 600; }
.tip-pdf { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--good); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 학부모 가이드 페이지 */
.crumbs { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: 22px; line-height: 1.4; margin: 0 0 12px; }
.article h2 { font-size: 18px; margin: 26px 0 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.article h3 { font-size: 15px; margin: 18px 0 6px; color: var(--accent); }
.article p, .article li { font-size: 15px; }
.article .note { font-size: 13px; color: var(--muted); }
.article .fixbox { margin: 6px 0 10px; }
.tbl { overflow-x: auto; margin: 8px 0; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--accent-soft); color: var(--accent); font-weight: 700; white-space: nowrap; }
.tbl td:first-child { font-weight: 700; white-space: nowrap; }
.faq { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.related ul, .guide-list { list-style: none; padding: 0; margin: 0; }
.related li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.guide-list li { margin: 10px 0; }
.guide-list a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.guide-list a b { display: block; color: var(--accent); margin-bottom: 2px; }
.guide-list a span { font-size: 13px; color: var(--muted); }

/* 위 메뉴 4개: 좁은 폰에서는 옆으로 밀어서 보기 */
.nav-out { color: var(--accent) !important; }
@media (max-width: 560px) {
  .topbar .wrap { gap: 8px; }
  .nav { gap: 10px; font-size: 13px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
}
/* 첨삭 사례집 */
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.case-tags span { font-size: 12px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 9px; font-weight: 700; }
.chunk { font-family: Georgia, "Times New Roman", serif; background: #f7f9fc; border-radius: 10px; padding: 10px 12px; line-height: 1.8; }
.chunk b { font-weight: 400; }
.practice li { margin: 8px 0; }
.practice details { margin-top: 4px; font-size: 14px; }
.practice summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.practice details p { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; }
.tip-case { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--good); color: var(--good); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* 하루 N명 한정 */
.hero .seats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; color: var(--ink); }
.seats-badge { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.seats-left { display: inline-block; font-size: 14px; font-weight: 700; color: var(--bad); }
.hero .seats-why { font-size: 12px; margin-top: 4px; }
.full-box { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); text-align: center; }
.full-box p { margin: 0 0 6px; }
.full-title { font-weight: 800; color: var(--accent); }
.full-sub { font-size: 13px; color: var(--muted); }
.full-box .btn { width: 100%; margin-top: 6px; }
.order { text-align: center; font-weight: 800; color: var(--accent); font-size: 17px; margin: 4px 0 12px; line-height: 1.5; }
.order span { font-weight: 400; font-size: 14px; color: var(--muted); }
.order b { color: var(--accent); }

/* 사이트 이름: "10분 영어 레벨 테스트" + 옆에 작게 "10~15분" */
.brand-sub { font-weight: 800; }
.brand .brand-time { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; vertical-align: 2px; }
/* 폰: 이름을 숨기지 않고 SangSamStudy.com 아래 둘째 줄로 작게 */
@media (max-width: 480px) {
  .brand { display: inline-block; line-height: 1.2; }
  .brand-sub { display: block !important; font-size: 12px; }
  .brand-dot { display: none; }
  .brand .brand-time { font-size: 10px; margin-left: 4px; padding: 0 6px; vertical-align: 1px; }
  .topbar .wrap { height: 56px; }
}

/* 첫 화면: "10분 영어 레벨 테스트 (10~15분) · 월 1회 무료!" */
.hero .hero-name { color: var(--ink); font-size: 16px; }
.hero .hero-name b { color: var(--ink); }
.hero .hero-time { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e3f6ee; color: #146c4a; border: 1px solid #8fd4b5; font-size: 12px; font-weight: 700; vertical-align: 1px; } /* "하루 200명 한정"(보라)·"보내기" 버튼(노랑)과 구분되게 초록색 */

/* 네 영역 (영작·해석·단어·리스닝) */
.hero .areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; }
.hero .areas span { font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.area-q { margin: 0 0 8px; font-weight: 800; }
.area-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.area-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.area-tabs button b { font-size: 15px; white-space: nowrap; }
.area-tabs button span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.area-tabs button.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.area-tabs button.on span { color: var(--accent); }
.area-note { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14px; }

/* 첫 화면 위쪽: 줄마다 숨 쉴 틈 (원장님 요청 2026-11-15) */
.hero h1 { margin-bottom: 18px; }
.hero .hero-name { margin-top: 0; }
.hero .areas { margin-top: 14px; flex-wrap: nowrap; gap: 4px; }
.hero .areas span { white-space: nowrap; font-size: clamp(10px, 2.9vw, 13px); padding: 3px clamp(4px, 1.3vw, 10px); letter-spacing: -0.02em; }
.hero .seats { margin-top: 22px; }
.hero .seats-why { margin-top: 6px; }
.hero .send-row { margin-top: 20px !important; }

/* 나의 영어 레벨 리포트로 가는 버튼·링크 (영작·해석·단어·리스닝 결과, 첫 화면) */
.report-btn { width: 100%; margin-top: 8px; background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.report-link { display: block; margin: -4px 0 14px; font-size: 14px; font-weight: 800; color: var(--accent); text-decoration: none; }
/* 첫 화면 정리 (원장님 2026-11-15): 제목 줄·영역 버튼 4개 같은 크기·"학년을 고르고…" 한 줄 */
.hero .hero-name { white-space: nowrap; font-size: clamp(13px, 4.1vw, 16px); letter-spacing: -0.02em; }
.hero .hero-time { font-size: 10px; padding: 0 6px; margin-left: 4px; }
.area-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.area-tabs button { min-width: 0; padding: 10px 2px; }
.area-tabs button b { font-size: clamp(12px, 3.8vw, 15px); }
.area-tabs button span { font-size: clamp(9px, 2.7vw, 11px); letter-spacing: -0.03em; }
.panel h2.write-title { white-space: nowrap; font-size: clamp(12px, 4vw, 18px); letter-spacing: -0.02em; }
/* 기준표 탭: 간격을 줄여 휴대폰에서 4개쯤 보이게 (원장님 2026-11-16) */
.guide-tabs button { padding: 11px 8px; font-size: 13.5px; letter-spacing: -0.02em; }
/* 평가기준 안의 영작·해석 작은 탭 */
.crit-tabs { display: flex; gap: 6px; margin: 2px 0 6px; }
.crit-tabs button { flex: 1; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.crit-tabs button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.guide-tabs button { padding: 11px 6px; font-size: 13px; }
/* 오른쪽에 탭이 더 있다는 표시: 보라 동그라미 › 가 계속 살짝 움직인다 (원장님 2026-11-16) */
.tabs-wrap .tabs-more { padding: 0 4px 0 22px; display: none; align-items: center; background: linear-gradient(to right, rgba(255,255,255,0), #fff 45%); }
.tabs-wrap.has-more .tabs-more { display: flex; animation: none; }
.tabs-more span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 20px; font-weight: 800; line-height: 1; padding-bottom: 2px; box-shadow: 0 2px 6px rgba(91,63,214,.35); animation: nudge 1.2s ease-in-out infinite; }
/* 기준표: 처음엔 대여섯 줄만, 아래가 흐려지고 "▼ 더 보기" (원장님 2026-11-16) */
.guide-body.folded { max-height: 240px; overflow: hidden; position: relative; }
.guide-body.folded::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), var(--surface)); pointer-events: none; }
.guide-more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 14px; font-weight: 800; padding: 10px 0; cursor: pointer; }
/* 네 영역을 다 끝냈을 때 결과 화면 맨 위 종합 결과 (원장님 2026-11-16) */
.all-done { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 12px 0; padding: 16px 12px; border-radius: var(--radius);
  background: linear-gradient(135deg, #5b3fd6, #8b5cf6); color: #fff; text-decoration: none; text-align: center; box-shadow: 0 6px 18px rgba(91,63,214,.3); }
.all-done .ad-top { font-size: 15px; font-weight: 800; }
.all-done .ad-lv { font-family: "Jua", sans-serif; font-size: 30px; line-height: 1.3; }
.all-done .ad-lv b { font-weight: 400; color: #ffe066; }
.all-done .ad-go { font-size: 13px; font-weight: 700; opacity: .95; background: rgba(255,255,255,.18); border-radius: 999px; padding: 4px 12px; margin-top: 4px; }
/* 한 달 안에 나눠서 해도 된다는 안내 */
.hero .month-note { margin: 10px auto 0; max-width: 460px; padding: 8px 12px; border-radius: 12px; background: #fff8e1; border: 1px solid #ffe08a; color: #6b4e00; font-size: 13px; line-height: 1.5; word-break: keep-all; }
.hero .month-note b { color: #8a5a00; }
