/* Mobile home: a clear introduction, real image and compact learning shortcuts. */
.mobile-hero-visual{display:none}
@media(max-width:700px){
 html,body{overflow-x:hidden}
 #dashboard-screen{background:#eff8fc}
 #dashboard-screen>main>.hero{padding:19px 15px 15px;background:linear-gradient(155deg,#f2fbff,#e4f5fa);min-height:0;overflow:hidden;border-bottom:1px solid #d8eaf2}
 #dashboard-screen .hero-art{display:none}
 #dashboard-screen .hero-content{display:flex;flex-direction:column;width:100%;height:auto;max-width:540px;margin:auto}
 #dashboard-screen .hero .eyebrow{align-self:flex-start;font-size:11px;line-height:1.4;color:#1281a2;background:#fff9;border:1px solid #d7edf1;border-radius:20px;padding:4px 9px;margin:0 0 9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #dashboard-screen .hero h1{font-size:clamp(24px,6.25vw,31px);line-height:1.24;letter-spacing:-.65px;color:#102957;margin:0 0 7px;max-width:none}
 #dashboard-screen .hero h1+p{font-size:12px;line-height:1.55;color:#6983a4;max-width:none;margin:0 0 13px}
 #dashboard-screen .mobile-hero-visual{display:block;position:relative;width:100%;height:clamp(112px,31vw,158px);border-radius:16px;overflow:hidden;margin:0 0 12px;background:#d8edf3;border:1px solid #cce4ed;box-shadow:0 5px 18px #153c5610}
 #dashboard-screen .mobile-hero-visual svg{width:100%;height:100%;display:block}
 #dashboard-screen .metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0;width:100%}
 #dashboard-screen .metric{min-height:58px;padding:7px 3px 6px;border-radius:11px;border:1px solid #daeaf0;background:#fffffff0;box-shadow:none;text-align:center;display:flex;align-items:center;justify-content:center}
 #dashboard-screen .metric>div{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:9px;line-height:1.35;font-weight:400;color:#7086a4}
 #dashboard-screen .metric strong{order:-1;font-size:20px;line-height:1.15;font-weight:750;color:#163a67;margin:0 0 3px}
 #dashboard-screen .metric small,#dashboard-screen .metric .symbol{display:none}
 #dashboard-screen .content{padding:12px 12px 18px;display:block}
 #dashboard-screen .path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
 #dashboard-screen .path-grid .card{display:flex;flex-direction:column;min-width:0;padding:6px;border-radius:16px;border:1px solid #d5e7f0;background:#fff;box-shadow:0 4px 14px #153b5b06}
 #dashboard-screen .path-grid .photo{height:auto;aspect-ratio:1.8;flex:none;width:100%;border-radius:11px;overflow:hidden;min-height:0}
 #dashboard-screen .path-grid .card-body{display:flex;flex:1;flex-direction:column;align-items:stretch;padding:10px 4px 4px;min-height:0}
 #dashboard-screen .path-grid .card h2{font-size:16px;line-height:1.3;letter-spacing:-.3px;margin:0 0 5px;color:#17365b}
 #dashboard-screen .path-grid .card p{font-size:10px;line-height:1.5;color:#7a8fa9;max-width:none;min-height:30px;margin:0 0 10px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 #dashboard-screen .path-grid .card .button{width:100%;min-width:0;min-height:35px;padding:8px 5px;margin-top:auto;border-radius:9px;font-size:10px;font-weight:600;line-height:1.3;gap:6px;color:#087ea0;background:#e6f6f9;border:1px solid #d2ecf1}
 #dashboard-screen .path-grid .round{display:none}
 #dashboard-screen .lower{display:grid;grid-template-columns:1fr;gap:12px;margin-top:0}
 #dashboard-screen .lower>.panel{border-radius:16px}
 #dashboard-screen .lower .panel-head{padding:11px 13px;min-height:43px}
 #dashboard-screen .lower .panel-head h2{font-size:17px}
 #dashboard-screen .lower .panel-head button{font-size:10px}
 #dashboard-screen .student-resume-layout{grid-template-columns:26% minmax(0,1fr);gap:12px;min-height:215px;height:auto}
 #dashboard-screen #student-resume{padding:10px}
 #dashboard-screen #student-resume h3{font-size:19px}
 #dashboard-screen .student-resume-visual{min-height:0;border-radius:10px}
 #dashboard-screen .student-resume-visual>span{font-size:12px;right:8px;left:5px;bottom:12px}
 #dashboard-screen .demo{font-size:9px;line-height:1.6;padding:15px 3px 0;color:#90a2b7}
 #dashboard-screen .demo span:last-child{display:none}
}
@media(max-width:360px){
 #dashboard-screen>main>.hero{padding-inline:12px}
 #dashboard-screen .hero h1{font-size:23px}
 #dashboard-screen .hero h1+p{font-size:11px}
 #dashboard-screen .metric>div{font-size:8px}
 #dashboard-screen .metric strong{font-size:18px}
 #dashboard-screen .content{padding-inline:9px}
 #dashboard-screen .path-grid{gap:8px}
 #dashboard-screen .path-grid .card h2{font-size:14px}
 #dashboard-screen .path-grid .card .button{font-size:9px}
}

/* Resume card: a compact thumbnail and copy, followed by a full-width action. */
@media(max-width:700px){
 #dashboard-screen #student-resume{padding:14px;overflow:visible}
 #dashboard-screen #student-resume .student-resume-layout{grid-template-columns:80px minmax(0,1fr);gap:8px 12px;min-height:0;height:auto;align-content:start;align-items:start}
 #dashboard-screen #student-resume .student-resume-visual{grid-column:1;grid-row:1 / span 3;width:80px;height:104px;min-height:0;align-self:start}
 #dashboard-screen #student-resume .student-resume-visual>span{display:none}
 #dashboard-screen #student-resume .student-resume-body{display:contents}
 #dashboard-screen #student-resume .student-resume-body>*{grid-column:2;min-width:0;order:0;margin:0}
 #dashboard-screen #student-resume .pill{justify-self:start;font-size:10px;padding:4px 7px;line-height:1.4}
 #dashboard-screen #student-resume h3{font-size:18px;line-height:1.45;letter-spacing:0;overflow-wrap:anywhere}
 #dashboard-screen #student-resume .student-resume-body>p{font-size:12px;line-height:1.6}
 #dashboard-screen #student-resume .student-resume-body>.student-resume-guide,
 #dashboard-screen #student-resume .student-resume-body>.student-first-note,
 #dashboard-screen #student-resume .student-resume-body>.button{grid-column:1 / -1}
 #dashboard-screen #student-resume .student-resume-guide{margin-top:4px;padding:10px 12px}
 #dashboard-screen #student-resume .student-first-note{font-size:11px;line-height:1.5}
 #dashboard-screen #student-resume .button{display:flex;align-items:center;justify-content:center;min-height:44px;padding:11px 14px;font-size:14px;line-height:1.4;margin-top:4px;box-sizing:border-box}
}
@media(max-width:360px){
 #dashboard-screen #student-resume{padding:12px}
 #dashboard-screen #student-resume .student-resume-layout{grid-template-columns:68px minmax(0,1fr);column-gap:10px}
 #dashboard-screen #student-resume .student-resume-visual{width:68px;height:96px}
 #dashboard-screen #student-resume h3{font-size:16px}
}

/* Mobile dashboard: readable introduction and full-width discovery card. */
@media(max-width:700px){
 #dashboard-screen>main>.hero{padding:18px 16px 20px}
 #dashboard-screen .dashboard-encouragement{margin:0 0 14px;width:100%;white-space:normal}
 #dashboard-screen .dashboard-welcome-row{justify-content:flex-start;margin:0 0 10px}
 #dashboard-screen .hero h1{font-size:clamp(27px,7vw,33px);line-height:1.25;letter-spacing:-.4px}
 #dashboard-screen .hero h1+p{font-size:14px;line-height:1.65;margin-bottom:14px}
 #dashboard-screen .mobile-hero-visual{height:auto;aspect-ratio:16/10;max-height:260px;border-radius:15px;margin-bottom:14px}
 #dashboard-screen .mobile-hero-visual img{object-position:center 30%}
 #dashboard-screen .hero .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #dashboard-screen .hero .metric{flex-direction:row;gap:9px;min-height:78px;padding:10px}
 #dashboard-screen .hero .metric>div{font-size:12px;text-align:right;align-items:flex-start;line-height:1.4}
 #dashboard-screen .hero .metric strong{font-size:24px}
 #dashboard-screen #student-resume.student-discovery .student-resume-layout{display:flex;flex-direction:column;gap:14px;height:auto;min-height:0}
 #dashboard-screen #student-resume.student-discovery .student-resume-visual{flex:none;grid-column:auto;grid-row:auto;width:100%;height:auto;min-height:0;aspect-ratio:16/9;border-radius:12px}
 #dashboard-screen #student-resume.student-discovery .student-resume-visual img{object-position:center 35%}
 #dashboard-screen #student-resume.student-discovery .student-resume-visual>span{display:none}
 #dashboard-screen #student-resume.student-discovery .student-resume-body{display:flex;flex-direction:column;width:100%;gap:10px;min-width:0}
 #dashboard-screen #student-resume.student-discovery .student-resume-body>*{margin:0}
 #dashboard-screen #student-resume.student-discovery h3{font-size:23px;line-height:1.35;overflow-wrap:normal}
 #dashboard-screen #student-resume.student-discovery .student-resume-body>p{font-size:14px;line-height:1.65}
 #dashboard-screen #student-resume.student-discovery .student-resume-guide{padding:12px 14px}
 #dashboard-screen #student-resume.student-discovery .student-first-note{font-size:12px;line-height:1.6}
 #dashboard-screen #student-resume.student-discovery .button{width:100%;min-height:46px;padding:12px 14px;margin:2px 0 0;font-size:15px}
}

/* Balanced mobile progress cards: icon, readable label and prominent value. */
@media(max-width:700px){
 #dashboard-screen .hero .metrics{gap:10px}
 #dashboard-screen .hero .metric{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;justify-content:normal;min-height:100px;padding:14px 11px;text-align:right;border:1px solid #d8e8ef;border-radius:15px;background:#fff;box-shadow:0 3px 12px #173c5b05}
 #dashboard-screen .hero .metric .dashboard-metric-icon{width:36px;height:36px;border-radius:11px;align-self:center}
 #dashboard-screen .hero .metric .dashboard-metric-icon svg{width:23px;height:23px}
 #dashboard-screen .hero .metric>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;min-width:0;flex:none;text-align:right;color:#526c88;font-size:12px;font-weight:500;line-height:1.4}
 #dashboard-screen .hero .metric strong{order:1;display:block;direction:ltr;unicode-bidi:isolate;font-size:29px;font-weight:800;line-height:1.1;letter-spacing:-.6px;margin:0;color:#143760}
 #dashboard-screen .hero .metric small{display:none}
}
@media(max-width:360px){
 #dashboard-screen .hero .metric{grid-template-columns:30px minmax(0,1fr);gap:7px;padding:12px 9px;min-height:96px}
 #dashboard-screen .hero .metric .dashboard-metric-icon{width:30px;height:30px;border-radius:9px}
 #dashboard-screen .hero .metric>div{font-size:11px}
 #dashboard-screen .hero .metric strong{font-size:27px}
}
