/* Approved Coach composition: live controls over a reference-derived atmosphere.
   Material icons and portraits are CSS crops of the approved image, never UI text. */
html[data-theme] body.dash-page:has(#coachView.active){background:#031329!important;color:#f0f5ff!important;padding:0!important;min-height:100dvh;overflow-x:clip}
html[data-theme] body.dash-page:has(#coachView.active)::before,
html[data-theme] body.dash-page:has(#coachView.active)::after{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active)>.mobile-head:is(#sharedHeaderSizing,.shared-glass-head),
html[data-theme] body.dash-page:has(#coachView.active)>.sidebar{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active) .app-main{width:100%!important;max-width:none!important;min-height:100dvh!important;margin:0!important;padding:0!important;background:none!important;overflow:visible!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView{width:100%!important;max-width:640px!important;margin:0 auto!important;padding:0!important;container-type:inline-size;position:relative;isolation:isolate;color:#f0f5ff!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:#031329 url('/assets/healthos-coach-atmosphere-v1.webp') center top/100% auto no-repeat;min-height:100dvh}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell{--cg-ink:#f0f5ff;--cg-muted:#bbcee9;--cg-line:#acd1ffb3;--cg-glass:linear-gradient(132deg,#c0dcff40 0%,#7da7e420 30%,#183a6026 68%,#82b3f22c 100%);display:flex!important;flex-direction:column!important;gap:0!important;box-sizing:border-box;width:100%!important;max-width:none!important;min-height:100dvh!important;margin:0!important;padding:max(15px,env(safe-area-inset-top)) clamp(16px,4.5cqw,29px) max(18px,env(safe-area-inset-bottom))!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;font-family:Inter,sans-serif;color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell *,html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell *::before,html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell *::after{box-sizing:border-box}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell :is(h1,h2,h3,p,small,span,strong,a,button,textarea){-webkit-text-fill-color:currentColor}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell [hidden]{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header{order:0;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:8px;width:100%;height:50px;margin:0;padding:0;border:0;background:none}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header>div{display:grid;justify-items:center;gap:4px;padding:0 0 7px;position:relative}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header>div::after{content:"";position:absolute;bottom:0;width:16px;height:1px;background:#a3ccf299;box-shadow:0 0 5px #a3ccf255}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header strong{font:400 clamp(16px,3.7cqw,24px)/1.2 Inter,sans-serif;color:var(--cg-ink)!important;letter-spacing:-.03em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header>div>span{font:400 clamp(8px,1.9cqw,12px)/1.2 Inter,sans-serif;letter-spacing:.35em;color:#8eb9eb!important;padding-left:.35em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(.coach-glass-back,.coach-glass-theme){display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;height:44px;padding:0 12px;border:1px solid var(--cg-line)!important;border-radius:99px;background:var(--cg-glass)!important;box-shadow:inset 0 1px 1px #eff8ff9e,inset 0 -1px 3px #80adf455,0 3px 16px #0002!important;color:var(--cg-ink)!important;font:400 clamp(12px,3.15cqw,19px)/1.2 Inter,sans-serif;white-space:nowrap;text-decoration:none;backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-back{justify-self:start;min-width:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-back>span{font-size:20px}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-theme{justify-self:end;width:44px;padding:0;background:linear-gradient(140deg,#3569ac66,#16355e55)!important;border-color:#5e9fe0bb!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-identity{order:1;display:flex;flex-direction:column;align-items:center;margin:8px 0 0;padding:0;border:0;background:none}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-portrait{--portrait-size:clamp(126px,38.8cqw,232px);display:block;flex:none;width:var(--portrait-size);height:var(--portrait-size);overflow:hidden;border-radius:50%;background-image:url('/assets/healthos-coach-approved-v1.webp');background-repeat:no-repeat;background-size:calc(var(--portrait-size)*2.59) calc(var(--portrait-size)*4.533);background-position:calc(var(--portrait-size)*-.794) calc(var(--portrait-size)*-.393);box-shadow:0 0 2px 1px #e1f6ffb3,0 0 15px #a5d8ff70,0 0 42px #6eb5ff26}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-identity h1{margin:6px 0 5px!important;padding:0;font:400 clamp(20px,4.8cqw,30px)/1.15 Inter,sans-serif!important;letter-spacing:-.02em;color:var(--cg-ink)!important;text-shadow:0 2px 6px #0005}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-badge{padding:2px 9px 3px;border:1px solid var(--cg-line);border-radius:7px;background:#94b9ee0d;box-shadow:inset 0 1px #e0f4ff50;color:var(--cg-muted)!important;font:400 clamp(11px,2.5cqw,15px)/1.2 Inter,sans-serif;letter-spacing:.02em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro{order:2;text-align:center;margin:16px 0 15px;padding:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro h2{margin:0 0 4px!important;font:400 clamp(26px,6.7cqw,42px)/1.15 Inter,sans-serif!important;letter-spacing:-.035em;color:var(--cg-ink)!important;text-shadow:0 2px 8px #0005}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro p{margin:0!important;font:400 clamp(11px,3.15cqw,19px)/1.4 Inter,sans-serif;color:var(--cg-muted)!important;letter-spacing:-.015em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(.coach-glass-welcome,.coach-reference-quick-actions>button,.coach-composer){border:1px solid var(--cg-line)!important;background:var(--cg-glass)!important;box-shadow:inset 0 1px 2px #e0f2ff99,inset 0 -1px 2px #c3e5ff33,0 8px 22px #0003,0 0 16px #6da7ed0c!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome{order:3;padding:12px 13px;border-radius:16px;margin:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy{display:grid;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:start}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy .coach-glass-portrait{--portrait-size:42px;margin:0;box-shadow:0 0 0 1px #d2ebff9c,0 0 9px #a5d8ff20}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy small{display:block;margin:4px 0 6px;color:#a9c9f1!important;font:400 9px/1 Inter,sans-serif;letter-spacing:.22em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome h3{margin:0 0 5px!important;font:400 clamp(15px,4.1cqw,25px)/1.25 Inter,sans-serif!important;letter-spacing:-.025em;color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome p{margin:0!important;color:var(--cg-muted)!important;font:400 clamp(11px,2.6cqw,15px)/1.5 Inter,sans-serif;letter-spacing:-.02em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;margin:13px 0 0;padding:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:6px 4px;border:1px solid var(--cg-line)!important;border-radius:13px;background:linear-gradient(130deg,#a4caff2c,#152d4a1c)!important;box-shadow:inset 0 1px #d7efff70,inset 0 -1px #afd6ff2e!important;color:var(--cg-ink)!important;font:400 clamp(11px,2.8cqw,16px)/1.2 Inter,sans-serif}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods svg{display:block;width:23px;height:23px;flex:none;fill:none;stroke:#eaf4ff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #94cbff66)}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods>button.active{background:linear-gradient(135deg,#8ebdf56e,#4279b844)!important;box-shadow:inset 0 1px #fff9,0 0 12px #a6d8ff55!important;border-color:#e3f4ff!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-topics{order:7;margin:16px 0 0;padding:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-topics h3{margin:0 0 8px!important;font:400 clamp(12px,3.05cqw,18px)/1.4 Inter,sans-serif!important;letter-spacing:0;color:var(--cg-muted)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:0!important;padding:0!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions>button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:0!important;width:100%!important;min-width:0!important;min-height:78px!important;height:auto!important;margin:0!important;padding:5px 2px 9px!important;border-radius:14px!important;white-space:normal!important;font:400 clamp(12px,3.1cqw,18px)/1.2 Inter,sans-serif!important;color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions>button>span:last-child{color:var(--cg-ink)!important;text-shadow:0 1px 3px #0008;font:inherit!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-material-icon{display:block;flex:none;width:60px;height:48px;background-image:url('/assets/healthos-coach-approved-v1.webp')!important;background-repeat:no-repeat!important;background-size:474px 829.5px!important;background-color:transparent!important;mix-blend-mode:screen;mask-image:radial-gradient(ellipse at center,#000 30%,#000d 48%,transparent 74%);-webkit-mask-image:radial-gradient(ellipse at center,#000 30%,#000d 48%,transparent 74%);filter:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-material-training{background-position:-65px -601px!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-material-food{background-position:-207px -601px!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-material-moon{background-position:-355px -601px!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-theme .coach-material-icon{transform:scale(.6);margin:-10px;mask-image:radial-gradient(ellipse,#000 37%,transparent 74%)}
/* The original chat endpoints, message nodes, form and detail controls stay intact. */
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-chat-card{display:contents!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;height:auto!important;overflow:visible!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-chat-topbar{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-conversation-toolbar{order:4;display:flex;justify-content:flex-end;margin:0 0 5px;padding:0;min-height:0;background:none;border:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-memory-bar{display:flex!important;margin:0!important;min-height:0;padding:0;background:none;border:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-clear-button{min-height:44px;padding:6px 9px;background:none!important;box-shadow:none!important;border:0!important;color:var(--cg-muted)!important;font:400 11px/1.4 Inter,sans-serif}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-clear-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-thread{order:5;display:flex!important;flex-direction:column!important;gap:15px!important;width:100%!important;min-height:80px!important;height:auto!important;max-height:min(56dvh,520px)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;padding:15px 12px!important;border:1px solid #a5ceff70!important;border-radius:16px!important;background:linear-gradient(135deg,#264e7a44,#05152955)!important;box-shadow:inset 0 1px #c8e4ff55!important;scrollbar-width:thin;scrollbar-color:#9dc5f170 transparent;color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-thread::before,html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-thread::after{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message{display:flex!important;align-items:flex-start!important;gap:8px!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;animation:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message.user{flex-direction:row-reverse!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-avatar{display:block!important;flex:0 0 27px!important;width:27px!important;height:27px!important;margin:18px 0 0!important;padding:0!important;overflow:hidden!important;border:1px solid #c2e6ff99!important;border-radius:50%!important;background:#18304b url('/assets/healthos-coach-sarah-v1.webp') center/cover no-repeat!important;box-shadow:0 0 8px #85b6e633!important;color:transparent!important;font-size:0!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message.user .coach-message-avatar{background-image:var(--coach-user-avatar-image)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-stack{display:block!important;flex:1!important;min-width:0!important;width:auto!important;max-width:calc(100% - 35px)!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-meta{display:block!important;margin:0 0 5px!important;padding:0!important;min-height:0!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-meta small{font:400 10px/1.3 Inter,sans-serif!important;color:var(--cg-muted)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-meta b{padding:0 4px!important;font-weight:400;color:#a8c8ec!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-content{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;margin:0!important;padding:12px!important;overflow-wrap:anywhere;word-break:normal;white-space:normal;border:1px solid #aed6ff66!important;border-radius:0 14px 14px!important;background:linear-gradient(130deg,#91bff42b,#3a6b9e1c)!important;color:var(--cg-ink)!important;box-shadow:inset 0 1px #daf0ff20!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message.user .coach-message-content{background:linear-gradient(135deg,#91bffc55,#3a659c55)!important;border-radius:14px 0 14px 14px!important;color:var(--cg-ink)!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-content :is(p,li,small,h3,h4,strong,div){color:var(--cg-ink)!important;font-family:Inter,sans-serif!important;font-size:13px!important;line-height:1.6!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-content p{margin:0 0 9px!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-content p:last-child{margin-bottom:0!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message-content a{color:#d6edff!important;text-decoration:underline}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-quick-actions{display:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-detail-trigger{max-width:100%;min-height:44px!important;border-color:#99c9ff66!important;background:#6ca2dd15!important;color:var(--cg-ink)!important;box-shadow:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer{order:8!important;display:block!important;width:100%!important;min-height:54px!important;height:auto!important;margin:15px 0 0!important;padding:5px 7px 5px 16px!important;border-radius:23px!important;box-shadow:inset 0 1px 2px #e8f6ffe0,inset 0 -1px 2px #b0ddff88,0 0 4px #b5dfff66,0 0 20px #68adf83b!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;display:block!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer-row{display:flex!important;align-items:center!important;gap:8px!important;width:100%!important;min-height:44px!important;height:auto!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer textarea{display:block!important;flex:1 1 auto!important;width:0!important;min-width:0!important;height:44px!important;min-height:44px!important;max-height:130px!important;margin:0!important;padding:12px 0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;outline:0!important;color:var(--cg-ink)!important;font:400 16px/20px Inter,sans-serif!important;letter-spacing:-.025em!important;resize:vertical!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer textarea::placeholder{opacity:1!important;color:#b4c9e7!important;-webkit-text-fill-color:currentColor!important;font-size:clamp(12px,3.05cqw,17px)}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button{display:grid!important;place-items:center!important;flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:10px!important;border:1px solid #d1eeff!important;border-radius:50%!important;background:linear-gradient(140deg,#badfff,#72a6e0 52%,#467ab4)!important;box-shadow:inset 0 1px 3px #ffff,0 0 9px #91c5ff66!important;color:#f4faff!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button svg{display:block!important;width:25px!important;height:25px!important;fill:none!important;stroke:#eff8ff!important;stroke-width:1.65!important;stroke-linejoin:round;stroke-linecap:round}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button:disabled{opacity:.55!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-history{order:9;display:flex;align-items:center;justify-content:center;gap:9px;align-self:center;width:auto;min-height:44px;margin:6px 0 0;padding:5px 8px;background:none!important;border:0!important;box-shadow:none!important;color:var(--cg-muted)!important;font:400 clamp(12px,3.1cqw,18px)/1.4 Inter,sans-serif}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-history svg{width:22px;height:22px;fill:none;stroke:#dceeff;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 0 2px #a9d6ff66)}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-security{order:10;display:block!important;width:82%;margin:8px auto 0!important;padding:8px 0 0;border-top:1px solid #709cc44d!important;text-align:center;color:#b5c9e2!important;font:400 clamp(9px,2.25cqw,13px)/1.5 Inter,sans-serif;letter-spacing:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(button,a):focus-visible{outline:2px solid #e2f4ff!important;outline-offset:3px}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer:focus-within{border-color:#e5f7ff!important;box-shadow:inset 0 1px #fff,0 0 0 2px #9acdff44,0 0 24px #78baff55!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(button,a){touch-action:manipulation;cursor:pointer;transition:border-color .18s,filter .18s,box-shadow .18s}
@media(hover:hover){html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(button,a):hover{filter:brightness(1.14)}}
@media(min-width:700px){html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-shell{padding-top:24px!important;padding-bottom:28px!important}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header{height:58px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-identity{margin-top:16px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro{margin:22px 0}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome{padding:19px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy{grid-template-columns:55px 1fr;gap:14px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy .coach-glass-portrait{--portrait-size:55px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy small{font-size:11px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods{margin-top:18px;gap:10px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-topics{margin-top:22px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions{gap:11px!important}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions>button{min-height:100px!important}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer{margin-top:22px!important}}
@media(max-width:350px){html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-back{font-size:11px;padding-inline:8px;gap:4px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header{gap:4px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome{padding:11px 9px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy{grid-template-columns:34px 1fr;gap:8px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome-copy .coach-glass-portrait{--portrait-size:34px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods{gap:4px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods>button{gap:4px;font-size:10px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-moods svg{width:21px;height:21px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro p{font-size:10px}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome h3{font-size:14px!important}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer{padding-left:12px!important}html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer textarea::placeholder{font-size:11px}}
@media(prefers-reduced-motion:reduce){html[data-theme] body.dash-page:has(#coachView.active) #coachView *,html[data-theme] body.dash-page:has(#coachView.active) #coachView *::before,html[data-theme] body.dash-page:has(#coachView.active) #coachView *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Retire the legacy fixed composer and mobile 2+1 action grid. */
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;bottom:auto!important;z-index:auto!important;transform:none!important;max-width:100%!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-reference-quick-actions>button:last-child{grid-column:auto!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-artifact-card{width:100%!important;max-width:100%!important;min-height:44px!important;padding:10px!important;border:1px solid #a6d0ff70!important;border-radius:12px!important;background:linear-gradient(140deg,#b7d5ff1c,#467cb329)!important;box-shadow:inset 0 1px #d0ebff30!important;color:#f0f5ff!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-artifact-card :is(small,strong,span){color:#d5e8ff!important}

/* Match the approved compact composition and remove old send-signal artwork. */
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button::before,
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button::after{display:none!important;content:none!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-send-button svg{grid-area:1/1!important;align-self:center!important;justify-self:center!important;position:static!important;margin:0!important;padding:0!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-header{height:44px}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-identity{margin-top:0}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-intro{margin-top:14px;margin-bottom:13px}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-glass-welcome p{font-size:clamp(10px,2.5cqw,15px);letter-spacing:-.025em}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-composer textarea{resize:none!important}
/* Plans opened from the conversation use the same glass and silver palette. */
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet section{border:1px solid #b7d9ff99!important;background:linear-gradient(145deg,#17365cf0,#071c35f5)!important;box-shadow:inset 0 1px #d9edff55,0 -15px 70px #0008!important;backdrop-filter:blur(22px);color:#edf5ff!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet :is(.coach-detail-head,.coach-plan-compact article){border-color:#aacdf94d!important;background:transparent!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet :is(p,small,strong,h2,li,span){color:#dbeaff!important;-webkit-text-fill-color:currentColor!important}
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet .coach-detail-head button{min-width:44px;min-height:44px;border:1px solid #bbdbff88;background:#bad9ff1a;color:#eff7ff}
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet button:focus-visible{outline:2px solid #e2f4ff;outline-offset:3px}

/* Move only the existing atmosphere; all live content stays still. */
html[data-theme] body.dash-page:has(#coachView.active) #coachView{overflow:clip}
html[data-theme] body.dash-page:has(#coachView.active) #coachView::before{transform-origin:50% 25%;will-change:transform;animation:coach-atmosphere-wave 20s ease-in-out infinite}
html[data-theme] body.dash-page:has(#coachView.active) #coachView.is-background-paused::before{animation-play-state:paused}
@keyframes coach-atmosphere-wave{
  0%,100%{transform:translate3d(-.6%,0,0) scale(1.035)}
  50%{transform:translate3d(.7%,-.8%,0) scale(1.055)}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] body.dash-page:has(#coachView.active) #coachView::before{animation:none!important;transform:none!important;will-change:auto}
}

/* A moving silver-blue rim signals only the actual pending Coach response. */
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(.coach-glass-identity .coach-glass-portrait,.coach-message-avatar-assistant){position:relative}
html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(.coach-glass-identity.is-thinking .coach-glass-portrait,.coach-message:has(.coach-message-content.loading) .coach-message-avatar-assistant)::after{
 content:"";position:absolute;inset:0;padding:3px;border-radius:50%;pointer-events:none;
 background:conic-gradient(from 0deg,transparent 0deg,#8bbfff55 65deg,#a7d6ff 120deg,#f4fbff 155deg,transparent 195deg,transparent 245deg,#94c9ff99 300deg,#e8f7ff 330deg,transparent 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
 animation:coach-thinking-rim 2.6s linear infinite;will-change:transform
}
html[data-theme] body.dash-page:has(#coachView.active) #coachView .coach-message:has(.coach-message-content.loading) .coach-message-avatar-assistant::after{padding:2px}
html[data-theme] body.dash-page:has(#coachView.active) #coachView.is-background-paused :is(.coach-glass-portrait,.coach-message-avatar-assistant)::after{animation-play-state:paused}
@keyframes coach-thinking-rim{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html[data-theme] body.dash-page:has(#coachView.active) #coachView :is(.coach-glass-portrait,.coach-message-avatar-assistant)::after{animation:none!important;will-change:auto}}
/* Keep arbitrary Coach plan text and URLs inside the mobile detail sheet. */
html[data-theme] body.dash-page:has(#coachView.active) #coachDetailSheet .coach-detail-body{min-width:0;overflow-wrap:anywhere}
