/* 안심이음 훈련 모드 (AI-091, AI-092, AI-094)
   디자인 토큰: CLAUDE.md 4절. 외부 글꼴, 외부 자원 없음. 명세: docs/specs/training_mode.md 6절 */
:root {
  /* 2026-11-03: 옛 파랑 토큰을 brand-v1 값으로 맞췄다(brand-v1.css 가 늦게 불려 같은 값으로 덮는다) */
  --primary: #20594F;
  --panel: #DDEBE3;
  --cream: #F7F5EF;
  --apricot: #F2BE9F;
  --warning: #95551D;
  --safe: #27634D;
  --ink: #263C36;
  --muted: #52675F;  /* 바탕 위 대비 5.5:1 */
  --line: #D2DDD5;
  --bubble: #FFFFFF;
  --link: #20594F;
  /* 홈과 훈련 공통 이름(home.css 와 같은 값) */
  --focus: #20594F;
  --primary-press: #173F38;  /* 주 버튼 눌림 */
  --sub-press: #E8F0EA;      /* 부 버튼 눌림 */
  --on-primary: #FFFFFF;
  --radius: 14px;
  --masthead-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕",
    "Noto Sans KR", "Noto Sans CJK KR", "NanumGothic", "나눔고딕", sans-serif;
  font-size: 22px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

/* 공통 머리말 띠: 방패 + 안심이음, 오른쪽 처음으로 (demo.css 와 같은 규칙).
   흐름 안에 두어(고정 아님) 아래 고지 줄과 튜토리얼 말풍선을 가리지 않는다. */
.masthead { background: var(--primary); color: var(--on-primary); }
.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 560px;
  min-height: var(--masthead-h);  /* 글자를 키워도 잘리지 않게 고정 높이 대신 최소 높이 */
  flex-wrap: wrap;
  margin: 0 auto;
  padding: 0 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.brand-logo { width: 30px; height: 30px; flex: none; }
.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--on-primary);
  font-size: 20px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.home-link:active { opacity: 0.8; }
.home-link:focus-visible { outline: 4px solid var(--cream); outline-offset: 2px; }

.notice {
  margin: 0;
  padding: 6px 16px;
  background: var(--panel);
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  text-align: center;
}

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 20px 16px 48px; }

h1 { margin: 8px 0 12px; font-size: 32px; line-height: 1.3; color: var(--primary); }
h2 { margin: 0 0 8px; font-size: 24px; }
.lead { margin: 0 0 12px; font-size: 22px; font-weight: 600; }

.btn {
  display: block;
  width: 100%;
  min-height: 64px;
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn { -webkit-tap-highlight-color: transparent; transition: opacity 0.3s ease-out, background-color 0.12s ease-out; }
.btn.btn-wait { opacity: 0.45; } /* 선택 버튼이 막 나타난 0.5초 동안 흐리게(입력도 버림) */
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-main { background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); font-size: 24px; }
.btn-main:active { background: var(--primary-press); border-color: var(--primary-press); }
.btn-sub { background: #FFFFFF; color: var(--primary); border: 2px solid var(--primary); font-size: 22px; }
.btn-sub:active { background: var(--sub-press); }
.btn:focus-visible, .fake-link:focus-visible, .call-link:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

/* 시작: 한 바퀴 미리보기 */
.preview { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 4px; margin: 16px 0 8px; padding: 0; list-style: none; }
.preview li { flex: 1 1 56px; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.preview-icon { display: block; width: 48px; height: 48px; }
.preview-label { margin-top: 4px; font-size: 20px; font-weight: 600; white-space: nowrap; }
.preview-line { margin: 8px 0 0; font-size: 22px; font-weight: 700; text-align: center; }

/* 받기 */
.step { margin: 0 0 12px; color: var(--muted); font-size: 20px; }
.phone { background: var(--panel); border-radius: 18px; padding: 16px; }
.sender { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.sender-label { color: var(--muted); font-weight: 400; }
.bubble {
  background: var(--bubble);
  border: 1px solid var(--line);
  border-radius: 6px 18px 18px 18px;
  padding: 14px 16px;
  font-size: 24px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.fake-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 20px; /* 긴 주소는 본문(24px)보다 한 단계 작게 */
  max-width: 100%;
  white-space: normal;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.question { margin: 20px 0 0; font-size: 24px; font-weight: 700; }
/* 두 선택 버튼(AI-114): 같은 모양(흰 바탕, 기본색 테두리, 22px, 높이 64px 이상), 순서는 서버가 섞는다 */
.choice-btn { min-height: 64px; font-size: 22px; }
.link-hint { margin: 10px 0 0; color: var(--primary); font-size: 20px; font-weight: 700; }

/* 전화 상황 */
.call { background: var(--panel); border-radius: 18px; padding: 16px; }
.call-head { text-align: center; padding: 8px 0 12px; }
.call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--safe);
  color: #FFFFFF;
}
.call-icon svg { display: block; width: 55%; height: 55%; }
.call-title { margin: 8px 0 0; font-size: 24px; font-weight: 700; }
.caller { margin: 4px 0 0; font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.script { list-style: none; margin: 8px 0 0; padding: 0; }
.turn {
  max-width: 85%;
  margin: 10px 0;
  padding: 12px 14px;
  font-size: 22px;
  line-height: 1.55;
}
.turn-caller { margin-right: auto; background: var(--panel); color: var(--ink); border-radius: 6px 18px 18px 18px; }
.turn-me { margin-left: auto; background: var(--primary); color: #FFFFFF; border-radius: 18px 6px 18px 18px; }
/* 다음 말 보기: 큰 버튼(btn-main, btn-sub)이 아닌 보조 버튼, 한 줄 28px */
.more-btn {
  display: block;
  margin: 12px auto 4px;
  min-height: 56px;
  padding: 8px 24px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.more-btn:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
.more-btn, .choice-btn { scroll-margin-bottom: 16px; } /* 스크롤해 맞출 때 화면 아래 끝에 붙지 않게 */
.question:focus { outline: none; } /* 마지막 턴 뒤 읽기 도구용으로만 초점을 옮긴다 */
.script .turn { animation: turn-in 0.2s ease-out; }
@keyframes turn-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .script .turn { animation: none; } }
.turn-who { display: block; font-size: 20px; font-weight: 700; opacity: 0.85; }

/* 결과 */
.band {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 30px;
  font-weight: 800;
  text-align: center;
}
.band-note { margin: -4px 0 14px; font-size: 22px; font-weight: 600; line-height: 1.5; }
.band-right { background: var(--safe); }
.band-wrong { background: var(--warning); }
/* 상황 그림: 결과 띠 바로 아래, 높이 160px, 글자 없음 */
.scene { margin: 0 0 16px; background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 8px; }
.scene-art { display: block; width: 100%; height: 160px; animation: scene-in 0.3s ease-out; }
@keyframes scene-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scene-art { animation: none; } }
.method { margin: 0; padding: 0; list-style: none; font-size: 22px; }
.method li { position: relative; margin: 6px 0 0; padding-left: 22px; }
.method li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.method-key { color: var(--muted); font-weight: 700; }
/* 진행 점: 12px 원, 간격 8px (읽기 도구는 옆 글을 읽는다) */
.dots { display: inline-flex; gap: 8px; margin-left: 8px; vertical-align: middle; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box; }
.dot-done { background: var(--primary); }
.dot-now { background: #FFFFFF; border: 3px solid var(--primary); }
.dot-todo { background: var(--line); }
.dots-small { gap: 6px; }
.dots-small .dot { width: 10px; height: 10px; }
.hotline-card { margin-top: 16px; }
.hotline-card .call-row { margin: 0; font-size: 20px; }
.family-guard { margin-top: 16px; overflow-wrap: anywhere; }
.guard-list { margin: 0; padding: 0; list-style: none; }
.guard-list li { margin: 0 0 14px; }
.guard-list strong { display: block; font-size: 22px; line-height: 1.5; color: var(--primary); }
.guard-list p { font-size: 20px; line-height: 1.6; }
.panel .guard-last { font-size: 20px; line-height: 1.6; font-weight: 700; }
.wait-hint { margin: 12px 0 -8px; color: var(--muted); font-size: 20px; text-align: center; }
.tally { margin: -6px 0 12px; color: var(--muted); font-size: 20px; text-align: center; }
.trick-chip { display: block; width: fit-content; margin: 0 auto 12px; padding: 6px 16px; border-radius: 999px; background: var(--panel); color: var(--primary); font-size: 20px; font-weight: 700; }
.tricks { font-size: 22px; }
.tricks strong { margin-right: 4px; }
.panel { background: #FFFFFF; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 16px; }
.panel p { margin: 0; }
.panel-tell { border-color: var(--primary); font-size: 22px; }
.advice-head { margin-top: 8px; }
.card { display: block; width: 100%; height: auto; border-radius: 12px; margin: 8px 0; }
.advice { margin: 8px 0 0; padding-left: 1.4em; }
.advice li { margin: 4px 0; }
/* 왜 그런지 더 보기: 큰 버튼이 아닌 부 버튼(테두리만, 둥근 모양), 펼치면 아래 상자가 열린다 */
.more-toggle {
  display: block;
  width: 100%;
  min-height: 56px;
  margin: 16px 0 0;
  padding: 8px 16px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
.more-toggle[aria-expanded="true"] { background: var(--sub-press); }
.more-toggle:focus-visible, .text-btn:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.more-box { margin: 16px 0 0; }
.more-box .trick-chip { margin-top: 0; }
.call-row { margin: 16px 0 0; font-size: 20px; }
.call-row p { margin: 6px 0; }
.call-aux { color: var(--muted); font-size: 20px; }
.call-aux .call-link { margin-left: 8px; }
.call-link { color: var(--primary); font-weight: 700; text-decoration: underline; }
.disclaimer { margin: 20px 0 0; color: var(--muted); font-size: 20px; }
.source-line { margin: 16px 0 0; color: var(--muted); font-size: 20px; }

/* 끝 */
.score { margin: 16px 0; font-size: 40px; font-weight: 800; line-height: 1.3; color: var(--primary); }
.share-done { margin: 8px 0 0; color: var(--safe); font-size: 22px; font-weight: 700; text-align: center; }
.share-manual { margin: 12px 0 0; padding: 12px 14px; background: #FFFFFF; border: 2px solid var(--line); border-radius: 14px; font-size: 20px; }
/* 다시 해 보기: 큰 버튼 2개(물어보기, 가족에게 알리기) 아래의 글자 버튼 */
.text-btn {
  display: block;
  min-height: 48px;
  margin: 16px auto 0;
  padding: 6px 12px;
  border: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* 기다림 카드 (demo.css 와 같은 모양). train.js 는 hidden 만 바꾼다.
   hidden 이 풀릴 때마다 애니메이션이 처음부터 다시 돌아, 3초가 넘으면 둘째 줄이 나타난다(JS 없음). */
.loading {
  margin: 24px 0 0;
  padding: 28px 16px 24px;
  text-align: center;
  background: #FFFFFF;
  border: 2px solid var(--line);
  border-radius: 18px;
}
.loading-shield {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  animation: shield-breathe 1.6s ease-in-out infinite alternate;
}
.loading-text { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.loading-more {
  margin: 8px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  animation: loading-more-in 0.4s ease-out 3s both;
}
@keyframes shield-breathe { from { transform: scale(0.92); } to { transform: scale(1.06); } }
@keyframes loading-more-in { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }
@media (prefers-reduced-motion: reduce) {
  .loading-shield { animation: none; }
  .loading-more { animation-duration: 1ms; }  /* 움직임 없이 3초 뒤 바로 보인다 */
}
.box { background: #FFFFFF; border: 2px solid var(--warning); border-radius: 14px; padding: 16px; }

/* 튜토리얼 안내 말풍선(명세 8절): 화면 위에 붙어 따라오고, 본문은 가리키는 테두리로만 강조한다 */
.coach {
  position: sticky;
  top: 8px;
  z-index: 10;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(38, 60, 54, 0.25);
  /* 확대했을 때 말풍선이 화면을 다 가리지 않게(디자인 tutorial_mode.md 9절) */
  max-height: 45vh;
  overflow-y: auto;
}
.coach-text { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.45; }
.coach-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.coach-next {
  min-height: 68px; /* 어르신 손가락 기준, 디자인 요청 */
  padding: 6px 28px;
  border: 2px solid #FFFFFF;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--primary);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
.coach-skip {
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  background: none;
  color: #FFFFFF;
  font: inherit;
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.coach-hint { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: #FFFFFF; color: var(--primary); font-size: 20px; font-weight: 700; }
.coach-next:focus-visible, .coach-skip:focus-visible { outline: 4px solid var(--cream); outline-offset: 3px; }
/* 강조 테두리는 파랑(주황은 "틀림"과 "주의" 색과 겹침, 디자인 tutorial_mode.md 9절). 흰 띠로 바탕과 떼어 놓는다 */
.coach-target { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 7px var(--primary); border-radius: 14px; scroll-margin-top: 190px; }
.btn.btn-locked { opacity: 0.45; cursor: default; } /* 튜토리얼 안내 ①② 동안 선택 버튼, 튜토리얼 불러오는 동안 "시작하기"(누름도 버림) */


/* 브랜드 적용 후보: API와 상태 클래스는 바꾸지 않고 화면 위계만 정리한다. */
.brand-refresh .masthead { background: var(--cream); color: var(--primary); border-bottom: 1px solid var(--line); }
.brand-refresh .masthead-in { max-width: 480px; height: auto; min-height: 68px; padding: 10px 22px; flex-wrap: wrap; }
.brand-refresh .brand { font-size: 24px; letter-spacing: -0.04em; }
.brand-refresh .brand-logo { width: 38px; height: 32px; }
.brand-refresh .home-link { color: var(--primary); font-size: 20px; min-height: 44px; }
.brand-refresh .notice { max-width: 480px; margin: 0 auto; padding: 12px 22px 0; background: transparent; color: var(--muted); font-size: 20px; text-align: left; line-height: 1.55; }
.brand-refresh .wrap { max-width: 480px; padding: 20px 22px 36px; }
.brand-refresh h1 { color: var(--ink); font-size: 30px; line-height: 1.4; letter-spacing: -0.04em; }
.brand-refresh h2 { line-height: 1.45; letter-spacing: -0.025em; }
.brand-refresh .lead { font-weight: 400; line-height: 1.55; }
.ieum-start-host { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.ieum-start-host p { color: var(--primary); font-size: 22px; line-height: 1.5; font-weight: 600; }
.brand-refresh .preview { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 24px; }
.brand-refresh .preview-icon { width: 40px; height: 40px; }
.brand-refresh .preview-label { font-size: 20px; margin-top: 8px; }
.brand-refresh .preview-line { margin-top: 16px; font-size: 20px; font-weight: 600; color: var(--muted); }
.brand-refresh .step { font-size: 20px; margin-bottom: 18px; }
.brand-refresh .phone { background: var(--bubble); border: 1px solid var(--line); border-radius: 22px 22px 22px 6px; padding: 18px; }
.brand-refresh .sender { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.55; }
.brand-refresh .sender-label { display: block; font-size: 20px; }
.brand-refresh .bubble { border: 0; padding: 0; background: transparent; border-radius: 0; font-size: 22px; line-height: 1.65; }
.brand-refresh .fake-link { font-size: 20px; line-height: 1.6; }
.brand-refresh .question { font-size: 24px; line-height: 1.4; margin-top: 24px; }
/* 정답을 색으로 짐작하지 않도록 두 선택 버튼에 같은 모양을 적용한다. */
.brand-refresh .choice-btn { min-height: 68px; margin-top: 14px; font-size: 22px; }
.brand-refresh .call { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--bubble); }
.brand-refresh .call-icon { background: var(--panel); color: var(--primary); width: 60px; height: 60px; }
.brand-refresh .call-title { font-size: 22px; }
.brand-refresh .caller { font-size: 26px; line-height: 1.4; letter-spacing: 0; }
.brand-refresh .turn { max-width: 94%; padding: 13px 14px; margin-top: 16px; }
.brand-refresh .turn-caller { background: var(--panel); color: var(--ink); }
.brand-refresh .turn-me { background: var(--primary); color: var(--on-primary); }
.brand-refresh .turn-who { font-size: 20px; margin-bottom: 3px; opacity: 1; }
.brand-refresh .more-btn { font-size: 22px; min-height: 60px; white-space: normal; width: 100%; border-radius: 16px; }
.brand-refresh .band { color: var(--ink); padding: 20px 18px; font-size: 28px; line-height: 1.45; border-radius: 10px 26px 10px 10px; }
.brand-refresh .band-right { background: var(--panel); color: var(--primary); }
.brand-refresh .band-wrong { background: #F6E4D7; color: #76431B; }
.brand-refresh .band-note { margin: 0 0 18px; font-size: 22px; font-weight: 500; line-height: 1.55; }
.brand-refresh .scene { border: 0; padding: 0; background: transparent; margin: 0 0 18px; }
.brand-refresh .panel { border-width: 1px; border-radius: 12px; padding: 20px 18px; }
.brand-refresh .panel-tell { background: var(--panel); border: 0; border-radius: 8px 24px 8px 8px; }
.brand-refresh .advice-head { margin-top: 20px; color: var(--primary); }
.brand-refresh .advice { line-height: 1.65; padding-left: 1.25em; }
.brand-refresh .advice li { margin: 12px 0; }
.brand-refresh .trick-chip { background: var(--panel); font-size: 20px; }
.brand-refresh .more-toggle { min-height: 60px; border-radius: 14px; border: 1px solid #668E7D; font-size: 22px; }
.brand-refresh .call-link { display: inline-block; min-height: 44px; padding: 6px 0; }
.brand-refresh .call-row { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 20px; }
.brand-refresh .call-aux .call-link { margin-left: 0; margin-right: 10px; }
.brand-refresh .disclaimer, .brand-refresh .source-line { font-size: 20px; line-height: 1.55; }
.brand-refresh .score { font-size: 34px; line-height: 1.4; letter-spacing: -0.035em; }
.brand-refresh .share-manual { border-width: 1px; line-height: 1.6; }
.brand-refresh .loading { padding: 32px 20px; border-width: 1px; border-radius: 24px; }
.brand-refresh .loading-shield { width: 64px; height: 54px; }
.brand-refresh .loading-text { font-size: 22px; }
.brand-refresh .loading-more { font-size: 20px; }
.brand-refresh .box { background: var(--bubble); border: 1px solid #AD7857; border-radius: 18px; padding: 22px 20px; }
.brand-refresh .box p { margin-top: 0; line-height: 1.65; }
.brand-refresh .coach { padding: 16px; color: var(--ink); background: var(--panel); border-radius: 12px 24px 12px 12px; box-shadow: 0 3px 10px rgba(38,60,54,.1); }
.ieum-coach-heading { display: flex; align-items: center; gap: 10px; }
.ieum-coach-heading .ieum-character { width: 48px; height: 48px; }
.brand-refresh .coach-text { font-size: 22px; line-height: 1.5; font-weight: 700; }
.brand-refresh .coach-row { gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.brand-refresh .coach-next { background: var(--primary); color: var(--on-primary); border-color: var(--primary); border-radius: 14px; min-height: 60px; }
.brand-refresh .coach-skip { color: var(--primary); min-height: 48px; }
.brand-refresh .coach-hint { font-size: 20px; background: var(--bubble); }
.brand-refresh .coach-target { border-radius: 12px; }
@media (max-width: 340px) {
  .brand-refresh .wrap, .brand-refresh .masthead-in { padding-left: 18px; padding-right: 18px; }
  .brand-refresh .phone, .brand-refresh .call { padding: 14px; }
}

/* 결과는 핵심 행동부터 읽고, 자세한 정보는 필요할 때 펼친다. */
.brand-refresh .advice-core { list-style: none; margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--primary); border-radius: 6px 18px 6px 6px; background: var(--panel); }
.brand-refresh .advice-core li { margin: 0; }
.brand-refresh .end-takeaway { margin: 18px 0 22px; background: var(--panel); border: 0; border-radius: 10px 24px 10px 10px; }
.brand-refresh .end-takeaway h2 { margin-top: 0; font-size: 22px; color: var(--primary); }
.brand-refresh .end-takeaway p { margin-bottom: 0; font-size: 24px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.end-more { margin: 18px 0 24px; }
.end-more summary { min-height: 60px; display: list-item; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 20px; line-height: 1.5; color: var(--primary); cursor: pointer; }
.end-more summary:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.end-more-close, .end-more[open] .end-more-open { display: none; }
.end-more[open] .end-more-close { display: inline; }
.end-more-body { padding-top: 18px; }
.brand-refresh .end-more .score { margin-top: 8px; font-size: 24px; line-height: 1.5; }


/* 그림 색(2026-11-03): 인라인 SVG 는 색 값 대신 이 이름표를 달고, 색은 brand-v1 토큰에서 온다 */
.f-forest { fill: var(--primary); }
.f-ink { fill: var(--ink); }
.f-paper { fill: var(--cream); }
.f-safe { fill: var(--safe); }
.f-apricot { fill: var(--ieum-apricot, var(--apricot)); }
.s-forest { stroke: var(--primary); }
.s-ink { stroke: var(--ink); }
.s-paper { stroke: var(--cream); }
.s-apricot { stroke: var(--warning); }  /* 옅은 살구색 선은 잘 안 보여 짙은 갈색 토큰으로 */

/* 느린 와이파이(2026-11-03): 다시 해 보는 중 안내, 답 보내기 실패 상자 */
.loading-slow { margin: 10px 0 0; font-size: 20px; font-weight: 700; color: var(--primary); }
.send-fail {
  margin: 20px 0 0;
  padding: 18px 16px;
  background: var(--bubble);
  border: 2px solid var(--warning);
  border-radius: 18px;
}
.send-fail-text { margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.55; }
.resend-btn {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.resend-btn:active { background: var(--primary-press); }
.resend-btn:focus-visible, .rate-btn:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

/* 만족도 5점(2026-11-03): 큰 단추 다섯 개, 숫자와 쉬운 말을 같이 */
.rate { margin: 0 0 20px; padding: 18px 16px; background: var(--bubble); border: 1px solid var(--line); border-radius: 18px; }
.rate h2 { margin: 0 0 4px; font-size: 24px; color: var(--primary); }
.rate-help { margin: 0 0 12px; font-size: 20px; color: var(--muted); }
.rate-list { display: flex; flex-direction: column; gap: 10px; }
.rate-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 8px 16px;
  border: 2px solid #668E7D;
  border-radius: 14px;
  background: var(--bubble);
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.rate-btn:active { background: var(--sub-press); }
.rate-btn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.rate-btn:disabled { cursor: default; }
.rate-btn:disabled:not([aria-pressed="true"]) { opacity: 0.5; }
.rate-num { flex: none; min-width: 1.6em; font-size: 28px; font-weight: 800; text-align: center; }
.rate-word { line-height: 1.4; }
.rate-done { margin: 0 0 20px; padding: 16px; background: var(--panel); border-radius: 14px; font-size: 22px; font-weight: 700; color: var(--primary); }

/* 고른 점수는 색뿐 아니라 체크 표시로도 알린다 (2026-11-03-b) */
.rate-btn[aria-pressed="true"]::after { content: "\2713 \ACE0 \B974 \C810 \C218"; margin-left: auto; font-size: 22px; font-weight: 800; }
.rate-btn[aria-pressed="true"] .rate-word { text-decoration: underline; text-underline-offset: 4px; }
