/* Stage 09: vivid mobile-first member coach */
.coach-shell{max-width:1140px}.coach-hero{position:relative;overflow:hidden;min-height:238px;padding:38px 43px;background:radial-gradient(circle at 83% 8%,#ff9bde,transparent 33%),radial-gradient(circle at 100% 100%,#5ee7f4a8,transparent 35%),linear-gradient(112deg,#5133bd,#8260f9 70%,#a360f5);color:white;border-radius:26px;display:flex;align-items:center;justify-content:space-between}.coach-hero>div{position:relative;z-index:1}.coach-hero h1{color:white;font-size:clamp(28px,3.8vw,43px);line-height:1.13;letter-spacing:-1.2px;margin:12px 0}.coach-hero p{color:#f6eeff;font-size:13px;max-width:560px;line-height:1.65}.coach-kicker{font-weight:900;font-size:10px;letter-spacing:1.3px;display:block}.coach-hero-orb{font-size:145px;color:#fff9;line-height:1;filter:drop-shadow(0 12px 28px #26137b77);padding:0 7%;flex-shrink:0}.coach-hero-actions{display:flex;align-items:center;gap:15px;margin-top:20px;flex-wrap:wrap}.coach-white-btn{display:inline-flex;background:#fff;color:#633ed4;border-radius:12px;padding:12px 17px;font-size:12px;font-weight:850}.coach-status{font-size:10px;font-weight:800;background:#ffffff29;border-radius:28px;padding:9px 12px}.coach-status.online{color:#e1fff3}.coach-status.offline{color:#ffebd8}.coach-section-title{display:flex;justify-content:space-between;gap:12px;align-items:end;margin:32px 0 15px}.coach-section-title small{color:#8254ea;letter-spacing:1.4px;font-size:10px;font-weight:900}.coach-section-title h2{font-size:24px;letter-spacing:-.6px;margin:5px 0 0}.coach-section-title p{max-width:350px;text-align:right;font-size:11px;color:#9290a6;margin:0}.coach-pillars{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.coach-pillar-card{padding:21px 15px;border-radius:20px;display:flex;flex-direction:column;gap:13px;min-width:0;box-shadow:0 12px 25px #3310570a}.coach-mindset{background:#e9e0ff}.coach-intuition{background:#d8f8fb}.coach-love{background:#ffe0eb}.coach-performance{background:#fff0c8}.coach-abundance{background:#d9f8de}.coach-emoji{font-size:38px}.coach-pillar-card h3{font-size:17px;margin:0 0 6px}.coach-pillar-card p{font-size:11px;line-height:1.6;color:#655d79;margin:0;min-height:50px}.coach-pillar-card form{margin-top:auto}.coach-pillar-card button{width:100%;border:0;border-radius:12px;background:#fff;color:#4f398e;font-size:11px;font-weight:850;padding:11px 8px;display:flex;justify-content:space-between;gap:6px;align-items:center}.coach-pillar-card button:disabled{opacity:.55;cursor:not-allowed}.coach-pillar-card button span{font-size:16px}.coach-text-link{font-size:12px;font-weight:850;color:#7653e5}.coach-history-list,.coach-empty,.coach-plan-card{background:white;border:1px solid #ece7f5;border-radius:20px;box-shadow:0 10px 30px #28154e07}.coach-history-row{display:flex;align-items:center;gap:14px;padding:17px 20px;border-bottom:1px solid #f1eff6}.coach-history-row:last-child{border-bottom:0}.coach-history-row>a{flex:1;min-width:0}.coach-history-row b,.coach-saved-plan b{display:block;font-size:13px;color:#372c54;overflow-wrap:anywhere}.coach-history-row small,.coach-saved-plan small{display:block;color:#9c98ad;font-size:10px;margin-top:4px}.coach-mini-icon{width:42px;height:42px;border-radius:13px;background:#f2edff;display:grid;place-items:center;font-size:24px;flex-shrink:0}.coach-delete{border:1px solid #fbd7df;background:#fff4f7;color:#b43f60;border-radius:9px;padding:8px 11px;font-size:10px;font-weight:800}.coach-empty{text-align:center;padding:38px 20px}.coach-empty>span{font-size:45px}.coach-empty h3{margin:8px 0}.coach-empty p{font-size:12px;color:#868197}.coach-privacy-note,.coach-chat-note{margin:20px 0 0;padding:17px 19px;background:#e9f8ff;border:1px solid #d0eafa;border-radius:14px;color:#557491;font-size:11px;line-height:1.8}.coach-back{display:inline-block;font-size:12px;font-weight:850;color:#7857e0;margin-bottom:16px}.coach-chat-top{display:flex;align-items:center;gap:16px;padding:21px 23px;border-radius:20px 20px 0 0;background:linear-gradient(115deg,#6b49e3,#a46af6);color:white}.coach-chat-top h1{font-size:24px;color:white;margin:6px 0}.coach-chat-top p{font-size:11px;color:#f5ecff;margin:0}.coach-chat-icon{height:68px;width:68px;display:grid;place-items:center;background:#ffffff30;border:1px solid #ffffff80;border-radius:19px;font-size:42px;flex-shrink:0}.coach-ai-indicator{margin-left:auto;font-size:10px;background:#ffffff2e;padding:8px 10px;border-radius:22px;white-space:nowrap}.coach-chat-card{background:#fff;border:1px solid #ece7f5;border-top:0;border-radius:0 0 20px 20px;overflow:hidden;box-shadow:0 18px 38px #30145c0b}.coach-messages{display:flex;flex-direction:column;gap:18px;height:420px;overflow-y:auto;padding:28px;background:radial-gradient(circle at 0% 0%,#f3edff,transparent 45%),#fff}.coach-welcome{text-align:center;max-width:430px;margin:auto;color:#77718c}.coach-welcome-orb{height:90px;width:90px;background:linear-gradient(135deg,#6846e8,#ff7fa9);color:white;display:grid;place-items:center;border-radius:25px;font-size:56px;margin:0 auto 19px;box-shadow:0 12px 30px #7142e055}.coach-welcome h2{font-size:24px;color:#30234f}.coach-welcome p{font-size:12px;line-height:1.8}.coach-welcome small{font-size:10px;color:#a4a0ad}.coach-bubble{padding:15px 19px;border-radius:16px;max-width:85%;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.coach-bubble-label{font-size:9px;font-weight:900;letter-spacing:1px;display:block;margin-bottom:7px;opacity:.75}.coach-from-ai{align-self:flex-start;background:#f1ecff;color:#403161;border-top-left-radius:3px}.coach-from-user{align-self:flex-end;background:linear-gradient(135deg,#6c4bdc,#9470f5);color:white;border-top-right-radius:3px}.coach-quick-prompts{display:flex;gap:8px;padding:15px 20px 0;flex-wrap:wrap}.coach-suggestion{border:1px solid #e2d8ff;background:#f8f5ff;color:#7658d0;border-radius:30px;padding:9px 11px;font-size:11px;font-weight:800}.coach-compose{padding:18px 21px;display:flex;gap:10px;align-items:end}.coach-compose textarea{resize:vertical;flex:1;min-width:0;border:1px solid #e8e1f5;background:#faf9ff;color:#3b2e57;border-radius:12px;padding:13px;outline-color:#845ced;font-family:inherit;font-size:12px}.coach-compose button,.coach-primary{padding:13px 19px;border:0;border-radius:12px;background:#7854e8;color:#fff;font-size:12px;font-weight:850;white-space:nowrap}.coach-compose button:disabled{opacity:.6}.coach-chat-note a{font-weight:850}.coach-plan-hero{background:radial-gradient(circle at 83% 30%,#ffb7ce,transparent 35%),linear-gradient(115deg,#4e37bd,#7e59ea 72%,#14cdbc)}.coach-plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:23px}.coach-plan-card{padding:25px}.coach-plan-card h2{font-size:23px}.coach-plan-form{display:grid;gap:16px}.coach-plan-form label{display:grid;gap:7px;font-size:11px;font-weight:850;color:#5c4b82}.coach-plan-form select,.coach-plan-form textarea{font:inherit;font-size:12px;border:1px solid #e2dbef;border-radius:10px;padding:12px;background:#fcfaff;outline-color:#7950e9}.coach-fine{font-size:11px;color:#8e88a0;line-height:1.7}.coach-saved-plan{display:flex;gap:10px;justify-content:space-between;align-items:center;border-bottom:1px solid #eee8f5;padding:15px 0}.coach-saved-plan:last-child{border:0}.coach-saved-plan a{flex:1;min-width:0}.coach-progress{height:11px;background:#eae5f7;border-radius:20px;overflow:hidden}.coach-progress>span{height:100%;display:block;border-radius:20px;background:linear-gradient(90deg,#714bf5,#22d1bb)}.coach-step-list{display:grid;gap:13px;margin-top:20px}.coach-step{display:flex;align-items:center;gap:13px;padding:15px;background:#f9f6ff;border:1px solid #eee8fc;border-radius:12px;font-size:12px}.coach-step button{height:34px;width:34px;border:0;border-radius:10px;background:#e2d9ff;color:#5e40bf;font-weight:900;flex:none}.coach-step.done button{background:#24c9ae;color:#fff}.coach-step.done span{text-decoration:line-through;opacity:.6}.coach-cheer{background:#e0fff5;color:#16836a;border-radius:10px;padding:15px;font-size:12px;font-weight:800;margin-top:18px}.coach-admin-dimension{padding:16px 0;border-bottom:1px solid #eee8f4}.coach-admin-dimension:last-of-type{margin-bottom:20px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:930px){.coach-pillars{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:630px){.coach-hero{padding:28px 22px;min-height:230px}.coach-hero h1{font-size:29px}.coach-hero-orb{font-size:90px;position:absolute;right:-18px;bottom:-19px;opacity:.27}.coach-section-title{align-items:start}.coach-section-title h2{font-size:21px}.coach-section-title p{display:none}.coach-pillars{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.coach-pillar-card{padding:16px 13px;min-height:205px}.coach-emoji{font-size:32px}.coach-pillar-card h3{font-size:14px}.coach-pillar-card p{font-size:10px;min-height:48px}.coach-pillar-card button{font-size:10px}.coach-plan-grid{grid-template-columns:1fr}.coach-chat-top{padding:17px 14px;gap:10px}.coach-chat-icon{height:50px;width:50px;font-size:28px}.coach-chat-top h1{font-size:18px}.coach-chat-top p{font-size:10px}.coach-ai-indicator{font-size:9px}.coach-messages{height:calc(100dvh - 390px);min-height:260px;padding:14px}.coach-bubble{max-width:92%;padding:12px}.coach-compose{padding:12px;gap:8px}.coach-compose button{padding:12px 14px}.coach-history-row{padding:14px 12px;gap:9px}.coach-mini-icon{width:36px;height:36px}.coach-privacy-note{margin-bottom:18px}}

/* Fixed-height real conversation layout: heading -> scrolling messages -> composer */
.coach-chat-shell{max-width:960px}.coach-chat-card{display:flex;flex-direction:column;height:clamp(420px,64dvh,780px);min-height:0}.coach-messages{height:auto!important;min-height:0!important;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:20px;}.coach-compose{flex:0 0 auto;border-top:1px solid #f0e9fa;background:#fff}.coach-quick-prompts{flex:0 0 auto;max-height:120px;overflow-y:auto;padding-bottom:11px}.coach-hosting-notice{padding:17px 20px;border:1px solid #d8cdfc;background:linear-gradient(120deg,#f5efff,#edf9ff);border-radius:16px;margin:14px 0 20px;color:#3c276c}.coach-hosting-notice strong{font-size:14px}.coach-hosting-notice p{margin:7px 0 0;font-size:12px;line-height:1.7;color:#5a527c}
@media(max-width:630px){.coach-chat-card{height:calc(100dvh - 265px);min-height:340px;max-height:700px}.coach-chat-top{padding:12px 13px}.coach-chat-top p{display:none}.coach-chat-top h1{font-size:17px;margin:3px 0}.coach-chat-icon{height:44px;width:44px}.coach-messages{padding:13px}.coach-compose{padding:10px}.coach-compose textarea{min-height:44px;max-height:100px;resize:none}.coach-quick-prompts{max-height:95px;padding:7px 10px}.coach-welcome-orb{height:48px;width:48px;font-size:30px;margin-bottom:7px}.coach-welcome h2{font-size:18px}.coach-welcome p{font-size:11px}.coach-welcome small{font-size:9px}.coach-back{margin-bottom:8px}}
