html { height:100%; }
body.app-shell { margin:0; height:100%; min-height:0; overflow:hidden; background:#f8f9ff; color:#0b1c30; font-family:Inter,sans-serif; }
html:not([data-theme=dark]) body.app-shell:is(.history-page,.profile-page,.map-page) { background:#fff; }
html:not([data-theme=dark]) body.app-shell:is(.history-page,.profile-page,.map-page) :is(#app-header,#bottomNav) { background:#fff!important; }
html:not([data-theme=dark]) body.app-shell.history-page > main { background:#fff; }
html[data-theme=dark] body.app-shell:is(.history-page,.profile-page,.map-page) #app-header { background:#0b1424!important;border-bottom:0!important; }
html[data-theme=dark] body.app-shell:is(.history-page,.profile-page,.map-page) #bottomNav { background:#0b1424!important;border-top:1px solid #25334a!important; }
html[data-theme=dark] body.app-shell:is(.history-page,.profile-page,.map-page) #bottomNav .preview-nav a { color:#95a5ba!important;font-size:10px!important; }
html[data-theme=dark] body.app-shell:is(.history-page,.profile-page,.map-page) #bottomNav .preview-nav a[aria-current=page] { color:#6aa6ff!important; }
html[data-theme=dark] body.app-shell:is(.history-page,.profile-page,.map-page) #bottomNav .preview-nav a[aria-current=page]>.material-symbols-outlined:not([style]) { width:38px;height:32px;border-radius:18px;background:#223047;color:#6aa6ff; }
#app-header { position:fixed; inset:0 0 auto; height:64px; padding:0 16px; display:flex; align-items:center; gap:10px; background:#f8f9ff; z-index:60; visibility:visible; box-sizing:border-box; }
#app-header img { width:32px; height:32px; flex:none; }
#app-header > div { display:flex; flex-direction:column; gap:2px; }
#app-header strong { font:700 18px/22px Inter,sans-serif; }
#app-header small { font:400 12px/16px Inter,sans-serif; color:#45464d; }
#app-header button { width:32px; height:32px; padding:0; border:0; border-radius:12px; display:grid; place-items:center; background:#000; color:white; }
#app-header button:first-of-type { margin-left:auto; }
#app-header button span { width:24px; height:24px; font-size:24px; }
#app-header button.shell-back { width:44px; height:44px; flex:none; margin-left:0; background:transparent; color:#0b1c30; border-radius:0; touch-action:manipulation; }
#app-header .shell-back .material-symbols-outlined { font-size:24px; }
#app-header .shell-back ~ .notification-button { margin-left:auto; flex:none; }
#app-header:has(.shell-back) > div { min-width:0; }
#app-header:has(.shell-back) small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#app-header:not(.manager-header) { padding-inline:24px; }
#app-header:not(.manager-header) .notification-button { position:relative; width:40px; height:40px; border-radius:50%; background:#f5f7fa; color:#17212e; }
#app-header .notification-button b { position:absolute; top:-6px; right:-7px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; display:grid; place-items:center; background:#ba1a1a; color:#fff; font:700 10px/17px Inter,sans-serif; }
#app-header.manager-header strong { font-size:17px; }
#app-header.manager-header .notification-button { position:relative; width:40px; height:40px; border-radius:50%; background:#f5f7fa; color:#17212e; }
#pull-refresh { position:fixed; z-index:59; top:64px; left:50%; width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#fff; color:#0051d5; box-shadow:0 3px 12px rgba(11,28,48,.16); transform:translate(-50%,-56px) scale(.82); opacity:0; pointer-events:none; transition:transform 140ms ease, opacity 140ms ease; }
#pull-refresh .material-symbols-outlined { font-size:23px; }
#pull-refresh[data-pull-visible="true"] { opacity:1; }
#pull-refresh[data-pull-ready="true"] { background:#0051d5; color:#fff; }
#pull-refresh[data-pull-refreshing="true"] .material-symbols-outlined { animation:checked-refresh-spin .8s linear infinite; }
@keyframes checked-refresh-spin { to { transform:rotate(360deg); } }
body.app-shell > main { position:fixed; inset:64px 0 80px; width:100%; height:auto; min-height:0!important; margin:0; padding-top:16px!important; padding-bottom:24px!important; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; visibility:visible; }
body.app-shell > #bottomNav { position:fixed; inset:auto 0 0; height:80px; padding:0; border:0; background:#f8f9ff; visibility:visible; z-index:60; }
body.app-shell > #bottomNav { contain:layout; overflow:visible; }
#bottomNav[hidden] { display:none!important; }
body.app-shell.personal-account > main { bottom:0; }
#bottomNav a { font:400 11px/16px Inter,sans-serif; }
body.manager-mode #bottomNav .preview-nav a { font-size:11px!important; }
body.app-shell #bottomNav .preview-nav a[aria-current=page] > .material-symbols-outlined:not([style]) { display:grid; place-items:center; width:38px; height:32px; border-radius:18px; background:#e7f0ff; color:#1765ed; }
#bottomNav .material-symbols-outlined { width:24px; height:24px; font-size:24px; }
body.app-shell.confirm-attendance > #app-header, body.app-shell.confirm-attendance > #bottomNav { display:none; }
body.app-shell.confirm-attendance > main { inset:0; padding:0!important; }
#shell-loading { padding:24px 16px; font-size:14px; }
body.app-shell [hidden] { display:none!important; }
body.app-shell a { text-decoration:none; color:inherit; }
