/* TDS-inspired hierarchy, using the service's own brown palette. */
body.deep-flow-theme{background:var(--paper);color:var(--ink);min-height:100dvh;padding-bottom:0}
.deep-flow-theme #root{background:var(--paper);padding-bottom:0}
.deep-flow-theme main{max-width:500px;padding:24px 24px 48px;min-height:calc(100dvh - 166px)}
.deep-flow{position:relative;width:100%}
.flow-top{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:40px;margin-bottom:12px;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.flow-top>span{margin-left:auto}
.flow-back{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;border-radius:8px;background:none;color:#6b645d;font-size:14px;line-height:22px}
.flow-progress{height:4px;overflow:hidden;background:#f0efed;border-radius:4px;margin-bottom:28px}
.flow-progress span{display:block;height:100%;background:var(--action);border-radius:inherit;transition:width .2s}
.flow-kicker{display:block;margin-bottom:12px;font-size:14px;line-height:21px;font-weight:600;color:var(--muted)}
.deep-flow h1{font-family:inherit;font-size:28px;line-height:39px;letter-spacing:-.7px;text-align:left;margin:0;font-weight:700;color:var(--ink);word-break:keep-all}
.flow-description{font-size:16px;line-height:25px;color:#797570;margin:16px 0 32px;text-align:left;word-break:keep-all;letter-spacing:-.3px}
.deep-flow label,.flow-label{display:block;font-size:14px;line-height:21px;font-weight:600;color:#6b645d;margin:24px 0 12px}
.deep-flow label small{font-size:12px;color:#96908a;font-weight:400;margin-left:6px}
.deep-flow textarea{display:block;min-height:128px;max-height:360px;border:1px solid transparent;border-radius:18px;background:#f7f7f8;padding:18px;font-size:17px;line-height:27px;color:var(--ink);resize:vertical;letter-spacing:-.3px}
.deep-flow #deep-dream{min-height:224px}
.deep-flow textarea::placeholder{color:#aaa7a2}
.deep-flow textarea:focus{outline:none;border-color:var(--action);background:#fff}
.deep-flow .primary{background:var(--action);color:var(--on-action);min-height:56px;padding:16px;border-radius:16px;font-size:16px;line-height:24px;font-weight:600;margin-top:32px}
.deep-flow .primary:not(:disabled):hover{background:#493621}
.deep-flow .primary:disabled{background:#f0efed;color:#b4afa8}
.deep-flow .flow-footnote{font-size:12px;line-height:19px;color:#96908a;margin-top:14px;word-break:keep-all}
.intake-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:28px}
.intake-options button{border:1px solid transparent;border-radius:14px;background:#f7f7f8;color:#6b645d;font-size:16px;line-height:24px;min-height:56px;padding:15px 12px;text-align:left}
.intake-options button[aria-pressed=true]{background:var(--action-weak);color:var(--action);border-color:var(--action);font-weight:600}
.deep-preview>.flow-back{margin:0 0 20px}
.dream-preview-paper{margin:28px 0 36px;padding:22px;background:#f7f7f8;border:0;border-radius:18px}
.dream-preview-paper>span,.dream-preview-paper>div{font-size:13px;line-height:21px;color:var(--muted)}
.dream-preview-paper p{font-size:16px;line-height:27px;white-space:pre-wrap;margin:12px 0 20px}
.dream-preview-paper h3{font-size:15px;line-height:24px;margin-top:24px}
.deep-flow h2{font-family:inherit;font-size:22px;line-height:32px;letter-spacing:-.5px;margin:32px 0 12px}
.report-chapters{list-style:none;padding:0;margin:0 0 24px}
.report-chapters li{display:flex;align-items:baseline;gap:14px;padding:22px 0;border-bottom:1px solid #f0efed}
.report-chapters li>span{font-size:13px;color:#96908a}
.report-chapters li>div{flex:1;min-width:0}
.report-chapters h3{font-size:16px;line-height:25px;font-weight:600;margin-bottom:6px}
.report-chapters p{font-size:14px;line-height:23px;color:#797570;word-break:keep-all}
.flow-price{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:24px}
.flow-price span{font-size:14px;color:var(--muted)}
.flow-price strong{font-size:26px;line-height:36px;letter-spacing:-.5px}
.deep-flow-theme .modal{color:var(--ink)}
@media(max-width:359px){.deep-flow-theme main{padding-inline:20px}.deep-flow h1{font-size:26px;line-height:37px}}
@media(prefers-reduced-motion:reduce){.flow-progress span{transition:none}}
/* Immersive character scene, replacing the chat transcript. */
.deep-flow-theme main:has(.freud-journey){padding:0;max-width:500px;background:#10151e}
.freud-journey{position:relative;isolation:isolate;min-height:var(--freud-stage-height,100svh);background:#10151e;color:#f7f0e4;display:flex;flex-direction:column;justify-content:flex-end;padding:300px 24px 24px}
.freud-stage-art{position:absolute;inset:0;z-index:-2}
.freud-stage-frame{position:absolute;inset:0;background-position:center top;background-size:cover;background-repeat:no-repeat;opacity:0;transition:opacity .45s ease}
.freud-stage-frame.is-visible{opacity:1}
@media(prefers-reduced-motion:reduce){.freud-stage-frame{transition:none}}
.freud-journey::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(16,21,30,.18) 0%,rgba(16,21,30,0) 35%,rgba(16,21,30,.86) 65%,#10151e 100%)}
.freud-stage-top{position:absolute;inset:16px 24px auto;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#e2d7c5;font-size:12px;line-height:20px;letter-spacing:.3px}
.freud-home{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:1px solid rgba(247,240,228,.25);border-radius:14px;background:rgba(247,240,228,.1);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);color:#f7f0e4;font:inherit;font-weight:500;cursor:pointer}
.freud-home .material-symbols-rounded{font-size:22px;line-height:1}
.freud-home:hover{background:rgba(247,240,228,.18)}
.freud-home:focus-visible{outline:2px solid #d7bd8a;outline-offset:3px}
.freud-scene-content{animation:freud-scene-enter .4s ease-out both;position:relative;width:100%}
.freud-location-caption{margin:0 0 24px;text-align:center;font-family:"Noto Sans KR",sans-serif;font-size:16px;font-weight:700;line-height:26px;letter-spacing:.3px;color:#fffdf5;text-shadow:0 1px 2px #000,0 2px 6px rgba(0,0,0,.85)}
.freud-name{display:flex;align-items:center;gap:8px;font-size:13px;line-height:22px;color:#d7bd8a;margin-bottom:18px;font-weight:600}
.freud-name>span{width:20px;height:1px;background:currentColor}
.freud-journey h1{color:#fff6e7;font-size:27px;line-height:39px;letter-spacing:-.7px;margin:0 0 18px;font-weight:600;word-break:keep-all}
.freud-scene-lines p{font-size:16px;line-height:28px;color:#e0d8ca;margin:0 0 6px;word-break:keep-all}
.freud-scene-actions{display:flex;gap:12px;margin-top:28px;align-items:stretch}
.freud-scene-actions button{font:inherit;font-size:16px;line-height:24px;min-height:52px;border-radius:12px;padding:14px 18px;cursor:pointer}
.freud-back{flex:0 0 auto;min-width:76px;white-space:nowrap;background:transparent;border:1px solid #847762;color:#e7d9c0}
.freud-back:hover{background:rgba(255,255,255,.08)}
.freud-next{flex:1;display:flex;justify-content:center;align-items:center;gap:12px;background:#e9ddc6;border:1px solid #e9ddc6;color:#2a1d10;font-weight:600!important}
.freud-next:hover:not(:disabled){background:#fff0d5}
.freud-next:disabled{opacity:.36;cursor:default}
.freud-demo-note{font-size:11px;line-height:18px;color:#a69f92;margin:14px 0 0;text-align:center;word-break:keep-all}
.freud-journey.is-question{padding-top:260px}
.freud-journey.is-question .freud-stage-art,.freud-journey.is-review .freud-stage-art{height:460px}
.freud-journey.is-question .freud-stage-frame,.freud-journey.is-review .freud-stage-frame{background-size:100% auto}
.freud-journey.is-question::before,.freud-journey.is-review::before{background:linear-gradient(180deg,rgba(16,21,30,.12),rgba(16,21,30,.2) 150px,#10151e 340px)}
.freud-question-count{font-size:13px;letter-spacing:1px;color:#d7bd8a;margin-bottom:14px}
.freud-question-count span{color:#8e8a82}
.freud-question-description{font-size:15px;line-height:25px;color:#c9c2b5;margin:0 0 24px;word-break:keep-all}
.freud-journey textarea{width:100%;display:block;height:136px;min-height:136px;max-height:136px;overflow-y:auto;resize:none;padding:16px 0;background:transparent;border:0;border-bottom:1px solid #827765;border-radius:0;font:inherit;font-size:16px;line-height:28px;color:#fff3df}
.freud-journey textarea::placeholder{color:#969083}
.freud-journey textarea:focus{outline:0;border-bottom-color:#f0d49d;box-shadow:0 1px #f0d49d}
.freud-input-hint{font-size:12px;line-height:20px;color:#aaa294;margin-top:10px}
.freud-journey.is-review{padding-top:260px}
.freud-review{margin:24px 0}
.freud-review>div{padding:18px 0;border-bottom:1px solid #403e38}
.freud-review dt{font-size:12px;color:#b7a27d;margin-bottom:8px}
.freud-review dd{margin:0;font-size:16px;line-height:28px;white-space:pre-wrap;overflow-wrap:anywhere}
.freud-restart{display:block;background:none;border:0;color:#c0b39e;font:inherit;font-size:13px;min-height:44px;padding:10px;margin:12px auto 0}
.freud-journey button:focus-visible{outline:2px solid #ffdb91;outline-offset:4px}
@keyframes freud-scene-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:359px){.freud-journey{padding-inline:20px;padding-top:280px}.freud-journey h1{font-size:24px;line-height:35px}.freud-stage-top{inset-inline:20px}.freud-scene-lines p{font-size:15px;line-height:26px}}
@media(prefers-reduced-motion:reduce){.freud-scene-content{animation:none}}

.freud-typed-text{display:grid;white-space:pre-wrap}
.freud-type-reserve,.freud-type-visible{grid-area:1 / 1;min-width:0}
.freud-type-reserve{visibility:hidden}

.freud-review-edit>div{margin:24px 0}.freud-review-edit label{display:block;color:#b7a27d;font-size:13px;margin-bottom:8px}

/* The final invitation keeps the four faces above the dialogue. */
.freud-journey.is-ensemble{padding-top:410px}
.freud-journey.is-ensemble .freud-stage-art{height:560px}
.freud-journey.is-ensemble::before{background:linear-gradient(180deg,rgba(16,21,30,.08),rgba(16,21,30,.1) 270px,#10151e 450px)}
.freud-cast-captions{pointer-events:none;position:absolute;inset:0 auto auto 0;width:100%;aspect-ratio:941/1672}
.freud-cast-captions span{position:absolute;translate:-50% 0;white-space:nowrap;font-family:"Noto Sans KR",sans-serif;font-size:12px;font-weight:700;line-height:20px;color:#fffdf5;text-shadow:0 1px 2px #000,0 2px 5px #000;animation:freud-scene-enter .7s ease-out both}
.cast-jung{left:23%;top:22%}
.cast-cartwright{left:58%;top:25%;animation-delay:.2s!important}
.cast-grandmother{left:84%;top:29%;animation-delay:.4s!important}
.cast-freud{left:50%;top:40%;animation-delay:.6s!important}
@media(prefers-reduced-motion:reduce){.freud-cast-captions span{animation:none}}
