@media (max-width:767px){
/* Visual language adapted from android/native/src/id/cbx150x/app/Ui.java and MainActivity.java. */
:root{--n-bg:#f3f5f9;--n-surface:#fff;--n-surface2:#f8fafc;--n-line:#dfe5ed;--n-text:#172033;--n-muted:#718099;--n-header:#fff;--n-accent:#e11d2e;--n-hero:#fff;--n-shadow:0 2px 12px rgba(15,23,42,.04)}
html.dark-theme{--n-bg:#0b1220;--n-surface:#111a2c;--n-surface2:#16223a;--n-line:#22304d;--n-text:#e9eef7;--n-muted:#93a2bd;--n-header:#0e1729;--n-hero:#1c2439;--n-shadow:none}
html,body{background:var(--n-bg)!important;color:var(--n-text)!important;font-family:Roboto,system-ui,-apple-system,sans-serif!important}
body{min-height:100dvh;background:var(--n-bg)!important}
#mainApp{background:var(--n-bg);min-height:100dvh}
.native-header{background:var(--n-header)!important;border-bottom:1px solid var(--n-line);color:var(--n-text);box-shadow:none;backdrop-filter:none}
.native-header-inner{max-width:1000px;margin:auto;height:68px;padding:0 20px;display:flex;align-items:center;justify-content:space-between}
.native-brand{text-align:left;display:flex;flex-direction:column;gap:1px;line-height:1.3}
.native-brand strong{font-size:17px;font-weight:850;letter-spacing:.01em}.native-brand small{font-size:11px;color:var(--n-muted);font-weight:500}.native-header-actions{display:flex;align-items:center;gap:9px}.native-header-actions>button{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;font-size:17px;position:relative}.native-header-actions>button:hover{background:var(--n-surface2)}.native-header-avatar img{width:34px;height:34px;border-radius:50%;object-fit:cover;background:var(--n-surface2);border:1px solid var(--n-line)}
#notifBadge:not(.hidden){position:absolute;right:0;top:0;display:grid;place-items:center;min-width:17px;height:17px;padding:1px;background:#e11d2e;color:#fff;border-radius:20px;font-size:9px;font-weight:800}
.sidebar{display:none!important}.main-content{width:100%;padding:22px 20px 110px!important;flex:1;min-width:0}#content{max-width:960px!important;padding:0!important;margin:auto!important}#content>h2,.page-heading h2{color:var(--n-text)!important}.bottom-nav-wrap{display:block!important}body:has(#mainApp.hidden) .bottom-nav-wrap{display:none!important}
.bottom-nav{position:fixed;left:50%;right:auto;transform:translateX(-50%);bottom:0;width:100%;max-width:1000px;background:var(--n-header)!important;border:1px solid var(--n-line);border-bottom:0;display:grid!important;grid-template-columns:repeat(4,1fr);gap:0!important;padding:6px 8px max(8px,env(safe-area-inset-bottom));box-shadow:0 -6px 24px #00000008;overflow:visible!important;z-index:50}
.bottom-nav-item{min-width:0;min-height:52px;padding:3px 0;color:var(--n-muted)!important;border-radius:8px}.bottom-nav-item.active{color:var(--n-accent)!important}.bottom-nav-item.active .bn-icon{background:none!important;transform:none;box-shadow:none!important;color:inherit}.bn-icon{width:auto;height:24px;font-size:17px;opacity:.6}.bottom-nav-item.active .bn-icon{opacity:1}.bn-label{font-size:10.5px;font-weight:600;margin-top:1px}
.native-card{background:var(--n-surface);border:1px solid var(--n-line);border-radius:16px;box-shadow:var(--n-shadow);color:var(--n-text)}
.native-home,.native-profile{max-width:760px;margin:auto}.native-identity{padding:19px 20px;background:var(--n-hero);border-color:var(--n-line)}html.dark-theme .native-identity{background:linear-gradient(135deg,#1c2439,#111a2c);border-color:#2a3a56}.native-identity-top{display:flex;align-items:center;gap:13px}.native-avatar,.native-profile-avatar{width:48px;height:48px;display:grid;place-items:center;flex:none;border-radius:50%;background:linear-gradient(135deg,#e11d2e,#8e1325);color:white;font-size:19px;font-weight:800}.native-person{flex:1;min-width:0}.native-person h2{font-weight:800;font-size:18px;line-height:1.3}.native-person p{font-size:10px;letter-spacing:.05em;color:var(--n-muted);margin-top:3px}.native-arrow{font-size:25px;color:var(--n-muted);font-weight:400}.native-wave{display:inline-block;transform-origin:70% 80%;animation:nativewave 3s infinite}@keyframes nativewave{0%,60%,100%{transform:rotate(0)}10%{transform:rotate(18deg)}20%{transform:rotate(-12deg)}30%{transform:rotate(14deg)}40%{transform:rotate(-8deg)}}
.native-summary{display:grid;grid-template-columns:1fr 1fr;margin-top:16px;padding-top:14px;border-top:1px solid var(--n-line)}.native-summary button{text-align:left;display:flex;flex-direction:column;gap:3px}.native-summary button+button{border-left:1px solid var(--n-line);padding-left:22px}.native-summary small,.native-today small,.native-profile-stats small{font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--n-muted)}.native-summary strong{font-size:24px;line-height:1.2;color:var(--n-text)}
.native-today{width:100%;display:flex;align-items:center;gap:13px;padding:15px 17px;text-align:left;margin-top:12px}.native-today>span:nth-child(2){display:flex;flex-direction:column;flex:1;gap:4px}.native-today strong{font-size:13px}.native-today-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e11d2e20}.native-today-icon.done{background:#22c55e20}.native-section-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 1px 10px;color:var(--n-muted)}.native-section-heading span{font-size:10px;font-weight:850;letter-spacing:.12em}.native-section-heading small{font-size:11px}
.native-services{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.native-service{min-height:92px;padding:12px 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--n-text);font-size:12px;font-weight:650;cursor:pointer;transition:transform .15s,border-color .15s}.native-service:hover{border-color:var(--n-accent);transform:translateY(-2px)}.native-service:active{transform:scale(.97)}.native-service-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--tint) 20%,transparent);font-size:18px}
.native-page-title{margin:0 0 15px}.native-page-title h2{font-size:22px;font-weight:850}.native-page-title p{font-size:12px;color:var(--n-muted);margin-top:3px}.native-profile-hero{text-align:center;padding:24px}.native-profile-avatar{width:70px;height:70px;margin:0 auto 10px;font-size:27px;overflow:hidden}.native-profile-avatar img{width:100%;height:100%;object-fit:cover}.native-profile-hero h3{font-size:19px;font-weight:800}.native-profile-hero p,.native-profile-hero span{display:block;color:var(--n-muted);font-size:12px;margin-top:4px}.native-profile-stats{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);padding:15px}.native-profile-stats>div{text-align:center;display:flex;flex-direction:column;gap:4px}.native-profile-stats>div+div{border-left:1px solid var(--n-line)}.native-profile-stats b{font-size:17px}.native-profile-actions{overflow:hidden}.native-profile-actions button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:15px 17px;font-size:13px}.native-profile-actions button+button{border-top:1px solid var(--n-line)}.native-profile-actions button span{font-size:17px}.native-profile-actions button b{flex:1}.native-profile-actions button i{font-size:20px;font-style:normal;color:var(--n-muted)}.native-logout{width:100%;padding:14px;margin-top:16px;border-radius:12px;background:linear-gradient(135deg,#e11d2e,#b3162a);color:white;font-size:14px;font-weight:800}.native-about{text-align:center;padding:10px}.native-about-logo{font-size:40px}.native-about h3{font-size:20px;font-weight:800}.native-about p{font-size:13px;color:var(--n-muted);margin-top:8px}
/* Shared components preserve the existing feature logic while adopting the native palette. */
:root{--primary:#e11d2e;--primary-dark:#b3162a;--primary-light:#f06270;--border:var(--n-line);--text:var(--n-text);--text-light:var(--n-muted);--card:var(--n-surface);--bg:var(--n-bg)}
.btn-primary,.gradient-bg,.grad-primary{background:linear-gradient(135deg,#e11d2e,#b3162a)!important;color:#fff!important;box-shadow:none}.btn{border-radius:11px}.input,select.input,textarea.input{border-color:var(--n-line)!important;background:var(--n-surface2)!important;color:var(--n-text)!important}.input:focus{border-color:#e11d2e!important;box-shadow:0 0 0 3px #e11d2e20!important}label.field{color:var(--n-text)}
.card,.card-soft,.friends-panel,.friend-card,.gallery-album-card,.history-card,.attendance-card,.mobile-menu-card{background:var(--n-surface)!important;border-color:var(--n-line)!important;color:var(--n-text)!important;box-shadow:var(--n-shadow)}
#content .bg-white,.modal-sheet,.mobile-menu-full{background:var(--n-surface)!important;color:var(--n-text)!important}#content .text-gray-800,#content .text-slate-800,#content .text-gray-900{color:var(--n-text)!important}#content .text-gray-500,#content .text-slate-500,#content .text-gray-400{color:var(--n-muted)!important}.modal-sheet{border:1px solid var(--n-line)}.modal-handle{background:var(--n-line)}.mobile-menu-full h3,.mobile-menu-card{color:var(--n-text)!important}.mobile-menu-full p,.mobile-menu-card small{color:var(--n-muted)!important}
/* Native-style sign in */
#loginPage{background:var(--n-bg)!important;min-height:100dvh!important;padding:24px 16px!important}.login-shell{display:block!important;width:min(100%,470px)!important;min-height:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}.login-visual{display:none!important}.login-panel{padding:0!important;background:transparent!important}.login-mobile-brand{display:block!important;text-align:center;padding:12px 4px 25px!important;color:var(--n-text)!important}.brand-duo-mobile{height:105px!important;max-width:320px;margin:auto;gap:28px!important}.brand-duo-mobile img{max-height:100px!important;object-fit:contain}.login-mobile-brand h1{font-size:21px!important}.login-mobile-brand p{color:var(--n-muted)!important}.login-panel>.card{background:var(--n-surface)!important;border:1px solid var(--n-line)!important;border-radius:18px!important;padding:24px!important;box-shadow:var(--n-shadow)!important;color:var(--n-text)!important}.login-panel>.card:before,.login-panel>.card:after{display:none!important}#loginForm h2,#registerForm h2{font-size:20px!important;color:var(--n-text)!important}#loginForm p,#registerForm p{color:var(--n-muted)!important}#loginForm .text-indigo-600,#registerForm .text-indigo-600{color:#e11d2e!important}.login-panel>.text-slate-400{color:var(--n-muted)!important}
@media(max-width:600px){.native-header-inner{height:62px;padding:0 16px}.main-content{padding:16px 14px 100px!important}.native-identity{padding:16px}.native-services{gap:8px}.native-service{min-height:86px;font-size:11px}.native-service-icon{width:34px;height:34px;font-size:16px}.native-person h2{font-size:16px}}
@media(max-width:340px){.native-services{grid-template-columns:repeat(3,minmax(0,1fr))}}
.native-attendance{max-width:760px;margin:auto}.native-info-card{padding:18px;margin-bottom:12px}.native-info-card>small,.native-history-action small{display:block;color:var(--n-muted);font-size:10px;font-weight:850;letter-spacing:.1em}.native-info-card h3{font-size:14px;font-weight:800;margin-top:8px}.native-info-card p{color:var(--n-muted);font-size:12px;line-height:1.5;margin-top:5px}.native-text-action{font-size:12px;font-weight:700;color:#e11d2e;margin-top:12px}.native-attendance-action{width:100%;background:linear-gradient(135deg,#e11d2e,#b3162a);color:white;border-radius:12px;padding:14px;font-size:14px;font-weight:800;margin-bottom:12px}.native-history-action{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:17px}.native-history-action span{display:flex;flex-direction:column;gap:5px}.native-history-action b{font-size:13px}.native-history-action em{font-style:normal;color:var(--n-muted);font-size:12px}.native-history-action i{font-size:24px;font-style:normal;color:var(--n-muted)}
.native-service.native-card{border-color:var(--n-line)!important}.native-service.native-card:hover{border-color:var(--n-accent)!important}
/* Consistent fonts and embedded SVG icons across mobile and desktop. */
*{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.bn-icon svg{width:21px;height:21px}.native-service-icon svg{width:21px;height:21px}.native-service-icon{color:var(--tint)}
/* Utilities must override component display rules, including modals and login panels. */
.hidden{display:none!important}
.native-header-actions svg,.native-today-icon svg{width:21px;height:21px}.native-today-icon{color:#e11d2e}.native-today-icon.done{color:#16a34a}

}
/* Explicit breakpoint: original web layout for laptop / computer. */
.hidden{display:none!important}
.desktop-web-header{display:none}
@media(min-width:768px){
 .desktop-web-header{display:block!important}
 .native-header,.bottom-nav-wrap{display:none!important}
 .sidebar{display:block!important}
 .main-content{padding-bottom:32px!important}
 .hidden.sm\:block{display:block!important}
 .hidden.md\:flex{display:flex!important}
}
@media (min-width:768px) and (max-width:900px){
 #loginPage{padding:18px!important;align-items:center!important}
 .login-shell{width:100%;max-width:1120px;grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);border-radius:24px}
 .login-visual{display:flex;min-height:610px;padding:36px}
 .login-panel{min-height:610px;padding:36px}
 .login-mobile-brand{display:none}
}

/* Preserve the space reserved for login field icons on all layouts. */
.login-panel .input.pl-11{padding-left:2.75rem!important}.login-panel .input.pr-12{padding-right:3rem!important}
