:root {
  color-scheme: light;
  --ivory: #fbf9f4;
  --paper: #fffefd;
  --ink: #2c2731;
  --muted: #6f6874;
  --purple: #6246b6;
  --purple-deep: #4d348f;
  --lavender: #eee9f9;
  --lavender-strong: #ded2f5;
  --line: #e6e1e6;
  --caution: #985555;
  --caution-bg: #fff3ef;
  --font-ui: "Pretendard Variable", Pretendard, "NanumBarunGothic", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-latin: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 0; min-height: 100vh; margin: 0; color: var(--ink); background: #eeeae9; font-family: var(--font-ui); font-size: 14px; line-height: 1.6; }
button, textarea { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #a78bea; outline-offset: 3px; }
h1:focus { outline: none; }
a { color: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p, dd { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 9px 14px; border-radius: 8px; background: var(--purple-deep); color: white; }
.skip-link:focus { top: 8px; }
.app-shell { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; background: var(--ivory); box-shadow: 0 0 48px rgba(48, 39, 57, .08); overflow: clip; }
.app-header { position: relative; z-index: 20; display: flex; align-items: center; gap: 8px; height: 70px; padding: 12px 20px; background: var(--ivory); }
.brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.brand img { display: block; height: auto; }
.brand .brand-logo { width: 150px; max-width: none; }
.brand .brand-symbol { display: none; width: 30px; height: 30px; }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-tools select { width: 84px; max-width: 84px; min-height: 37px; padding: 5px 20px 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 750; text-overflow: ellipsis; }
.profile-button { display: grid; place-items: center; flex: 0 0 37px; width: 37px; height: 37px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--purple-deep); }
.profile-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.icon-button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.screen { min-height: calc(100dvh - 70px); }

/* First screen: one photograph carries the visual weight. */
.home-screen { padding: 6px 22px calc(30px + env(safe-area-inset-bottom)); }
.hero-media { position: relative; height: clamp(225px, 71vw, 290px); border-radius: 17px; overflow: hidden; background: #d8c7c2; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.hero-media::after { content: ""; position: absolute; inset: 54% 0 0; background: linear-gradient(transparent, rgba(28, 22, 32, .47)); pointer-events: none; }
.hero-media-label { position: absolute; right: 14px; bottom: 13px; z-index: 1; padding: 5px 9px; border: 1px solid rgba(255,255,255,.55); border-radius: 99px; color: white; font-size: 11px; font-weight: 750; backdrop-filter: blur(6px); }
.home-copy { margin-top: 22px; }
.home-copy .product-line { margin: 0 0 14px; padding-left: 10px; border-left: 3px solid var(--purple); color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.45; }
.scene-kicker { margin: 0 0 7px; color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.home-copy h1 { margin: 0; font-size: clamp(27px, 7.8vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: -.055em; word-break: keep-all; }
.home-copy p:not(.scene-kicker, .product-line) { margin: 13px 0 0; color: #5e5864; font-size: 14px; line-height: 1.7; word-break: keep-all; }
.hero-action { margin-top: 21px; }
.hero-action p { margin: 9px 0 0; color: #746c78; font-size: 12px; text-align: center; }
.practice-path { margin-top: 38px; }
.practice-path .section-heading { align-items: center; }
.practice-path h2, .audience-note h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.practice-path .section-heading > span { color: var(--purple-deep); font-size: 11px; font-weight: 750; }
.practice-path ol { display: grid; gap: 0; margin: 17px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.practice-path li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.path-number { color: var(--purple); font-family: var(--font-latin); font-size: 15px; font-weight: 800; letter-spacing: -.04em; }
.practice-path strong { display: block; font-size: 14px; font-weight: 800; line-height: 1.4; }
.practice-path p { margin: 3px 0 0; color: #6d6471; font-size: 12px; line-height: 1.5; }
.demo-preview { margin-top: 32px; padding: 18px; border: 1px solid #ddd3ec; border-radius: 16px; background: #f5f1fb; }
.demo-preview .section-heading { align-items: center; margin-bottom: 14px; }
.demo-preview h2, .home-trust h2 { margin: 0; font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.demo-preview .section-heading span { color: #796e86; font-size: 11px; }
.demo-quote, .demo-response { padding: 12px 13px; border-radius: 11px; background: var(--paper); }
.demo-quote span, .demo-response span { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.demo-quote p, .demo-response p { margin: 5px 0 0; font-size: 13px; line-height: 1.6; }
.demo-response { margin-top: 9px; background: transparent; padding: 9px 2px 0; }
.demo-response p { color: #615767; }
.audience-note { display: grid; grid-template-columns: 28px 1fr; gap: 8px; margin-top: 29px; padding: 17px 0 17px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-marker { color: var(--purple); font-size: 21px; line-height: 1.2; }
.audience-note h2 { font-size: 15px; }
.audience-note p { margin: 5px 0 0; color: #6d6471; font-size: 12px; line-height: 1.65; }
.home-trust { margin-top: 28px; }
.home-trust ul { display: grid; gap: 9px; margin: 13px 0 0; padding: 0; list-style: none; }
.home-trust li { position: relative; padding-left: 16px; color: #5f5664; font-size: 12px; line-height: 1.6; }
.home-trust li::before { content: ""; position: absolute; top: .65em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--purple); }
.home-last-action { margin-top: 24px; }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 800; line-height: 1.35; text-align: center; }
.primary-button { background: var(--purple); color: #fff; }
.primary-button:hover { background: var(--purple-deep); }
.secondary-button { border-color: #d8cde9; background: var(--paper); color: var(--purple-deep); }

/* Selection */
.screen-pad { padding: 13px 22px 28px; }
.progress-track { height: 3px; border-radius: 99px; overflow: hidden; background: #e8e2ed; }
.progress-track span { display: block; height: 100%; background: #8067c4; }
.step-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 12px; font-weight: 700; }
.step-line span:first-child { color: var(--purple-deep); }
.choose-screen h1, .plan-screen h1 { margin: 13px 0 12px; font-size: clamp(27px, 7.8vw, 33px); font-weight: 800; line-height: 1.3; letter-spacing: -.052em; word-break: keep-all; }
.lead { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; word-break: keep-all; }
.field-label { margin: 27px 0 10px; font-size: 13px; font-weight: 800; }
.segment-control { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.segment { min-height: 48px; padding: 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #837a89; font-size: 14px; font-weight: 750; }
.segment span[aria-hidden] { display: none; }
.segment.active { border-bottom-color: var(--purple); color: var(--purple-deep); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-heading .field-label { margin-bottom: 12px; }
.tiny-label { color: #897e91; font-size: 11px; }
.scenario-card { overflow: hidden; border: 1px solid #dcd2e8; border-radius: 16px; background: var(--paper); }
.scenario-main { display: grid; grid-template-columns: 108px minmax(0,1fr); gap: 15px; min-height: 137px; }
.scenario-main img { width: 108px; height: 100%; min-height: 137px; object-fit: cover; object-position: center; }
.scenario-copy { min-width: 0; align-self: center; padding: 12px 13px 12px 0; }
.scenario-status { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.scenario-copy h3 { margin: 3px 0 5px; font-size: 18px; font-weight: 800; letter-spacing: -.035em; }
.scenario-copy p { margin: 0; color: #625b67; font-size: 12px; line-height: 1.58; word-break: keep-all; }
.scenario-facts { display: grid; gap: 0; margin: 0; padding: 12px 17px 10px; border-top: 1px solid var(--line); }
.scenario-facts div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px; padding: 4px 0; }
.scenario-facts dt { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.scenario-facts dd { margin: 0; color: #625b67; font-size: 12px; line-height: 1.5; }
.scenario-facts .avoid dt { color: var(--caution); }
.scenario-meta { margin: 0; padding: 9px 17px 11px; border-top: 1px solid var(--line); color: #817887; font-size: 11px; }
.notice-card { margin: 15px 0 0; color: #786f7c; font-size: 12px; line-height: 1.6; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 12px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(251,249,244,.97); backdrop-filter: blur(10px); }

/* Conversation */
.practice-screen { display: flex; flex-direction: column; height: calc(100dvh - 70px); min-height: calc(100dvh - 70px); }
  .practice-header { padding: 13px 22px 0; }
  .service-notice { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #dfd5ea; border-radius: 9px; background: #f7f3fc; color: #554b60; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
  .service-notice[data-tone="error"] { border-color: #e6c8c3; background: #fff4f1; color: #7b3738; }
  .service-actions { display: grid; gap: 8px; margin-top: 10px; }
  .service-actions .secondary-button { min-height: 44px; font-size: 13px; text-decoration: none; }
  .notice-action { display: inline-flex; margin-top: 8px; color: var(--purple-deep); font-size: 12px; font-weight: 800; text-underline-offset: 3px; }
.practice-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 19px; color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.timer { padding: 5px 9px; border: 1px solid #d8cbea; border-radius: 6px; color: var(--purple-deep); font-family: var(--font-latin); font-size: 12px; font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.urgent { border-color: #e7c8c5; color: var(--caution); }
.practice-header h1 { margin: 9px 0 13px; font-size: 24px; font-weight: 800; line-height: 1.3; letter-spacing: -.045em; }
.practice-context { display: flex; align-items: center; gap: 10px; padding: 0 0 11px; border-bottom: 1px solid var(--line); }
.practice-context > span:first-child { flex: 0 0 auto; padding: 4px 7px; border-radius: 5px; background: var(--lavender); color: var(--purple-deep); font-size: 11px; font-weight: 800; }
.practice-context strong, .practice-context small { display: block; }
.practice-context strong { font-size: 13px; font-weight: 800; }
.practice-context small { color: #867c89; font-size: 11px; }
.round-count { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.authority-panel { margin-top: 10px; border-radius: 9px; background: #f2edf9; }
.authority-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; color: var(--purple-deep); font-size: 12px; font-weight: 800; list-style: none; cursor: pointer; }
.authority-panel summary::-webkit-details-marker { display: none; }
.authority-panel summary::after { content: "+"; flex: 0 0 auto; font-size: 16px; font-weight: 500; line-height: 1; }
.authority-panel[open] summary::after { content: "−"; }
.authority-panel summary span { flex: 1; }
.authority-panel summary small { color: #71647f; font-size: 12px; font-weight: 600; white-space: nowrap; }
.authority-panel dl { display: grid; gap: 4px; margin: 0; padding: 0 11px 11px; }
.authority-panel dl div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 7px; }
.authority-panel dt { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.authority-panel dl div:last-child dt { color: var(--caution); }
.authority-panel dd { margin: 0; color: #6e6277; font-size: 12px; line-height: 1.5; }
.time-note { margin: 8px 0 0; color: #746a79; font-size: 12px; line-height: 1.5; }
.chat-frame { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; background: #fcfaf7; }
.chat-area { display: flex; flex: 1 1 auto; flex-direction: column; gap: 13px; min-height: 0; padding: 17px 22px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.chat-intro { align-self: center; color: #8b828e; font-size: 11px; }
.chat-row { display: flex; max-width: 94%; }
.chat-row.me { align-self: flex-end; }
.avatar { display: none; }
.bubble { padding: 11px 13px; border-radius: 12px 12px 12px 3px; background: var(--lavender); color: #382f41; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-row.me .bubble { border: 1px solid #dcd4e6; border-radius: 12px 12px 3px 12px; background: var(--paper); }
.chat-row.me[data-delivery="sending"] .bubble { border-color: #c7b6dc; background: #faf7ff; }
.chat-row.me[data-delivery="retry"] .bubble { border-color: #bc8b80; background: #fff9f6; }
.delivery-status { display: block; margin-top: 8px; padding-top: 7px; border-top: 1px solid currentColor; color: #92594d; font-size: 11px; line-height: 1.45; }
.delivery-status[hidden] { display: none; }
.bubble .speaker { display: block; margin-bottom: 4px; color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.chat-row.me .bubble .speaker { color: #69616f; }
.customer-activity { display: flex; align-items: center; gap: 7px; padding: 8px 22px 11px; color: #655b6f; font-size: 12px; font-weight: 650; animation: chat-status-in .24s ease-out both; }
.activity-glyph { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; background: var(--lavender); color: var(--purple-deep); font-family: var(--font-latin); font-size: 11px; font-weight: 800; }
.typing-dots { display: inline-flex; align-items: flex-end; gap: 3px; margin-left: 1px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--purple); animation: typing-pulse 1.2s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
.reply-panel { position: relative; z-index: 3; flex: 0 0 auto; padding: 11px 22px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 -8px 20px rgba(44, 39, 49, .025); }
.reply-heading, .reply-subline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.reply-heading label { font-size: 13px; font-weight: 800; }
.reply-heading span { color: #837986; font-size: 11px; }
.hint-tray { position: absolute; right: 22px; bottom: calc(100% + 8px); left: 22px; z-index: 4; max-height: min(38dvh, 170px); overflow-y: auto; padding: 9px 10px 7px; border: 1px solid #e2d8ef; border-radius: 10px; background: #faf7fd; box-shadow: 0 8px 24px rgba(52, 37, 68, .1); animation: chat-status-in .26s ease-out both; }
.hint-heading { display: flex; align-items: center; gap: 5px; color: var(--purple-deep); font-size: 11px; font-weight: 750; }
.hint-spark { font-size: 13px; line-height: 1; }
textarea { display: block; width: 100%; min-height: 64px; max-height: 180px; margin-top: 8px; padding: 10px 11px; resize: vertical; border: 1px solid #d9d0df; border-radius: 9px; outline: none; background: #fff; color: var(--ink); font-size: 13px; line-height: 1.55; }
textarea:focus { border-color: var(--purple); }
textarea::placeholder { color: #9d93a1; }
.reply-subline { margin-top: 5px; color: #756b7b; font-size: 12px; }
.reply-subline small { font-size: inherit; }
.input-warning { margin: 7px 0 0; color: var(--caution); font-size: 12px; font-weight: 750; }
.suggestions { display: flex; gap: 6px; margin: 6px -2px 0; padding: 2px 2px 4px; overflow-x: auto; overscroll-behavior-inline: contain; }
.suggestions p { margin: 0; color: #5d5268; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.suggestions button { flex: 0 0 auto; max-width: min(82%, 250px); min-height: 32px; padding: 6px 9px; border: 1px solid #ded3ee; border-radius: 8px; background: var(--paper); color: var(--purple-deep); font-size: 12px; font-weight: 700; text-align: left; white-space: normal; }
.voice-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 9px; }
.tool-button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 9px; border: 1px solid #dfd7e7; border-radius: 9px; background: #fff; color: #665975; font-size: 11px; font-weight: 750; }
.tool-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-button[aria-pressed="true"] { border-color: #ad9acb; background: #f0eafb; color: var(--purple-deep); }
#voiceInputStatus { flex: 1 0 100%; color: #665975; font-size: 11px; }
.voice-notice { flex: 1 0 100%; margin: 0; color: #746a79; font-size: 10px; line-height: 1.4; }
.voice-notice + .voice-notice { margin-top: -2px; }
.reply-panel .primary-button { min-height: 46px; font-size: 13px; }
.quiet-button { display: block; width: 100%; min-height: 28px; margin-top: 6px; padding: 3px; border: 0; background: transparent; color: #74677d; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes typing-pulse { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes chat-status-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Feedback: one observation, one correction, then evidence. */
.feedback-content { padding-bottom: 15px; }
.result-hero { margin-top: 18px; padding: 18px; border-radius: 15px; background: var(--lavender); }
.result-tag { color: var(--purple-deep); font-size: 11px; font-weight: 800; }
.result-hero h1 { margin: 12px 0 8px; font-size: 24px; font-weight: 800; line-height: 1.32; letter-spacing: -.045em; }
.result-hero p { margin: 0; color: #5d5268; font-size: 12px; line-height: 1.65; }
.criteria-count { margin-top: 11px; color: #796d86; font-size: 12px; line-height: 1.5; }
.takeaways { margin-top: 18px; }
.takeaways > div { padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.takeaways > div + div { padding-top: 13px; }
.takeaways span { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.takeaways > div:nth-child(2) span { color: var(--caution); }
.takeaways p { margin: 5px 0 0; color: #4b444f; font-size: 13px; line-height: 1.65; }
.subheading { margin: 25px 0 7px; font-size: 17px; font-weight: 800; letter-spacing: -.025em; }
.criteria-list { display: grid; }
.criterion { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 10px; padding: 12px 1px; border-bottom: 1px solid var(--line); }
.criterion-icon { color: var(--purple); font-size: 17px; font-weight: 800; line-height: 1.1; text-align: center; }
.criterion.needs-work .criterion-icon { color: #97899f; }
.criterion.risk .criterion-icon, .criterion.risk h3 { color: var(--caution); }
.criterion h3 { margin: 0 0 3px; font-size: 12px; font-weight: 800; }
.criterion p { margin: 0; color: #6e6573; font-size: 12px; line-height: 1.65; }
.compare-card { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.example-label { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.compare-line { margin-top: 13px; }
.compare-line + .compare-line { padding-top: 13px; border-top: 1px solid var(--line); }
.compare-line small { color: #827887; font-size: 12px; font-weight: 800; }
.compare-line.improved small { color: var(--purple-deep); }
.compare-line p { margin: 4px 0 0; color: #4d4453; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.example-card { margin-top: 17px; padding: 11px 0 11px 13px; border-left: 3px solid var(--lavender-strong); }
.example-card p { margin: 7px 0 6px; color: #4b4252; font-size: 12px; line-height: 1.7; }
.example-card small { color: #847b89; font-size: 12px; }
.demo-disclosure { margin: 18px 0 0; color: #746c78; font-size: 12px; line-height: 1.65; }
.post-result-upgrade { margin-top: 23px; padding: 18px; border: 1px solid #ded2ef; border-radius: 14px; background: #f6f2fb; }
.post-result-upgrade > span { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.post-result-upgrade h2 { margin: 7px 0; font-size: 17px; line-height: 1.4; }
.post-result-upgrade p { margin: 0 0 15px; color: #62596a; font-size: 12px; line-height: 1.6; }
.post-result-upgrade .secondary-button { min-height: 46px; }
.dual-actions { display: grid; gap: 7px; }
.dual-actions .secondary-button { min-height: 44px; font-size: 13px; }

/* Honest product status, no checkout. */
.plan-screen .lead { margin-bottom: 22px; }
.plan-card { margin-bottom: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }
.future-plan { border-color: #d9ccec; background: #f6f2fc; }
.plan-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-kicker { display: block; color: var(--purple-deep); font-size: 12px; font-weight: 750; }
.plan-title-row h2 { margin: 3px 0 0; font-size: 17px; font-weight: 800; }
.plan-price, .pending-price { color: var(--purple-deep); font-size: 12px; font-weight: 800; white-space: nowrap; }
.plan-card ul { display: grid; gap: 6px; margin: 14px 0 0; padding: 0 0 0 18px; color: #5f5664; }
.plan-card li { padding-left: 2px; font-size: 12px; line-height: 1.55; }
.plan-card li::marker { color: var(--purple); }
.future-plan p { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #dfd5eb; color: #756a7c; font-size: 12px; line-height: 1.65; }
.launch-intro, .launch-terms { margin: 0 0 14px; color: #61566a; font-size: 12px; line-height: 1.7; }
.launch-plan { background: #f9f6fd; }
.launch-plan .plan-price { font-size: 18px; letter-spacing: -.035em; }
.launch-terms { margin: 5px 0 18px; padding: 12px 13px; border: 1px solid #e1d8e8; border-radius: 10px; background: #fffdf9; }
.plan-note { display: grid; gap: 4px; margin-top: 20px; padding: 14px; border-radius: 10px; background: #f1eef4; }
.plan-note strong { font-size: 12px; }
.plan-note span { color: #756b7c; font-size: 12px; line-height: 1.65; }

/* A truthful guest profile until account and history services are connected. */
.profile-intro { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 51px; width: 51px; height: 51px; border-radius: 17px; background: var(--purple); color: white; font-family: var(--font-latin); font-size: 25px; font-weight: 800; }
.profile-status { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.profile-intro h1 { margin: 2px 0 0; font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.profile-screen .lead { margin-top: 17px; }
.profile-stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px; margin-top: 14px; padding: 19px; border-radius: 15px; background: var(--lavender); }
.profile-stat span { font-size: 13px; font-weight: 800; }
.profile-stat strong { grid-column: 2; grid-row: 1 / span 2; color: var(--purple-deep); font-size: 31px; line-height: 1; }
.profile-stat small { color: #746a7c; font-size: 12px; }
.profile-card { margin-top: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.profile-honesty { margin-top: 22px; border-color: #d8cde9; background: #f8f5fd; }
.profile-card h2 { margin: 0; font-size: 16px; }
.profile-card .section-heading { align-items: center; }
.profile-card .section-heading span { color: #8a7e91; font-size: 12px; }
.profile-card p { margin: 11px 0 0; color: #625968; font-size: 13px; line-height: 1.65; }
.language-summary { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.language-summary strong { color: var(--purple-deep); }
.profile-auth { display: grid; gap: 9px; margin-top: 14px; }
.profile-auth a { text-decoration: none; }
.profile-auth .secondary-button { min-height: 44px; }
.profile-auth #signedInEmail { color: #71657d; overflow-wrap: anywhere; }
.profile-auth #scenesLogout { justify-self: start; width: auto; min-height: 36px; margin-top: 2px; padding: 5px 2px; }
.account-records { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.account-records li { min-width: 0; padding: 11px 12px; border-radius: 9px; background: var(--ivory); color: #52495a; font-size: 12px; overflow-wrap: anywhere; }
.account-records strong { display: block; color: var(--ink); font-size: 13px; }
.account-records small { display: block; margin-top: 4px; color: #756b7c; }
.business-footer { display: grid; gap: 5px; padding: 24px 18px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: #756b7c; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.business-footer strong { color: #51465a; font-size: 12px; }
.business-footer a { width: fit-content; color: #65567a; text-decoration: underline; text-underline-offset: 2px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 13px; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; padding-block: 6px; font-size: 12px; }

/* Native dialog supplies focus containment and Escape; backdrop dims the page. */
body.modal-open { overflow: hidden; }
.upgrade-dialog { width: min(calc(100% - 32px), 392px); max-height: min(84dvh, 680px); margin: auto; padding: 22px; overflow: auto; border: 1px solid #e2d6ed; border-radius: 20px; background: var(--paper); box-shadow: 0 25px 80px rgba(34,25,48,.22); color: var(--ink); }
.upgrade-dialog::backdrop { background: rgba(25,19,34,.64); }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.modal-kicker { color: var(--purple-deep); font-size: 12px; font-weight: 800; }
.modal-close { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--ivory); color: var(--ink); font-size: 23px; line-height: 1; }
.upgrade-dialog h2 { margin: 13px 0 10px; font-size: 24px; line-height: 1.3; letter-spacing: -.04em; }
.upgrade-dialog p { margin: 0; color: #5f5667; font-size: 13px; line-height: 1.65; }
.upgrade-dialog ul { display: grid; gap: 8px; margin: 17px 0; padding-left: 19px; color: #52495a; font-size: 12px; line-height: 1.55; }
.upgrade-dialog li::marker { color: var(--purple); }
.upgrade-dialog p.launch-modal-price { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #d9ccec; border-radius: 10px; background: #f6f2fc; color: var(--purple-deep); font-weight: 800; }
.upgrade-dialog p.modal-disclosure { padding-top: 13px; border-top: 1px solid var(--line); color: #756b7a; font-size: 12px; }
.modal-actions { display: grid; gap: 8px; margin-top: 20px; }
.modal-actions .secondary-button { min-height: 44px; }

@media (max-width: 340px) {
  .app-header { gap: 6px; padding-inline: 14px; }
  .brand .brand-logo { display: none; }
  .brand .brand-symbol { display: block; }
  .header-tools { gap: 4px; }
  .header-tools select { width: 84px; max-width: 84px; padding-right: 18px; }
  .profile-button { width: 33px; flex-basis: 33px; }
  .home-screen, .screen-pad, .practice-header, .chat-area, .customer-activity, .reply-panel, .sticky-actions { padding-left: 16px; padding-right: 16px; }
  .hint-tray { right: 16px; left: 16px; }
  .hero-media { height: 225px; }
  .home-copy h1 { font-size: 27px; }
  .scenario-main { grid-template-columns: 94px minmax(0,1fr); }
  .scenario-main img { width: 94px; }
}
@media (max-height: 690px) {
  .practice-screen { height: auto; min-height: calc(100dvh - 70px); }
  .chat-frame { flex: 1 0 auto; min-height: 180px; max-height: 42dvh; }
  .reply-panel { position: sticky; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .typing-dots i, .hint-tray, .customer-activity { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-arrive .55s ease-out both; }
  @keyframes hero-arrive { from { opacity: .75; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
}
html:lang(ja) body { font-family: "Pretendard JP", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
html:lang(vi) body { font-family: "Pretendard Variable", "Noto Sans", "Segoe UI", Arial, sans-serif; }
html:lang(zh-TW) body { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html:lang(th) body { font-family: "Noto Sans Thai", "Tahoma", "Leelawadee UI", sans-serif; }
html:lang(zh-CN) body { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
