/* SEGaza V5.2 — optional mobile-only working modes. Desktop remains untouched. */
.v52-mobile-mode-sheet,.v52-mobile-mode-card,.v52-password-toggle,.v52-login-help,.v52-mobile-app-home{display:none}

@media(max-width:760px){
  .v52-mobile-mode-sheet{position:fixed;z-index:220000;inset:0;align-items:flex-end;justify-content:center;background:rgba(8,25,45,.48);backdrop-filter:blur(5px);padding:0}
  .v52-mobile-mode-sheet.is-open{display:flex}
  .v52-mobile-mode-dialog{width:100%;max-height:88dvh;overflow:auto;padding:10px 14px max(18px,env(safe-area-inset-bottom));border-radius:26px 26px 0 0;background:#fff;box-shadow:0 -24px 70px rgba(6,24,44,.25);direction:rtl}
  .v52-mobile-mode-grab{width:42px;height:4px;margin:0 auto 14px;border-radius:99px;background:#ccd6df}
  .v52-mobile-mode-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
  .v52-mobile-mode-head h2{margin:3px 0 0;color:#173f6b;font-size:20px}.v52-mobile-mode-head small{color:#718096;font-size:10px}.v52-mobile-mode-close{width:40px;height:40px;border:0;border-radius:12px;background:#eef3f8;color:#42617d;font-size:21px}
  .v52-mobile-mode-options{display:grid;gap:10px}
  .v52-mobile-mode-option{position:relative;width:100%;padding:16px;border:1px solid #dce6f0;border-radius:18px;background:#fff;text-align:right;color:#17324d}
  .v52-mobile-mode-option b{display:flex;align-items:center;gap:8px;font-size:15px}.v52-mobile-mode-option b span{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#eaf3ff;color:#256fdd;font-size:18px}
  .v52-mobile-mode-option p{margin:8px 44px 0 0;color:#65788b;font-size:11px;line-height:1.7}.v52-mobile-mode-option em{position:absolute;top:14px;left:13px;padding:5px 7px;border-radius:999px;background:#e9f8ef;color:#087b55;font-style:normal;font-size:8px;font-weight:900}
  .v52-mobile-mode-option.is-selected{border-color:#2f78df;background:#f4f8ff;box-shadow:0 0 0 3px rgba(47,120,223,.09)}
  .v52-mobile-mode-note{display:flex;gap:7px;margin:12px 2px 0;padding:10px;border-radius:12px;background:#f6f8fb;color:#64748b;font-size:9px;line-height:1.7}
  .v52-mobile-mode-card{display:block;margin:0 0 11px;padding:11px;border:1px solid #dce6f0;border-radius:15px;background:#f8fbfe}
  .v52-mobile-mode-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}.v52-mobile-mode-card-head b{font-size:11px;color:#244b70}.v52-mobile-mode-card-head span{font-size:9px;color:#718096}
  .v52-mobile-mode-switch{display:grid;grid-template-columns:1fr 1fr;gap:7px}.v52-mobile-mode-switch button{min-height:38px;border:1px solid #d6e1ec;border-radius:11px;background:#fff;color:#46627c;font-weight:800;font-size:10px}.v52-mobile-mode-switch button.is-active{border-color:#276fd0;background:#eaf3ff;color:#174f88}

  #loginView #password{padding-inline-start:72px}
  #loginView .v52-password-wrap{position:relative;display:block}
  #loginView .v52-password-toggle{display:block;position:absolute;left:7px;top:50%;transform:translateY(-50%);height:36px;padding:0 10px;border:0;border-radius:10px;background:#edf3f8;color:#31516f;font-size:10px;font-weight:800}
  #loginView .v52-login-help{display:block;margin:11px auto 0;border:0;background:transparent;color:#315f8c;font-size:11px;font-weight:800}
  #loginView .login-card{width:calc(100% - 22px);max-width:430px;margin:auto;padding:21px 17px;border-radius:23px}
  #loginView .login-card h1{font-size:24px;margin-bottom:5px}#loginView .login-card>p{font-size:11px;margin-bottom:14px}
  #loginView input{min-height:50px;font-size:16px}#loginView #loginBtn{min-height:50px;font-size:14px}

  body.segaza-mobile-simple #moreBtn{display:none!important}
  body.segaza-mobile-simple .bottom-nav{grid-template-columns:repeat(4,1fr)!important}
  body.segaza-mobile-simple .bottom-nav button.v52-simple-hidden{display:none!important}
  body.segaza-mobile-simple .v47-welcome{padding:12px 13px!important;margin-bottom:10px!important}
  body.segaza-mobile-simple .v47-welcome small{display:none!important}body.segaza-mobile-simple .v47-welcome h1{font-size:20px!important}body.segaza-mobile-simple .v47-welcome p{font-size:10px!important;margin-top:4px!important}
  body.segaza-mobile-simple #view-home .v47-section-title{margin-bottom:8px!important}body.segaza-mobile-simple #view-home .v47-section-title h3{font-size:15px!important}
  body.segaza-mobile-simple #view-home .v47-work-card.attention,body.segaza-mobile-simple #view-home .v47-work-card.info{display:none!important}
  body.segaza-mobile-simple #view-home .v47-work-grid{grid-template-columns:1fr!important;gap:7px!important}
  body.segaza-mobile-simple #view-home .v47-work-card{min-height:68px!important;padding:10px 11px!important;border-radius:15px!important}
  body.segaza-mobile-simple #view-home .v47-work-card strong{font-size:12px!important}body.segaza-mobile-simple #view-home .v47-work-card small{font-size:8.5px!important}
  body.segaza-mobile-simple #view-home .v47-quick-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.segaza-mobile-simple #view-home .v47-quick-grid button{min-height:72px!important;padding:10px!important;border-radius:15px!important}
  body.segaza-mobile-simple #view-home .v47-quick-grid button b{font-size:12px!important}body.segaza-mobile-simple #view-home .v47-quick-grid button span{font-size:8.5px!important;line-height:1.5!important}
  body.segaza-mobile-simple .content{padding-inline:11px!important}
  body.segaza-mobile-simple .section-head{gap:8px!important;margin-bottom:11px!important}body.segaza-mobile-simple .section-head h3{font-size:18px!important}body.segaza-mobile-simple .section-note{font-size:10px!important;line-height:1.55!important}
  body.segaza-mobile-simple .site-request-card{padding:12px!important;border-radius:16px!important}body.segaza-mobile-simple .site-request-name{font-size:15px!important}
  body.segaza-mobile-simple .site-request-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}.site-request-actions .btn{min-height:40px!important}
  body.segaza-mobile-simple .student-filters{padding:10px!important;border-radius:15px!important}
  body.segaza-mobile-simple .table-card{border-radius:16px!important}
}

/* V5.2.1 — a genuine app-like workspace for the simplified mobile mode. */
@media(max-width:760px){
  :root{--v52-ink:#102f4f;--v52-muted:#6f8193;--v52-blue:#1769d2;--v52-bg:#f3f7fb;--v52-line:#e5edf4}

  /* First-use choice is deliberately a product screen, not a settings popup. */
  .v52-mobile-mode-sheet{background:linear-gradient(160deg,rgba(8,43,82,.92),rgba(17,105,161,.76));padding:max(16px,env(safe-area-inset-top)) 12px 0}
  .v52-mobile-mode-dialog{max-width:460px;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)));padding:12px 18px max(22px,env(safe-area-inset-bottom));border-radius:30px 30px 0 0;box-shadow:0 -20px 70px rgba(3,25,52,.3)}
  .v52-mobile-mode-logo{display:flex;align-items:center;justify-content:center;gap:8px;margin:2px 0 17px;color:#385a78;font-size:11px;font-weight:900}.v52-mobile-mode-logo img{width:34px;height:34px;object-fit:contain}
  .v52-mobile-mode-head{margin-bottom:18px}.v52-mobile-mode-head h2{font-size:24px;letter-spacing:-.035em;color:var(--v52-ink)}.v52-mobile-mode-head p{margin:7px 0 0;color:#718398;font-size:11px}.v52-mobile-mode-head small{color:#26829d;font-size:10px}
  .v52-mobile-mode-close{background:#f2f6fa;border:1px solid #e3eaf1}
  .v52-mobile-mode-options{gap:12px}.v52-mobile-mode-option{padding:18px;border-radius:21px;box-shadow:0 8px 28px rgba(20,54,88,.05)}.v52-mobile-mode-option.featured{border-color:#a9cdfb;background:linear-gradient(145deg,#f9fcff,#edf6ff)}
  .v52-mobile-mode-option b{font-size:16px}.v52-mobile-mode-option b span{width:44px;height:44px;border-radius:15px}.v52-mobile-mode-option b span svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}
  .v52-mobile-mode-option p{margin:9px 52px 13px 0;font-size:11px}.v52-mobile-mode-option i{display:block;width:100%;padding:10px 12px;border-radius:12px;background:#edf2f7;color:#415b73;text-align:center;font-size:10px;font-style:normal;font-weight:900}.v52-mobile-mode-option.featured i{background:#1769d2;color:#fff}
  .v52-mobile-mode-option em{top:17px;left:16px;background:#dff7ea;font-size:9px}.v52-mobile-mode-note{font-size:9.5px;margin-top:14px}

  body.segaza-mobile-simple{background:var(--v52-bg);color:var(--v52-ink);overscroll-behavior-y:none}
  body.segaza-mobile-simple #appView,body.segaza-mobile-simple #appView .main{min-height:100dvh;background:var(--v52-bg)!important}
  body.segaza-mobile-simple .v47-topbar,body.segaza-mobile-simple #v47MobileContext{display:none!important}
  body.segaza-mobile-simple .content{max-width:560px!important;margin:0 auto!important;padding:0 14px calc(102px + env(safe-area-inset-bottom))!important}
  body.segaza-mobile-simple #view-home>.welcome,body.segaza-mobile-simple #view-home>.v47-work-center,body.segaza-mobile-simple #view-home>.v47-quick-section,body.segaza-mobile-simple #view-home>.v47-compat-metrics{display:none!important}
  body.segaza-mobile-simple .v52-mobile-app-home{display:block!important;padding:0 0 18px;animation:v52-app-enter .24s ease both}
  @keyframes v52-app-enter{from{opacity:.35;transform:translateY(5px)}to{opacity:1;transform:none}}

  .v52-app-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:max(14px,env(safe-area-inset-top)) 1px 9px;background:transparent}
  .v52-app-brand{display:flex;align-items:center;gap:10px;min-width:0}.v52-app-brand img{width:43px;height:43px;object-fit:contain;padding:5px;border-radius:15px;background:#fff;box-shadow:0 7px 22px rgba(21,61,99,.09)}.v52-app-brand div{min-width:0}.v52-app-brand small{display:block;max-width:245px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#73869a;font-size:9px;font-weight:800}.v52-app-brand b{display:block;margin-top:3px;color:var(--v52-ink);font-size:16px;letter-spacing:-.02em}.v52-app-head>button{display:grid;place-items:center;width:43px;height:43px;border:1px solid #e3ebf3;border-radius:15px;background:#fff;color:#395c7a;box-shadow:0 7px 22px rgba(21,61,99,.06)}.v52-app-head svg{width:22px;height:22px;fill:currentColor}
  .v52-app-status{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;padding:0 3px}.v52-app-status>span{display:flex;align-items:center;gap:6px;color:#16815e;font-size:9px}.v52-app-status i{width:7px;height:7px;border-radius:50%;background:#20b77e;box-shadow:0 0 0 4px rgba(32,183,126,.1)}.v52-app-status button{border:0;background:transparent;color:#50708e;font-size:9px;font-weight:900}
  .v52-app-search{display:flex;align-items:center;width:100%;height:50px;margin-bottom:12px;padding:0 15px;border:1px solid #e3ebf3;border-radius:17px;background:#fff;color:#8494a5;text-align:right;box-shadow:0 8px 25px rgba(21,61,99,.05)}.v52-app-search svg{width:20px;height:20px;margin-left:10px;fill:none;stroke:#47718f;stroke-width:1.8}.v52-app-search span{font-size:11px}
  .v52-app-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow:hidden;margin-bottom:19px;padding:18px;border-radius:23px;background:linear-gradient(135deg,#123f70 0%,#1766a1 64%,#128b9a 120%);color:#fff;box-shadow:0 16px 32px rgba(19,78,126,.18)}.v52-app-hero:after{content:"";position:absolute;width:145px;height:145px;left:-65px;top:-75px;border:24px solid rgba(255,255,255,.07);border-radius:50%}.v52-app-hero>div,.v52-app-hero>button{position:relative;z-index:1}.v52-app-hero small{font-size:9px;color:#aee7e1;font-weight:900}.v52-app-hero h1{margin:4px 0 5px;font-size:21px;letter-spacing:-.035em}.v52-app-hero p{margin:0;color:#d7e7f2;font-size:10px}.v52-app-hero button{min-width:68px;height:38px;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:10px;font-weight:900}
  .v52-app-section{margin-top:18px}.v52-app-title{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin:0 2px 10px}.v52-app-title small{display:block;color:#178a91;font-size:8.5px;font-weight:900}.v52-app-title h2{margin:2px 0 0;color:var(--v52-ink);font-size:16px;letter-spacing:-.025em}.v52-app-title>button{border:0;background:transparent;color:#386d9a;font-size:9px;font-weight:900}
  .v52-app-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v52-app-actions>button{min-width:0;min-height:121px;padding:14px;border:1px solid var(--v52-line);border-radius:20px;background:#fff;text-align:right;box-shadow:0 8px 25px rgba(19,54,87,.055)}.v52-app-actions>button>span{display:grid;place-items:center;width:42px;height:42px;margin-bottom:12px;border-radius:14px}.v52-app-actions svg,.v52-follow-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.v52-app-actions b{display:block;color:#183b5d;font-size:13px}.v52-app-actions small{display:block;margin-top:4px;color:#8392a1;font-size:9px}.v52-app-actions .blue,.v52-follow-icon.blue{background:#e8f2ff;color:#196bd4}.v52-app-actions .cyan,.v52-follow-icon.cyan{background:#e5f8f7;color:#168f92}.v52-app-actions .gold,.v52-follow-icon.gold{background:#fff4d8;color:#b67a05}.v52-app-actions .green,.v52-follow-icon.green{background:#e8f8ef;color:#18865b}
  .v52-app-followups{display:grid;gap:8px}.v52-app-followups>button{display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:11px;width:100%;min-height:68px;padding:10px 12px;border:1px solid var(--v52-line);border-radius:18px;background:#fff;text-align:right;box-shadow:0 7px 22px rgba(19,54,87,.045)}.v52-follow-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:14px}.v52-app-followups b{display:block;color:#23435f;font-size:11px}.v52-app-followups small{display:block;margin-top:3px;color:#8a99a8;font-size:8.5px}.v52-app-followups strong{display:grid;place-items:center;min-width:33px;height:33px;padding:0 8px;border-radius:11px;background:#eff4f8;color:#234e74;font-size:13px}

  /* Mobile app tab bar, deliberately different from the desktop navigation. */
  body.segaza-mobile-simple .bottom-nav{right:10px!important;left:10px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;min-height:70px!important;padding:6px!important;border:1px solid rgba(222,232,241,.95)!important;border-radius:22px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 13px 45px rgba(11,43,74,.2)!important;backdrop-filter:blur(18px)!important}
  body.segaza-mobile-simple .bottom-nav button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px!important;padding:5px 2px!important;border-radius:16px!important;background:transparent!important;color:#8090a0!important;font-size:0!important}
  body.segaza-mobile-simple .bottom-nav button[hidden],body.segaza-mobile-simple .bottom-nav button.v52-simple-hidden{display:none!important}
  body.segaza-mobile-simple .bottom-nav button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  body.segaza-mobile-simple .bottom-nav button span{font-size:9px!important;margin:0!important}.bottom-nav button .v52-nav-dot{font-size:18px!important}
  body.segaza-mobile-simple .bottom-nav button.active{background:#eaf3ff!important;color:#155fae!important;font-weight:900!important}.bottom-nav button.active:before{display:none!important}

  /* Common internal screens inherit the app surface without altering their logic. */
  body.segaza-mobile-simple .view:not(#view-home){padding-top:max(15px,env(safe-area-inset-top))}
  body.segaza-mobile-simple .view:not(#view-home)>.section-head{margin:0 0 12px!important;padding:3px 2px 0!important}
  body.segaza-mobile-simple .section-head h3{font-size:21px!important;letter-spacing:-.03em!important;color:var(--v52-ink)!important}.segaza-mobile-simple .section-head>div>small{font-size:8.5px!important}.segaza-mobile-simple .section-note{display:none!important}
  body.segaza-mobile-simple .filters,body.segaza-mobile-simple .student-filters,body.segaza-mobile-simple .table-card,body.segaza-mobile-simple .cards-grid>article,body.segaza-mobile-simple .statistics-group,body.segaza-mobile-simple .finance-maintenance{border-color:var(--v52-line)!important;border-radius:19px!important;box-shadow:0 8px 24px rgba(19,54,87,.045)!important}
  body.segaza-mobile-simple input,body.segaza-mobile-simple select,body.segaza-mobile-simple textarea{border-radius:13px!important;min-height:45px!important}
  body.segaza-mobile-simple .btn{min-height:43px!important;border-radius:13px!important}

  body.segaza-mobile-simple #moreSheet{z-index:2500!important;background:rgba(8,28,49,.42)!important;backdrop-filter:blur(5px)!important}
  body.segaza-mobile-simple #moreSheet .sheet-card{max-height:91dvh;overflow:auto;padding:14px 14px calc(22px + env(safe-area-inset-bottom));border-radius:27px 27px 0 0;background:#f8fafc}
  body.segaza-mobile-simple #moreSheet .sheet-head{position:sticky;top:-14px;z-index:2;margin:0 -14px 10px;padding:14px;background:rgba(248,250,252,.96);backdrop-filter:blur(12px)}
  body.segaza-mobile-simple #moreSheet .sheet-grid{grid-template-columns:1fr 1fr;gap:8px}.segaza-mobile-simple #moreSheet .sheet-grid>button{min-height:48px;border-color:#e3eaf1;border-radius:14px;background:#fff;font-size:10px;font-weight:900}.segaza-mobile-simple #moreSheet .v47-sheet-group{grid-column:1/-1;margin-top:8px;color:#54718b;font-size:9px}
}
