/* Fixed application shell with independent, horizontal pages. */
html:has(body.app-shell),body.app-shell{height:100%;width:100%;margin:0;overflow:hidden;overscroll-behavior:none}
body.app-shell{height:100dvh;display:grid;grid-template-rows:80px minmax(0,1fr) calc(34px + env(safe-area-inset-bottom));background:#fff}
body.app-shell [hidden]{display:none!important}
.app-shell .brand-header{height:80px;position:relative;z-index:20;flex-shrink:0;align-self:stretch;margin-inline:18px;background:#fff}
.app-shell>footer{height:100%;max-width:none;width:100%;margin:0;padding:8px 18px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;align-items:center;font-size:9px;background:#fff;z-index:20;border-top:1px solid #f0edf4}
#app-viewport{position:relative;min-height:0;height:100%;width:100%;max-width:1050px;padding:0;overflow:hidden;margin:0 auto;isolation:isolate}
#app-viewport>section{position:absolute;inset:0;display:flex;flex-direction:column;width:100%;max-width:700px;height:100%;min-height:0;margin:0 auto;padding:10px 24px 6px;background:#fff;box-sizing:border-box;overflow:hidden;will-change:transform}
#app-viewport .back{flex-shrink:0;min-height:40px;align-self:flex-start;margin:0;font-size:11px;padding:0;line-height:1.6}
#app-viewport .flow-progress,#app-viewport .intent-progress,#opening .progress{flex-shrink:0;min-height:14px;align-items:center;margin:5px 0 0}
#app-viewport .journey-head{flex-shrink:0;line-height:1.7}
#opening{justify-content:space-between;align-items:center;text-align:center;gap:4px}
#opening .opening-intro{flex-shrink:0;width:100%}
#opening h1{font-size:clamp(23px,3.5dvh,33px);line-height:1.6;max-width:670px;margin:3px auto 0;letter-spacing:-.45px}
#opening .universe{width:min(100%,360px);height:auto;min-height:235px;max-height:390px;flex:1;margin:0 auto;grid-row:auto;grid-column:auto}
#opening .core{top:50%;left:50%;transform:translate(-50%,-50%);width:112px;height:112px}
#opening .mark,#opening .mark img{width:112px;height:112px}
#opening .route[data-path=crop]{top:9%;right:12%;bottom:auto;left:auto}
#opening .route[data-path=health]{top:9%;left:12%;bottom:auto;right:auto}
#opening .route[data-path=home]{top:42%;left:2%;bottom:auto;right:auto}
#opening .route[data-path=energy]{top:42%;right:2%;bottom:auto;left:auto}
#opening .route[data-path=industry]{bottom:10%;right:13%;top:auto;left:auto}
#opening .route[data-path=construction]{bottom:8%;left:13%;top:auto;right:auto}
#opening .prompt{flex-shrink:0;font-size:11px;line-height:1.7;margin:0;text-align:center}
#farm-intent .intent-heading{margin:0;flex-shrink:0}#farm-intent .intent-heading h2{font-size:29px;line-height:1.5;margin:2px 0 0}
#farm-intent .intent-options{flex:1;width:min(100%,360px);height:auto;min-height:260px;max-height:430px;margin:4px auto}
#farm-intent .intent-option{padding:3px 7px;gap:3px}
#farm-intent .intent-option[data-intent=solve]{top:2px;right:8px}
#farm-intent .intent-option[data-intent=improve]{bottom:2px;left:7px}
#farm-intent .intent-symbol{width:clamp(70px,10.5dvh,94px);height:clamp(70px,10.5dvh,94px)}
#farm-intent .intent-text strong{font-size:19px;line-height:1.6}#farm-intent .intent-text small{font-size:11px;line-height:1.7}
#farm-intent .intent-hint{flex-shrink:0;margin:2px 0 0;font-size:10px;line-height:1.6}
#intent-next h2{font-size:26px;line-height:1.55;margin:3px 0 0;flex-shrink:0}
#intent-next #next-title.quality-explore-title{font-size:24px;line-height:1.5}
#intent-next .stage-intro{flex-shrink:0;font-size:11px;line-height:1.7;margin:3px 0 4px}
#intent-next:has(.orbital-choices) .stage-intro{display:none}
#intent-next .topic-choices:not(.orbital-choices){flex:1;min-height:0;align-content:center;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(72px,1fr);gap:3px 8px;margin:5px 0 0;max-height:470px}
#intent-next .topic-choices:not(.orbital-choices) .topic-button{min-height:0;padding:4px 2px;gap:3px;font-size:12px;line-height:1.6;justify-content:center}
#intent-next .topic-choices:not(.orbital-choices) .topic-mini-icon{width:43px;height:43px}
#intent-next .orbital-choices{flex:1;min-height:0;height:auto;max-height:none;width:calc(100% + 48px);max-width:none;margin:0 -24px;container-type:size;--orbit-rx:calc((100cqw - 90px)/2);--orbit-ry:calc((100cqh - 110px)/2);overflow:clip}
#intent-next .orbital-choices:before{height:calc(100% - 110px);width:calc(100% - 90px)}
#intent-next .orbital-choices:after{height:calc(100% - 130px);width:calc(100% - 105px);transform:translate(-50%,-50%) rotate(8deg)}
#intent-next .orbital-choices .topic-button{width:90px;min-height:0;height:auto;margin:-42px 0 0 -45px;padding:3px 1px;gap:3px;font-size:12px;line-height:1.6}
#intent-next .orbital-choices .topic-mini-icon{width:44px;height:44px}
#intent-next .orbital-choices .topic-button>span:last-child{max-width:74px;line-height:1.6}
#intent-next .topics-orbit-core{width:84px;height:108px}#intent-next .topics-orbit-core img{width:78px;height:102px}
#topic-screen .detail-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:2px 2px 8px;scroll-behavior:auto}
#topic-screen #intent-detail{margin:0;padding:0;border:0;background:none;border-radius:0}
#topic-screen #intent-detail:before{display:none}
#topic-screen .topic-detail-head{margin:0 0 5px;gap:9px}
#topic-screen .topic-detail h3{font-size:23px;line-height:1.6}
#topic-screen .stage-continue{flex-shrink:0;min-height:46px;margin:6px 0 0}
#registration .registration-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 2px 7px;scrollbar-width:thin}
#registration h2{font-size:25px;line-height:1.5;margin:2px 0 0}#registration .registration-intro{font-size:11px;line-height:1.7;margin:4px 0 0}
#registration #register-form{gap:7px;margin-top:8px}
#registration #register-form>label{font-size:12px}
#registration #register-form .register-consent{font-size:11px}
#registration #register-form input:not([type=checkbox]){min-height:42px}
#registration .dial-trigger{min-height:42px}
#registration .prepared-request{padding-bottom:10px}
#journey{overflow-y:auto!important;scrollbar-width:thin}#journey .journey-grid{gap:15px}
@media(max-width:370px){#app-viewport>section{padding-inline:18px}#opening h1{font-size:24px}#intent-next h2{font-size:24px}#intent-next #next-title.quality-explore-title{font-size:22px}#intent-next .orbital-choices{width:calc(100% + 36px);margin-inline:-18px}#intent-next .topic-choices:not(.orbital-choices) .topic-button{font-size:11px}#topic-screen .topic-detail h3{font-size:21px}#registration h2{font-size:23px}}
@media(max-height:680px){#app-viewport>section{padding-top:4px;padding-bottom:3px}#opening h1{font-size:23px;line-height:1.5}#opening .universe{min-height:200px}#opening .mark,#opening .mark img,#opening .core{width:96px;height:96px}#farm-intent .intent-heading h2{font-size:26px}#farm-intent .intent-symbol{width:65px;height:65px}#farm-intent .intent-text strong{font-size:17px}#farm-intent .intent-text small{font-size:10px}#farm-intent .intent-options{min-height:235px}#intent-next h2{font-size:23px}#intent-next .orbital-choices .topic-mini-icon{width:38px;height:38px}#intent-next .orbital-choices .topic-button{font-size:11px}#intent-next .orbital-choices .topic-button>span:last-child{max-width:70px}#intent-next .topics-orbit-core img{width:65px;height:85px}}
@media(max-height:480px){body.app-shell{grid-template-rows:65px minmax(0,1fr) 28px}.app-shell .brand-header{height:65px}.header-flags.waving-flags{height:58px}#app-viewport>section{overflow-y:auto}#opening .universe{flex:none;height:230px}#farm-intent .intent-options{flex:none;height:290px}#intent-next .orbital-choices{flex:none;height:390px}#intent-next .topic-choices:not(.orbital-choices){flex:none;grid-auto-rows:80px}#topic-screen,#registration{overflow:hidden!important}}

#farm-intent .intent-hint{margin-top:auto}#intent-next>.flow-progress{margin-top:auto}
#farm-intent .intent-options{max-height:none}

/* A compact, centred pair with the animated field retained behind it. */
#farm-intent .intent-options{flex:1 1 380px;min-height:285px;max-height:400px;margin:auto auto}
#farm-intent .intent-option[data-intent=solve]{top:16px;right:0;left:0;width:100%}
#farm-intent .intent-option[data-intent=improve]{bottom:16px;right:0;left:0;width:100%}
#farm-intent .intent-symbol{width:86px;height:86px}
#farm-intent .intent-hint{margin-top:0}
@media(max-height:680px){#farm-intent .intent-options{min-height:260px;max-height:310px}#farm-intent .intent-symbol{width:66px;height:66px}#farm-intent .intent-option[data-intent=solve]{top:10px}#farm-intent .intent-option[data-intent=improve]{bottom:10px}}

#farm-intent .intent-options{flex:0 1 360px;min-height:285px;max-height:360px;margin:14px auto 0}
#farm-intent .intent-hint{margin-top:auto}
@media(max-height:680px){#farm-intent .intent-options{flex-basis:290px;min-height:250px;max-height:290px;margin-top:8px}}

/* Three open choices, sharing the same animated field. */
#farm-intent .intent-options{display:flex;flex-direction:column;justify-content:space-between;gap:9px;flex:1;min-height:0;max-height:550px;margin:12px auto 0;padding:5px 0}
#farm-intent .intent-option[data-intent]{position:relative;inset:auto;width:100%;padding:2px 5px;flex-shrink:0;gap:1px}
#farm-intent .intent-symbol{width:70px;height:70px}
#farm-intent .intent-text{gap:1px}#farm-intent .intent-text strong{font-size:18px}
#farm-intent .intent-hint{margin-top:auto;padding-top:8px}
#farm-intent .intent-option[data-intent=share]{animation:intentFloat 8s ease-in-out infinite;animation-delay:-5s}
@media(max-height:700px){#farm-intent .intent-options{margin-top:4px;gap:3px;padding:0}#farm-intent .intent-symbol{width:51px;height:51px}#farm-intent .intent-text strong{font-size:16px}#farm-intent .intent-text small{font-size:9px}#farm-intent .intent-heading h2{font-size:24px}#farm-intent .intent-hint{padding-top:3px;font-size:9px}}

/* Keep the three intentions together rather than stretching them vertically. */
#farm-intent .intent-options{flex:0 1 auto;height:450px;max-height:450px;min-height:0;justify-content:center;gap:20px;margin:14px auto 0;padding:4px 0}
#farm-intent .intent-symbol{width:66px;height:66px}
#farm-intent .intent-option[data-intent]{padding:2px 5px}
#farm-intent .intent-field{inset:4% 0;height:92%}
@media(max-height:700px){#farm-intent .intent-options{height:350px;max-height:350px;gap:12px;margin-top:8px;padding:2px 0}#farm-intent .intent-symbol{width:50px;height:50px}}

/* Fill the available stage while keeping the heading and choices balanced. */
#farm-intent .intent-heading{margin-top:16px}
#farm-intent .intent-options{flex:1 1 0;height:auto;max-height:none;min-height:0;justify-content:space-between;gap:8px;margin:12px auto 0;padding:10px 0 18px}
#farm-intent .intent-options:before{inset:0 -12px -28px;background:radial-gradient(ellipse at 34% 28%,#fff3cf,transparent 62%),radial-gradient(ellipse at 70% 78%,#f2e9f5,transparent 67%)}
#farm-intent .intent-field{inset:0;height:100%}
#farm-intent .intent-hint{margin-top:0;padding-top:5px}
@media(max-height:700px){#farm-intent .intent-heading{margin-top:9px}#farm-intent .intent-options{height:auto;max-height:none;margin-top:7px;gap:5px;padding:4px 0 9px}#farm-intent .intent-options:before{bottom:-20px}}

/* A compact near-circular orbit around the emblem, independent of screen height. */
#intent-next .orbital-choices{--orbit-rx:calc((100cqw - 94px)/2);--orbit-ry:min(calc(var(--orbit-rx) + 20px),calc((100cqh - 100px)/2))}
#intent-next .orbital-choices:before{width:calc(var(--orbit-rx)*2);height:calc(var(--orbit-ry)*2)}
#intent-next .orbital-choices:after{width:calc(var(--orbit-rx)*2 - 18px);height:calc(var(--orbit-ry)*2 - 18px)}
#intent-next .topics-orbit-core{width:98px;height:125px}
#intent-next .topics-orbit-core img{width:88px;height:114px}
@media(max-width:370px){#intent-next .orbital-choices{--orbit-rx:calc((100cqw - 86px)/2);--orbit-ry:min(calc(var(--orbit-rx) + 27px),calc((100cqh - 100px)/2))}#intent-next .topics-orbit-core img{width:76px;height:99px}}

#register-form input[name=name]::placeholder{font-size:13px;font-weight:300;color:#aaa3b0;opacity:1}

#farm-intent .intent-hint{position:relative;z-index:2;background:#fff;width:calc(100% + 48px);margin-inline:-24px;padding:7px 24px 2px}#farm-intent .intent-options:before{bottom:0}@media(max-width:370px){#farm-intent .intent-hint{width:calc(100% + 36px);margin-inline:-18px;padding-inline:18px}#farm-intent .intent-options:before{bottom:0}}

#opening .route:disabled{opacity:1;cursor:default;pointer-events:none}#opening .route:disabled:hover{transform:none}
