/* Nataiji Visual Refinement v4 — stable layout, stronger identity */
@media screen {
:root{--v4-gold:#d4aa43;--v4-navy:#082f50;--v4-green:#07836a}
.bottom-nav button.active:after{content:"";position:absolute;bottom:1px;width:24px;height:3px;border-radius:5px;background:var(--v4-gold)}
.subject-premium-icon{box-shadow:0 5px 15px rgba(8,47,80,.07)!important}
}
@media(max-width:760px){
/* Preserve proven compact header */
header{min-height:auto!important;margin-bottom:14px!important;padding:12px!important;border-radius:20px!important;background:#fff!important;color:var(--nt-text)!important;overflow:visible!important}
.profile{margin-top:0!important;color:var(--nt-text)!important}
.profile b{color:var(--nt-text)!important}
.profile small{color:var(--nt-muted)!important}
header select{height:44px!important;min-height:44px!important;background:#fff!important;border:1px solid var(--nt-line)!important;box-shadow:none!important}
header .profile>i{width:36px!important;height:36px!important;flex:0 0 36px!important}
header .profile b{font-size:14px!important;line-height:1.3!important}
header .profile small{font-size:11px!important;margin-top:2px!important}

/* Home: keep all four useful metrics */
[data-page="home"] .welcome{min-height:164px!important;padding:25px 28px!important;border-radius:25px!important;background:linear-gradient(118deg,#062844 0%,#0b4569 58%,#087960 132%)!important;box-shadow:0 20px 50px rgba(8,43,75,.16)!important;color:#fff!important}
[data-page="home"] .welcome>div{display:block!important}
[data-page="home"] .welcome h1{font-size:26px!important;max-width:100%!important;line-height:1.35!important;overflow-wrap:break-word}
[data-page="home"] .welcome{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:16px!important}
[data-page="home"] .welcome p{max-width:100%!important;margin-bottom:0!important}
[data-page="home"] .welcome button{position:static!important;flex:none!important}
[data-page="home"] .welcome button{width:auto!important;min-height:52px!important;background:#fff!important;color:#08705f!important;border-radius:14px!important;box-shadow:none!important}
[data-page="home"] .stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;background:transparent!important;border:0!important;padding:0!important;box-shadow:none!important}
[data-page="home"] .stats article{display:block!important;min-height:112px!important;padding:18px!important;border:1px solid #dfe8ea!important;border-radius:18px!important;background:#fff!important;box-shadow:0 7px 20px rgba(8,43,75,.05)!important}
[data-page="home"] .stats article b{font-size:28px!important}
[data-page="home"] .card{border-radius:20px!important}

/* Cleaner subject rows */
#subjectProgress.progress-list>div{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px 12px!important;min-height:82px!important;padding:10px 0!important}
#subjectProgress.progress-list>div>span{grid-column:1/-1!important;width:auto!important;max-width:none!important;grid-template-columns:30px minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:8px!important}
#subjectProgress.progress-list>div>span>.subject-premium-icon{grid-column:1!important;grid-row:1!important;width:30px!important;height:30px!important}
#subjectProgress.progress-list .subject-progress-name{grid-column:2!important;grid-row:1!important;overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;font-size:14px!important;line-height:1.45!important}
#subjectProgress.progress-list>div>span>small{grid-column:3!important;grid-row:1!important;font-size:11px!important;direction:ltr!important}
#subjectProgress.progress-list>div>i{grid-column:1!important;width:100%!important;min-width:0!important}
#subjectProgress.progress-list>div>strong{grid-column:2!important;direction:ltr!important;text-align:center!important}
.subject-premium-icon{width:38px!important;height:38px!important;border-radius:12px!important}

/* Students: reduce visual weight without changing actions */
.student-mobile-card,.student-card{border-radius:17px!important;box-shadow:0 5px 16px rgba(8,43,75,.04)!important}
.student-mobile-card .student-actions button,.student-card .student-actions button{min-height:40px!important}

/* Grades: compact, touch-friendly */
[data-page="grades"] .filters{padding:13px!important}
#mobileScores .compact-score-row,.score-row{min-height:70px!important}

/* Reports retain official document workspace */
[data-page="reports"]>.card{border-radius:20px!important}

/* More: stronger unified cards, no oversized hero */
[data-page="more"] .menu-card{min-height:82px!important;padding:14px 16px!important;border-radius:17px!important}

/* Navigation: same icon system on every page */
.bottom-nav{height:74px!important;border-radius:0!important;background:rgba(255,255,255,.97)!important;box-shadow:0 -5px 22px rgba(8,43,75,.07)!important}
.bottom-nav button{position:relative!important}
.bottom-nav button svg{width:24px!important;height:24px!important;stroke-width:1.8!important}
}
