:root {
  --ink: #191a18;
  --muted: #7d827d;
  --line: #e4e6e1;
  --paper: #fff;
  --white: #fff;
  --sage: #dce5db;
  --sage-deep: #45604c;
  --blue: #e8eef4;
  --shadow: 0 22px 70px rgba(30, 31, 28, .12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { max-width: 100vw; margin: 0; overflow: hidden; color: var(--ink); background: #fff; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.visit-skip { position: fixed; z-index: 100; top: -80px; left: 100px; padding: 10px 14px; color: #fff; background: #111; border-radius: 8px; }
.visit-skip:focus { top: 12px; }

.auth-gate { position: fixed; z-index: 100; inset: 0; display: grid; padding: 24px; place-items: center; background: #fff; }
.auth-card { display: grid; width: min(390px, 100%); justify-items: center; text-align: center; }
.auth-mark { display: grid; width: 58px; height: 58px; margin-bottom: 24px; place-items: center; color: #111; background: #fff; border-radius: 17px; box-shadow: 0 10px 30px rgba(25, 26, 24, .12); }
.auth-mark svg { width: 34px; height: 34px; stroke: none; }
.auth-card > p { margin: 0 0 9px; color: #7d827d; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-card h1 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.auth-card > span { max-width: 340px; margin: 12px 0 26px; color: #6f746f; font-size: 15px; line-height: 1.55; }
.auth-link-loading { display: none; justify-items: center; }
.auth-link-loading > span:last-child { margin-top: 12px; color: #6f746f; font-size: 15px; line-height: 1.55; }
.auth-link-loading__spinner { width: 24px; height: 24px; margin: 5px 0 20px; border: 2px solid #dfe3de; border-top-color: #45604c; border-radius: 50%; animation: auth-spin .8s linear infinite; }
.auth-check-pending #authTitle,
.auth-check-pending #authIntro,
.auth-check-pending #authPublicActions,
.auth-check-pending #authExisting,
.auth-check-pending #googleSignIn,
.auth-check-pending #showEmailSignIn,
.auth-check-pending #emailSignInForm,
.auth-check-pending #emailSentState,
.auth-check-pending #authStatus { display: none !important; }
.auth-check-pending .auth-link-loading { display: grid; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auth-link-loading__spinner { animation: none; border-color: #45604c; } }
.auth-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 9px; }
.auth-action { display: grid; min-height: 48px; padding: 10px 14px; place-items: center; color: #191a18; background: #fff; border: 1px solid #d9ddd8; border-radius: 13px; font-size: 13px; font-weight: 750; text-decoration: none; }
.auth-action:hover, .auth-action:focus-visible { background: #f7f8f5; border-color: #bfc4bc; outline: none; }
.auth-action--dark { color: #fff; background: #11130f; border-color: #11130f; }
.auth-action--dark:hover, .auth-action--dark:focus-visible { background: #2b2e29; border-color: #2b2e29; }
.auth-card .auth-existing { display: flex; width: 100%; gap: 12px; margin: 22px 0 10px; align-items: center; color: #737873; font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none; }
.auth-card .auth-existing::before, .auth-card .auth-existing::after { content: ""; height: 1px; flex: 1; background: #e4e6e1; }
.google-sign-in, .email-link-button { display: flex; width: 100%; min-height: 52px; gap: 12px; padding: 10px 18px; align-items: center; justify-content: center; background: #fff; border: 1px solid #d9ddd8; border-radius: 13px; font-size: 15px; font-weight: 700; }
.google-sign-in:hover, .google-sign-in:focus-visible, .email-link-button:hover, .email-link-button:focus-visible { background: #f7f8f5; border-color: #bfc4bc; outline: none; }
.google-sign-in:disabled { opacity: .55; cursor: wait; }
.google-sign-in svg, .email-link-button svg { width: 22px; height: 22px; flex: 0 0 auto; }
.google-sign-in svg { stroke: none; }
.email-link-button { margin-top: 9px; }
.email-sign-in { display: grid; width: 100%; gap: 8px; margin-top: 12px; text-align: left; }
.email-sign-in label { font-size: 13px; font-weight: 700; }
.email-sign-in > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.email-sign-in input { min-width: 0; padding: 12px 13px; background: #fff; border: 1px solid #d9ddd8; border-radius: 12px; outline: none; font-size: 16px; }
.email-sign-in input:focus { border-color: #8c948a; box-shadow: 0 0 0 3px rgba(92, 112, 94, .1); }
.email-sign-in button { padding: 12px 15px; color: #fff; background: #11130f; border: 0; border-radius: 12px; font-size: 13px; font-weight: 750; }
.email-sign-in button:disabled { opacity: .5; cursor: wait; }
.email-sent { display: grid; justify-items: center; }
.email-sent__icon { display: grid; width: 58px; height: 58px; margin: 6px 0 16px; place-items: center; color: #345842; background: #e4efe6; border-radius: 50%; }
.email-sent__icon svg { width: 27px; height: 27px; }
.email-sent p { max-width: 320px; margin: 0; color: #687068; font-size: 15px; line-height: 1.55; }
.email-sent button { margin-top: 18px; padding: 7px; color: #454a45; background: transparent; border: 0; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.email-sent button:hover, .email-sent button:focus-visible { color: #111; outline: none; }
.auth-card small { min-height: 34px; margin-top: 16px; color: #858a85; font-size: 12px; line-height: 1.45; }
.auth-card small:empty { display: none; }
.visit-app.is-locked { visibility: hidden; }

.access-page { min-height: 100%; overflow-y: auto; }
.access-shell { display: grid; width: min(470px, calc(100% - 40px)); min-height: 100dvh; margin: 0 auto; padding: 64px 0; align-content: center; justify-items: center; text-align: center; }
.access-shell .auth-mark { margin-bottom: 18px; }
.access-brand { margin: 0 0 28px; color: #7d827d; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.access-shell h1 { margin: 0; font-size: clamp(32px, 5vw, 44px); letter-spacing: -.045em; }
.access-copy { margin: 18px 0 0; color: #4f554f; font-size: 17px; line-height: 1.55; }
.access-note { max-width: 410px; margin: 9px 0 28px; color: #7a7f79; font-size: 14px; line-height: 1.6; }
.access-actions { margin-top: 0; }
.access-actions .auth-action { min-height: 52px; font-size: 14px; }
.access-try { margin-top: 22px; color: #454a45; font-size: 14px; font-weight: 700; text-underline-offset: 3px; }
.access-try:hover, .access-try:focus-visible { color: #111; outline: none; }

.visit-app { display: grid; grid-template-columns: 82px minmax(430px, 1fr) 414px; height: 100dvh; overflow: hidden; }
.visit-rail { z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 22px 0; color: #7d827d; background: #fff; border-right: 1px solid var(--line); }
.visit-brand { display: grid; width: 46px; height: 46px; place-items: center; color: #111; background: #fff; border: 0; border-radius: 14px; box-shadow: 0 8px 24px rgba(25, 26, 24, .1); }
.visit-brand svg { width: 28px; height: 28px; stroke: none; }
.visit-rail__nav { display: grid; gap: 10px; margin: auto 0; }
.rail-button { display: grid; width: 46px; height: 46px; padding: 0; place-items: center; color: #7d827d; background: transparent; border: 0; border-radius: 14px; transition: .18s ease; }
.rail-button svg { width: 22px; height: 22px; }
.rail-button:hover, .rail-button:focus-visible { color: #111; background: #f0f1ed; outline: none; }
.rail-button.is-active { color: #fff; background: #11130f; box-shadow: 0 8px 20px rgba(17, 19, 15, .16); }

.visit-chat { min-width: 0; min-height: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #fff; }
.chat-header { display: flex; min-height: 88px; padding: 18px clamp(24px, 4vw, 54px); align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.chat-header__title p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.chat-header__title h1 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 750; letter-spacing: -.035em; }
.chat-header__actions { display: flex; gap: 14px; align-items: center; }
.header-button { padding: 10px 14px; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.account-button { color: #676b66; font-weight: 650; }
.mobile-section-tabs { display: none; }

.chat-stream { min-height: 0; overflow-y: auto; padding: 28px max(28px, calc((100% - 720px) / 2)) 34px; background: #fff; scrollbar-width: thin; scrollbar-color: #d8d8d2 transparent; }
.thread-date { display: flex; gap: 14px; align-items: center; margin: 12px 0 20px; color: #90918b; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.thread-date::before, .thread-date::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.thread-event { width: min(480px, 92%); display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; margin: 0 auto 22px; padding: 12px 14px; text-align: left; background: #fff; border: 1px solid #dedfd8; border-radius: 16px; box-shadow: 0 6px 20px rgba(28, 31, 26, .04); }
.thread-event:hover { border-color: #bfc4bb; }
.thread-event > span:nth-child(2) { display: grid; gap: 3px; }
.thread-event strong { font-size: 13px; }
.thread-event small { color: var(--muted); font-size: 11px; }
.thread-event__icon { display: grid; width: 38px; height: 38px; place-items: center; color: var(--sage-deep); background: var(--sage); border-radius: 12px; }
.thread-event__icon svg { width: 21px; height: 21px; }
.thread-event__arrow { width: 17px; color: #92948d; }
.thread-event__date { display: grid; width: 43px; min-height: 48px; padding: 5px; place-items: center; color: #514b42; background: #f4eee3; border-radius: 12px; }
.thread-event__date small { color: inherit; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.thread-event__date strong { font-size: 21px; font-weight: 700; line-height: 1; }
.message { position: relative; width: fit-content; max-width: min(520px, 76%); margin: 0 0 14px; }
.message p { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.message > p, .message > div { position: relative; padding: 14px 18px; background: #f0f1ee; border: 0; border-radius: 8px 20px 20px 20px; box-shadow: none; }
.message span { display: block; margin: 7px 5px 0; color: #979891; font-size: 10px; font-weight: 600; }
.message--you { margin-left: auto; }
.message--you > p, .message--you > div { color: #183a5d; background: #dbeafd; border: 0; border-radius: 20px 8px 20px 20px; }
.message--you span { text-align: right; }
.message--you.has-reaction > span { margin-top: 26px; }
.message .message-reaction { position: absolute; z-index: 2; right: -4px; bottom: -20px; display: grid; width: 40px; height: 29px; margin: 0; padding: 0; place-items: center; color: #191a18; background: #e5e6e6; border: 0; border-radius: 999px; box-shadow: 0 0 0 2px #fff; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 18px; line-height: 1; text-align: center; transform-origin: 50% 50%; }
.message .message-reaction--animated { animation: reaction-pop .36s cubic-bezier(.22, 1.25, .36, 1) both; }
.message--guidance > div { display: grid; gap: 8px; }
.message--guidance button { width: fit-content; padding: 0; color: #214c39; background: transparent; border: 0; font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.message--photo { overflow: hidden; width: min(500px, 82%); background: #f0f1ee; border: 8px solid #f0f1ee; border-radius: 20px 20px 20px 8px; box-shadow: none; }
.message--photo img { display: block; width: 100%; height: 210px; object-fit: cover; }
.message--photo > div { padding: 12px 15px; border: 0; border-radius: 0; box-shadow: none; }
.message--photo span { margin-left: 0; }
.message--photo.message--you { border-radius: 18px 6px 18px 18px; }
.message--photo.has-reaction { overflow: visible; }
.message--photo .message-reaction { right: -4px; bottom: -19px; }

.chat-composer-wrap { padding: 10px max(24px, calc((100% - 720px) / 2)) 18px; background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); }
.chat-composer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px; align-items: center; padding: 7px; background: #fff; border: 1px solid #dfe1dc; border-radius: 28px; box-shadow: 0 10px 28px rgba(31, 32, 28, .08); }
.chat-composer:focus-within { border-color: #9cab9d; box-shadow: 0 0 0 3px rgba(69, 96, 76, .12), 0 10px 28px rgba(31, 32, 28, .08); }
.chat-composer input[type="text"] { min-width: 0; width: 100%; padding: 9px 6px; background: transparent; border: 0; outline: none; font-size: 14px; }
.chat-composer input::placeholder { color: #a2a39d; }
.composer-button, .voice-button, .send-button, .attachment-preview button, .panel-mobile-head button { display: grid; width: 38px; height: 38px; padding: 0; place-items: center; background: transparent; border: 0; border-radius: 12px; }
.composer-button:hover, .voice-button:hover { background: #f0f1ec; }
.composer-button svg, .voice-button svg { width: 21px; height: 21px; }
.composer-button.has-attachment { color: var(--sage-deep); background: var(--sage); }
.composer-button:disabled { opacity: .28; cursor: not-allowed; }
.voice-button.is-listening { color: #fff; background: #b34d45; animation: pulse 1.3s infinite; }
.voice-button:disabled { opacity: .35; cursor: not-allowed; }
.send-button { color: #fff; background: #11130f; border-radius: 50%; }
.send-button svg { width: 19px; height: 19px; }
.attachment-preview { display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center; margin: 0 0 8px; padding: 7px 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.attachment-preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; }
.attachment-preview span { display: grid; min-width: 0; gap: 2px; font-size: 12px; }
.attachment-preview small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.attachment-preview button svg { width: 18px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(179, 77, 69, .12); } }
@keyframes reaction-pop {
  0% { opacity: 0; transform: translateY(4px) scale(.72); }
  72% { opacity: 1; transform: translateY(-1px) scale(1.04); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.visit-panel { min-width: 0; overflow-y: auto; padding: 28px 24px 40px; background: #fff; border-left: 1px solid var(--line); }
.panel-mobile-head { display: none; }
.customer-profile { display: grid; place-items: center; padding: 10px 8px 25px; text-align: center; }
.customer-profile__icon { display: grid; width: 74px; height: 74px; margin-bottom: 14px; place-items: center; color: #263e31; background: #edf4ee; border: 1px solid #dbe7dc; border-radius: 50%; }
.customer-profile__icon svg { width: 29px; height: 29px; }
.customer-profile__robots { display: flex; width: 140px; height: 80px; margin-bottom: 14px; align-items: center; justify-content: center; overflow: visible; }
.robot-avatar { position: relative; z-index: 1; width: 76px; height: 76px; flex: 0 0 auto; overflow: hidden; background: #fbf7f1; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px #dfe3dd, 0 8px 22px rgba(30, 38, 31, .07); }
.robot-avatar + .robot-avatar { z-index: 2; margin-left: -12px; }
.robot-avatar__fallback, .robot-avatar__actor, .robot-avatar__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.robot-avatar__fallback { z-index: 1; opacity: 0; }
.robot-avatar__actor { z-index: 2; transform: translateY(0) rotate(0); transform-origin: 50% 82%; will-change: transform; }
.robot-avatar__video { z-index: 2; }
.robot-avatar--static .robot-avatar__fallback { opacity: 1; }
.robot-avatar.has-custom-photo .robot-avatar__fallback { opacity: 1; }
.robot-avatar.has-custom-photo .robot-avatar__actor, .robot-avatar.has-custom-photo .robot-avatar__video { display: none; }
.customer-profile p { margin: 0 0 4px; color: #858680; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.customer-profile h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: -.035em; }
.customer-profile > span { margin-top: 6px; color: #777872; font-size: 11px; }
.panel-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 26px; padding: 4px; background: #f0f1ed; border-radius: 14px; }
.panel-tabs button { display: grid; gap: 4px; min-width: 0; padding: 9px 4px; place-items: center; color: #777972; background: transparent; border: 0; border-radius: 10px; font-size: 10px; font-weight: 700; }
.panel-tabs button[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 3px 12px rgba(30, 31, 28, .07); }
.panel-tabs svg { width: 18px; height: 18px; }
.panel-copy { margin: 0 2px 18px; }
.panel-copy__eyebrow { margin: 0 0 7px; color: #7c7e77; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.panel-copy h3 { margin: 0 0 6px; font-size: 24px; font-weight: 750; letter-spacing: -.035em; }
.panel-copy > p:last-child { margin: 0; color: #767871; font-size: 12px; line-height: 1.5; }
.schedule-list { overflow: hidden; margin-bottom: 12px; background: #fff; border: 1px solid #dedfd8; border-radius: 18px; }
.schedule-empty { display: grid; min-height: 112px; gap: 12px; padding: 24px; place-items: center; align-content: center; text-align: center; }
.schedule-empty strong { font-size: 14px; }
.schedule-empty a { padding: 9px 13px; color: #fff; background: #11130f; border-radius: 10px; font-size: 11px; font-weight: 750; text-decoration: none; }
.schedule-empty a:hover, .schedule-empty a:focus-visible { background: #2b2e29; outline: none; }
.schedule-row { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 78px; padding: 12px 14px; border-bottom: 1px solid #ecece7; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-row time { display: grid; min-height: 49px; padding: 5px; place-items: center; color: #56584f; background: #efefeb; border-radius: 12px; }
.schedule-row time small { font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.schedule-row time strong { font-size: 21px; font-weight: 700; line-height: 1; }
.schedule-row > span { display: grid; min-width: 0; gap: 4px; }
.schedule-row > span strong { font-size: 12px; }
.schedule-row > span small { overflow: hidden; color: #858680; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-row em { padding: 5px 7px; color: #45604c; background: var(--sage); border-radius: 7px; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.schedule-row--next time { color: #5c513f; background: #f1e8d7; }
.action-button { display: block; width: 100%; padding: 12px 14px; text-align: center; text-decoration: none; background: #fff; border: 1px solid #d7d8d1; border-radius: 12px; font-size: 12px; font-weight: 750; }
.action-button--dark { color: #fff; background: #11130f; border-color: #11130f; }
.history-card { margin-top: 25px; }
.history-card h4 { margin: 0 0 8px; color: #75776f; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.history-card button { display: grid; width: 100%; grid-template-columns: 1fr auto; align-items: center; padding: 12px 2px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid #dbdcd5; }
.history-card button span { display: grid; gap: 3px; }
.history-card button strong { font-size: 12px; }
.history-card button small { color: #858680; font-size: 10px; }
.history-card button svg { width: 17px; color: #878981; }
.preference-card { padding: 18px; background: #fff; border: 1px solid #dedfd8; border-radius: 18px; }
.preference-list { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.preference-list li { position: relative; display: flex; min-height: 39px; gap: 8px; align-items: center; padding: 8px 8px 8px 34px; background: #f4f5f0; border-radius: 11px; font-size: 12px; line-height: 1.4; }
.preference-list li::before { content: "✓"; position: absolute; left: 12px; color: var(--sage-deep); font-weight: 800; }
.preference-list li > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.preference-delete { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; padding: 0 0 2px; color: #777a73; background: transparent; border: 0; border-radius: 50%; font-size: 19px; line-height: 1; }
.preference-delete:hover { color: #353833; background: #e7e9e2; }
.preference-delete:focus-visible { outline: 2px solid #727b70; outline-offset: 1px; }
.preference-delete:disabled { opacity: .4; }
.preference-form { display: grid; gap: 8px; }
.preference-form label { font-size: 11px; font-weight: 750; }
.preference-form textarea { width: 100%; resize: vertical; padding: 11px; background: #fafaf8; border: 1px solid #dadbd4; border-radius: 10px; outline: none; font-size: 12px; }
.preference-form textarea:focus { border-color: #8c948a; box-shadow: 0 0 0 3px rgba(92, 112, 94, .1); }
.journey-card { overflow: hidden; padding: 18px; background: linear-gradient(180deg, #f5f7f2 0%, #fff 100%); border: 1px solid #dfe3dc; border-radius: 18px; }
.journey-summary { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.journey-summary strong { max-width: 190px; font-size: 13px; line-height: 1.35; }
.journey-summary span { color: #80847d; font-size: 10px; font-weight: 700; text-align: right; }
.journey-map { position: relative; height: 472px; margin-top: 8px; }
.journey-route { position: absolute; top: 79px; left: 0; width: 100%; height: 370px; overflow: visible; }
.journey-route path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.journey-route__base { stroke: #d4dbd2; stroke-dasharray: 1 4; stroke-width: 5; }
.journey-route__progress { stroke: #75907b; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-width: 4; transition: stroke-dashoffset .55s ease; }
.journey-milestone { position: absolute; z-index: 2; transform: translate(-50%, -50%); }
.journey-node { display: grid; width: 40px; height: 40px; place-items: center; color: #747b73; background: #fff; border: 2px solid #d1d9d0; border-radius: 50%; box-shadow: 0 5px 14px rgba(34, 42, 35, .08); font-size: 12px; font-weight: 800; }
.journey-node svg { width: 20px; height: 20px; }
.journey-milestone.is-complete .journey-node { color: #fff; background: #45604c; border-color: #45604c; }
.journey-milestone.is-current .journey-node { color: #315542; border-color: #6f8d76; box-shadow: 0 0 0 4px rgba(69, 96, 76, .12), 0 5px 14px rgba(34, 42, 35, .08); }
.journey-unlock { position: absolute; display: grid; min-width: 118px; gap: 2px; padding: 7px 9px; color: #777c75; background: #fff; border: 1px solid #dce1da; border-radius: 11px; box-shadow: 0 6px 18px rgba(40, 48, 41, .06); }
.journey-unlock strong { color: #373a36; font-size: 10px; }
.journey-unlock small { font-size: 9px; font-weight: 700; }
.journey-milestone.is-complete .journey-unlock { color: #315542; border-color: #b9cabb; }
.journey-milestone.is-complete .journey-unlock small { color: #315542; }
.journey-continuation { position: absolute; top: 0; left: 50%; z-index: 1; display: grid; justify-items: center; color: #899088; transform: translateX(-50%); }
.journey-continuation::after { width: 0; height: 43px; margin-top: 4px; border-left: 3px dotted #d4dbd2; content: ''; }
.journey-continuation > span { display: grid; width: 28px; height: 28px; place-items: center; background: #fff; border: 2px solid #d7ddd5; border-radius: 50%; box-shadow: 0 4px 12px rgba(34, 42, 35, .06); font-size: 14px; font-weight: 800; line-height: 1; }
.journey-continuation small { position: absolute; top: 7px; left: 36px; width: max-content; font-size: 9px; font-weight: 750; }
.journey-unlock--6 { top: 50%; left: 44px; min-width: 96px; text-align: left; transform: translateY(-50%); }
.journey-unlock--5 { top: 50%; left: 50px; transform: translateY(-50%); }
.journey-milestone--6 { top: 89px; left: 50%; }
.journey-milestone--5 { top: 159px; left: 23.33%; }
.journey-milestone--4 { top: 229px; left: 75%; }
.journey-milestone--3 { top: 299px; left: 23.33%; }
.journey-milestone--2 { top: 369px; left: 75%; }
.journey-milestone--1 { top: 439px; left: 50%; }
.preference-feedback, .preference-hint { min-height: 15px; margin: 0; color: #72756e; font-size: 10px; line-height: 1.45; }
.preference-hint { margin: 14px 0 4px; }
.text-button { padding: 5px 0; color: #343a34; background: transparent; border: 0; font-size: 11px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.panel-scrim { display: none; }
.subscription-dialog { width: min(880px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; background: #fff; border: 1px solid #dedfd9; border-radius: 24px; box-shadow: 0 28px 90px rgba(20, 21, 18, .2); }
.subscription-dialog:focus { outline: none; }
.subscription-dialog::backdrop { background: rgba(25, 27, 23, .42); backdrop-filter: blur(5px); }
.subscription-shell { max-height: calc(100dvh - 48px); overflow-y: auto; }
.subscription-head { position: sticky; z-index: 2; top: 0; display: flex; min-height: 94px; padding: 20px 26px; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.subscription-head p { margin: 0 0 4px; color: #7d827d; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.subscription-head h2 { margin: 0; font-size: 28px; font-weight: 750; letter-spacing: -.035em; }
.subscription-head button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; background: #f0f1ed; border: 0; border-radius: 50%; }
.subscription-head button:hover { background: #e5e7e1; }
.subscription-head button svg { width: 20px; }
.subscription-content { padding: 26px; }
.subscription-summary { display: flex; min-height: 154px; padding: 27px 30px; align-items: center; justify-content: space-between; color: #fff; background: #1f4939; border-radius: 20px; }
.subscription-summary p { display: flex; gap: 8px; margin: 0 0 10px; align-items: center; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.subscription-summary p i { width: 8px; height: 8px; background: #7bc091; border-radius: 50%; box-shadow: 0 0 0 4px rgba(123,192,145,.15); }
.subscription-summary h3 { margin: 0 0 7px; font-size: 30px; letter-spacing: -.035em; }
.subscription-summary > div > span { color: rgba(255,255,255,.72); font-size: 14px; }
.subscription-price { display: grid; gap: 5px; text-align: right; }
.subscription-price strong { font-size: 36px; line-height: 1; letter-spacing: -.04em; }
.subscription-price span { font-size: 12px !important; }
.subscription-upcoming { margin: 26px 2px; }
.subscription-upcoming h3 { margin: 0 0 10px; color: #777b75; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.subscription-upcoming div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.subscription-upcoming div span { color: #81857f; }
.subscription-upcoming div strong { font-weight: 650; }
.subscription-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subscription-actions > button { display: grid; min-height: 112px; grid-template-columns: auto 1fr; gap: 14px; padding: 19px; align-items: start; text-align: left; background: #fff; border: 1px solid #dedfd9; border-radius: 16px; transition: border-color .18s ease, background .18s ease; }
.subscription-actions > button:hover, .subscription-actions > button:focus-visible { background: #f7f8f5; border-color: #bfc4bc; outline: none; }
.subscription-action__icon { display: grid; width: 40px; height: 40px; place-items: center; color: #274d3b; background: #edf3ed; border-radius: 12px; }
.subscription-action__icon svg { width: 20px; height: 20px; }
.subscription-actions button > span:last-child { display: grid; gap: 6px; }
.subscription-actions strong { font-size: 14px; }
.subscription-actions small { color: #7d827d; font-size: 12px; line-height: 1.4; }
.subscription-actions .subscription-action--danger { background: #faf6f4; border-color: #eedfda; }
.subscription-action--danger .subscription-action__icon, .subscription-action--danger strong { color: #a24638; }
.subscription-action--danger .subscription-action__icon { background: #f2e5e1; }
.subscription-flow { position: relative; margin-top: 16px; padding: 24px; background: #f4f5f1; border-radius: 18px; }
.subscription-flow[hidden] { display: none; }
.subscription-flow__close { position: absolute; top: 14px; right: 14px; display: grid; width: 34px; height: 34px; padding: 0; place-items: center; background: #fff; border: 1px solid #dfe1db; border-radius: 50%; }
.subscription-flow__close svg { width: 17px; }
.subscription-flow h3 { margin: 0 42px 7px 0; font-size: 21px; letter-spacing: -.025em; }
.subscription-flow > p { margin: 0; color: #71766f; font-size: 14px; line-height: 1.5; }
.subscription-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.subscription-choices button { padding: 11px 8px; background: #fff; border: 1px solid #daddd6; border-radius: 11px; font-size: 13px; font-weight: 650; }
.subscription-choices button[aria-pressed="true"] { color: #fff; background: #1f4939; border-color: #1f4939; }
.subscription-flow__save { width: auto; margin-top: 16px; padding-inline: 20px; }
.subscription-flow__save:disabled { opacity: .45; cursor: not-allowed; }
.subscription-flow__status { margin-top: 14px !important; min-height: 20px; color: #315844 !important; font-weight: 700; }
.subscription-payment { display: flex; gap: 14px; margin-top: 18px; padding: 16px; align-items: center; background: #fff; border: 1px solid #daddd6; border-radius: 13px; }
.subscription-payment svg { width: 24px; }
.subscription-payment span { display: grid; gap: 3px; font-size: 13px; }
.subscription-payment small { color: #7d827d; }
.subscription-flow .subscription-cancel { width: auto; margin-top: 16px; color: #fff; background: #a24638; border-color: #a24638; }

@media (max-width: 1120px) {
  .visit-app { grid-template-columns: 74px minmax(0, 1fr); }
  .visit-panel { position: fixed; z-index: 20; top: 0; right: 0; bottom: 0; width: min(414px, 92vw); transform: translateX(105%); box-shadow: -24px 0 70px rgba(30,31,28,.15); transition: transform .24s ease; }
  .visit-panel.is-open { transform: translateX(0); }
  .panel-mobile-head { display: flex; margin: -10px 0 24px; align-items: center; justify-content: flex-end; }
  .panel-mobile-head button { background: #e4e5df; }
  .panel-mobile-head svg { width: 19px; }
  .panel-scrim { position: fixed; z-index: 19; inset: 0; display: block; visibility: hidden; opacity: 0; background: rgba(28,29,26,.34); transition: .2s ease; }
  .panel-scrim.is-open { visibility: visible; opacity: 1; }
}

@media (max-width: 680px) {
  .visit-app { display: block; width: 100vw; }
  .visit-rail { display: none; }
  .chat-header { min-height: 82px; padding: 17px 16px; }
  .chat-header__title h1 { font-size: 27px; }
  .header-button { padding: 9px 11px; font-size: 11px; }
  .visit-chat { width: 100vw; height: 100dvh; overflow: hidden; grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .mobile-section-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 7px 10px 8px; background: #fff; border-bottom: 1px solid var(--line); }
  .mobile-section-tabs button { min-width: 0; padding: 9px 4px; color: #6f746e; background: #f0f1ed; border: 0; border-radius: 10px; font-size: 11px; font-weight: 750; }
  .mobile-section-tabs button:hover, .mobile-section-tabs button:focus-visible, .mobile-section-tabs button.is-active { color: #fff; background: #11130f; outline: none; }
  .chat-stream { padding: 20px 15px 26px; }
  .thread-event { width: 96%; }
  .message { max-width: 87%; }
  .message--photo { width: 86%; }
  .message--photo img { height: 180px; }
  .chat-composer-wrap { padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); }
  .chat-composer { width: 100%; gap: 3px; border-radius: 16px; }
  .composer-button, .voice-button, .send-button { width: 36px; height: 36px; }
  .visit-panel { width: 100vw; max-width: none; padding: 24px 20px 35px; }
  .subscription-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; }
  .subscription-shell { max-height: 100dvh; }
  .subscription-head { min-height: 82px; padding: 16px 18px; }
  .subscription-head h2 { font-size: 24px; }
  .subscription-content { padding: 18px 15px 30px; }
  .subscription-summary { min-height: 140px; padding: 22px 20px; }
  .subscription-summary h3 { font-size: 25px; }
  .subscription-price strong { font-size: 30px; }
  .subscription-upcoming div { grid-template-columns: 90px 1fr; gap: 10px; }
  .subscription-actions { grid-template-columns: 1fr; }
  .subscription-actions > button { min-height: 96px; }
  .subscription-choices { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .robot-avatar__fallback { opacity: 1; }
  .robot-avatar__actor, .robot-avatar__video { display: none; }
}
