:root { color: #171717; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif; }
:root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #f6f6f6; }
button, textarea, input { font: inherit; }
button { border: 0; cursor: pointer; }
.app-shell { width: min(100%, 620px); height: 100dvh; margin: auto; background: #fff; position: relative; overflow: hidden; }
.view { height: 100%; padding-bottom: 74px; }
.coach-view { display: flex; flex-direction: column; }
.topbar, .profile-header { height: calc(62px + var(--safe-top)); border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; padding: var(--safe-top) 16px 0; background: rgba(255,255,255,.96); flex: none; }
.icon-button { width: 38px; height: 38px; background: none; font-size: 25px; color: #1f1f1f; }
.model-picker { display: flex; align-items: center; gap: 6px; color: #777; font-size: 11px; }
.model-picker select { max-width: 150px; border: 0; background: transparent; color: #222; font-weight: 650; outline: 0; }
.conversation { flex: 1; min-height: 0; overflow: auto; }
.welcome { min-height: 100%; padding: 110px 28px 40px; display: flex; align-items: center; flex-direction: column; }
.brand-mark, .assistant-mark { display: block; background: #111; object-fit: cover; }
.brand-mark { width: 58px; height: 58px; border-radius: 16px; margin-bottom: 24px; }
.welcome h1 { font-size: 24px; margin: 0 0 10px; }
.welcome p { color: #6e6e73; font-size: 14px; line-height: 1.65; text-align: center; max-width: 420px; margin: 0; }
.message-list { padding: 24px 22px; }
.message-row { display: flex; gap: 12px; margin: 0 0 25px; align-items: flex-start; }
.message-row.user { justify-content: flex-end; }
.assistant-mark { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.message-bubble { max-width: 82%; line-height: 1.7; font-size: 15px; overflow-wrap: anywhere; }
.user .message-bubble { background: #f1f1f1; border-radius: 18px 18px 6px 18px; padding: 10px 14px; }
.message-image { display: block; width: min(240px, 64vw); max-height: 320px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.user .message-content, .message-bubble.streaming .message-content { white-space: pre-wrap; }
.message-bubble.streaming::after { content: ''; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.14em; border-radius: 2px; background: #5c6f63; animation: stream-cursor .8s steps(1) infinite; }
.message-content > :first-child { margin-top: 0; }
.message-content > :last-child { margin-bottom: 0; }
.message-content p { margin: 0 0 .78em; }
.message-content h3, .message-content h4, .message-content h5, .message-content h6 { margin: 1.05em 0 .45em; color: #1f211e; line-height: 1.38; }
.message-content h3 { font-size: 1.18em; }.message-content h4 { font-size: 1.1em; }.message-content h5, .message-content h6 { font-size: 1em; }
.message-content ul, .message-content ol { margin: .4em 0 .85em; padding-left: 1.45em; }
.message-content li { margin: .25em 0; padding-left: .1em; }
.message-content blockquote { margin: .55em 0 .85em; padding: .15em 0 .15em .85em; border-left: 3px solid #b7c2b9; color: #626860; }
.message-content code { padding: .12em .36em; border-radius: 5px; background: #eceeea; color: #34463b; font: .88em/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.message-content pre { max-width: 100%; margin: .65em 0 .9em; padding: 13px 14px; overflow-x: auto; border: 1px solid #dfe2dc; border-radius: 10px; background: #f0f2ee; white-space: pre; }
.message-content pre code { padding: 0; background: transparent; color: #242824; font-size: 12px; }
.message-content a { color: #27684e; text-decoration: underline; text-underline-offset: 2px; }
.message-content hr { height: 1px; margin: 1em 0; border: 0; background: #dedfdc; }
.message-content strong { color: #20231f; font-weight: 720; }
@keyframes stream-cursor { 0%, 52% { opacity: 1; } 53%, 100% { opacity: .12; } }
.composer-area { padding: 6px 16px 12px; flex: none; }
.attachment-preview { width: 72px; height: 72px; position: relative; margin: 5px 0 7px 8px; }
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; border: 1px solid #ddd; }
.attachment-preview button { position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%; padding: 0; background: #222; color: #fff; line-height: 20px; }
.usage-line, .composer-area small { display: block; text-align: center; color: #999; font-size: 11px; }
.composer { display: flex; align-items: center; gap: 7px; border: 1px solid #d2d2d2; border-radius: 26px; padding: 6px 7px; margin: 5px 0 7px; box-shadow: 0 2px 12px #0000000d; }
.attach-button, .send-button { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.attach-button { background: none; font-size: 23px; line-height: 34px; transform: translateY(-1px); }
.send-button { background: #dedede; color: white; font-size: 22px; font-weight: 700; }
.send-button.active { background: #111; }
textarea { border: 0; outline: 0; resize: none; min-height: 34px; max-height: 120px; flex: 1; padding: 8px 0; line-height: 1.4; }
.profile-view { overflow: auto; background: #f6f6f6; }
.profile-header { justify-content: flex-start; background: #fff; }
.profile-header h1 { font-size: 20px; margin: 0; }
.account-section { background: #fff; padding: 30px 20px 26px; text-align: center; }
.avatar-picker { display: block; width: 100px; height: 100px; border-radius: 50%; background: #171717; color: #fff; position: relative; margin: auto; cursor: pointer; overflow: visible; }
.avatar-picker img, #avatarFallback { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
#avatarFallback { position: relative; display: block; overflow: hidden; background: #e9eceb; }
.default-avatar-head { position: absolute; left: 50%; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: #7d8582; transform: translateX(-50%); }
.default-avatar-body { position: absolute; left: 50%; bottom: -18px; width: 76px; height: 56px; border-radius: 50% 50% 16px 16px; background: #7d8582; transform: translateX(-50%); }
.avatar-picker b { position: absolute; right: -2px; bottom: 0; width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #222; font-size: 18px; }
.member-badge { position: absolute; left: -10px; bottom: 4px; min-width: 34px; height: 22px; padding: 0 7px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 11px; background: #b8860b; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0; }
.nickname-input { display: block; width: 240px; margin: 16px auto 4px; text-align: center; border: 0; outline: 0; font-size: 20px; font-weight: 650; }
.account-section p { color: #999; font-size: 12px; margin: 0; }
.usage-band { background: #fff; margin-top: 12px; display: flex; align-items: center; padding: 22px 0; }
.usage-band > div { flex: 1; text-align: center; display: grid; gap: 4px; }
.usage-band strong { font-size: 28px; }.usage-band span { color: #777; font-size: 12px; }.usage-band i { width: 1px; height: 42px; background: #e5e5e5; }
.membership-card { width: 100%; display: flex; align-items: baseline; gap: 10px; margin-top: 12px; padding: 16px 20px; border: 0; border-radius: 0; background: #fff; text-align: left; }.membership-card span { color: #27604a; font-size: 13px; font-weight: 650; }.membership-card strong { font-size: 14px; }.membership-card small { margin-left: auto; color: #999; font-size: 11px; }.membership-card > b { color: #777; font-size: 11px; font-weight: 500; }
.profile-section { margin-top: 20px; }.profile-section > label { display: block; color: #777; font-size: 13px; padding: 0 20px 9px; }
.checkin-section { margin-top: 12px; }.checkin-panel { padding: 20px; display: flex; align-items: center; gap: 18px; background: #fff; }.checkin-panel > div { min-width: 0; flex: 1; }.checkin-panel h2 { margin: 0; font-size: 15px; }.checkin-panel p { margin: 6px 0 0; color: #7a7c77; font-size: 11px; }.checkin-panel button { min-width: 96px; height: 39px; border-radius: 8px; background: #20241f; color: #fff; font-size: 12px; font-weight: 700; }.checkin-panel button:disabled { background: #e4e5e1; color: #898c86; }
.invite-panel { background: #fff; padding: 23px 20px; }.invite-panel h2 { font-size: 17px; margin: 0; }.invite-panel p { color: #6d6d6d; line-height: 1.55; font-size: 13px; margin: 9px 0 17px; }
.primary-button { width: 100%; height: 43px; border-radius: 7px; color: #fff; background: #111; font-weight: 600; }
.invite-code { border-top: 1px solid #eee; margin-top: 15px; padding-top: 14px; color: #777; font-size: 13px; display: flex; justify-content: space-between; }.invite-code button { background: none; color: #198754; }.invite-code b { color: #222; margin-right: 12px; }
.redeem-row { display: flex; gap: 8px; }.redeem-row input { min-width: 0; flex: 1; border: 1px solid #ddd; border-radius: 7px; padding: 10px 11px; }.redeem-row button { padding: 0 18px; border-radius: 7px; background: #111; color: #fff; }.redeem-message { min-height: 18px; }
.menu-section { background: #fff; margin-top: 20px; }.menu-section button { width: 100%; background: #fff; text-align: left; border-bottom: 1px solid #eee; padding: 17px 20px; color: #444; }.menu-section span { color: #222; margin-left: 14px; }.menu-section b { float: right; color: #aaa; font-size: 24px; font-weight: 300; line-height: 14px; }.version { display: block; color: #aaa; font-size: 11px; text-align: center; padding: 30px 0; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: calc(74px + var(--safe-bottom)); padding-bottom: var(--safe-bottom); display: flex; background: #fff; border-top: 1px solid #eee; }.tabbar button { flex: 1; background: #fff; color: #8e8e93; font-size: 11px; display: grid; place-content: center; gap: 4px; }.tabbar span { font-size: 20px; line-height: 1; }.tabbar .active { color: #111; font-weight: 650; }
.drawer-backdrop { position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.32); }
.history-drawer { position: absolute; z-index: 21; inset: 0 auto 0 0; width: min(84%, 360px); padding: max(18px, env(safe-area-inset-top)) 14px 18px; background: #f7f7f7; box-shadow: 8px 0 30px rgba(0,0,0,.12); overflow: auto; }
.history-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 15px; }.history-drawer h2 { margin: 0; font-size: 19px; }.history-drawer header button { background: none; font-size: 27px; color: #555; }
.drawer-new-chat { width: 100%; padding: 12px 13px; border: 1px solid #ddd; border-radius: 9px; background: #fff; text-align: left; font-weight: 600; }
.history-list { margin-top: 16px; display: grid; gap: 5px; }.history-item { width: 100%; padding: 11px 12px; border-radius: 8px; background: transparent; color: #333; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.history-item:hover, .history-item.active { background: #e8e8e8; }
.history-locked { position: relative; min-height: 420px; margin-top: 16px; overflow: hidden; }.history-blurred { display: grid; gap: 8px; filter: blur(7px); opacity: .48; transform: scale(1.03); }.history-blurred span { height: 46px; border-radius: 7px; background: linear-gradient(90deg,#d9d9d9 0 64%,#ececec 64%); }.history-lock-card { position: absolute; inset: 82px 14px auto; padding: 26px 20px; border: 1px solid #dedede; border-radius: 8px; background: rgba(255,255,255,.96); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.1); }.history-lock-card h3 { margin: 14px 0 7px; font-size: 17px; }.history-lock-card p { margin: 0 0 18px; color: #777; font-size: 12px; line-height: 1.6; }.history-lock-card button { width: 100%; height: 40px; border-radius: 7px; background: #111; color: #fff; font-weight: 650; }.lock-icon { position: relative; width: 34px; height: 29px; margin: auto; border-radius: 5px; background: #222; }.lock-icon::before { content: ''; position: absolute; left: 8px; top: -16px; width: 14px; height: 17px; border: 4px solid #222; border-bottom: 0; border-radius: 10px 10px 0 0; }.lock-icon i { position: absolute; left: 15px; top: 10px; width: 4px; height: 9px; border-radius: 2px; background: #fff; }
.resources-view { overflow: auto; background: #f6f6f6; }
.resources-intro { margin: 12px 0 0; padding: 40px 24px 34px; background: #fff; text-align: center; }
.resources-mark { width: 54px; height: 54px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 15px; background: #111; color: #fff; font-size: 24px; }
.resources-intro h2 { margin: 0; font-size: 20px; }.resources-intro p { max-width: 360px; margin: 10px auto 20px; color: #777; font-size: 13px; line-height: 1.6; }
.resource-upload { display: inline-block; padding: 11px 22px; border-radius: 8px; background: #111; color: #fff; font-size: 14px; cursor: pointer; }
.resource-list { padding: 20px 16px; }.resource-empty { color: #999; text-align: center; font-size: 13px; }.resource-item { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }.resource-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: #f0f0f0; font-size: 12px; font-weight: 650; }.resource-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.resource-size { margin-left: auto; color: #999; font-size: 11px; }.resource-open { color: #666; font-size: 12px; white-space: nowrap; }

/* AI portrait showcase */
.showcase-view { overflow-y: auto; overflow-x: hidden; background: #f2f0eb; color: #171916; scrollbar-color: #c6c1b7 transparent; }
.showcase-header { position: sticky; top: 0; z-index: 5; height: calc(66px + var(--safe-top)); border-bottom-color: rgba(20, 22, 18, .08); background: rgba(248, 247, 243, .94); backdrop-filter: blur(16px); }
.showcase-header > div { display: flex; align-items: baseline; gap: 11px; }
.showcase-header h1 { font-size: 18px; letter-spacing: -.02em; }
.showcase-header span { color: #898a84; font-size: 10px; }
.showcase-content { padding-bottom: 34px; }
.showcase-scroll-hint { position: fixed; left: 50%; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 12; min-width: 112px; padding: 8px 13px 9px; display: grid; justify-items: center; gap: 3px; border: 1px solid rgba(255,255,255,.62); border-radius: 999px; background: rgba(27,31,27,.78); color: #fff; box-shadow: 0 8px 24px rgba(21,24,20,.18); backdrop-filter: blur(10px); transform: translateX(-50%); transition: opacity .28s ease, transform .28s ease, visibility .28s; pointer-events: none; }
.showcase-scroll-hint i { height: 9px; display: grid; align-content: start; justify-items: center; }
.showcase-scroll-hint i b { width: 7px; height: 7px; border-right: 1px solid rgba(255,255,255,.92); border-bottom: 1px solid rgba(255,255,255,.92); transform: rotate(45deg); animation: showcase-hint-arrow 1.35s ease-in-out infinite; }
.showcase-scroll-hint i b + b { margin-top: -4px; animation-delay: .16s; }
.showcase-scroll-hint span { font-size: 9px; letter-spacing: .08em; }
.showcase-scroll-hint.dismissed { opacity: 0; visibility: hidden; transform: translate(-50%, 10px); }
@keyframes showcase-hint-arrow { 0%, 100% { opacity: .28; transform: translateY(-1px) rotate(45deg); } 50% { opacity: 1; transform: translateY(2px) rotate(45deg); } }
.showcase-hero { padding: 38px 20px 28px; background: linear-gradient(155deg, #f9f7f1 0%, #ece8de 100%); }
.showcase-eyebrow, .showcase-heading > span, .showcase-cta > span { color: #687268; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.showcase-hero h2 { margin: 13px 0 12px; font-family: "Songti SC", "STSong", serif; font-size: clamp(29px, 7vw, 42px); font-weight: 650; line-height: 1.23; letter-spacing: -.035em; }
.showcase-hero > p { max-width: 510px; margin: 0; color: #676a63; font-size: 13px; line-height: 1.75; }
.compare-stage { position: relative; height: clamp(340px, 82vw, 500px); margin-top: 28px; }
.compare-stage figure { position: absolute; margin: 0; overflow: hidden; background: #d7d4cb; box-shadow: 0 16px 40px rgba(34, 35, 29, .14); }
.compare-stage img { width: 100%; height: 100%; display: block; object-fit: cover; }
.compare-original { left: 0; top: 42px; z-index: 2; width: 35%; height: 49%; border: 5px solid #f7f4ed; transform: rotate(-2.5deg); }
.compare-result { right: 0; top: 0; width: 72%; height: 92%; }
.compare-stage figcaption { position: absolute; inset: auto 0 0; padding: 25px 12px 10px; display: flex; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .64)); }
.compare-stage figcaption b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-size: 8px; }
.compare-stage figcaption span { font-size: 10px; letter-spacing: .08em; }
.compare-arrow { position: absolute; left: 29%; top: 31%; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #20231f; color: #fff; font-size: 18px; box-shadow: 0 5px 18px rgba(0,0,0,.2); }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: -4px; }
.showcase-tags span { padding: 7px 10px; border: 1px solid #d2cec3; border-radius: 999px; color: #686b64; background: rgba(255,255,255,.46); font-size: 10px; }
.showcase-section { padding: 44px 20px; background: #fff; }
.showcase-section + .showcase-section { border-top: 1px solid #ecebe7; }
.showcase-heading { max-width: 530px; margin-bottom: 23px; }
.showcase-heading h3 { margin: 9px 0 7px; font-family: "Songti SC", "STSong", serif; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.showcase-heading p { margin: 0; color: #898a85; font-size: 11px; line-height: 1.65; }
.style-gallery { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(440px, 112vw, 650px); }
.style-card { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e8e6e0; }
.style-card.featured { grid-row: 1 / 3; }
.style-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.style-card:hover img { transform: scale(1.015); }
.style-card figcaption { position: absolute; inset: auto 0 0; padding: 45px 12px 13px; display: grid; gap: 3px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.style-card figcaption strong { font-size: 12px; }.style-card figcaption span { color: rgba(255,255,255,.75); font-size: 8px; }
.process-section { background: #ece9e1; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cbc8c0; }
.process-list li { min-height: 90px; display: grid; grid-template-columns: 42px 1fr; align-items: center; border-bottom: 1px solid #cbc8c0; }
.process-list li > b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #8e9189; border-radius: 50%; color: #62665f; font-size: 10px; }
.process-list li div { display: grid; gap: 5px; }.process-list strong { font-size: 14px; }.process-list span { color: #767972; font-size: 11px; line-height: 1.5; }
.review-section { padding-right: 0; background: #f8f7f4; }
.review-section .showcase-heading { padding-right: 20px; }
.review-gallery { display: flex; gap: 12px; overflow-x: auto; padding: 0 20px 14px 0; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #bbb8b0 transparent; }
.review-gallery figure { position: relative; flex: 0 0 min(74vw, 390px); height: min(150vw, 710px); margin: 0; overflow: hidden; border: 1px solid #dedbd4; border-radius: 3px; background: #e9e7e1; scroll-snap-align: start; box-shadow: 0 8px 24px rgba(27, 29, 25, .07); }
.review-gallery img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.review-gallery figcaption { position: absolute; right: 8px; top: 8px; padding: 5px 7px; background: rgba(20,21,18,.72); color: #fff; font-size: 8px; letter-spacing: .1em; }
.showcase-cta { margin: 14px; padding: 37px 25px 28px; background: #1d211e; color: #fff; text-align: center; }
.showcase-cta > span { color: #aeb9af; }
.showcase-cta h3 { margin: 12px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 26px; }
.showcase-cta p { max-width: 440px; margin: 0 auto; color: #b9beb9; font-size: 11px; line-height: 1.7; }
.wechat-id { margin: 23px 0 12px; padding: 13px; display: grid; gap: 4px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.045); }
.wechat-id small { color: #909990; font-size: 9px; }.wechat-id strong { font-size: 18px; letter-spacing: .08em; }
.showcase-cta button { width: 100%; min-height: 47px; padding: 0 16px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #f0eee7; color: #1c1f1c; font-size: 13px; font-weight: 700; }
.showcase-cta button b { font-size: 16px; }.showcase-cta em { display: block; margin-top: 9px; color: #858e86; font-size: 9px; font-style: normal; }
.showcase-disclaimer { margin: 17px 26px 0; color: #999991; font-size: 9px; line-height: 1.6; text-align: center; }

/* Membership conversion */
.membership-paywall { position: absolute; inset: 0; z-index: 60; padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom)); display: grid; place-items: center; overflow-y: auto; background: rgba(15,17,15,.58); backdrop-filter: blur(7px); }
.paywall-panel { position: relative; width: min(100%, 520px); padding: 27px 22px 20px; border-radius: 22px; background: #f8f7f3; color: #1e211e; box-shadow: 0 24px 70px rgba(0,0,0,.26); }
.paywall-close { position: absolute; right: 13px; top: 12px; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: #e8e7e2; color: #666; font-size: 24px; line-height: 32px; }
.paywall-brand { display: flex; align-items: center; gap: 9px; color: #466554; font-size: 10px; font-weight: 800; letter-spacing: .1em; }.paywall-brand img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }
.paywall-panel h2 { margin: 17px 0 8px; font-family: "Songti SC", "STSong", serif; font-size: 26px; line-height: 1.25; }.paywall-panel > p { margin: 0; color: #747770; font-size: 12px; line-height: 1.65; }
.paywall-benefits { margin: 17px 0; padding: 13px 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; border: 1px solid #e0ded6; background: #fff; }.paywall-benefits span { color: #4f554f; font-size: 10px; line-height: 1.45; }
.paywall-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }.paywall-plans button { position: relative; min-height: 78px; padding: 13px 12px 11px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; border: 1px solid #d9d8d2; border-radius: 10px; background: #fff; text-align: left; }.paywall-plans button.selected { border-color: #20241f; box-shadow: 0 0 0 1px #20241f; background: #f1f2ed; }.paywall-plans small { color: #666b65; font-size: 11px; }.paywall-plans strong { justify-self: end; font-size: 20px; }.paywall-plans em { grid-column: 1 / 3; color: #7c817a; font-size: 9px; font-style: normal; }.paywall-plans button.selected::after { content: '✓'; position: absolute; right: -1px; top: -1px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 0 9px 0 9px; background: #20241f; color: #fff; font-size: 10px; }
.paywall-plans .lifetime-plan { grid-column: 1 / 3; min-height: 68px; background: linear-gradient(135deg,#f4f0e3,#fff); }.paywall-plans .lifetime-plan em { color: #8a681d; }
.paywall-primary { width: 100%; height: 47px; margin-top: 15px; border-radius: 9px; background: #20241f; color: #fff; font-size: 13px; font-weight: 700; }.paywall-redeem { width: 100%; padding: 11px; background: transparent; color: #466554; font-size: 12px; }.paywall-panel .paywall-message { min-height: 18px; color: #7f827c; text-align: center; font-size: 10px; }.paywall-terms { display: block; margin-top: 8px; color: #a0a29d; text-align: center; font-size: 9px; line-height: 1.5; }
.contact-panel { max-width: 410px; text-align: center; }.contact-panel .paywall-brand { justify-content: center; }.contact-panel h2 { margin-bottom: 5px; }.contact-panel > p { text-align: center; }.contact-qr { width: min(100%, 280px); margin: 16px auto 12px; padding: 10px; display: grid; gap: 7px; border: 1px solid #e0ded7; border-radius: 12px; background: #fff; color: #858881; text-decoration: none; font-size: 9px; }.contact-qr img { width: 100%; display: block; border-radius: 7px; }.contact-wechat { padding: 12px 13px; display: flex; align-items: center; gap: 12px; border: 1px solid #deddd7; border-radius: 9px; background: #fff; text-align: left; }.contact-wechat > div { min-width: 0; flex: 1; display: grid; gap: 2px; }.contact-wechat small { color: #898c86; font-size: 9px; }.contact-wechat strong { font-size: 17px; letter-spacing: .06em; }.contact-wechat button { min-width: 72px; height: 35px; border-radius: 7px; background: #20241f; color: #fff; font-size: 11px; }
.ios-install-prompt { position: absolute; z-index: 90; left: 14px; right: 14px; bottom: calc(14px + var(--safe-bottom)); padding: 17px 16px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 12px; border: 1px solid #dedfd9; border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 18px 55px rgba(18,23,18,.2); backdrop-filter: blur(18px); }.ios-install-prompt > img { width: 48px; height: 48px; border-radius: 13px; }.ios-install-prompt strong { display: block; color: #20231f; font-size: 14px; }.ios-install-prompt p { margin: 5px 0 0; padding-right: 12px; color: #71756e; font-size: 11px; line-height: 1.55; }.ios-install-prompt p b { color: #226ad6; font-size: 13px; }.ios-install-close { position: absolute; right: 9px; top: 8px; width: 27px; height: 27px; padding: 0; border-radius: 50%; background: #eef0ec; color: #777; line-height: 25px; }.ios-install-ok { grid-column: 1 / 3; width: 100%; height: 39px; border-radius: 9px; background: #20241f; color: #fff; font-size: 12px; font-weight: 700; }.pwa-standalone .ios-install-prompt { display: none !important; }
@media (min-width: 700px) { body { padding: 22px 0; }.app-shell { height: calc(100dvh - 44px); border-radius: 16px; box-shadow: 0 8px 40px #00000012; } }
/* Email authentication */
.auth-view { min-height: 100dvh; display: grid; place-items: center; padding: max(24px, var(--safe-top)) 24px max(24px, var(--safe-bottom)); background: #f7f7f5; }
.auth-panel { width: min(100%, 420px); padding: 34px; background: #fff; border: 1px solid #e4e4e1; border-radius: 12px; box-shadow: 0 18px 50px rgba(24, 24, 20, .08); }
.auth-panel h1 { margin: 18px 0 8px; font-size: 25px; }
.auth-panel > p { margin: 0 0 24px; color: #6f716b; line-height: 1.6; font-size: 14px; }
.auth-panel label { display: grid; gap: 8px; margin: 14px 0; color: #4b4d48; font-size: 13px; }
.auth-panel input { width: 100%; box-sizing: border-box; padding: 12px 13px; border: 1px solid #d7d9d3; border-radius: 8px; font: inherit; color: #20211e; background: #fff; }
.auth-panel input:focus { outline: 2px solid rgba(39, 96, 74, .2); border-color: #27604a; }
.auth-panel .primary-button { width: 100%; margin-top: 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; border-radius: 9px; background: #f0f1ed; }
.auth-tabs button { border: 0; border-radius: 7px; padding: 9px; background: transparent; color: #777; cursor: pointer; font: inherit; }
.auth-tabs button.active { background: #fff; color: #20211e; box-shadow: 0 1px 4px rgba(24, 24, 20, .1); }
.text-button { display: block; margin: 14px auto 0; padding: 4px; border: 0; background: transparent; color: #27604a; cursor: pointer; }
.auth-panel .form-error { min-height: 20px; margin-top: 14px; color: #a63c32; font-size: 13px; }
.account-email { margin: 7px 0 0; color: #6f716b; font-size: 13px; }

/* Mature chat surface */
body { background: #f1f2f0; }
.app-shell { width: min(100%, 680px); }
.coach-view { background: #fbfbfa; }
.coach-view .topbar {
  height: calc(58px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  border-bottom-color: #e8e9e6;
  background: rgba(255, 255, 255, .98);
}
.coach-view .icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  color: #242522;
  box-shadow: 0 3px 14px rgba(26, 29, 25, .07);
}
.coach-view .icon-button svg { width: 27px; height: 27px; display: block; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.coach-view #newChat { border: 0; background: #fff; }
.coach-view #newChat svg { width: 26px; height: 26px; stroke-width: 2.15; }
.coach-heading { position: absolute; left: 50%; display: grid; justify-items: center; gap: 1px; transform: translateX(-50%); }
.coach-heading strong { color: #1f211e; font-size: 15px; line-height: 1.2; }
.coach-heading span { display: flex; align-items: center; gap: 5px; color: #868983; font-size: 10px; line-height: 1.2; }
.coach-heading i { width: 6px; height: 6px; border-radius: 50%; background: #3f896d; }
.coach-view .conversation { background: #fbfbfa; scrollbar-color: #c9cbc6 transparent; }
.coach-view .welcome { min-height: 100%; padding: 56px 28px 88px; justify-content: center; }
.welcome-inner { display: flex; flex-direction: column; align-items: center; transform: translateY(-4vh); }
.coach-view .brand-mark { width: 64px; height: 64px; margin: 0 0 22px; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); }
.welcome-label { margin-bottom: 8px; color: #4c6f61; font-size: 12px; font-weight: 650; }
.coach-view .welcome h1 { margin: 0 0 9px; color: #20211f; font-size: 27px; line-height: 1.25; }
.coach-view .welcome p { color: #777a74; font-size: 14px; line-height: 1.6; }
.coach-view .message-list { width: min(100%, 660px); margin: 0 auto; padding: 28px 22px 54px; }
.coach-view .message-row { gap: 11px; margin-bottom: 28px; }
.coach-view .assistant-mark { width: 30px; height: 30px; border-radius: 9px; }
.coach-view .message-bubble { max-width: 84%; color: #282a27; font-size: 15px; line-height: 1.72; }
.coach-view .user .message-bubble { padding: 10px 14px; border-radius: 18px 18px 5px 18px; background: #eceeeb; }
.coach-view .message-image { border-radius: 8px; }
.coach-view .composer-area {
  padding: 9px 16px 12px;
  border-top: 1px solid #ecece9;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 -8px 28px rgba(20, 24, 20, .035);
}
.composer-meta { width: min(100%, 620px); margin: 0 auto 7px; display: flex; align-items: center; justify-content: space-between; color: #a0a29d; font-size: 10px; }
.composer-meta .usage-line { color: #527163; font-size: 11px; font-weight: 600; }
.coach-view .attachment-preview { width: min(100%, 620px); height: 66px; margin: 0 auto 8px; }
.coach-view .attachment-preview img { width: 66px; height: 66px; }
.coach-view .attachment-preview button { left: 59px; right: auto; }
.coach-view .composer { width: min(100%, 620px); min-height: 52px; margin: 0 auto 7px; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #d8dad5; border-radius: 26px; background: #fff; box-shadow: 0 5px 20px rgba(24, 28, 23, .07); }
.coach-view .attach-button,
.coach-view .send-button { width: 36px; height: 36px; border-radius: 50%; }
.coach-view .attach-button { padding: 0; border: 0; background: transparent; color: #171916; transform: none; }
.coach-view .attach-button svg { width: 28px; height: 28px; display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.coach-view .send-button { padding: 0; background: #dfe2df; color: #fff; }
.coach-view .send-button.active { background: #2f82f6; }
.coach-view .send-button svg { width: 24px; height: 24px; display: block; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.coach-view textarea { min-height: 36px; max-height: 120px; padding: 8px 0 7px; color: #292b28; font-size: 15px; line-height: 1.45; }
.coach-view textarea::placeholder { color: #979a94; }
.coach-view .composer-area small { color: #a3a59f; font-size: 10px; }
.tabbar { height: 68px; border-top-color: #e8e9e6; }
.tabbar button { gap: 3px; color: #9a9c97; font-size: 10px; }
.tabbar span { font-size: 18px; }
.tabbar .active { color: #20221f; }

@media (max-width: 420px) {
  .coach-view .welcome { padding-top: 42px; padding-bottom: 72px; }
  .coach-view .brand-mark { width: 58px; height: 58px; border-radius: 16px; }
  .coach-view .welcome h1 { font-size: 25px; }
  .coach-view .composer-area { padding-left: 11px; padding-right: 11px; }
  .paywall-panel { padding: 24px 17px 17px; border-radius: 19px; }
  .paywall-panel h2 { font-size: 23px; }
  .paywall-benefits { grid-template-columns: 1fr; gap: 5px; }
}
