/* Homepage scene: keep scale tied to viewport height instead of screen width. */
.phone #appMain.scene-home>.home-scene{max-width:none;margin:0;background:#eaf2fc;}
.home-scene.questions-closed{display:block;}.scene-stage{height:100dvh;min-height:430px;}
.scene-background{background:#eaf2fc;}
.scene-background>img:not(.scene-sky){width:100%;height:100%;inset:0;object-fit:cover;object-position:50% 50%;}
.scene-background img.scene-sky{width:100%;height:43%;inset:0 auto auto 0;object-fit:cover;object-position:center 28%;mask-image:linear-gradient(#000 0%,#000 40%,transparent 100%);-webkit-mask-image:linear-gradient(#000 0%,#000 40%,transparent 100%);}
.scene-stage::after{content:'';position:absolute;inset:auto 0 0;height:140px;background:linear-gradient(transparent,rgba(30,55,95,.09));pointer-events:none;z-index:0;}
.scene-mentor{height:66%;max-height:660px;width:auto;left:-9%;top:auto;bottom:94px;object-fit:contain;z-index:1;}
.scene-uu{height:32%;max-height:320px;width:auto;left:auto;right:5%;top:auto;bottom:92px;object-fit:contain;z-index:2;}
.scene-top{top:calc(20px + env(safe-area-inset-top,0px));left:78px;right:18px;display:flex;flex-wrap:wrap;align-items:center;gap:14px;z-index:3;}
.scene-current-mentor{width:min(228px,100%);height:46px;padding:5px 10px 5px 5px;gap:9px;border:1px solid rgba(255,255,255,.62);border-radius:25px;background:rgba(31,67,130,.44);background-image:none;box-shadow:0 5px 18px rgba(10,31,78,.12),inset 0 1px 0 rgba(255,255,255,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
.current-mentor-photo{width:34px;height:34px;border:1px solid rgba(255,255,255,.78);}
.scene-current-mentor strong{font-size:14px;letter-spacing:.02em;}.scene-current-mentor small{font-size:10px;color:rgba(255,255,255,.73);margin-top:1px;}
.mentor-switch-arrow{width:24px;height:24px;display:grid;place-items:center;border:0;color:rgba(255,255,255,.9);}
.scene-shortcuts{display:flex;width:100%;justify-content:flex-end;gap:20px;margin:0;}
.scene-shortcuts button{display:flex;align-items:center;gap:6px;min-height:38px;padding:4px 0;background:none;border:0;font-size:12px;font-weight:600;color:#fff;text-shadow:0 1px 5px rgba(12,37,78,.25);}
.scene-shortcuts svg{flex:0 0 23px;filter:drop-shadow(0 1px 3px rgba(12,37,78,.12));}
.scene-compose{left:18px;right:18px;bottom:calc(20px + env(safe-area-inset-bottom,0px));min-height:62px;padding:8px 9px;gap:6px;border:1px solid rgba(255,255,255,.8);border-radius:22px;background:rgba(255,255,255,.91);box-shadow:0 12px 32px rgba(25,56,111,.14),inset 0 1px 0 #fff;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:4;}
.scene-compose textarea{height:38px;min-height:38px;font-size:15px;line-height:24px;padding:7px 4px;color:#29466e;}.scene-compose textarea::placeholder{color:#8496b0;}
.scene-compose .compose-question{width:38px;min-width:38px;min-height:42px;border-radius:14px;}.compose-question img{width:24px;height:24px;}.scene-compose .compose-question[aria-expanded=true]{background:#e8f0ff;}
.scene-compose .scene-send{width:42px;height:42px;min-width:42px;min-height:42px;border-radius:50%;background:var(--button-blue,#3564da);color:#fff;box-shadow:0 4px 12px rgba(53,100,218,.18);}.scene-compose .scene-send:hover{background:var(--button-blue-hover,#2852bf);}
.scene-current-mentor:focus-visible,.scene-shortcuts button:focus-visible,.scene-compose button:focus-visible{outline:3px solid #b8d1ff;outline-offset:3px;}
.home-scene.questions-open{display:block;}.questions-open .scene-stage{height:66dvh;min-height:400px;}.questions-open .scene-mentor{height:58%;}.questions-open .scene-uu{height:28%;}
.question-library{height:34dvh;max-height:34dvh;margin:0;border-radius:24px 24px 0 0;padding:18px 18px 24px;background:#f8fbff;border-top:1px solid #e1eafd;}
.question-library-heading{gap:12px;align-items:center;margin-bottom:14px;}.question-library-heading strong{font-size:14px;line-height:1.5;}.question-category-controls{gap:3px;}.question-category-controls button{font-size:11px;color:#6480ab;}.question-prompt{background:#edf2fa;border:1px solid #e5edf9;min-height:48px;border-radius:16px;margin:9px 0;color:#344d73;}.question-prompt.featured{background:#edf3ff;border-color:#9db8f4;color:#315cc6;}.question-mark{width:27px;height:27px;background:#6285da;}.question-mark img{width:20px;height:20px;}
@media(min-width:600px){
 .scene-top{left:82px;right:30px;flex-wrap:nowrap;justify-content:space-between;}.scene-shortcuts{width:auto;gap:24px;}.scene-current-mentor{width:228px;flex:0 0 228px;}.scene-shortcuts button{font-size:13px;}
 .scene-background>img:not(.scene-sky){object-position:50% 68%;}.scene-background img.scene-sky{height:44%;}
 .scene-mentor{left:calc(50% - 290px);height:68%;bottom:106px;}.scene-uu{left:calc(50% + 95px);right:auto;height:31%;bottom:104px;}
 .scene-compose{left:50%;right:auto;width:min(560px,calc(100% - 64px));transform:translateX(-50%);bottom:28px;}
 .home-scene.questions-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,34%);}.questions-open .scene-stage{height:100dvh;min-height:430px;}.questions-open .scene-mentor{height:66%;left:calc(50% - 260px);}.questions-open .scene-uu{height:30%;left:calc(50% + 65px);}.questions-open .scene-top{left:82px;right:22px;flex-wrap:wrap;}.questions-open .scene-shortcuts{width:100%;}.question-library{height:100dvh;max-height:100dvh;border-radius:0;border-top:0;border-left:1px solid #e1eafd;padding:30px 22px;}.question-library-heading{align-items:flex-start;flex-direction:column;}.question-prompt{margin:12px 0;min-height:60px;}
}
@media(min-width:1100px){.scene-top{left:90px;right:40px;}.scene-mentor{left:calc(50% - 310px);}.scene-uu{left:calc(50% + 90px);}}
@media(max-height:680px) and (max-width:599px){.scene-mentor{height:62%;bottom:86px;}.scene-uu{height:29%;bottom:86px;}.scene-top{gap:7px;}.scene-shortcuts{gap:14px;}.scene-compose{bottom:14px;}.questions-open .scene-stage{height:65dvh;min-height:330px;}.questions-open .scene-mentor{height:52%;}.questions-open .scene-uu{height:25%;}}

/* Exact Figma upper mask asset (402 × 213), rather than a crop of the full sky. */
.scene-background img.scene-sky{width:100%;height:auto;inset:0 auto auto 0;object-fit:fill;object-position:initial;mask-image:none;-webkit-mask-image:none;}
@media(min-width:600px){.scene-background img.scene-sky{height:260px;}}

/* Figma phone composition: preserve the original illustration geometry. */
.scene-top{left:18px;right:18px;top:calc(92px + env(safe-area-inset-top,0px));flex-wrap:nowrap;justify-content:space-between;align-items:flex-start;gap:14px;}
.scene-current-mentor{width:166px;height:46px;flex:0 0 166px;border:2px solid #fff;background:#234d8b url('../../assets/figma/home-imgRectangle293.png') center/100% 100%;padding:5px 7px;gap:6px;}
.scene-current-mentor strong{font-size:15px;letter-spacing:0;}.scene-current-mentor small{color:#fff;}.mentor-crown{display:block;position:absolute;top:-25px;left:8px;width:131.289px;height:26.914px;object-fit:fill;pointer-events:none;}
.mentor-corner{position:absolute;left:7px;top:-77px;width:51.185px;height:110.673px;transform:rotate(-112.31deg);object-fit:fill;pointer-events:none;}
.scene-shortcuts{width:auto;display:flex;gap:12px;justify-content:flex-end;margin-top:-6px;}.scene-shortcuts button{display:flex;flex-direction:column;gap:0;padding:0;min-height:68px;font-weight:400;}.scene-shortcut-icon{width:58px;height:58px;position:relative;display:block;}.shortcut-ring{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;}.shortcut-note{position:absolute;inset:9px;width:40px;height:40px;object-fit:contain;filter:drop-shadow(0 0 6px #ffe3a5);}.shortcut-glow{position:absolute;inset:4px;width:50px;height:50px;object-fit:contain;}.scene-shortcuts small{font-size:10px;padding:2px 5px;background:rgba(76,76,76,.2);border-radius:9px;text-shadow:none;}
@media(max-width:599px){
 .scene-background>img:not(.scene-sky){width:143.4%;height:117.7dvh;left:-8.7%;top:-14.04dvh;right:auto;bottom:auto;object-fit:fill;}
 .scene-mentor,.questions-open .scene-mentor{width:73.36%;height:62.68dvh;left:0;top:20.2dvh;bottom:auto;max-height:none;object-fit:fill;}
 .scene-uu,.questions-open .scene-uu{width:42.86%;height:35.08dvh;left:47.66%;top:47.09dvh;right:auto;bottom:auto;max-height:none;object-fit:fill;}
 .questions-open .scene-stage{height:64.65dvh;min-height:0;}.questions-open .scene-compose{left:10px;right:10px;bottom:7px;min-height:52px;padding:4px 8px;border-radius:12px;}.questions-open .scene-compose .scene-send{width:40px;height:40px;min-width:40px;min-height:40px;}.questions-open .scene-compose textarea{height:36px;min-height:36px;padding:6px 4px;}
 .question-library{height:35.35dvh;max-height:35.35dvh;padding-top:10px;}.question-library-heading{margin-bottom:8px;}.question-library-heading strong{font-size:15px;}.question-prompt{min-height:44px;margin:9px 0;font-size:14px;}
}
@media(min-width:600px){.scene-top{left:28px;right:30px;top:96px;}.scene-current-mentor{width:190px;flex-basis:190px;}.questions-open .scene-top{left:22px;right:22px;top:96px;flex-wrap:nowrap;}.questions-open .scene-shortcuts{width:auto;}.scene-background img.scene-sky{height:230px;}.scene-shortcuts{gap:22px;}}
@media(max-width:370px){.scene-current-mentor{width:151px;flex-basis:151px;}.scene-current-mentor strong{font-size:13px;}.scene-shortcuts{gap:6px;}.scene-shortcut-icon{width:50px;height:50px;}.shortcut-note{width:34px;height:34px;inset:8px;}.shortcut-glow{width:44px;height:44px;inset:3px;}}

.scene-background img.scene-sky{mask-image:url("../../assets/figma/home-sky-mask.svg");-webkit-mask-image:url("../../assets/figma/home-sky-mask.svg");mask-size:100% 100%;-webkit-mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;}

.uu-selected .scene-mentor{display:none;}.uu-selected .scene-uu,.uu-selected.questions-open .scene-uu{left:18%;top:30dvh;width:64%;height:48dvh;object-fit:contain;}@media(min-width:600px){.uu-selected .scene-uu,.uu-selected.questions-open .scene-uu{left:35%;top:30dvh;width:30%;height:48dvh;}}


/* Four homepage entries share one row, with their labels beneath. */
.phone .scene-top,.phone .questions-open .scene-top{top:calc(20px + env(safe-area-inset-top,0px));left:18px;right:18px;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:start;gap:12px;}
.scene-mentor-control{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;}.phone .scene-current-mentor{width:min(136px,100%);min-width:0;height:44px;flex:none;box-sizing:border-box;padding:4px 6px;gap:5px;background:#234d8b;box-shadow:none;}.phone .current-mentor-photo{width:28px;height:28px;flex:0 0 28px;}.scene-current-mentor>span:not(.mentor-switch-arrow){min-width:0;flex:1;}.phone .scene-current-mentor strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;}.phone .scene-current-mentor small{font-size:9px;}.phone .mentor-switch-arrow{width:18px;height:24px;flex:0 0 18px;margin-left:0;}.mentor-switch-arrow svg{width:18px;height:18px;}.scene-ai-notice{font-size:10px;line-height:14px;color:#d5e3fa;padding-left:7px;white-space:nowrap;}
.phone .scene-shortcuts,.phone .questions-open .scene-shortcuts{width:auto;gap:8px;margin:0;display:flex;}.phone .scene-shortcuts button{width:50px;min-height:64px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:0;}.phone .scene-shortcut-icon{width:44px;height:44px;}.phone .shortcut-note{width:30px;height:30px;inset:7px;}.phone .shortcut-glow{width:38px;height:38px;inset:3px;}.phone .scene-shortcuts small{font-size:10px;line-height:14px;padding:0 3px;white-space:nowrap;}
.phone .home-header-menu{position:static;width:44px;height:44px;margin:0;box-shadow:none;}.phone #appMain.scene-home>.home-scene{animation:none;}
@media(min-width:600px){.phone .scene-top,.phone .questions-open .scene-top{left:28px;right:28px;grid-template-columns:minmax(0,1fr) auto 44px;gap:18px;}.phone .scene-shortcuts{gap:16px;}}
@media(max-width:370px){.phone .scene-top,.phone .questions-open .scene-top{left:14px;right:14px;gap:8px;}.phone .scene-current-mentor{padding:4px 5px;gap:4px;}.phone .current-mentor-photo{width:24px;height:24px;flex-basis:24px;}.phone .scene-shortcuts{gap:6px;}.scene-ai-notice{padding-left:2px;font-size:9px;}}

/* Left-aligned compact group: menu, mentor, task center, conversation history. */
.phone .scene-top,.phone .questions-open .scene-top{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:flex-start;gap:8px;}.phone .home-header-menu{width:52px;height:52px;flex:0 0 52px;}.home-header-menu svg{width:24px;height:24px;}.scene-mentor-control{width:156px;flex:0 1 156px;}.phone .scene-current-mentor{width:100%;max-width:156px;height:52px;padding:5px 7px;gap:6px;}.phone .current-mentor-photo{width:32px;height:32px;flex-basis:32px;}.phone .scene-current-mentor strong{font-size:14px;}.phone .scene-current-mentor small{font-size:10px;}.phone .mentor-switch-arrow{width:20px;flex-basis:20px;}.mentor-switch-arrow svg{width:20px;height:20px;}.scene-ai-notice{font-size:11px;line-height:14px;}.phone .scene-shortcuts{flex:0 0 auto;gap:8px;}.phone .scene-shortcuts button{width:56px;min-height:72px;}.phone .scene-shortcut-icon{width:52px;height:52px;}.phone .shortcut-note{width:36px;height:36px;inset:8px;}.phone .shortcut-glow{width:46px;height:46px;inset:3px;}.phone .scene-shortcuts small{font-size:11px;}
@media(min-width:600px){.phone .scene-top,.phone .questions-open .scene-top{gap:12px;}.phone .scene-shortcuts{gap:12px;}}
@media(max-width:370px){.phone .scene-top,.phone .questions-open .scene-top{gap:6px;}.phone .home-header-menu{width:44px;height:44px;flex-basis:44px;}.scene-mentor-control{width:124px;flex-basis:124px;}.phone .scene-current-mentor{height:44px;padding:4px 5px;gap:4px;}.phone .current-mentor-photo{width:24px;height:24px;flex-basis:24px;}.phone .scene-current-mentor strong{font-size:13px;}.phone .scene-current-mentor small{font-size:9px;}.scene-ai-notice{font-size:10px;}.phone .scene-shortcuts{gap:6px;}.phone .scene-shortcuts button{width:50px;min-height:64px;}.phone .scene-shortcut-icon{width:44px;height:44px;}.phone .shortcut-note{width:30px;height:30px;inset:7px;}.phone .shortcut-glow{width:38px;height:38px;inset:3px;}.phone .scene-shortcuts small{font-size:10px;}}
