:root {
  --ink: #172655;
  --muted: #6c7897;
  --paper: #fbfaf7;
  --ivory: #f7f2e9;
  --line: rgba(66, 78, 113, .12);
  --blue: #748eef;
  --blue-deep: #526fcf;
  --sky: #dceaff;
  --mint: #dcefdc;
  --sage: #83bda0;
  --peach: #f8d9ca;
  --lilac: #e9e5fb;
  --shadow: 0 18px 45px rgba(73, 72, 93, .10), 0 3px 12px rgba(55, 68, 112, .06);
  --radius: 24px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
button { min-height: 44px; }
textarea, input { font-size: 16px; }
[hidden] { display: none !important; }
html { background: #ece8e0; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 15% 15%, #fff9ee 0 16%, transparent 42%), radial-gradient(circle at 85% 90%, #e2efe9 0 14%, transparent 38%), #eeeae4; font-family: Pretendard, "Noto Sans KR", system-ui, sans-serif; min-height: 100vh; }
button, textarea, input { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid rgba(82, 111, 207, .35); outline-offset: 3px; }
.skip-link { position: fixed; top: -100px; left: 16px; background: #fff; padding: 12px 16px; z-index: 100; }
.skip-link:focus { top: 16px; }
.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; }
.ambient { position: fixed; border-radius: 50%; filter: blur(3px); pointer-events: none; }
.ambient-a { width: 280px; height: 280px; background: rgba(255, 226, 186, .38); top: -90px; right: -70px; }
.ambient-b { width: 320px; height: 320px; background: rgba(191, 220, 204, .3); bottom: -110px; left: -80px; }

.app-shell { width: min(1100px, 100%); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 320px minmax(0, 430px); align-items: center; justify-content: center; gap: 84px; padding: 32px; position: relative; }
.desktop-rail { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding: 40px 10px; }
.brand-lockup, .mini-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { color: #438976; font-size: 32px; line-height: 1; transform: rotate(-10deg); }
.brand-lockup strong, .mini-brand strong { display: block; font-family: "Gowun Dodum", sans-serif; font-size: 26px; letter-spacing: .02em; }
.brand-lockup small, .mini-brand small { display: block; color: var(--muted); margin-top: 1px; font-size: 12px; }
.desktop-rail blockquote { margin: 88px 0 12px; font-family: "Gowun Dodum", sans-serif; color: #675b57; font-size: 24px; line-height: 1.9; white-space: pre-line; overflow-wrap: anywhere; }
.quote-edit { align-self: flex-start; margin-bottom: 12px; }
.personal-quote-card { margin: 12px 0; padding: 14px 18px; display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.personal-quote-card p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; color: #675b57; font-family: "Gowun Dodum", sans-serif; font-size: 13px; }
.personal-quote-card button { flex: 0 0 auto; }
.rail-art { height: 170px; position: relative; color: #7da887; font-size: 50px; border-bottom: 1px solid rgba(79, 116, 84, .18); }
.rail-art span { position: absolute; }
.rail-art span:nth-child(1) { left: 0; top: 42px; color: #c6d8ee; }
.rail-art span:nth-child(2) { left: 115px; top: 20px; }
.rail-art span:nth-child(3) { right: 20px; bottom: 18px; color: #d6a766; }
.privacy-note { color: var(--muted); font-size: 13px; }

.phone { width: 100%; height: min(880px, calc(100vh - 32px)); min-height: 700px; background: rgba(251, 250, 247, .96); border: 1px solid rgba(255,255,255,.85); border-radius: 42px; box-shadow: 0 34px 90px rgba(74, 66, 67, .22); overflow: hidden; position: relative; display: flex; flex-direction: column; backdrop-filter: blur(14px); }
.topbar { height: 74px; flex: 0 0 74px; display: flex; align-items: center; padding: 14px 20px 8px; gap: 12px; position: relative; z-index: 5; background: linear-gradient(to bottom, rgba(251,250,247,.96), rgba(251,250,247,.82)); }
.mini-brand { flex: 1; }
.mini-brand .brand-mark { font-size: 25px; }
.mini-brand strong { font-size: 20px; }
.screen-title { position: absolute; left: 50%; width: calc(100% - 128px); margin: 0; transform: translateX(-50%); font-size: 17px; text-align: center; pointer-events: none; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.65); display: grid; place-items: center; font-size: 20px; cursor: pointer; }
.topbar > .icon-button:last-child { margin-left: auto; }
.back-button { font-size: 32px; justify-self: start; }
.screen { display: none; flex: 1; overflow-y: auto; padding: 8px 18px calc(102px + var(--safe-bottom)); scrollbar-width: none; animation: appear .32s ease; }
.screen::-webkit-scrollbar { display: none; }
.screen.active { display: block; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

h2, h3, p { margin-top: 0; }
h2 { font-family: "Gowun Dodum", sans-serif; font-size: 28px; line-height: 1.32; letter-spacing: -.02em; margin-bottom: 10px; }
h3 { font-size: 16px; margin-bottom: 0; }
p { color: var(--muted); line-height: 1.62; font-size: 15px; }
.eyebrow { color: #57719f; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.card { border: 1px solid rgba(72, 82, 112, .08); border-radius: var(--radius); background: rgba(255,255,255,.78); box-shadow: var(--shadow); }
.hero-card { overflow: hidden; position: relative; min-height: 322px; padding: 26px 22px 22px; background: linear-gradient(145deg, #fffdf8 0%, #f8fbf7 58%, #edf7f0 100%); }
.hero-card h2 { font-size: 29px; max-width: 300px; margin: 12px 0 8px; }
.hero-card > p:not(.eyebrow) { max-width: 290px; word-break: keep-all; overflow-wrap: break-word; }
.quiet-window { height: 92px; width: 108px; position: absolute; right: 10px; top: 12px; background: transparent; overflow: hidden; opacity: .42; }
.quiet-window span { position: absolute; right: 16px; top: 7px; width: 30px; height: 30px; border-radius: 50%; background: #f2ce68; font-size: 0; }
.quiet-window i { position: absolute; display: block; width: 28px; height: 34px; border-radius: 100% 0 100% 0; background: #8fb791; bottom: 8px; transform-origin: bottom center; }
.quiet-window i:nth-of-type(1) { left: 16px; transform: rotate(-28deg); }.quiet-window i:nth-of-type(2) { left: 47px; bottom: -1px; transform: rotate(14deg); background: #a2c59a; }.quiet-window i:nth-of-type(3) { left: 76px; transform: rotate(43deg); background: #739e78; }
.primary-button, .secondary-button { width: 100%; border: 0; cursor: pointer; border-radius: 999px; font-weight: 700; min-height: 52px; transition: transform .18s ease, box-shadow .18s ease; }
.primary-button { color: white; background: linear-gradient(135deg, #829cf4, #6c80e7); box-shadow: 0 12px 24px rgba(100, 123, 217, .24); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-1px); }
.hero-card .primary-button { position: absolute; left: 22px; bottom: 22px; width: calc(100% - 44px); background: linear-gradient(105deg, #74a9ee, #878feb); box-shadow: 0 12px 24px rgba(103,126,219,.2); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 4px 10px; }
.text-button { border: 0; background: transparent; color: #5c73b8; font-size: 13px; cursor: pointer; padding: 4px; }
.status-card { display: flex; align-items: center; gap: 14px; padding: 17px; }
.mood-face { width: 52px; height: 52px; border-radius: 18px; background: #fff1c9; display: grid; place-items: center; font-size: 26px; }
.status-copy { flex: 1; }.status-copy strong { display: block; font-size: 16px; margin-bottom: 4px; }.status-copy small { color: var(--muted); font-size: 11px; line-height: 1.3; display: block; }
.stress-dots { display: flex; gap: 5px; }.stress-dots i { width: 9px; height: 9px; border-radius: 50%; background: #f7957e; }.stress-dots .off { background: #e5e4e8; }
.companion-card, .pattern-card { margin-top: 12px; padding: 17px; display: flex; gap: 13px; background: linear-gradient(135deg, #f3f7ff, #f5f1ff); }
.companion-card p, .pattern-card p { margin: 4px 0 0; font-size: 13px; }.pattern-card p { word-break: keep-all; overflow-wrap: break-word; }
.coach-avatar { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 50%; background: radial-gradient(circle at 50% 65%, white 0 28%, transparent 29%), linear-gradient(160deg, #d9eaff, #ece8ff); display: grid; place-items: center; color: #748ec3; }
.soft-chip { background: #f1f3fb; color: #64739b; padding: 5px 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.mission-card { padding: 18px; display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; }
.mission-icon { width: 56px; height: 56px; background: var(--mint); border-radius: 18px; display: grid; place-items: center; font-size: 27px; }
.mission-card strong { font-size: 17px; line-height: 1.45; }.mission-card p { font-size: 13px; margin: 7px 0 14px; }
.progress-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #ececf2; overflow: hidden; margin: 5px 0 14px; }.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #85c0a7, #6fab92); border-radius: inherit; transition: width .7s ease; }
.secondary-button { background: #cfe7d5; color: #2f6c56; box-shadow: none; }.mission-card .secondary-button { grid-column: 1/-1; }
.recommendation a.secondary-button { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 14px; min-height: 44px; text-decoration: none; }
.organizer-card { margin-top: 14px; }
.memory-card { margin-top: 14px; padding: 18px; display: grid; gap: 10px; }
.memory-card h3, .memory-card p { margin: 0; }.memory-card > p { word-break: keep-all; overflow-wrap: break-word; }
.memory-card select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; background: white; color: var(--ink); font: inherit; }
.memory-card .text-button { justify-self: center; min-height: 44px; }

.screen-intro { padding: 12px 8px 8px; }.screen-intro .eyebrow { display: block; margin-bottom: 8px; }.screen-intro p { margin-bottom: 12px; }
.screen-intro.centered { text-align: center; padding-top: 22px; }.sprout-icon { font-size: 34px; display: block; margin-bottom: 10px; }
.journal-field { display: block; position: relative; }
.journal-field textarea { width: 100%; height: 190px; resize: none; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.85); padding: 19px; color: var(--ink); line-height: 1.7; box-shadow: inset 0 2px 10px rgba(80,70,60,.025); }
#diary-text { word-break: keep-all; overflow-wrap: break-word; }
.journal-field textarea::placeholder { color: #a2abc1; }.journal-field small { position: absolute; right: 16px; bottom: 13px; color: #9da5b8; font-size: 11px; }
.form-block { border: 0; padding: 0; margin: 24px 2px 0; }.form-block legend { font-weight: 700; font-size: 15px; margin-bottom: 12px; }.form-block legend small { font-weight: 400; color: var(--muted); margin-left: 5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }.tag-list button { border: 1px solid transparent; background: #f3f2f5; color: #69728b; padding: 9px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; }.tag-list button:nth-child(3n+1) { background: #fff1de; }.tag-list button:nth-child(3n+2) { background: #eaf0ff; }.tag-list button:nth-child(3n) { background: #f9e5e5; }.tag-list button.selected { border-color: #718aea; color: #3856b0; box-shadow: 0 0 0 2px rgba(113,138,234,.08); }
.stress-scale { display: flex; justify-content: space-between; gap: 9px; }.stress-scale label { flex: 1; }.stress-scale input { position: absolute; opacity: 0; pointer-events: none; }.stress-scale span { aspect-ratio: 1; border-radius: 50%; background: #f3f2f2; display: grid; place-items: center; border: 1px solid transparent; cursor: pointer; }.stress-scale input:checked + span { background: #fff1e5; border-color: #edb58f; color: #a15b30; box-shadow: 0 5px 14px rgba(198,128,83,.12); }.scale-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 7px; }
.privacy-inline { font-size: 12px; text-align: center; margin: 24px 0 10px; word-break: keep-all; overflow-wrap: break-word; }.submit-button { margin-bottom: 8px; }

.analysis-card { padding: 20px; }.card-label { font-weight: 700; font-size: 13px; margin-bottom: 12px; }.emotion-result { background: #f8f7f4; border-radius: 18px; padding: 6px 4px 2px; }.emo-radar { display: block; width: 100%; height: auto; }.emo-grid { fill: none; stroke: rgba(66,78,113,.13); stroke-width: 1; }.emo-spoke { stroke: rgba(66,78,113,.10); stroke-width: 1; }.emo-shape { fill: rgba(82,111,207,.16); stroke: var(--blue-deep); stroke-width: 2; stroke-linejoin: round; }.emo-dot { fill: #fff; stroke: var(--blue-deep); stroke-width: 2; }.emo-dot.lead { fill: var(--blue-deep); stroke: #fff; }.emo-label { font-size: 11.5px; fill: var(--muted); font-weight: 600; }.emo-label.lead { fill: var(--ink); font-weight: 800; }.emo-score { font-size: 9.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }.emo-score.lead { fill: var(--blue-deep); font-weight: 700; }.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }.divider { height: 1px; background: var(--line); margin: 18px 0; }.analysis-summary { color: var(--ink); font-weight: 600; margin-bottom: 8px; }.meter { height: 9px; background: #eeeaf0; border-radius: 999px; overflow: hidden; }.meter span { display: block; height: 100%; width: 60%; border-radius: inherit; background: linear-gradient(90deg, #ff9178, #ffc2a1); transition: width .7s ease; }.model-note { color: var(--muted); display: block; margin-top: 9px; font-size: 10px; }
.coach-note { padding: 17px; display: flex; gap: 13px; margin-top: 12px; background: linear-gradient(135deg, #eef5ff, #f3efff); }.coach-note p { margin: 5px 0 0; font-size: 13px; }.coach-generation-note { margin-top: 12px; line-height: 1.55; word-break: keep-all; overflow-wrap: break-word; }
.mood-confirm { width: 100%; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; text-align: left; color: inherit; cursor: pointer; }.mood-dot { width: 42px; height: 42px; border-radius: 50%; background: #ec846f; }.mood-confirm strong, .mood-confirm small { display: block; }.mood-confirm small { color: var(--muted); margin-top: 3px; }.mood-confirm + .primary-button { margin-top: 16px; }

.recommend-list { display: grid; gap: 12px; }.recommend-list > .model-note { padding-left: 12px; font-size: 12px; line-height: 1.6; }.recommendation { padding: 17px; display: grid; grid-template-columns: 56px 1fr; gap: 13px; }.recommendation.featured { background: linear-gradient(135deg, #fbfefa, #edf7ef); border-color: rgba(100,158,118,.18); }.rec-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; }.rec-icon.mint { background: var(--mint); }.rec-icon.blue { background: var(--sky); }.rec-icon.lilac { background: var(--lilac); }.recommendation h3 { margin: 5px 0 5px; }.recommendation p { font-size: 13px; margin-bottom: 12px; }.recommendation .secondary-button { grid-column: 2; min-height: 42px; }.pale-blue { background: #d8e9ff; color: #42679e; }.pale-lilac { background: #e9e3f9; color: #67548f; }.gentle-note { margin: 20px 0 0; background: linear-gradient(135deg, #fff2e9, #fbf1ea); padding: 18px; border-radius: 22px; text-align: center; color: #8b6f66; }

.app-rating-button { width: 100%; min-height: 58px; margin-top: 20px; border: 1px solid #f3dfd2; border-radius: 999px; background: #fff3e9; color: #725e58; box-shadow: 0 10px 22px rgba(96, 75, 69, .14); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 700; cursor: pointer; }
.app-rating-button span { font-size: 28px; line-height: 1; }
.app-rating-button:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(96, 75, 69, .18); }
.rating-intro { padding: 15px 4px 12px; }
.rating-intro h2 { font-size: 25px; margin-bottom: 6px; }
.rating-intro p { font-size: 13px; margin-bottom: 0; }
.rating-question { min-width: 0; padding: 18px; margin: 0 0 14px; }
.rating-question legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.rating-options { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rating-options label { position: relative; display: block; cursor: pointer; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options span { width: min(100%, 54px); aspect-ratio: 1; margin: auto; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: #f6f6f9; font-size: 17px; }
.rating-options input:checked + span { background: #fff5ed; border-color: #f4b98f; color: #aa623b; box-shadow: 0 5px 13px rgba(198,128,83,.12); }
.rating-options input:focus-visible + span { outline: 3px solid rgba(82, 111, 207, .35); outline-offset: 3px; }
.rating-ends { display: flex; justify-content: space-between; gap: 10px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.rating-ends span:last-child { text-align: right; }
.rating-comment { padding: 18px; margin-top: 2px; }
.rating-comment label { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; font-size: 15px; line-height: 1.45; font-weight: 700; }
.rating-required { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 25px; padding: 2px 8px; border-radius: 999px; background: #fff0e8; color: #a65d3e; font-size: 12px; }
.rating-comment textarea { display: block; width: 100%; min-height: 100px; margin: 14px 0 7px; padding: 12px; resize: vertical; border: 1px solid #e0e2eb; border-radius: 15px; background: #fffefd; color: var(--ink); line-height: 1.5; }
.rating-comment textarea::placeholder { color: #98a0b2; }
.rating-comment small { color: var(--muted); font-size: 11px; }
.rating-consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 3px 10px; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.rating-consent input { flex: 0 0 auto; margin-top: 2px; }
.rating-status { min-height: 20px; margin: 0 2px 8px; font-size: 12px; }
.rating-submit { margin-bottom: 8px; }

.chat-heading { display: flex; align-items: center; gap: 12px; padding: 8px 4px 16px; border-bottom: 1px solid var(--line); }.chat-heading h2 { font-family: inherit; font-size: 18px; margin: 0; }.chat-heading span { color: var(--muted); font-size: 11px; }.chat-heading i { display: inline-block; width: 7px; height: 7px; background: #77b88d; border-radius: 50%; margin-right: 4px; }
.chat-thread { padding: 20px 2px 180px; display: flex; flex-direction: column; gap: 13px; }.message { max-width: 83%; padding: 13px 15px; border-radius: 20px; }.message p { margin: 0; font-size: 14px; color: inherit; }.message small { color: #6179a7; display: block; margin-bottom: 5px; }.message.ai { align-self: flex-start; background: linear-gradient(135deg, #edf4ff, #f1edfb); border-bottom-left-radius: 7px; }.message.user { align-self: flex-end; background: #dfe9f8; color: #263b61; border-bottom-right-radius: 7px; }.chat-composer { position: absolute; z-index: 7; bottom: calc(76px + var(--safe-bottom)); left: 16px; right: 16px; display: grid; grid-template-columns: 1fr 46px; gap: 9px; padding: 9px; background: rgba(255,255,255,.92); border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(56,70,103,.16); backdrop-filter: blur(10px); }.chat-composer input { width: 100%; border: 0; background: transparent; height: 46px; padding: 0 10px; color: var(--ink); }.chat-composer input:focus { outline: 0; }.chat-composer button { border: 0; border-radius: 50%; background: var(--blue); color: white; font-size: 20px; cursor: pointer; }.chat-disclaimer { position: absolute; z-index: 6; bottom: calc(63px + var(--safe-bottom)); left: 25px; right: 25px; font-size: 9px; text-align: center; margin: 0; transform: translateY(58px); }

.segmented { background: #f0f1f6; padding: 4px; border-radius: 15px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 5px 16px; }.segmented button { border: 0; min-height: 36px; border-radius: 12px; color: var(--muted); background: transparent; cursor: pointer; }.segmented button[aria-selected="true"] { background: white; color: #5069b6; box-shadow: 0 4px 10px rgba(72,82,112,.08); font-weight: 700; }
.chart-card { padding: 17px; }.chart-card .section-heading { margin: 0 0 16px; }.emotion-chart { height: 196px; padding-top: 30px; display: flex; align-items: flex-end; justify-content: space-around; gap: 7px; background: repeating-linear-gradient(to top, transparent 0 41px, rgba(80,92,119,.07) 42px); border-bottom: 1px solid var(--line); padding: 0 7px; }.chart-point { flex: 1; height: var(--h); max-width: 32px; min-height: 28px; border-radius: 18px 18px 6px 6px; background: linear-gradient(to top, #c8d8fc, #8aa7ee); position: relative; transition: height .6s ease; }.chart-point span { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); font-size: 18px; }.chart-point.empty { background: rgba(120,132,164,.12); min-height: 10px; }.segmented [aria-selected="true"] { font-weight: 700; }.chart-axis { display: flex; justify-content: space-around; padding: 8px 7px 0; color: var(--muted); font-size: 11px; }.pattern-card { background: linear-gradient(135deg, #f3f5ff, #faf3ff); }.pattern-icon { width: 42px; height: 42px; border-radius: 50%; background: #e4e8ff; display: grid; place-items: center; color: #5b6fc4; flex: 0 0 42px; }.recent-entry { margin-top: 12px; padding: 17px; }.recent-entry .section-heading { margin: 0 0 12px; }.entry-title { display: flex; align-items: center; gap: 9px; }.entry-title > span:first-child { font-size: 25px; }.entry-title .soft-chip { margin-left: auto; }.recent-entry p { margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.bottom-nav { position: absolute; z-index: 8; bottom: 0; left: 0; right: 0; height: calc(76px + var(--safe-bottom)); padding: 10px 18px var(--safe-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: rgba(255,255,255,.93); border-top: 1px solid var(--line); backdrop-filter: blur(15px); }.bottom-nav button { border: 0; background: transparent; color: #7b8293; display: grid; place-items: center; align-content: center; gap: 2px; border-radius: 14px; cursor: pointer; transform: translateY(-5px); }.bottom-nav button span { font-size: 21px; }.bottom-nav button small { font-size: 10px; font-weight: 700; }.bottom-nav button.active { color: #5f7de2; }.bottom-nav button.active span { background: #e8edff; min-width: 38px; border-radius: 13px; }

dialog { border: 0; padding: 0; color: var(--ink); }.sheet-dialog { width: min(430px, 100%); max-height: 88vh; margin: auto auto 0; border-radius: 30px 30px 0 0; background: var(--paper); }.sheet-dialog::backdrop, .breath-dialog::backdrop, .info-dialog::backdrop { background: rgba(23,31,53,.42); backdrop-filter: blur(4px); }.sheet-content { padding: 12px 18px 26px; max-height: 88vh; overflow-y: auto; }.sheet-handle { width: 42px; height: 4px; border-radius: 9px; background: #dad8de; margin: 0 auto 16px; }.sheet-content .section-heading { margin: 0; align-items: flex-start; }.sheet-content h2 { font-size: 22px; margin-top: 5px; }.sheet-content > p { font-size: 13px; }.mood-meter { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 6px; background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); }.mood-meter button { border: 2px solid transparent; color: #1e3154; min-height: 70px; padding: 7px 3px 6px; border-radius: 13px; background: var(--mood-color); display: grid; place-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }.mood-meter .mood-icon { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.3); font-size: 17px; line-height: 1; }.mood-meter button.selected { border-color: #506080; border-color: color-mix(in srgb, var(--mood-color) 66%, #34405e); box-shadow: 0 0 0 2px white inset, 0 5px 12px rgba(55,65,92,.13); transform: scale(.96); }.meter-label { font-size: 10px; color: var(--muted); }.meter-label.energy { margin: 7px 0 0 4px; }.meter-label.pleasant { text-align: right; margin: -13px 4px 14px 0; }.sheet-content .primary-button { margin-top: 4px; }
.breath-dialog, .info-dialog { width: min(390px, calc(100% - 32px)); border-radius: 30px; background: #f9faf6; box-shadow: var(--shadow); }.breath-content { min-height: 520px; padding: 25px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: radial-gradient(circle at 50% 45%, #eff8ef, #f8f4ec 62%); }.close-breath { position: absolute; top: 17px; right: 17px; }.breath-orb { width: 210px; height: 210px; border-radius: 50%; background: radial-gradient(circle, #fff 0 22%, #dceee0 23% 56%, rgba(208,230,218,.25) 57%); display: grid; place-items: center; margin: 30px 0; color: #477763; animation: breathe 8s ease-in-out infinite; }.breath-orb span { font-family: "Gowun Dodum", sans-serif; font-size: 19px; }.breath-content p { max-width: 270px; }.breath-content > strong { font-size: 27px; font-variant-numeric: tabular-nums; }.breath-orb.exhale { animation-direction: reverse; }
@keyframes breathe { 0%,100% { transform: scale(.82); box-shadow: 0 0 0 0 rgba(130,183,151,.16); } 50% { transform: scale(1); box-shadow: 0 0 0 32px rgba(130,183,151,0); } }
.info-dialog form { padding: 25px; position: relative; }.info-dialog .icon-button { position: absolute; top: 15px; right: 15px; }.info-dialog h2 { font-size: 23px; margin-top: 9px; }.info-dialog .secondary-button { margin-top: 8px; }
.crisis-dialog p { line-height: 1.7; word-break: keep-all; }.crisis-actions { display: grid; gap: 8px; margin: 16px 0 12px; }.crisis-actions a { text-decoration: none; }.crisis-actions .secondary-button { margin-top: 0; }.crisis-dialog .text-button { width: 100%; justify-content: center; margin-top: 8px; }.crisis-message { border: 1px solid rgba(197,116,91,.25); background: #fff7f2; }.crisis-links { display: flex; gap: 8px; flex-wrap: wrap; }.crisis-links a { color: #4f64ad; font-weight: 700; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: #243052; color: white; padding: 12px 18px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s ease; box-shadow: var(--shadow); }.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  body { background: var(--paper); }
  .ambient, .desktop-rail { display: none; }
  .app-shell { display: block; min-height: 100vh; padding: 0; }
  .phone { height: 100dvh; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); height: calc(68px + env(safe-area-inset-top, 0px)); flex-basis: calc(68px + env(safe-area-inset-top, 0px)); }
  .sheet-dialog { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


.quote-block { margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(66,78,113,.18); }.quote-text { margin: 0 0 6px; font-size: 13.5px; line-height: 1.65; font-style: italic; color: var(--ink); }.quote-by { display: block; font-size: 11px; color: var(--muted); font-style: normal; }.quote-by a { color: var(--muted); }.quote-license { display: block; font-size: 9.5px; color: var(--muted); opacity: .8; margin-top: 2px; }.care-card { margin-top: 14px; padding: 20px; }.care-row { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; margin-bottom: 12px; }.care-row:last-of-type { margin-bottom: 4px; }.care-icon { font-size: 22px; line-height: 1.2; }.care-row strong { display: block; font-size: 14px; }.care-meaning { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }.care-row p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.heal-guide { margin: 0 0 8px; padding-left: 12px; font-size: 12px; color: var(--muted); }.heal-tabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 0 12px; }.heal-tab { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 14px; padding: 9px 12px; font-size: 12.5px; font-weight: 600; text-align: left; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; cursor: pointer; transition: border-color .15s, background .15s; }.heal-tab small { font-size: 10.5px; font-weight: 500; color: var(--muted); }.heal-tab:hover { border-color: var(--blue); }.heal-tab.active { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }.heal-tab.active small { color: rgba(255,255,255,.75); }.heal-detail { padding: 20px; }.heal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }.heal-min { font-size: 11px; color: var(--muted); }.heal-detail h3 { margin: 0 0 6px; font-size: 17px; }.heal-desc { margin: 0 0 14px; font-size: 13px; color: var(--muted); line-height: 1.65; }.heal-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }.heal-steps li { font-size: 13px; line-height: 1.6; }.heal-steps li::marker { color: var(--blue-deep); font-weight: 700; }.heal-detail .secondary-button.playing { background: var(--blue-deep); color: #fff; }
.heal-copying-quote { margin: 0 0 14px; }.heal-copying-quote .eyebrow { display: block; margin-bottom: 7px; }.heal-copying-quote .model-note { margin: 5px 0 0; }

/* 앱 설치 안내 바 */
.install-bar { position: fixed; left: 16px; right: 16px; bottom: calc(86px + var(--safe-bottom)); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); font-size: 14px; }
.install-bar span { flex: 1; min-width: 0; }
.install-bar button { border: 0; border-radius: 12px; padding: 8px 14px; background: var(--blue-deep); color: #fff; font-weight: 600; cursor: pointer; }
.install-bar button.ghost { background: transparent; color: var(--muted); padding: 8px 6px; font-weight: 500; }
@media (min-width: 900px) { .install-bar { left: auto; right: 24px; width: 380px; bottom: calc(24px + var(--safe-bottom)); } }

/* 감정 분석 보고서 */
.report-card { margin-top: 12px; padding: 17px; }
.report-card .section-heading { margin: 0 0 12px; align-items: center; }
.report-rows { margin: 0; display: grid; gap: 9px; }
.report-row { display: flex; gap: 12px; align-items: baseline; }
.report-row dt { flex: 0 0 106px; margin: 0; font-size: 12px; color: var(--muted); }
.report-row dd { margin: 0; font-size: 13px; font-weight: 600; }
.report-bars { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.report-bar { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.report-bar span { flex: 0 0 66px; color: var(--muted); }
.report-bar i { flex: 1; height: 9px; border-radius: 999px; background: linear-gradient(90deg, #c8d8fc, #8aa7ee); width: var(--w); max-width: var(--w); }
.report-bar small { flex: 0 0 22px; text-align: right; font-weight: 600; color: var(--muted); }
.report-empty { margin: 0; font-size: 13px; color: var(--muted); word-break: keep-all; overflow-wrap: break-word; }
.report-card .model-note { display: block; margin-top: 14px; }
.organizer-summary { margin-top: 12px; padding: 18px; }
.organizer-summary-heading { margin: 0 0 5px; align-items: center; }
.organizer-summary-title { display: flex; align-items: center; gap: 10px; }
.organizer-summary-title h3 { margin: 0; }
.organizer-summary-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: #e7ecff; color: #5d79d9; font-size: 19px; }
.organizer-summary-row { display: grid; grid-template-columns: 38px 1fr; gap: 11px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.organizer-summary-row:last-of-type { border-bottom: 0; }
.organizer-summary-row > div { min-width: 0; }
.organizer-summary-row small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.organizer-summary-row p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.organizer-summary-icon { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; font-weight: 700; }
.organizer-summary-icon.event { background: #e8edff; color: #607bd9; }
.organizer-summary-icon.feeling { background: #eee9fa; color: #7465a6; font-size: 23px; line-height: 1; }
.organizer-summary-icon.need { background: #e5f3e7; color: #5c9b70; }
.organizer-summary-open { width: 100%; margin-top: 10px; }
.organizer-summary-privacy { display: block; margin-top: 10px; text-align: center; color: var(--muted); font-size: 10px; }
.draft-controls { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.draft-controls h4, .draft-controls p { margin: 0; }
.draft-controls h4 { font-size: 14px; }
.draft-controls p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.draft-controls .privacy-inline { font-size: 12px; line-height: 1.55; }
.draft-controls .journal-field textarea { min-height: 120px; }
#report-draft-status { min-height: 1.4em; }
.need-examples-title { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.need-examples { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 5px; }
.need-examples li::marker { color: var(--sage); }
.need-examples button { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; text-align: left; background: #fff; cursor: pointer; }
#report-events-preview { font-size: 12px; color: var(--muted); }
.event-summary-list { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 12px; max-height: 42vh; overflow-y: auto; }
.event-summary-item { padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.event-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.event-summary-head strong { font-size: 13px; }
.event-summary-head input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.event-journey-summary { margin: 8px 0 7px; padding: 9px 10px; border-radius: 11px; background: #f6f8ff; color: var(--ink); font-size: 12px; line-height: 1.55; }
.event-journey-summary strong { color: #526fcf; }
.event-report-overview { margin: 10px 0 12px; padding: 11px 12px; border-radius: 14px; background: #eef5ed; color: var(--ink); display: grid; gap: 3px; font-size: 12px; }
.event-report-overview strong { color: #438976; font-size: 13px; }
.event-analysis-grid { margin: 8px 0; display: grid; grid-template-columns: 76px 1fr; gap: 5px 8px; font-size: 12px; }
.event-analysis-grid dt { color: var(--muted); }
.event-analysis-grid dd { margin: 0; font-weight: 600; line-height: 1.45; }
.event-mood-flow { margin: 4px 0 10px; font-size: 12px; color: #526fcf; font-weight: 700; }
.event-timeline { margin: 0; padding-left: 19px; display: grid; gap: 10px; }
.event-timeline li::marker { color: var(--sage); }
.event-item-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.event-item-actions .text-button, .event-summary-head .text-button { min-height: 34px; margin: 0 !important; }
.event-summary-item textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; padding: 10px; line-height: 1.5; }
#report-events-dialog .text-button { display: block; margin: 4px auto; }
.segmented button { min-width: 0; font-size: 13px; }.chart-point .chart-value { top: -24px; font-size: 11px; font-weight: 700; color: var(--muted); }
