/* Freya visual refinements — load after styles.css. */
/* One centred icon box: summary text must not create a second grid row. */
.freyaToolMenu summary,.appBody .appComposer .freyaToolMenu summary{position:relative;display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;font-size:0!important;line-height:0!important}
.freyaToolMenu summary::before{position:absolute!important;inset:0!important;margin:auto!important;width:22px!important;height:22px!important}
.freyaToolMenu,.appBody .freyaToolMenu{min-width:40px!important;flex-basis:40px!important}
.homeChat .composer:has(> .freyaToolMenu){grid-template-columns:40px minmax(0,1fr) 44px auto!important}
.freyaHeaderStatus{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-inline-start:auto}
.freyaHeaderStatus .online,.chatTopRight .online{display:inline!important;white-space:nowrap}
.freyaAnonymous{position:relative!important;margin:0!important;font-size:11px;color:var(--muted)}
.freyaAnonymous summary{list-style:none;cursor:pointer;padding:5px 8px!important;border:0!important;background:transparent!important;white-space:nowrap}
.freyaAnonymous summary::-webkit-details-marker{display:none}
.freyaAnonymous p{position:absolute;z-index:60;inset-inline-end:0;top:100%;width:min(300px,calc(100vw - 32px));margin:8px 0 0;padding:14px;border:1px solid var(--line);background:var(--white);border-radius:14px;box-shadow:0 8px 24px #0001;line-height:1.6}
.appBody .appWelcome h1{letter-spacing:0!important;word-spacing:.04em;line-height:1.3!important}
@media(max-width:560px){.appTop{gap:8px}.freyaHeaderStatus{gap:4px}.freyaHeaderStatus .online,.freyaAnonymous{font-size:10px}.chatTopRight{gap:4px;flex-wrap:wrap;justify-content:flex-end}.chatTop{gap:8px}.chatTopRight .miniLink{font-size:10px}}
/* Suggested prompts disappear as soon as someone writes or sends a message. */
.suggestions, .promptGrid {transition:opacity .18s ease, transform .18s ease, max-height .18s ease, margin .18s ease!important; transform-origin:top center}
.suggestions.freya-prompts-hidden, .promptGrid.freya-prompts-hidden,
body.hasConversation .suggestions, body.hasConversation .promptGrid {
  max-height:0!important;margin-top:0!important;margin-bottom:0!important;padding:0!important;
  opacity:0!important;visibility:hidden!important;overflow:hidden!important;pointer-events:none!important;
  transform:translateY(-6px)!important;
}
/* Plain-language status in place of the fast-spinning symbol. */
.bubble.typing, .appBody .bubble.typing, .freyaAppBody .bubble.typing {
  display:inline-flex!important;align-items:center!important;width:auto!important;max-width:90%!important;
  min-height:48px!important;height:auto!important;padding:13px 18px!important;
  border-radius:19px!important;font-size:14px!important;line-height:1.45!important;
  font-weight:550!important;letter-spacing:.01em!important;color:#765945!important;
  background:rgba(242,233,223,.85)!important;box-shadow:none!important;
  animation:freyaStatusBreath 2.3s ease-in-out infinite;
}
.bubble.typing::before, .bubble.typing::after,
.appBody .bubble.typing::before, .appBody .bubble.typing::after,
.freyaAppBody .bubble.typing::before, .freyaAppBody .bubble.typing::after {
  content:none!important;display:none!important;background:none!important;box-shadow:none!important;
  animation:none!important;
}
@keyframes freyaStatusBreath{0%,100%{opacity:1}50%{opacity:.68}}
/* Preserve the TWO original outline rings (their colour, positions and motion).
 * Keep one additional FILLED, blurred radial-glow sphere, never an outline. */
.hero .motionField .orb{opacity:.91!important}
.hero .motionField .orb.oe{
  position:absolute;display:block;pointer-events:none;
  border:0!important;box-shadow:none!important;border-radius:50%;
  z-index:0;filter:blur(1.6px);transform:translate3d(0,0,0);
}
.hero .motionField .orb.oe{
  width:clamp(190px,36vw,470px);height:clamp(190px,36vw,470px);
  left:5%;bottom:-6%;
  background:radial-gradient(circle at 47% 43%,rgba(179,137,104,.43) 0%,rgba(191,149,116,.24) 38%,rgba(213,184,158,.1) 63%,transparent 76%);
  animation:freyaSoftOrbA 16s ease-in-out infinite alternate;
}
@keyframes freyaSoftOrbA{0%{transform:translate3d(-14px,-17px,0) scale(.94)}100%{transform:translate3d(35px,28px,0) scale(1.09)}}
@media (max-width:560px){
 .hero .motionField .orb.oe{left:-12%;bottom:1%}
}

@media (prefers-reduced-motion:reduce){
  .bubble.typing,.appBody .bubble.typing,.freyaAppBody .bubble.typing,
  .hero .motionField .orb.oe{animation:none!important}
  .suggestions,.promptGrid{transition:none!important}
}

/* Keep the ORIGINAL outline rings; centre the remaining, filled soft orb. */
.hero .motionField .orb.oe{left:50%!important;right:auto!important;bottom:-3%!important;animation:freyaCentredSphere 17s ease-in-out infinite alternate!important}
@keyframes freyaCentredSphere{
 from{transform:translateX(-50%) translateY(-14px) scale(.94)}
 to{transform:translateX(-50%) translateY(22px) scale(1.08)}
}
@media(max-width:560px){.hero .motionField .orb.oe{left:50%!important;bottom:-2%!important;width:min(75vw,340px)!important;height:min(75vw,340px)!important}}
/* Plus tool control INSIDE the composer, not a separate toolbar. */
.freyaLimits{display:none!important}
.freyaToolMenu{position:relative;z-index:25;min-width:40px;flex:0 0 40px}
.freyaToolMenu summary{display:grid!important;place-items:center!important;box-sizing:border-box!important;width:40px!important;height:40px!important;padding:0!important;margin:0!important;border:1px solid rgba(118,89,69,.19)!important;border-radius:50%!important;background:rgba(247,239,231,.86)!important;color:#4e3c31!important;font-size:0!important;line-height:0!important;list-style:none!important;box-shadow:0 0 0 2px rgba(255,253,250,.62) inset!important;cursor:pointer}
.freyaToolMenu summary::before{content:''!important;display:block!important;width:24px;height:24px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;transform:none;transition:transform .2s ease!important}
.freyaToolMenu summary::after{content:none!important;display:none!important}
.freyaToolMenu[open] summary{background:#e5d3c3!important;border-color:#ba9980!important}
.freyaToolMenu[open] summary::before{transform:rotate(45deg)}
.freyaToolMenu summary:focus-visible{outline:2px solid #765945!important;outline-offset:3px!important}
.freyaToolMenu .freyaToolPanel{z-index:50!important;min-width:225px!important}
/* Homepage: PDF upload moved into the menu; keep a distinct input and Send control. */
.homeChat .composer:has(> .freyaToolMenu){grid-template-columns:40px minmax(0,1fr) 40px auto!important;gap:7px!important}
.homeChat .composer > .freyaToolMenu{grid-column:1;grid-row:1}
.homeChat .composer > #chatInput{grid-column:2;grid-row:1}
.homeChat .composer > .freyaRecord{grid-column:3;grid-row:1;margin:0}
.homeChat .composer > #sendBtn{grid-column:4;grid-row:1}
/* Existing full chat already contains its menu inside the composer. */
.freyaToolMenu,.appBody .freyaToolMenu{min-width:48px;flex-basis:48px}
.freyaToolMenu summary,.appBody .appComposer .freyaToolMenu summary{width:40px!important;height:40px!important}
.homeChat .composer:has(> .freyaToolMenu){grid-template-columns:40px minmax(0,1fr) 44px auto!important}
.appBody .freyaRecord,.appBody .appComposer .roundSend{width:44px!important;height:44px!important}
.appBody .appComposer{grid-template-columns:minmax(0,1fr) 44px 48px!important}
.freyaAnswerActions button,.freyaToolPanel button{min-height:44px!important;font-size:13px!important}
.fileCard{padding:16px 18px!important;min-height:64px;border:1px solid rgba(118,89,69,.17)}
.fileCard span{font-size:13px!important;display:inline-block;margin-top:5px}
@media(max-width:410px){.homeChat .composer:has(> .freyaToolMenu){gap:4px!important;padding:7px!important}.homeChat .composer > #sendBtn{padding-inline:10px!important}}
/* Early-access invitation stays inside the existing Approach section. */
.freyaEarlyAccess{position:relative;z-index:2;margin-top:46px;padding:25px 0 2px;border-top:1px solid rgba(236,219,203,.22);display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);gap:22px;align-items:center}
.freyaEarlyEyebrow{display:block;font-size:10px;letter-spacing:.18em;font-weight:750;color:#d9bba4;margin-bottom:10px}
.freyaEarlyAccess h3{font:400 clamp(25px,3.2vw,36px)/1.12 Georgia,serif;letter-spacing:-.03em;margin:0 0 9px;color:#fffdfa}
.freyaEarlyAccess p{margin:0;font-size:14px!important;line-height:1.55!important;color:#d6c6b9}
.freyaEarlyForm{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.freyaEarlyForm input[type=email]{flex:1 1 170px;min-width:0;height:45px;border-radius:12px;border:1px solid rgba(233,208,189,.38);background:rgba(255,253,250,.98);font:inherit;font-size:14px;padding:0 13px;outline:none}
.freyaEarlyForm input[type=email]:focus{outline:2px solid #d4ae90;outline-offset:2px}
.freyaEarlyForm button{background:#eee3d8;color:#352821;border:0;border-radius:12px;min-height:45px;padding:0 16px;font-weight:700;cursor:pointer}
.freyaEarlyForm button:disabled{cursor:default;opacity:.83}
.freyaEarlyNote{font-size:11px;line-height:1.4;color:#d9c7b8;flex:1 0 100%;min-height:16px}
.freyaEarlyNote a{color:#f4dfcd;text-underline-offset:3px}
.freyaSrOnly,.freyaHoney{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.freyaEarlyForm.is-subscribed input{display:none}
#real-life .scenarioGrid .quote{font-size:clamp(21px,2.4vw,25px);line-height:1.23}
@media(max-width:760px){.freyaEarlyAccess{grid-template-columns:1fr;gap:18px;margin-top:30px;padding-top:23px}.freyaEarlyForm{max-width:520px}}
@media(prefers-reduced-motion:reduce){.hero .motionField .orb.oe{animation:none!important;transform:translateX(-50%)!important}.freyaToolMenu summary::before{transition:none!important}}

/* Compact Why Freya: retain the actual translated feature content, without the second four-card page. */
body:not(.appBody) section.section:has(> .wrap > .featureGrid){display:none!important}
#why .freyaWhyCompact{
  grid-column:1 / -1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:clamp(18px,4vw,65px);row-gap:22px;
  border-top:1px solid rgba(118,89,69,.15);padding-top:27px;margin-top:9px;
}
#why .freyaWhyPoint{display:grid;gap:5px;min-width:0;align-content:start}
#why .freyaWhyPoint h3{font:500 clamp(18px,2vw,23px)/1.24 Georgia,serif;letter-spacing:-.022em;color:var(--ink,#29231f);margin:0}
#why .freyaWhyPoint p{font-size:14px;line-height:1.54;color:var(--muted,#74685f);margin:0;max-width:52ch}
@media(max-width:640px){#why .freyaWhyCompact{grid-template-columns:1fr;row-gap:18px;padding-top:22px;margin-top:0}}

/* An understated pen-drawn flourish under the already translated "It's free." */
.hero .freyaFreeDraw{position:relative;width:max-content;max-width:100%;margin-inline:auto;isolation:isolate;display:grid;justify-items:center}
.hero .freyaFreeDraw .freeNote{position:relative;z-index:1}
.hero .freyaFreeStroke{position:absolute;top:50%;left:50%;width:162px;height:54px;max-width:125%;transform:translate(-50%,-36%);overflow:visible;pointer-events:none}
.hero .freyaFreeStroke path{stroke:var(--cocoa,#765945);stroke-width:2.4;fill:none;stroke-linecap:round;opacity:0;stroke-dasharray:210;stroke-dashoffset:210}
.hero .freyaFreeDraw.is-drawn .freyaFreeStroke path{animation:freyaSignatureDraw 2.0s cubic-bezier(.25,.7,.2,1) .25s both}
@keyframes freyaSignatureDraw{0%{stroke-dashoffset:210;opacity:0}7%{opacity:.85}100%{stroke-dashoffset:0;opacity:.94}}

/* Three placements share EXACTLY the existing Freya logo artwork and drawing mask. */
.freyaBloomMark{position:absolute;display:grid;place-items:center;width:120px;aspect-ratio:1;pointer-events:none;isolation:isolate;overflow:visible;transform:translateZ(0)}
.freyaBloomSvg{display:block;width:100%;height:100%;overflow:visible}
.freyaBloomMark .freyaGrowStroke{stroke-dasharray:550;stroke-dashoffset:550;opacity:0}
.freyaBloomMark .freyaGrowFinal{opacity:0}
.freyaBloomMark.is-drawn .growStem{animation:freyaBloomDraw 5.5s ease-in-out both}
.freyaBloomMark.is-drawn .growLeft{animation:freyaBloomDraw 5.5s ease-in-out .3s both}
.freyaBloomMark.is-drawn .growInner{animation:freyaBloomDraw 5.5s ease-in-out .65s both}
.freyaBloomMark.is-drawn .growRight{animation:freyaBloomDraw 5.5s ease-in-out .9s both}
.freyaBloomMark.is-drawn .growFrame{animation:freyaBloomDraw 5.5s ease-in-out 1.25s both}
.freyaBloomMark.is-drawn .freyaGrowFinal{animation:freyaBloomFinal 7.2s linear both}
.freyaBloomMark.is-drawn .freyaBloomSvg{animation:freyaBloomRise 7.2s ease-in-out both}
@keyframes freyaBloomDraw{0%,3%{stroke-dashoffset:550;opacity:0}6%{opacity:1}50%,100%{stroke-dashoffset:0;opacity:1}}
@keyframes freyaBloomFinal{0%,72%{opacity:0}83%,100%{opacity:1}}
@keyframes freyaBloomRise{0%{transform:translateY(7px) scale(.91);opacity:.68}72%,100%{transform:none;opacity:1}}
/* On the dark Approach panel, turn the original dark linework into warm cream. */
.darkStatement .freyaEarlyCopy{position:relative}
.darkStatement .freyaBloomMark--approach{top:-25px;right:1%;width:clamp(76px,10vw,115px);filter:invert(1) sepia(.12) saturate(.3);opacity:.85;z-index:1}
.darkStatement .freyaEarlyCopy > :not(.freyaBloomMark){position:relative;z-index:2}
/* The existing footer and legal copy are preserved; the illustration occupies otherwise blank right-hand space. */
footer .wrap.foot{position:relative;min-height:126px;padding-right:clamp(105px,20vw,170px)}
footer .freyaBloomMark--footer{top:3px;right:4px;width:clamp(104px,14vw,140px);opacity:.88}
@media(max-width:760px){
  .darkStatement .freyaBloomMark--approach{width:94px;top:-39px;right:0;opacity:.72}
  footer .wrap.foot{min-height:138px;padding-right:min(36vw,142px)!important}
  footer .freyaBloomMark--footer{width:min(31vw,129px);top:6px;right:4px}
}
@media(prefers-reduced-motion:reduce){
  .hero .freyaFreeStroke path{stroke-dashoffset:0!important;opacity:.94!important;animation:none!important}
  .freyaBloomMark .freyaGrowStroke{stroke-dashoffset:0!important;opacity:1!important;animation:none!important}
  .freyaBloomMark .freyaGrowFinal{opacity:1!important;animation:none!important}
  .freyaBloomMark .freyaBloomSvg{animation:none!important;transform:none!important;opacity:1!important}
}

/* Oct 13 — Safari keyboard-safe chat and restrained page snapping. */
@media(max-width:760px) and (pointer:coarse){
  body.freyaChatFocus{overscroll-behavior:none!important}
  body.freyaChatFocus .homeChat{
    position:fixed!important;
    z-index:99990!important;
    top:var(--freya-mobile-visual-top,0px)!important;
    left:0!important;right:0!important;
    width:100vw!important;max-width:100vw!important;
    box-sizing:border-box!important;
    height:var(--freya-mobile-visual-height,100dvh)!important;
    max-width:none!important;
    margin:0!important;padding:8px 10px!important;
    display:flex!important;align-items:stretch!important;
    opacity:1!important;transform:none!important;
    transition:none!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:rgba(251,247,241,.99)!important;
  }
  body.freyaChatFocus .homeChat .chatCard{
    display:flex!important;flex-direction:column!important;
    flex:1 1 auto!important;width:100%!important;
    min-height:0!important;height:100%!important;
    padding:12px!important;overflow:hidden!important;
    box-shadow:none!important;
  }
  body.freyaChatFocus .homeChat .chatTop{flex:0 0 auto!important;margin-bottom:10px!important}
  body.freyaChatFocus .homeChat #messages{
    flex:1 1 auto!important;min-height:0!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    padding:3px 2px 12px;
    scrollbar-width:thin;
  }
  body.freyaChatFocus .homeChat .suggestions,
  body.freyaChatFocus .homeChat .promptGrid{display:none!important}
  body.freyaChatFocus .homeChat #attachments,
  body.freyaChatFocus .homeChat #chatForm,
  body.freyaChatFocus .homeChat .toolHint,
  body.freyaChatFocus .homeChat .freyaVoiceStatus,
  body.freyaChatFocus .homeChat .freyaAnonymous{flex-shrink:0!important}
  body.freyaChatFocus .homeChat .toolHint{font-size:10px!important;margin-top:5px!important}
  body.freyaChatFocus .homeChat .freyaAnonymous{margin:4px 0!important}
  body.appBody.freyaChatFocus .appShell,
  body.appBody.freyaChatFocus .chatApp{
    height:var(--freya-mobile-visual-height,100dvh)!important;
  }
  body.appBody.freyaChatFocus .appShell{
    position:fixed!important;top:var(--freya-mobile-visual-top,0px)!important;
    left:0!important;right:0!important;width:100%!important;
  }
  body.appBody.freyaChatFocus .appStage{min-height:0!important}
  body.appBody.freyaChatFocus .appComposerDock{bottom:0!important}
}
.freyaChatExit{
  display:none;border:1px solid rgba(118,89,69,.15);
  border-radius:999px;padding:7px 13px;
  background:rgba(244,236,227,.8);color:var(--cocoa,#765945);
  font:600 12px var(--freya-ui-font,system-ui);cursor:pointer;
}
body.freyaChatFocus .freyaChatExit{display:inline-flex;align-items:center}
/* Reserve identical space for each short loading word: no jump between labels. */
.bubble.typing,.appBody .bubble.typing,.freyaAppBody .bubble.typing{
  width:min(84vw,278px)!important;min-width:0!important;
  height:58px!important;min-height:58px!important;
  padding:14px 18px!important;
  display:flex!important;align-items:center!important;
  justify-content:flex-start!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  border-radius:19px!important;
  transition:background-color .24s ease!important;
}
.freyaThinkingLabel{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  animation:freyaThinkingEase 2.3s ease-in-out infinite;
  will-change:opacity;
}
@keyframes freyaThinkingEase{0%,100%{opacity:.72}46%{opacity:1}}
/* Smooth arrival of the answer, rather than an abrupt expanding status pill. */
.bubble.assistant:not(.typing){transition:background-color .2s ease,border-radius .25s ease}
/* Smaller monochrome blossom sits on the Approach divider, not in the text. */
.darkStatement .freyaBloomMark--approach{
  width:clamp(54px,7vw,68px)!important;
  height:auto!important;aspect-ratio:1!important;
  top:-53px!important;right:1%!important;
  opacity:.84!important;
}
@media(max-width:760px){
  .darkStatement .freyaBloomMark--approach{
    width:62px!important;top:-51px!important;right:0!important;
  }
}
/* One continuous pen stroke per branch: no long pauses or delayed finish. */
.freyaBloomMark--approach.is-drawn .freyaGrowStroke{
  animation:freyaBloomFastStroke 2.1s linear both!important;
}
.freyaBloomMark--approach.is-drawn .growLeft{animation-delay:.07s!important}
.freyaBloomMark--approach.is-drawn .growInner{animation-delay:.13s!important}
.freyaBloomMark--approach.is-drawn .growRight{animation-delay:.2s!important}
.freyaBloomMark--approach.is-drawn .growFrame{animation-delay:.27s!important}
.freyaBloomMark--approach.is-drawn .freyaGrowFinal{
  animation:freyaBloomFastFinal 2.55s linear both!important;
}
.freyaBloomMark--approach.is-drawn .freyaBloomSvg{animation:none!important;transform:none!important;opacity:1!important}
@keyframes freyaBloomFastStroke{
  from{stroke-dashoffset:550;opacity:1}to{stroke-dashoffset:0;opacity:1}
}
@keyframes freyaBloomFastFinal{
  0%,89%{opacity:0}100%{opacity:1}
}
/* Mobile scrolling: never force snap positions or leave off-screen sections invisible.
   Browser-native momentum scrolling is more reliable than CSS scroll snapping on iOS. */
html.freyaPageSnap{scroll-snap-type:none!important}
.freyaSnapSection{scroll-snap-align:none!important;scroll-snap-stop:normal!important}
@media(hover:none) and (pointer:coarse){
  html{scroll-behavior:auto!important;scroll-snap-type:none!important}
  .reveal,.reveal:not(.in){opacity:1!important;transform:none!important}
  .reveal{transition:none!important}
  .reveal.in .sectionLabel{animation:none!important}
  body.freyaChatFocus{overscroll-behavior:none!important}
}
@media (prefers-reduced-motion:reduce){
  .freyaThinkingLabel{animation:none!important;opacity:1!important}
  .freyaBloomMark--approach .freyaGrowStroke{animation:none!important;stroke-dashoffset:0!important;opacity:1!important}
  .freyaBloomMark--approach .freyaGrowFinal{animation:none!important;opacity:1!important}
}

/* A short, unintrusive first-token reveal; streamed content remains immediately readable. */
.messages .bubble.assistant:not(:first-child):not(.typing){animation:freyaAnswerSettle .24s ease-out both}
@keyframes freyaAnswerSettle{from{opacity:.75;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.messages .bubble.assistant:not(:first-child):not(.typing){animation:none!important}}

/* Full chat: a single native momentum scroll area, with the composer always visible.
   The scroll stage is a flex child; do not place the dock over response text. */
body.appBody{height:100dvh!important;overflow:hidden!important;overscroll-behavior:none!important}
body.appBody .appShell{height:100dvh!important;min-height:0!important;overflow:hidden!important}
body.appBody .chatApp{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
body.appBody .appTop{flex:0 0 auto!important}
body.appBody .appStage{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;scroll-behavior:auto!important;padding-bottom:22px!important;touch-action:pan-y!important}
body.appBody .appInner{min-height:0!important}
body.appBody .appMessages{padding-bottom:24px!important;overflow:visible!important}
body.appBody .appComposerDock{position:relative!important;inset:auto!important;bottom:auto!important;flex:0 0 auto!important;z-index:9!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important;background:linear-gradient(180deg,rgba(251,247,241,.94),#fbf7f1 28%)!important}
body.appBody .appComposerWrap{max-height:none!important;overflow:visible!important}
body.appBody .appComposer textarea{max-height:min(170px,20dvh)!important;overflow-y:auto!important}
body.appBody #attachments{max-height:10dvh;overflow-y:auto}
body.appBody .freyaProgress,body.appBody .freyaVoiceStatus{max-height:8dvh;overflow-y:auto}
body.appBody.freyaChatFocus .appShell,body.appBody.freyaChatFocus .chatApp{height:var(--freya-mobile-visual-height,100dvh)!important}
@media(max-width:760px){
 body.appBody .appTop{min-height:58px!important;height:auto!important}
 body.appBody .appStage{padding:10px 15px 18px!important}
 body.appBody .appComposerDock{padding:8px 10px max(9px,env(safe-area-inset-bottom))!important}
 body.appBody .appComposerWrap{max-height:none!important}
}
.freyaSources{max-width:100%;font-size:12px;color:var(--muted,#74685f)}
.freyaAnswerActions{align-items:flex-start}
.freyaSources summary{cursor:pointer;min-height:44px;display:flex;align-items:center;padding:0 12px;border-radius:12px;background:var(--cream,#f2e9df)}
.freyaSources summary:focus-visible{outline:2px solid #765945;outline-offset:2px}
.freyaSources a{display:block;min-height:44px;padding:12px;color:var(--ink,#29231f);overflow-wrap:anywhere}
.freyaWellnessCards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.freyaWellnessCards button{min-height:76px;text-align:start;padding:16px;border:1px solid var(--line,#e5d8cd);border-radius:18px;background:var(--white,#fffdfa);color:var(--ink,#29231f);cursor:pointer;font:inherit}
.freyaWellnessCards strong,.freyaWellnessCards span{display:block}
.freyaWellnessCards span{font-size:13px;line-height:1.5;margin-top:6px;color:var(--muted,#74685f)}
.freyaWellnessCards button:focus-visible{outline:2px solid #765945;outline-offset:3px}
.freyaWellnessNote,.freyaWellnessChat small{font-size:12px;line-height:1.6;color:var(--muted,#74685f)}
.freyaWellnessChat{margin-top:24px;max-width:640px;margin-inline:auto}
.freyaWellnessChat h2{font:500 18px/1.4 var(--freya-ui-font,inherit);text-align:center}
@media(max-width:560px){.freyaWellnessCards{grid-template-columns:1fr;gap:8px;margin:12px 0}.freyaWellnessCards button{min-height:64px;padding:12px}.freyaWellnessChat{margin-top:16px}}
.freyaPdfEvidence{max-width:760px}.freyaPdfEvidence p{font-size:12px;line-height:1.5;margin:10px 0}.freyaPdfEvidence>div{padding:10px 0;border-top:1px solid rgba(118,89,69,.12)}.freyaPdfEvidence blockquote{margin:5px 0 0;padding-left:12px;border-left:2px solid rgba(118,89,69,.3);font-size:13px;line-height:1.6;overflow-wrap:anywhere}

/* Visible, quiet glass composer; solid fallback keeps text readable. */
.homeChat .composer,.appBody .appComposer{background:rgba(255,255,255,.82)!important;border:1px solid rgba(96,77,61,.35)!important;box-shadow:0 6px 24px rgba(70,52,38,.09)!important;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
#chatInput::placeholder{color:#655f59!important;opacity:1!important}
.homeChat .composer:focus-within,.appBody .appComposer:focus-within{border-color:#765945!important;box-shadow:0 0 0 3px rgba(118,89,69,.12)!important}
@media(prefers-reduced-transparency:reduce){.homeChat .composer,.appBody .appComposer{background:#fff!important;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Compact launch composer and language selector. */
.homeChat .composer{background:rgba(255,255,255,.92)!important;border:1.5px solid #a78c76!important;border-radius:22px!important;padding:12px!important;box-shadow:0 8px 28px rgba(70,52,38,.12)!important}
.homeChat #chatInput{font-size:16px!important;min-width:0;padding:12px 4px!important;color:#29231f}
.homeChat #sendBtn{min-height:44px!important;padding:10px 16px!important}
.homeChat .toolHint{font-size:12px!important;margin-top:10px!important}
.homeChat .suggestions button{font-size:14px!important;padding:10px 15px!important;min-height:44px}
.siteHeader .langSelect{width:100px!important;max-width:100px!important;min-width:0!important;font-size:12px!important;padding:8px 10px!important;height:36px!important}
.freyaFeatureLinks{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:28px;font-size:14px}
.freyaFeatureLinks a{padding:12px 16px;border:1px solid #cbb9a9;border-radius:999px;background:rgba(255,255,255,.72)}
.freyaFeatureLinks a:hover{background:#f2e9df}
.freyaFeatureLinks a:focus-visible{outline:2px solid #765945;outline-offset:3px}
@media(max-width:560px){.siteHeader .langSelect{width:82px!important;max-width:82px!important;height:34px!important;padding:7px 8px!important}.navRight{gap:8px!important}.homeChat .chatTopRight .online{display:none!important}.homeChat .chatTopRight{gap:5px!important}.homeChat .miniLink{font-size:11px!important;padding:8px 10px!important}.homeChat .composer{padding:9px!important;gap:6px!important}.homeChat .suggestions{gap:7px!important}.homeChat .messages:not(:has(.user)){min-height:150px!important;max-height:210px!important}.freyaFeatureLinks{gap:8px;font-size:13px}.freyaFeatureLinks a{padding:10px 13px}}
.siteHeader .langSelect{text-align:center!important;text-align-last:center!important}
html:has(.hero .motionField),body:has(.hero .motionField){overflow-x:clip!important}
@media(max-width:900px){
 .hero:has(>.motionField){min-height:calc(100svh - 76px)!important}
 .hero:has(>.motionField)+.homeChat{margin-top:0!important}
 .hero .motionField{left:calc(50% - 50vw)!important;right:auto!important;width:100vw!important;contain:paint!important;overflow:hidden!important}
 .hero .motionField .oa{left:-64px!important;top:3%!important;width:max(62vw,220px)!important;height:max(62vw,220px)!important}
 .hero .motionField .od{right:-64px!important;top:10%!important;width:max(62vw,220px)!important;height:max(62vw,220px)!important}
 .hero .motionField .ob{right:-90px!important}
 .siteHeader .navBar{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;column-gap:6px!important}
 .siteHeader .navBar>.brand{grid-column:1;grid-row:1;justify-self:start}
 .siteHeader .navLinks{display:none!important}
 .siteHeader .navRight{display:contents!important}
 .siteHeader .langSelect{grid-column:2;grid-row:1;justify-self:center;padding-inline:6px!important}
 .siteHeader .navCta{grid-column:3;grid-row:1;justify-self:end;white-space:nowrap}
}
@media(max-width:560px){.hero:has(>.motionField){min-height:calc(100svh - 68px)!important}}


/* Answer sources: accessible mobile bottom sheet */
.freyaAnswerActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.freyaAnswerActions>button{cursor:pointer}
.freyaSourceOverlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.58);display:flex;align-items:flex-end;justify-content:center}
.freyaSourceSheet{box-sizing:border-box;width:min(100%,680px);max-height:min(78dvh,760px);overflow:auto;overscroll-behavior:contain;background:var(--white,#fffdfa);color:var(--ink,#292522);border-radius:26px 26px 0 0;padding:16px 18px max(24px,env(safe-area-inset-bottom));box-shadow:0 -12px 50px rgba(0,0,0,.2)}
.freyaSourceHeader{display:flex;align-items:center;justify-content:space-between;padding:4px 2px 16px;border-bottom:1px solid rgba(120,100,80,.15)}
.freyaSourceHeader strong{font-size:19px}
.freyaSourceHeader button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:10px}
.freyaSourceRow{display:flex;gap:12px;align-items:flex-start;padding:17px 4px;border-bottom:1px solid rgba(120,100,80,.12);color:inherit;text-decoration:none;overflow-wrap:anywhere}
.freyaSourceRow img{margin-top:3px;border-radius:5px;flex:none}
.freyaSourceRow>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.freyaSourceRow small{opacity:.65;font-size:12px}
.freyaSourceRow>span>span{font-size:15px;line-height:1.45}
.bubble.assistant em{font-style:italic}.bubble.assistant strong{font-weight:700}.bubble.assistant del{text-decoration:line-through}
.bubble.assistant a{overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
@media(min-width:720px){.freyaSourceOverlay{align-items:center}.freyaSourceSheet{border-radius:24px;max-height:75dvh}}


.freyaWritingLibrary{position:relative;z-index:5;align-self:flex-start;margin:5px 0 7px}
.freyaWritingTrigger{font:inherit;font-size:12px;cursor:pointer;border:1px solid rgba(118,89,69,.22);border-radius:999px;padding:7px 12px;background:var(--white,#fffdfa);color:inherit}
.freyaWritingMenu{position:absolute;bottom:calc(100% + 8px);left:0;box-sizing:border-box;width:min(310px,calc(100vw - 36px));max-height:min(50dvh,390px);overflow-y:auto;overscroll-behavior:contain;border:1px solid rgba(118,89,69,.2);border-radius:16px;background:var(--white,#fffdfa);box-shadow:0 12px 35px rgba(0,0,0,.14);padding:6px}
.freyaWritingMenu[hidden]{display:none}
.freyaWritingMenu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;padding:11px 12px;border-radius:9px;font:inherit;font-size:13px;cursor:pointer}
.freyaWritingMenu button:hover,.freyaWritingMenu button:focus-visible{background:rgba(118,89,69,.1)}

