@media(max-width:920px){
  html.ruyaMobileShell{--ruya-app-navy:#17307a;--ruya-app-ink:#23384f;--ruya-app-muted:#7b8b9c;--ruya-app-line:#dce5ec;--ruya-app-bg:#f5f8fb}
  html.ruyaMobileShell body{background:var(--ruya-app-bg)!important;padding-top:calc(70px + env(safe-area-inset-top))!important;padding-bottom:calc(94px + env(safe-area-inset-bottom))!important;-webkit-tap-highlight-color:transparent}
  html.ruyaMobileShell .sidebar,html.ruyaMobileShell #v74StaffMenuBtn,html.ruyaMobileShell .v742HeroMenu,html.ruyaMobileShell .v743CompactMenu,html.ruyaMobileShell .v746ParentCompactMenu,html.ruyaMobileShell .v52MenuButton{display:none!important}
  html.ruyaMobileShell .shell{display:block!important;min-height:100dvh!important;background:transparent!important}
  html.ruyaMobileShell .main,html.ruyaMobileShell .main.parentMain{width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important;padding-bottom:16px!important}
  html.ruyaMobileShell .main>.v6Topbar{display:none!important}
  html.ruyaMobileShell .shell>.bottomNav,html.ruyaMobileShell #v741QuickNav{display:none!important}
  html.ruyaMobileShell .mobileFloatingLogout{display:none!important}
  html.ruyaMobileShell .parentMobileDrawer,html.ruyaMobileShell .parentDrawerBack{display:none!important}
  html.ruyaMobileShell .main>div:not(.topbar):not(.mobileNevxupCredit){animation:ruyaPageIn .22s ease both}
  @keyframes ruyaPageIn{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:none}}

  #ruyaMobileAppBar{position:fixed;z-index:1400;left:0;right:0;top:0;min-height:calc(62px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) 15px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(218,228,236,.92);background:rgba(255,255,255,.94);box-shadow:0 5px 24px rgba(31,52,78,.07);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .ruyaMobileBrand{display:flex;align-items:center;gap:10px;min-width:0}.ruyaMobileMark{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:linear-gradient(145deg,#17307a,#2a478e);color:#fff;font:900 20px/1 Georgia,serif;box-shadow:0 6px 16px rgba(23,48,122,.16)}.ruyaMobileBrand div{min-width:0}.ruyaMobileBrand b,.ruyaMobileBrand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ruyaMobileBrand b{color:#263a50;font-size:14px;letter-spacing:-.01em}.ruyaMobileBrand small{margin-top:1px;color:#8b98a5;font-size:8px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
  .ruyaMobileTopActions{display:flex;gap:8px;align-items:center}.ruyaMobileTopActions button{position:relative;display:grid;width:40px;height:40px;place-items:center;border:1px solid #dce5ec;border-radius:14px;background:#fff;color:#405a73;box-shadow:0 3px 12px rgba(39,61,83,.05)}.ruyaMobileTopActions .ruyaMobileAvatar{border-color:#e3dde9;background:#f2edf5;color:#665674;font-size:10px;font-weight:900}

  #ruyaMobileBottomNav{position:fixed;z-index:1450;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));bottom:max(7px,env(safe-area-inset-bottom));height:76px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;padding:6px 5px;border:1px solid rgba(218,228,236,.95);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 14px 38px rgba(32,49,71,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  #ruyaMobileBottomNav button{position:relative;min-width:0;height:62px;padding:5px 1px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:17px;background:transparent;color:#7b8b9c;font:inherit;transition:transform .14s ease,background .16s,color .16s}#ruyaMobileBottomNav button:active{transform:scale(.96)}#ruyaMobileBottomNav button>span{display:grid;width:32px;height:28px;place-items:center}#ruyaMobileBottomNav button small{max-width:100%;font-size:7.6px;font-weight:800;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#ruyaMobileBottomNav button.active{background:#eef3f8;color:#17307a}#ruyaMobileBottomNav button.active>span{color:#17307a}
  #ruyaMobileBottomNav .ruyaMobileCenter{height:72px;margin-top:-21px;justify-content:flex-start;gap:3px;color:#17307a;background:transparent!important;overflow:visible}#ruyaMobileBottomNav .ruyaMobileCenter>span{width:56px;height:56px;border:5px solid #fff;border-radius:50%;background:#17307a;color:#fff;box-shadow:0 7px 20px rgba(23,48,122,.28)}#ruyaMobileBottomNav .ruyaMobileCenter small{color:#17307a;font-weight:900}

  #ruyaMobileSheetBack{position:fixed;z-index:1490;inset:0;background:rgba(27,40,58,.36);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
  #ruyaMobileSheet{position:fixed;z-index:1500;left:0;right:0;bottom:0;max-height:min(78dvh,720px);display:grid;grid-template-rows:auto auto minmax(0,1fr);padding:7px 12px max(14px,env(safe-area-inset-bottom));border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -20px 70px rgba(31,46,66,.18);transform:translateY(8px);animation:ruyaSheetUp .2s ease both}@keyframes ruyaSheetUp{from{transform:translateY(35px);opacity:.5}to{transform:none;opacity:1}}.ruyaMobileHandle{width:44px;height:4px;margin:2px auto 7px;border-radius:9px;background:#d7e0e7}#ruyaMobileSheet>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 4px 10px;border-bottom:1px solid #edf1f4}#ruyaMobileSheet>header small{display:block;color:#8a799c;font-size:7.5px;font-weight:900;letter-spacing:.12em}#ruyaMobileSheet>header h3{margin:3px 0 0;color:#2d4257;font-size:20px}#ruyaMobileSheet>header>button{width:38px;height:38px;border:0;border-radius:13px;background:#f0edf5;color:#6d5c7c;font-size:24px}.ruyaMobileSheetBody{min-height:0;overflow:auto;padding:12px 2px 4px;-webkit-overflow-scrolling:touch}
  .ruyaMobileModuleGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ruyaMobileModuleGrid button{display:grid;grid-template-columns:42px minmax(0,1fr) 14px;align-items:center;gap:8px;min-height:58px;padding:7px 9px;border:1px solid #e0e7ec;border-radius:17px;background:#fbfcfd;color:#4a6177;text-align:left}.ruyaMobileModuleGrid button>span{display:grid;width:40px;height:40px;place-items:center;border-radius:13px;background:#eef3f6;color:#4d6a84}.ruyaMobileModuleGrid button b{font-size:9px;line-height:1.15}.ruyaMobileModuleGrid button i{font-style:normal;color:#9aa6b2}
  .ruyaMobileProfileCard{display:grid;grid-template-columns:54px 1fr;gap:11px;align-items:center;padding:12px;border:1px solid #e0e7ed;border-radius:19px;background:linear-gradient(135deg,#f9fbfc,#f7f3fa)}.ruyaMobileProfileCard>span{display:grid;width:52px;height:52px;place-items:center;border-radius:16px;background:#e5edf0;color:#425a6b;font-size:14px;font-weight:900}.ruyaMobileProfileCard b,.ruyaMobileProfileCard small{display:block}.ruyaMobileProfileCard b{color:#31475c;font-size:14px}.ruyaMobileProfileCard small{margin-top:3px;color:#8996a3;font-size:9px}.ruyaMobileRoleBlock{display:grid;gap:6px;margin-top:14px}.ruyaMobileRoleBlock>small{padding-left:4px;color:#8d7b9d;font-size:7.5px;font-weight:900;letter-spacing:.1em}.ruyaMobileRoleBlock button{display:grid;grid-template-columns:40px 1fr 20px;align-items:center;gap:9px;min-height:52px;padding:6px 10px;border:1px solid #e1e8ed;border-radius:15px;background:#fff;color:#52677a;text-align:left}.ruyaMobileRoleBlock button>span{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:#eef3f5}.ruyaMobileRoleBlock button b{font-size:10px}.ruyaMobileRoleBlock button i{font-style:normal;text-align:right}.ruyaMobileRoleBlock button.active{border-color:#d8d0e2;background:linear-gradient(135deg,#f0edf7,#edf5f6);color:#4e6073}
  .ruyaMobileProfileActions{display:grid;gap:8px;margin-top:14px}.ruyaMobileProfileActions>button{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e2e8ed;border-radius:15px;background:#fff;color:#52677a;text-align:left}.ruyaMobileProfileActions>button>svg{justify-self:center}.ruyaMobileProfileActions span b,.ruyaMobileProfileActions span small{display:block}.ruyaMobileProfileActions span b{font-size:10px}.ruyaMobileProfileActions span small{margin-top:2px;color:#929da8;font-size:8px}.ruyaMobileProfileActions>button.danger{border-color:#eadfe2;background:#fff9f9;color:#845e65}
  body.ruyaMobileSheetOpen{overflow:hidden!important}
}
@media(max-width:390px){#ruyaMobileBottomNav button small{font-size:7px}.ruyaMobileModuleGrid{grid-template-columns:1fr 1fr}.ruyaMobileModuleGrid button{grid-template-columns:36px minmax(0,1fr) 10px;padding-left:7px}.ruyaMobileModuleGrid button>span{width:35px;height:35px}}
@media(prefers-reduced-motion:reduce){html.ruyaMobileShell *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* V2.0.12 R5 — gerçek mobil uygulama kabuğu / öğretmen mobil-first düzeltmeleri */
@media(max-width:920px){
  html.ruyaMobileShell .ruyaMobileMark{overflow:hidden;background:#fff;border:1px solid #dce5ec;box-shadow:0 5px 15px rgba(23,48,122,.10)}
  html.ruyaMobileShell .ruyaMobileMark img{width:100%;height:100%;object-fit:contain;padding:3px;box-sizing:border-box}
  html.ruyaMobileShell .role-teacher .v743TeacherCompact{display:none!important}
  html.ruyaMobileShell .role-teacher .main{overflow-x:hidden!important}
  html.ruyaMobileShell .role-teacher .main>*{max-width:100%!important;box-sizing:border-box!important}
  html.ruyaMobileShell .role-teacher .quickGrid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  html.ruyaMobileShell .role-teacher .quickGrid .quick{min-width:0!important;width:100%!important;padding:14px 11px!important}
  html.ruyaMobileShell .role-teacher .grid3{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}
  html.ruyaMobileShell .role-teacher .studentQuick{display:grid!important;grid-template-columns:48px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-height:68px!important;width:100%!important;padding:10px 12px!important;text-align:left!important}
  html.ruyaMobileShell .role-teacher .studentQuick .avatar{width:46px!important;height:46px!important;grid-row:1!important}
  html.ruyaMobileShell .role-teacher .studentQuick>b{font-size:14px!important;line-height:1.15!important;min-width:0!important;white-space:normal!important}
  html.ruyaMobileShell .role-teacher .studentQuick>.muted{font-size:10px!important;white-space:nowrap!important;text-align:right!important}
  html.ruyaMobileShell .role-teacher .card{width:calc(100% - 16px)!important;margin-left:8px!important;margin-right:8px!important;box-sizing:border-box!important}
  html.ruyaMobileShell .role-teacher .formGrid,html.ruyaMobileShell .role-teacher .assessmentGrid{grid-template-columns:1fr!important}
  html.ruyaMobileShell .role-teacher .choiceButtons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  html.ruyaMobileShell .role-teacher .choiceButtons button{min-width:0!important;padding-left:7px!important;padding-right:7px!important}
  html.ruyaMobileShell .role-teacher .dailyMealNoteRow{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  html.ruyaMobileShell .role-teacher .dailyActivitiesBlock .sectionHead{display:flex!important;align-items:flex-start!important;gap:8px!important;flex-wrap:wrap!important}
  html.ruyaMobileShell .role-teacher .dailyActivitiesBlock .sectionHead>div{flex:1 1 220px!important;min-width:0!important}
  html.ruyaMobileShell .role-teacher .dailyActivitiesBlock .secondaryAction{flex:0 0 auto!important;min-height:40px!important;height:40px!important;padding:0 12px!important;border-radius:12px!important;font-size:10px!important;line-height:1!important;white-space:nowrap!important}
  html.ruyaMobileShell .role-teacher .dailyActivityChoices{display:flex!important;flex-wrap:wrap!important;gap:7px!important}
  html.ruyaMobileShell .role-teacher .teacherDailyPastel{padding-bottom:92px!important}
  html.ruyaMobileShell .staffPickupToast{z-index:1460!important;top:calc(72px + env(safe-area-inset-top))!important;right:10px!important;left:10px!important;width:auto!important;max-width:none!important;grid-template-columns:38px minmax(0,1fr) 26px!important;box-shadow:0 14px 34px rgba(19,33,66,.18)!important}
  html.ruyaMobileShell .staffPickupToast>button:not(.staffPickupToastClose){grid-column:2!important;justify-self:start!important;margin-top:4px!important}
  html.ruyaMobileShell .staffPickupToast>.staffPickupToastClose{grid-column:3!important;grid-row:1!important}
  html.ruyaMobileShell .teacherActionFeedback,html.ruyaMobileShell .messageSendFeedback{position:relative!important;z-index:2!important;scroll-margin-bottom:120px!important}
  html.ruyaMobileShell .main{overflow-x:hidden!important}
  html.ruyaMobileShell .main .grid2,html.ruyaMobileShell .main .grid3,html.ruyaMobileShell .main .grid4{max-width:100%!important}
}
@media(max-width:430px){
  html.ruyaMobileShell .role-teacher .quickGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html.ruyaMobileShell .role-teacher .studentQuick{grid-template-columns:44px minmax(0,1fr) auto!important}
  html.ruyaMobileShell .role-teacher .studentQuick .avatar{width:42px!important;height:42px!important}
}


/* V2.0.13 R7 — iPhone viewport, günlük rapor akışı, tam ekran içerik formları */
@media(max-width:920px){
  html.ruyaMobileShell,html.ruyaMobileShell body,html.ruyaMobileShell .shell{min-height:var(--ruya-app-vh,100dvh)!important}
  html.ruyaMobileShell body{width:100%!important;max-width:100vw!important;overflow-x:hidden!important}
  html.ruyaMobileShell .main{min-height:calc(var(--ruya-app-vh,100dvh) - 164px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important}
  html.ruyaMobileShell .teacherDailyRoster{padding:14px!important}
  .teacherDailyRosterHead{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.teacherDailyRosterHead h3{margin:0 0 4px}.teacherTodayPill{flex:0 0 auto;padding:7px 9px;border-radius:12px;background:#edf2f8;color:#17307a;font-size:9px;font-weight:900}
  .teacherDailyRosterTools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:12px 0}.teacherDailySearch{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;min-height:44px;padding:0 10px;border:1px solid #dce5ec;border-radius:14px;background:#fff}.teacherDailySearch input{width:100%;min-width:0;border:0!important;outline:0!important;background:transparent!important;padding:0!important}.teacherPendingToggle{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid #dce5ec;border-radius:14px;background:#fff;color:#61758a;font-size:9px;font-weight:800}.teacherPendingToggle.active{border-color:#17307a;background:#eef3fb;color:#17307a}
  .teacherDailyStudentCards{display:grid;grid-template-columns:1fr;gap:8px}.teacherDailyStudentCard{display:grid;grid-template-columns:48px minmax(0,1fr) 18px;align-items:center;gap:10px;width:100%;min-height:68px;padding:9px 11px;border:1px solid #e0e7ed;border-radius:17px;background:#fff;text-align:left}.teacherDailyStudentCard .avatar{width:46px!important;height:46px!important}.teacherDailyStudentCard span b,.teacherDailyStudentCard span small{display:block}.teacherDailyStudentCard span b{font-size:13px;color:#30475d}.teacherDailyStudentCard span small{margin-top:3px;font-size:9px;color:#8493a2}.teacherDailyStudentCard.done{border-color:#cfe6da;background:#f7fcf9}.teacherDailyStudentCard.done span small{color:#27865b}.teacherDailyStudentCard.pending{border-left:4px solid #d9a441}
  .teacherDailyNav{display:grid;grid-template-columns:1fr;gap:9px;margin-bottom:12px}.teacherDailyBackList{justify-self:start;border:0;background:transparent;color:#17307a;font-weight:900;padding:4px 0}.teacherDailyCurrent{display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:10px}.teacherDailyCurrent .avatar{width:46px!important;height:46px!important}.teacherDailyCurrent b,.teacherDailyCurrent small{display:block}.teacherDailyCurrent small{margin-top:2px;color:#8493a2}.teacherDailyPrevNext{display:flex;gap:8px;position:absolute;right:18px;margin-top:36px}.teacherDailyPrevNext button{width:38px;height:38px;border:1px solid #dce5ec;border-radius:12px;background:#fff;color:#17307a;font-size:20px}.teacherDailyPrevNext button:disabled{opacity:.35}
  .teacherDailySaveActions{position:sticky;z-index:1200;bottom:calc(88px + env(safe-area-inset-bottom));display:grid;grid-template-columns:.7fr 1.3fr;gap:8px;margin:16px -2px 0;padding:8px;background:rgba(245,248,251,.96);border-radius:16px;backdrop-filter:blur(10px)}.teacherDailySaveActions>*{min-height:48px!important;margin:0!important}.teacherDailySaveOnly{border-radius:14px!important}
  .uploadViewportBack{align-items:stretch!important;padding:0!important;background:#fff!important;z-index:1700!important}.uploadViewportModal{width:100vw!important;max-width:none!important;height:var(--ruya-app-vh,100dvh)!important;max-height:var(--ruya-app-vh,100dvh)!important;border-radius:0!important;box-shadow:none!important}.uploadModalHeader{padding:calc(11px + env(safe-area-inset-top)) 14px 10px!important;align-items:center!important}.uploadModalHeader h3{font-size:20px!important}.uploadModalHeader p{font-size:10px!important}.uploadModalHeader>button{min-height:38px!important;padding:7px 10px!important;border:0!important;background:#f1f4f7!important}.uploadModalBody{padding:12px 14px calc(112px + env(safe-area-inset-bottom))!important}.uploadModalFooter{position:fixed!important;left:0!important;right:0!important;bottom:calc(84px + env(safe-area-inset-bottom))!important;padding:8px 12px!important;border-top:1px solid #e2e8ef!important;box-shadow:0 -8px 24px rgba(35,50,70,.08)!important}.uploadModalBody input[type=file]{min-height:52px;padding:10px!important;border:1px dashed #c8d4de!important;border-radius:14px!important;background:#f8fafc!important}
  .homeworkGrid{grid-template-columns:1fr!important}.homeworkCard{border-left:4px solid #17307a!important}.homeworkDue{display:block;margin:5px 0;color:#8a6782;font-weight:800}
}
@media(max-width:430px){.teacherDailyRosterTools{grid-template-columns:1fr}.teacherPendingToggle{justify-content:center}.teacherDailySaveActions{grid-template-columns:1fr}.teacherDailyPrevNext{right:14px}}
