/* JARVIS personal base. Layout-only presentation of the shared learning world. */
:root{--home-mint:#62dfce;--home-ink:#e5f0f1;--home-muted:#93a8b0;--home-line:#c6e8e914}
#app.app{max-width:none;inset:0;margin:0;height:100dvh;border-radius:0;box-shadow:none;background:radial-gradient(ellipse at 80% 8%,#13333222,transparent 48%),#070e13;font-family:Inter,Arial,sans-serif}
#app>.status-bar{display:none}
#app .screen:not(.active){visibility:hidden}
#app .screen.active{visibility:visible}
#app .screen-enter{animation:home-screen-enter .36s ease both}
#app .screens{min-width:0;min-height:0;outline:none;overflow:clip}
#screen-home>.scroll-area{max-width:1240px;padding:0 38px 28px;margin:auto}
#screen-home .home-header{display:flex;align-items:center;justify-content:space-between;padding:22px 0 20px;margin:0;min-height:88px}
#screen-home .greeting-sub{font-size:10px;font-weight:500;letter-spacing:.13em;text-transform:uppercase;color:#8ca1a9;margin:0 0 7px}
#screen-home .greeting-main{font-family:Inter,Arial,sans-serif;font-size:24px;line-height:1.25;letter-spacing:-.035em;font-weight:550;color:#dfeaed;overflow-wrap:anywhere}
#screen-home .greeting-main span{color:#dfeaed;background:none;-webkit-text-fill-color:currentColor}
#screen-home .avatar-wrap{width:43px;height:43px;flex:0 0 43px;margin:0}
#screen-home .avatar{width:35px;height:35px;font-size:14px;background:#102328;color:#cae9e7}
#screen-home .avatar-ring{inset:0;background:linear-gradient(140deg,#9ce8df,#2f777e 45%,#17373e 80%);box-shadow:none;animation:none}
#screen-home .avatar-status{width:7px;height:7px;background:#69c3a7;right:2px;bottom:2px;border:2px solid #070e13}
#screen-home .home-scene{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);min-height:390px;padding:26px 34px;margin:0;border:1px solid #9cddda24;border-radius:24px;background:radial-gradient(ellipse at 82% 40%,#14474538,transparent 60%),linear-gradient(115deg,#0b1a22,#081116 75%);gap:12px;box-shadow:0 16px 60px #00000012}
#screen-home .home-scene:before{background-size:48px 48px;background-image:linear-gradient(#7dc0ba06 1px,transparent 1px),linear-gradient(90deg,#7dc0ba06 1px,transparent 1px)}
#screen-home .home-scene:after{background:linear-gradient(90deg,transparent,#63e2ce55,transparent);left:0;right:0}
#screen-home .jarvis-presence-copy{display:block}
#screen-home .jarvis-wordmark{display:flex;align-items:center;gap:10px;font-family:Inter,Arial,sans-serif;color:#bddbdc;font-size:12px;font-weight:650;letter-spacing:.24em;margin:0 0 14px}
.home-live-dot{width:5px;height:5px;border-radius:50%;background:var(--home-mint);box-shadow:0 0 10px #63e2ce80}
.home-presence-label{font-size:9px;font-weight:450;letter-spacing:.14em;color:#86a5a9;border-left:1px solid #89a4a633;padding-left:12px;margin-left:3px}
#screen-home .jarvis-presence h2{font-family:Inter,Arial,sans-serif;font-size:clamp(30px,2.7vw,40px);line-height:1.16;font-weight:550;letter-spacing:-.05em;margin:0 0 18px;color:var(--home-ink)}
#screen-home .jarvis-presence h2 span{display:block;color:var(--home-mint);margin-top:2px}
#screen-home .quest-card{min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;cursor:default}
#screen-home .quest-card:after{display:none}
.home-task-meta{display:flex;align-items:center;gap:14px;color:#8ea7ad;font-size:12px;line-height:1.4;margin-bottom:9px}
.home-task-meta>span:last-child{padding-left:13px;border-left:1px solid #9ab9b933}
.home-task-direction{display:inline-flex;align-items:center;gap:7px;color:#b5d6d7}
.home-task-direction svg{width:17px;height:17px;color:#6bcabf;flex-shrink:0}
#screen-home .quest-card #nextStepTitle{font-family:Inter,Arial,sans-serif;font-size:20px;font-weight:550;letter-spacing:-.025em;line-height:1.35;margin:0;max-width:100%;color:#deeaeb}
#screen-home .quest-card #nextStepDesc{color:#a7bec5;font-size:14px;line-height:1.6;margin:7px 0 0;max-width:440px}
.home-task-action{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:18px}
#screen-home #personalNextButton{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:48px;padding:12px 20px;min-width:212px;width:auto;border:1px solid #8aedde66;border-radius:11px;background:linear-gradient(110deg,#60dfcd,#83e8dd);color:#092421!important;font:650 14px/1.4 Inter,Arial,sans-serif;letter-spacing:0;box-shadow:0 5px 28px #31cfb719;transition:background .2s,box-shadow .2s,transform .2s}
#screen-home #personalNextButton>span:last-child{font-size:20px;font-weight:400;line-height:1}
#screen-home #personalNextButton:hover{background:#91eedf;box-shadow:0 6px 30px #31cfb730;transform:translateY(-1px)}
#screen-home #personalNextButton:active{transform:translateY(0)}
#screen-home #questNote{color:#8ca7b1;font-size:12px;line-height:1.5;margin:0}
#screen-home #questNote .studio-home-meta{display:none}
.home-scene-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-top:6px}
.home-scene-footer button{padding:8px 0;min-height:40px;border:0;background:none;color:#9fc1c5;font:450 13px Inter,Arial,sans-serif;cursor:pointer}
.home-scene-footer button:hover{color:#b4efe5}
.home-scene-footer>span{font-size:9px;color:#637d88;border-left:1px solid #92b3b526;padding-left:14px}
#screen-home .jarvis-reactor{width:min(100%,350px);margin:0 -8px 0 0;grid-column:2;grid-row:1;align-self:center}
#screen-home .jarvis-reactor-halo{background:radial-gradient(ellipse,#32d2bd10,transparent 63%);inset:0}
#screen-home .jarvis-reactor-caption{font-size:8px;letter-spacing:.22em;color:#64858b;bottom:0}
#screen-home .home-player{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:28px;margin:16px 0 0;padding:20px 24px;border:1px solid var(--home-line);border-radius:18px;background:linear-gradient(115deg,#0c171e,#0b121b);box-shadow:none;position:relative}
.home-rank-overview{display:grid;grid-template-columns:auto minmax(100px,1fr);align-items:center;gap:22px;min-width:0}
#screen-home .rank-status-main{display:flex;align-items:center;gap:13px;min-width:0;border-radius:10px;cursor:pointer}
#screen-home .rank-emblem{position:relative;display:grid;place-items:center;width:50px;height:54px;flex:0 0 50px;border:0;border-radius:0;background:linear-gradient(150deg,#254f5355,#101a2d);clip-path:polygon(50% 0,95% 24%,95% 73%,50% 100%,5% 73%,5% 24%);color:#98dfd5;font-size:27px;box-shadow:none}
#screen-home .rank-emblem:before{content:'';position:absolute;inset:4px;clip-path:inherit;background:linear-gradient(145deg,#5ab0a730,#151c2d);z-index:-1}
#screen-home .rank-status-copy .status-kicker{color:#8eacb3;font-size:10px;letter-spacing:.13em;margin:0 0 5px}
#screen-home .rank-status-copy strong{display:block;color:#e0eeef;font-size:17px;font-weight:550;line-height:1.3}
#screen-home .rank-status-copy>span{display:block;color:#9cb4bc;font-size:12px;line-height:1.5;margin-top:4px}
#screen-home .rank-progress{grid-column:auto;min-width:0;display:block}
.home-xp-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:9px;color:#849ca6}
.home-xp-heading>span:first-child{display:none}
#screen-home .xp-nums{margin:0;color:#b0c7ce;font-size:12px;white-space:nowrap}
#screen-home .xp-bar-track{width:100%;height:4px;background:#26373d80;border-radius:5px;overflow:hidden}
#screen-home .xp-bar-fill{height:100%;background:linear-gradient(90deg,#4aaea7,#9ce4d3);box-shadow:0 0 12px #5ad8c130;transition:width .7s ease}
.home-next-reward{display:flex;align-items:center;text-align:left;gap:13px;min-width:0;padding:0 0 0 28px;border:0;border-left:1px solid var(--home-line);background:transparent;color:#cbdde1;cursor:pointer;font-family:Inter,Arial,sans-serif}
.home-next-reward>span:nth-child(2){min-width:0;display:grid;gap:4px}
.home-next-reward small{font-size:10px;letter-spacing:.1em;color:#79949f}
.home-next-reward strong{font-size:15px;font-weight:550;line-height:1.4}
.home-next-reward>span:nth-child(2)>span{font-size:12px;color:#9bb3be;line-height:1.4}
.home-reward-arrow{margin-left:auto;font-size:18px;color:#7c9ba4}
.home-reward-preview{position:relative;display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;isolation:isolate}
.home-reward-preview:before,.home-reward-preview i{content:'';position:absolute;inset:2px;border:1px solid #73e7d59c;border-radius:50%;box-shadow:0 0 14px #56d8c31a,inset 0 0 9px #4de0c31c}
.home-reward-preview i{inset:6px;border-color:#9d8bdf80;border-style:dashed;transform:rotate(-24deg)}
.home-reward-preview>span{color:#a5dcd8;font-size:20px}
#screen-home .home-week-stat{display:none}
#screen-home .home-directions-heading{padding:22px 0 6px;margin:0;align-items:center}
#screen-home .section-overline{font-size:10px;font-weight:550;letter-spacing:.14em;color:#64898d;margin:0 0 6px}
#screen-home .section-title{font:550 20px/1.3 Inter,Arial,sans-serif;letter-spacing:-.025em;color:#cddfe2;margin:0}
#screen-home .section-link{min-height:44px;padding:8px 0 8px 12px;color:#a6c6c8;font:450 14px Inter,Arial,sans-serif}
#screen-home .progress-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0}
#screen-home .progress-cards[data-count='1']{grid-template-columns:minmax(0,1fr)}
#screen-home .progress-cards[data-count='2']{grid-template-columns:repeat(2,minmax(0,1fr))}
.home-direction{position:relative;display:flex;align-items:center;gap:12px;min-width:0;min-height:84px;padding:17px 17px 20px;border:1px solid #b6d5db14;border-radius:13px;background:#0b151b;color:#9db2bb;text-align:left;font-family:Inter,Arial,sans-serif;cursor:pointer;overflow:hidden;transition:border-color .2s,background .2s}
.home-direction:hover{background:#102129;border-color:#98d4cd45}
.home-direction.selected{border-color:#68c9bd55;background:linear-gradient(120deg,#102a2b80,#0c1921)}
.home-direction-icon{display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;color:var(--direction-color);opacity:.8}
.home-direction svg{width:22px;height:22px}
.home-direction-copy{display:grid;gap:5px;min-width:0}
.home-direction strong{font-size:14px;font-weight:550;color:#d9e8e9;line-height:1.4}
.home-direction small{font-size:12px;color:#9ab2bc;line-height:1.4}
.home-direction-marker{display:grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border:1px solid #96c4bf33;border-radius:50%;color:#09241e;margin-left:auto;font-size:13px}.home-direction.selected .home-direction-marker{border-color:#8be3d2;background:#8be3d2}
.home-direction-track{position:absolute;bottom:0;left:17px;right:17px;height:2px;background:#bddce809}
.home-direction-track i{display:block;height:100%;background:#67c5b7;transition:width .6s ease}
.home-utilities{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-top:18px;padding-bottom:8px}
.home-rhythm{display:inline-flex;align-items:center;gap:7px;color:#90aeb8;font-size:12px;min-height:44px}
.home-rhythm i{width:5px;height:5px;border-radius:50%;background:#5b8f85}
.home-options{min-width:190px;max-width:320px;position:relative}
.home-options summary{display:flex;justify-content:flex-end;align-items:center;gap:12px;color:#a2bdc5;font-size:14px;min-height:44px;cursor:pointer;list-style:none}
.home-options summary::-webkit-details-marker{display:none}
.home-options summary>span{font-size:16px;color:#729599}
.home-options[open] summary>span{transform:rotate(45deg)}
.home-options>div{display:grid;gap:2px;padding:10px;margin-top:6px;border:1px solid var(--home-line);border-radius:12px;background:#0b181f}
.home-options button{display:grid;gap:5px;text-align:left;padding:12px;border:0;border-radius:8px;background:none;font:500 14px Inter,Arial,sans-serif;color:#bed2d8;cursor:pointer}
.home-options button:hover{background:#ffffff06}
.home-options button span{font-weight:400;font-size:12px;color:#9db6bf}
#screen-home .bottom-spacer{height:0}
.home-rank-earned{animation:home-rank-earned 1.4s ease both}
.app-navigation .nav-brand,.app-navigation .nav-footer{display:none}
.app-skip{position:absolute;left:12px;top:12px;transform:translateY(-200%);padding:12px;background:#a4e6d9;color:#09201d;border-radius:8px;z-index:50;font-size:12px}
.app-skip:focus{transform:translateY(0)}
#app .bottom-nav{height:calc(72px + env(safe-area-inset-bottom));padding:4px 12px calc(5px + env(safe-area-inset-bottom));margin:0;width:100%;border-radius:0!important;border:0!important;border-top:1px solid #c3e6df16!important;background:#081218f5!important;box-shadow:none;backdrop-filter:blur(24px)}
#app .nav-btn{min-height:56px;border-radius:11px;gap:5px}
#app .nav-label{font:500 10px Inter,Arial,sans-serif;color:#6f8a97;letter-spacing:0}
#app .nav-icon{color:#718a96;filter:none;display:grid;place-items:center;height:26px;position:relative}
#app .nav-btn.active .nav-label,#app .nav-btn.active .nav-icon{color:#84dfd0;filter:none}
#app .jarvis-nav-icon{background:none!important;box-shadow:none!important;border:0!important;width:30px!important;height:26px!important;transform:none!important}
#app .nav-jarvis{transform:none;margin:0}
#app .jarvis-nav-neural{width:42px;height:38px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
#app button:focus-visible,#app summary:focus-visible,#app [role=button]:focus-visible{outline:2px solid #9de9dc;outline-offset:4px}
#app .screen h1:focus,#app .screen h2:focus{outline:none}
@media(min-width:1000px){
  #app .screens{margin-left:202px}
  #app .bottom-nav{position:absolute;inset:0 auto 0 0;width:202px;height:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:6px;padding:39px 16px 26px;border:0!important;border-right:1px solid #c3e6df12!important;background:#081116!important;backdrop-filter:none}
  #app .nav-brand{display:grid;gap:9px;padding:0 18px;margin-bottom:52px}
  .nav-brand>span{color:#dae9e9;font-size:19px;font-weight:650;letter-spacing:.25em}
  .nav-brand small{color:#617f88;font-size:7px;letter-spacing:.26em}
  #app .nav-btn{flex:0 0 auto;flex-direction:row;justify-content:flex-start;align-items:center;gap:16px;padding:13px 17px;min-height:51px;border:1px solid transparent}
  #app .nav-icon{width:24px;height:25px;display:grid;place-items:center;position:relative;flex:0 0 24px}
  #app .nav-icon svg{width:19px;height:19px;stroke-width:1.5}
  #app .nav-label{font-size:12px;font-weight:450}
  #app .nav-btn.active{background:#74d8c70b;border-color:#6ac8b915}
  #app .nav-btn:hover{background:#74d8c70a}
  #app .nav-footer{display:block;margin-top:auto;padding:20px 18px 0;color:#43646d;font-size:8px;letter-spacing:.18em;line-height:1.9}
  .nav-footer>span{display:block;width:19px;height:1px;background:#6d9f9e50;margin-bottom:15px}
  #app .scroll-area:not(#screen-home>.scroll-area){padding-bottom:32px}
}
@media(min-width:1000px) and (max-width:1199px){#app .screens{margin-left:176px}#app .bottom-nav{width:176px;padding-inline:12px}#screen-home>.scroll-area{padding-inline:28px}#screen-home .home-scene{padding:26px;grid-template-columns:1.2fr 1fr;min-height:390px}.home-rank-overview{gap:15px;grid-template-columns:1fr}#screen-home .home-player{gap:22px}#screen-home .rank-progress{margin-left:63px}}
@media(min-width:700px) and (max-width:999px){#screen-home>.scroll-area{padding-inline:28px;padding-bottom:24px}#screen-home .home-scene{padding:26px;min-height:390px}#screen-home .jarvis-presence h2{font-size:34px}#screen-home .jarvis-reactor{width:290px;max-width:120%;margin-right:-28px}.home-rank-overview{grid-template-columns:1fr;gap:14px}#screen-home .rank-progress{margin-left:63px}}
@media(max-width:699px){
  #screen-home>.scroll-area{padding:0 18px 23px;max-width:none}
  #screen-home .home-header{padding:18px 0 16px;min-height:80px;gap:12px}
  #screen-home .greeting-sub{font-size:10px;margin-bottom:6px;letter-spacing:.12em}
  #screen-home .greeting-main{font-size:20px;line-height:1.3;max-width:275px}
  #screen-home .avatar-wrap{width:39px;height:39px;flex-basis:39px}
  #screen-home .avatar{width:32px;height:32px;font-size:12px}
  #screen-home .home-scene{display:block;min-height:0;padding:22px 23px 16px;text-align:left;border-radius:20px;overflow:hidden}
  #screen-home .jarvis-presence-copy{position:relative;z-index:2}
  #screen-home .jarvis-wordmark{font-size:10px;letter-spacing:.22em;margin:0 0 15px;gap:8px}
  #screen-home .home-presence-label{display:inline;font-size:8px;padding-left:8px;letter-spacing:.06em}
  #screen-home .jarvis-presence h2{font-size:29px;line-height:1.2;margin:0 0 22px;max-width:100%;letter-spacing:-.05em}
  #screen-home .jarvis-presence h2 span{margin-top:3px}
  #screen-home .jarvis-reactor{position:absolute;right:-51px;top:-47px;width:212px;max-width:none;margin:0;opacity:.6;z-index:0;mask-image:linear-gradient(90deg,transparent,#000 35%)}
  #screen-home .jarvis-reactor-caption{display:none}
  #screen-home .jarvis-reactor-halo{display:none}
  .home-task-meta{font-size:12px;gap:12px;margin-bottom:11px}
  .home-task-direction svg{width:16px;height:16px}
  #screen-home .quest-card #nextStepTitle{font-size:18px;line-height:1.35}
  #screen-home .quest-card #nextStepDesc{font-size:14px;line-height:1.6;margin-top:7px}
  .home-task-action{display:block;margin-top:18px}
  #screen-home #personalNextButton{min-height:49px;width:100%;min-width:0;font-size:14px;padding-inline:17px}
  #screen-home #questNote{display:block;font-size:12px;margin-top:10px}
  .home-scene-footer{margin-top:5px;gap:9px}
  .home-scene-footer button{font-size:13px;min-height:44px}
  .home-scene-footer>span{font-size:8px;padding-left:10px}
  #screen-home .home-player{display:block;margin-top:13px;padding:18px;border-radius:16px}
  .home-rank-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
  #screen-home .rank-emblem{width:40px;height:45px;flex-basis:40px;font-size:24px}
  #screen-home .rank-status-main{gap:10px}
  #screen-home .rank-status-copy strong{font-size:17px}
  #screen-home .rank-status-copy>span{font-size:12px}
  #screen-home .rank-status-copy .status-kicker{font-size:10px;margin-bottom:4px}
  #screen-home .xp-nums{font-size:12px}
  .home-next-reward{width:100%;margin-top:17px;padding:14px 0 0;border-left:0;border-top:1px solid var(--home-line);gap:10px}
  .home-reward-preview{width:34px;height:34px;flex-basis:34px}
  .home-reward-preview>span{font-size:17px}
  .home-next-reward small{font-size:10px}
  .home-next-reward strong{font-size:15px}
  .home-next-reward>span:nth-child(2)>span{font-size:12px}
  #screen-home .home-directions-heading{padding:24px 0 12px}
  #screen-home .section-title{font-size:17px}
  #screen-home .section-overline{font-size:10px}
  #screen-home .section-link{font-size:13px;white-space:nowrap}
  #screen-home .progress-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .home-direction{padding:14px 12px 18px;min-height:88px;gap:8px;flex-wrap:wrap;align-content:center}
  .home-direction-icon{width:22px;height:22px;flex-basis:22px}
  .home-direction svg{width:20px;height:20px}
  .home-direction-copy{flex:1;min-width:0}
  .home-direction strong{font-size:14px}
  .home-direction small{font-size:12px}
  .home-direction-marker{position:absolute;right:10px;top:12px;width:18px;height:18px;flex-basis:18px;font-size:11px}
  .home-direction-track{left:12px;right:12px}
  #screen-home .progress-cards[data-count='1'] .home-direction{min-height:72px}
  .home-utilities{gap:8px;margin-top:14px}
  .home-options{min-width:140px;max-width:200px}
  .home-rhythm{font-size:12px}.home-options summary{font-size:13px}
}
@media(max-width:999px){#app .nav-btn{flex:1;justify-content:center;height:60px}#app .nav-jarvis{flex:1}}
@media(max-width:359px){#screen-home>.scroll-area{padding-inline:14px}#screen-home .home-scene{padding:20px 19px 14px}#screen-home .greeting-main{font-size:18px}#screen-home .jarvis-presence h2{font-size:27px}#screen-home .home-player{padding:16px}.home-rank-overview{gap:10px}.home-direction-icon{display:none}.home-options{min-width:125px}.home-scene-footer{gap:3px}.home-scene-footer>span{padding-left:7px;font-size:7px}}
@media(prefers-reduced-motion:reduce){#app .screen,#app .screen-enter,#screen-home *{animation:none!important;transition:none!important}}
@keyframes home-screen-enter{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes home-rank-earned{0%,100%{border-color:#c6e8e914}30%{border-color:#80e7d2;box-shadow:0 0 28px #55dcc72b}}
body.light-theme #app.app{background:#edf4f3}
body.light-theme #app .bottom-nav{background:#edf4f3f5!important;border-color:#b8cdca!important}
body.light-theme #app .nav-brand>span,body.light-theme #app .nav-btn.active .nav-label,body.light-theme #app .nav-btn.active .nav-icon{color:#176c61}
body.light-theme #screen-home .greeting-main,body.light-theme #screen-home .greeting-main span{color:#1b3e43}
body.light-theme #screen-home .home-player,body.light-theme #screen-home .home-direction{background:#e1eceb;border-color:#bdd1cf}
body.light-theme #screen-home .rank-status-copy strong,body.light-theme #screen-home .section-title,body.light-theme #screen-home .home-direction strong,body.light-theme .home-next-reward{color:#244e53}
body.light-theme #screen-home .rank-status-copy>span,body.light-theme #screen-home .home-direction small,body.light-theme #screen-home .xp-nums,body.light-theme .home-next-reward>span:nth-child(2)>span{color:#496b73}

/* Clear secondary actions and selection states; the neural canvas remains persistent. */
#screen-home #questNote[hidden]{display:none}
.home-scene-footer button{display:inline-flex;align-items:center;gap:9px}
.home-scene-footer button>span,.home-rank-help{display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid #91b6bb66;border-radius:50%;font-size:10px;letter-spacing:0}
.home-rank-help{margin-left:5px;vertical-align:middle}
.home-next-reward:hover .home-collection-link{color:#b6f0e5}
.home-next-reward .home-collection-link{color:#8fddd0;font-size:13px;margin-top:3px}
.home-directions-hint{color:#98b0ba;font-size:13px;line-height:1.5;margin:0 0 12px}
.home-direction.selected{border-color:#80dbca99;box-shadow:inset 0 0 0 1px #80dbca12}
.home-selection-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#screen-home .rank-status-main:hover .home-rank-help{color:#b6f0e5;border-color:#91d7cb}
.home-help p,.home-help li{color:var(--text2);font-size:14px;line-height:1.7}
.home-help ol{padding-left:22px;display:grid;gap:14px;margin:20px 0}
.home-help strong{color:var(--text)}
.home-help .home-help-note{font-size:12px}
#rewardCollection{scroll-margin-block:20px}
#rewardCollection:focus{outline:none}
@media(min-width:1200px){#screen-home .home-scene{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}}
@media(min-width:700px) and (max-width:1199px){.home-rank-overview{grid-template-columns:1fr;gap:10px}#screen-home .rank-progress{margin-left:0}#screen-home .home-player{gap:20px}}
@media(max-width:699px){
  #screen-home .home-directions-heading{padding-top:20px;gap:10px}
  #screen-home .section-title{font-size:18px}
  .home-direction{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:10px;padding:14px 12px 18px;min-height:124px}
  .home-direction-icon{width:22px;height:22px}
  .home-direction-copy{gap:6px}
  #screen-home .progress-cards[data-count='1'] .home-direction{grid-template-columns:24px minmax(0,1fr);align-items:center;min-height:80px;padding-right:36px}
  #screen-home .progress-cards[data-count='1'] .home-direction-marker{top:calc(50% - 9px)}
  .home-utilities{align-items:center;flex-wrap:wrap}
  #homeExtras{margin-left:auto}
  .home-options{max-width:none;min-width:0}
  .home-options>div{min-width:230px;max-width:100%}
  .home-options summary{justify-content:flex-start}
}
@media(max-width:359px){
  #screen-home .home-header{min-height:76px}
  #screen-home .jarvis-presence h2{font-size:25px;margin-bottom:18px}
  #screen-home .quest-card #nextStepDesc{font-size:13px}
  #screen-home .home-task-meta{font-size:11px;gap:10px}
  #screen-home .home-presence-label{font-size:7px}
  #screen-home #personalNextButton{gap:12px;font-size:13px}
  .home-direction-icon{display:grid}
  #screen-home .home-directions-heading{flex-wrap:wrap}
  #screen-home .section-link{padding-left:0}
}
/* Stage 2 · a calm learning route in the same visual language as Home. */
#screen-home #homeExtras:empty{display:none}
#screen-upgrade>.scroll-area{max-width:1240px;padding:30px 38px 36px;margin:auto;width:100%}
#screen-upgrade .screen-header{padding:0;margin:0 0 10px}#screen-upgrade .screen-title{font-size:32px;font-weight:550;letter-spacing:-.045em;color:var(--home-ink);background:none;-webkit-text-fill-color:currentColor;margin:8px 0 10px}#screen-upgrade .screen-sub{font-size:15px;color:var(--home-muted)}#screen-upgrade .upgrade-help{font-size:12px;color:#9bb0b6;padding:0;margin:0 0 25px;line-height:1.6}
#screen-upgrade .upgrade-categories{display:block}.upgrade-direction-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 23px}.upgrade-direction-tabs button{display:flex;align-items:center;gap:10px;padding:12px 16px;min-height:48px;border:1px solid #a4dbd61c;border-radius:12px;background:#0c171e;color:#a5bac0;font:500 14px Inter,Arial,sans-serif;transition:background .2s,border-color .2s}.upgrade-direction-tabs svg{width:19px;height:19px}.upgrade-direction-tabs button.selected{background:var(--direction-tint);border-color:var(--direction-color);color:#e0efed}.upgrade-direction-tabs button:hover{border-color:#98dcd98c}.upgrade-direction-tabs button:focus-visible,.upgrade-step:focus-visible,#screen-upgrade button:focus-visible{outline:2px solid var(--home-mint);outline-offset:4px}
#screen-upgrade .upgrade-route{overflow:hidden;background:linear-gradient(120deg,#0b1a21,#091117 78%);border:1px solid #98d7cf24;border-radius:24px;box-shadow:none;margin:0}.upgrade-route-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 225px;align-items:center;gap:35px;padding:36px 38px;border-bottom:1px solid #a8d7d715;background:radial-gradient(ellipse at 90% 30%,var(--direction-tint),transparent 65%)}.upgrade-route-hero h3{font-size:clamp(26px,2.5vw,35px);font-weight:550;letter-spacing:-.04em;line-height:1.18;margin:12px 0 13px;max-width:580px;color:var(--home-ink)}.upgrade-route-hero>div>p:not(.access-kicker){max-width:560px;color:#b1c6cc;font-size:15px;line-height:1.6;margin:0 0 18px}.upgrade-route-meta{display:flex;gap:12px 20px;flex-wrap:wrap;color:#a5bbc0;font-size:12px;margin:0 0 25px}.upgrade-route-meta span+span:before{content:'·';margin-right:15px;color:#687e85}#screen-upgrade .btn-primary{display:inline-flex;justify-content:space-between;align-items:center;gap:28px;min-height:49px;padding:12px 20px;width:auto;min-width:215px;border:1px solid #91e9dd66;border-radius:11px;background:linear-gradient(110deg,#60dfcd,#83e8dd);color:#092421;font:650 14px Inter,sans-serif;box-shadow:0 6px 30px #31cfb719}.upgrade-module-orbit{position:relative;width:190px;height:190px;justify-self:center}.upgrade-module-orbit svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.upgrade-module-orbit circle{fill:none;stroke:#a6dbd313;stroke-width:2}.upgrade-module-orbit circle.upgrade-orbit-fill{stroke:var(--direction-color);stroke-width:3;stroke-linecap:round;transition:stroke-dasharray .8s;filter:drop-shadow(0 0 4px var(--direction-color))}.upgrade-module-orbit>span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px}.upgrade-module-orbit b{font-size:46px;font-weight:500;color:#e4f2ef;letter-spacing:-.04em}.upgrade-module-orbit b small{font-size:21px;font-weight:400;color:#9db5ba}.upgrade-module-orbit em{font-style:normal;letter-spacing:.13em;font-size:9px;color:#a7bfc0}.upgrade-module-orbit>i{position:absolute;inset:21px;border:1px dashed #a5e6dd30;border-radius:50%;animation:upgrade-orbit 50s linear infinite}@keyframes upgrade-orbit{to{transform:rotate(360deg)}}
.upgrade-route-body{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:36px;padding:28px 38px}.upgrade-section-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 21px}.upgrade-section-heading h4{font-size:16px;font-weight:550;margin:0;color:#dceceb}.upgrade-section-heading>span{font-size:11px;color:#91a9ae}#screen-upgrade .upgrade-steps{padding:0;display:block}.upgrade-step{position:relative;display:flex;align-items:center;gap:15px;width:100%;text-align:left;border:1px solid #b8e1d915;background:#0b151c;border-radius:15px;padding:18px;margin:0 0 12px;color:#d9e9e9;transition:border-color .2s,background .2s,transform .2s}.upgrade-step.current{border-color:color-mix(in srgb,var(--direction-color) 55%,transparent);background:linear-gradient(105deg,var(--direction-tint),#0c171e)}.upgrade-step:hover:not(:disabled){border-color:var(--direction-color);transform:translateY(-2px)}.upgrade-step:disabled{cursor:default;opacity:.65}.upgrade-step-node{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #9bc2c434;border-radius:50%;font-size:13px;color:#b0c5c7}.upgrade-step.current .upgrade-step-node{border-color:var(--direction-color);color:var(--direction-color);box-shadow:0 0 22px var(--direction-tint)}.upgrade-step.complete .upgrade-step-node{background:#62dfce1f;border-color:#62dfce77;color:#86e6d7}.upgrade-step-copy{display:grid;gap:6px;min-width:0;flex:1}.upgrade-step-copy small{font-size:11px;color:#9cb4ba}.upgrade-step-copy b{font-size:15px;line-height:1.4;font-weight:550}.upgrade-step-copy em{font-size:11px;font-style:normal;color:#96afb5}.upgrade-step-xp{display:flex;align-items:center;gap:20px;font-size:12px;white-space:nowrap;color:#b8d1d2}.upgrade-step-xp i{font-style:normal;font-size:20px;color:#85b6b4}.upgrade-next-module{display:flex;gap:15px;align-items:center;padding:16px 18px 4px;color:#a0b6bd}.upgrade-next-module>span{font-size:27px;color:#759597}.upgrade-next-module b{font-size:13px;font-weight:500}.upgrade-next-module p{font-size:12px;line-height:1.5;margin:7px 0 0;color:#8da5ac}.upgrade-reward-card{border-left:1px solid #a8d7d718;padding:4px 0 0 28px;align-self:stretch}.upgrade-reward-sigil{width:56px;height:60px;display:grid;place-items:center;font-size:30px;color:#99e3db;background:linear-gradient(150deg,#254746,#14202a);clip-path:polygon(50% 0,95% 24%,95% 73%,50% 100%,5% 73%,5% 24%);margin:0 0 21px}.upgrade-reward-card h4{font-size:29px;font-weight:550;color:#b3ede2;margin:11px 0}.upgrade-reward-card>p:not(.access-kicker){font-size:13px;color:#a4bec2;line-height:1.65}.upgrade-reward-card>div:last-child{border-top:1px solid #a8d7d718;padding-top:18px;margin-top:20px;display:grid;gap:9px}.upgrade-reward-card>div>span{font-size:11px;color:#98b1b6}.upgrade-reward-card b{font-size:13px;font-weight:550;color:#dbebe9}.upgrade-reward-card small{font-size:11px;line-height:1.6;color:#95afb3}.upgrade-materials{margin:0 38px;padding:20px 0;border-top:1px solid #a8d7d718}.upgrade-materials summary{cursor:pointer;color:#a9c4c8;font-size:13px;min-height:32px;padding:4px 0}.upgrade-materials p{font-size:13px;line-height:1.7;color:#a4bdc3;margin:10px 0}.upgrade-materials button{padding:10px 0;min-height:44px}
/* Focused lesson, feedback and reward share one sheet; no empty mandatory media. */
#personalLessonOverlay{background:radial-gradient(ellipse at 70% 10%,#123c3a80,transparent 60%),#050c12f7;padding:28px 24px;color:var(--home-ink)}#personalLessonOverlay .onboarding-card{width:min(1100px,100%);max-width:none;margin:auto 0;background:linear-gradient(125deg,#0d1c23,#09121a);border:1px solid #98d7cf24;border-radius:24px;padding:34px 38px;box-shadow:0 30px 100px #0005;font-family:Inter,Arial,sans-serif}#personalLessonOverlay:has(.studio-result) .onboarding-card,#personalLessonOverlay:has(.studio-end) .onboarding-card{width:min(660px,100%)}.learning-studio .studio-outcome{font-size:15px;color:#b0c4c9}.learning-studio .studio-topline{margin-bottom:26px}.learning-studio .access-back{font-size:13px;min-height:44px;color:#b3cccf}.learning-studio .access-kicker,#screen-upgrade .access-kicker{color:#9bceca;font-size:10px;letter-spacing:.13em}.learning-studio h2{font-size:clamp(27px,2.6vw,36px);font-weight:550;letter-spacing:-.04em}.studio-format-label{display:flex;align-items:center;gap:10px;font-size:10px;letter-spacing:.1em;color:#a7c7c7;padding:4px 0 8px}.studio-format-label>span{font-size:20px;color:var(--direction-color)}.learning-studio .studio-reading>div{padding:20px 0;gap:16px}.learning-studio .studio-reading p{font-size:15px;color:#d0dfe0;line-height:1.85}.learning-studio .studio-day-plan{background:#0b161e;border-color:#b8e1d91a;box-shadow:none}.learning-studio .studio-day-plan h3{color:#d9e9e8;font-size:18px;font-weight:500}.learning-studio .studio-choice>span{background:#0b161f;font-size:14px;min-height:53px;color:#c0d2d6}.learning-studio .studio-choice input:checked+span{color:#e3f1ee}.learning-studio input[type=text],.learning-studio textarea{background:#08131b;color:#e4f0ee;border-color:#9dc7c72b;min-height:49px;font-size:16px}.learning-studio textarea{min-height:112px}.learning-studio .btn-primary{background:linear-gradient(110deg,#60dfcd,#83e8dd);border:1px solid #91e9dd66;border-radius:11px;color:#092421;font-size:14px;box-shadow:none}.learning-studio .studio-autosave{font-size:11px;text-align:center;color:#95acb3;margin-top:13px;line-height:1.6}.learning-studio .studio-scope{font-size:12px;color:#9db3b9}.learning-studio .studio-choice-group legend,.learning-studio form>label>span{font-size:14px;color:#c8dbdd}.learning-studio .studio-method{font-size:12px;color:#aac5c9;line-height:1.7}.learning-studio .studio-feedback{background:#62dfce0c;border-color:#62dfce25}.learning-studio .studio-feedback p{font-size:14px;color:#bed1d5}.learning-studio .studio-criteria{padding-left:0;list-style:none}.learning-studio .studio-criteria li{font-size:14px;line-height:1.6}.studio-result-emblem{animation:upgrade-earned .65s cubic-bezier(.2,.8,.2,1) both}@keyframes upgrade-earned{0%{opacity:0;transform:scale(.65) rotate(-25deg)}70%{transform:scale(1.08) rotate(4deg)}100%{opacity:1;transform:scale(1) rotate(0)}}.learning-studio .studio-end-stats{border:1px solid #98d7cf24;background:#62dfce0a;border-radius:16px;padding:20px;margin:24px 0}.learning-studio .studio-end-stats b{color:#88e9d5}.learning-studio .section-link{min-height:44px;padding:10px 0;font-size:13px}.learning-studio .studio-end-stats span{font-size:12px}.learning-studio .settings-save{background:#163338;color:#c7e9e4;border-color:#70d7cc3d}.learning-studio .dialogue-other,.learning-studio .dialogue-you{font-size:14px;line-height:1.65}.learning-studio .studio-dialogue-answers button{font-size:14px;line-height:1.55;min-height:54px}.learning-studio .budget-lab>div{background:#0b161e}.learning-studio .studio-hint,.learning-studio .studio-case{color:#c1d4d7;font-size:13px}
@media(max-width:1100px){.upgrade-route-hero{padding:28px;grid-template-columns:minmax(0,1fr) 160px;gap:20px}.upgrade-module-orbit{width:155px;height:155px}.upgrade-route-body{padding:26px 28px;gap:24px;grid-template-columns:minmax(0,1fr) 200px}.upgrade-reward-card{padding-left:22px}.upgrade-materials{margin:0 28px}.upgrade-step-xp{gap:10px}.upgrade-route-meta span+span:before{display:none}}
@media(max-width:820px){#screen-upgrade>.scroll-area{padding:25px 24px 30px}.upgrade-route-body{grid-template-columns:1fr}.upgrade-reward-card{display:grid;grid-template-columns:58px 1fr;column-gap:18px;border-left:0;border-top:1px solid #a8d7d718;padding:24px 0 0}.upgrade-reward-sigil{grid-column:1;grid-row:1/4;margin:0}.upgrade-reward-card>p,.upgrade-reward-card h4{grid-column:2;margin:0 0 8px}.upgrade-reward-card>div:last-child{grid-column:1/-1;margin-top:10px}.learning-studio .studio-lesson-grid{grid-template-columns:1fr}.learning-studio .studio-day-plan{order:0;position:relative;margin-top:15px}.learning-studio .studio-day-plan ol{display:block}.learning-studio .studio-plan-step{margin:0!important;padding:12px 0!important;grid-template-columns:27px minmax(0,1fr);gap:12px}.learning-studio .studio-plan-step b{font-size:13px}.learning-studio .studio-plan-step small{font-size:11px}.learning-studio .studio-plan-step.current{border:0;border-radius:0;background:none}.learning-studio .studio-plan-step>i{width:27px;height:27px;font-size:12px}.learning-studio .studio-day-plan h3{margin-bottom:8px}#personalLessonOverlay .onboarding-card{padding:26px}}
@media(max-width:540px){#screen-upgrade>.scroll-area{padding:24px 20px 28px}#screen-upgrade .screen-title{font-size:28px}#screen-upgrade .screen-sub{font-size:14px;line-height:1.55}#screen-upgrade .upgrade-help{font-size:11px;margin-bottom:20px}.upgrade-direction-tabs{gap:7px;margin-bottom:18px}.upgrade-direction-tabs button{font-size:12px;min-height:46px;padding:10px 12px;gap:7px}.upgrade-direction-tabs svg{width:17px;height:17px}.upgrade-route-hero{padding:24px 21px;display:block}.upgrade-route-hero h3{font-size:28px}.upgrade-route-hero>div>p:not(.access-kicker){font-size:14px}.upgrade-module-orbit{display:none}.upgrade-route-meta{font-size:11px;gap:9px 15px;margin-bottom:20px}#screen-upgrade .btn-primary{width:100%;min-width:0}.upgrade-route-body{padding:24px 16px;gap:25px}.upgrade-section-heading{padding:0 5px}.upgrade-section-heading>span{font-size:11px}.upgrade-step{gap:11px;padding:16px 12px;flex-wrap:wrap}.upgrade-step-node{width:29px;height:29px;flex-basis:29px}.upgrade-step-copy b{font-size:14px}.upgrade-step-copy small,.upgrade-step-copy em{font-size:11px}.upgrade-step-xp{padding-left:40px;width:100%;justify-content:space-between;font-size:11px}.upgrade-step-xp i{font-size:18px}.upgrade-next-module{padding:13px 5px 0;gap:13px}.upgrade-reward-card{margin:0 5px}.upgrade-materials{margin:0 21px}.upgrade-materials summary{font-size:12px}.upgrade-materials p{font-size:12px}#personalLessonOverlay{padding:12px}#personalLessonOverlay .onboarding-card{padding:21px 20px;border-radius:19px;margin:0}.learning-studio .studio-topline{gap:10px;align-items:flex-start;margin-bottom:15px}.learning-studio .studio-topline>span{font-size:10px;padding-top:15px;white-space:normal;text-align:right}.learning-studio .access-back{font-size:12px}.learning-studio h2{font-size:27px}.learning-studio .studio-outcome{font-size:14px;margin-bottom:17px}.learning-studio .studio-reading p{font-size:14px;line-height:1.8}.learning-studio .studio-reading>div{gap:12px;padding:18px 0}.learning-studio .studio-choice-group legend{font-size:14px}.learning-studio .budget-lab{grid-template-columns:1fr;gap:9px}.learning-studio .budget-lab>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 16px}.learning-studio .budget-lab span{font-size:12px;max-width:65%}.learning-studio .budget-lab b{font-size:24px}.learning-studio .studio-end-stats{gap:20px;padding:17px}.learning-studio .outfit-board{gap:7px}.learning-studio .outfit-piece>span{padding:7px}.learning-studio .outfit-piece b{font-size:10px}}
@media(prefers-reduced-motion:reduce){.upgrade-module-orbit>i,.studio-result-emblem{animation:none}.upgrade-orbit-fill,.upgrade-step{transition:none}}
