/* ============================================================
 * layout.css — App shell, screens, bottom nav
 * ============================================================ */

/* ---- App Shell ---- */
html{height:100dvh;}body{background:#111!important;margin:0;padding:0;height:100dvh;font-family:-apple-system,BlinkMacSystemFont,'SF Pro Display',sans-serif;}
.app-shell{background:#111;display:flex;justify-content:center;align-items:center;min-height:100vh;}
.app-container{background:#111;display:flex;flex-direction:column;height:100dvh;width:100%;max-width:480px;overflow:visible;margin-left:auto;margin-right:auto;}

/* ---- Screens ---- */
.screen{display:none;min-height:100vh;flex-direction:column;}
.screen.active{display:flex;position:relative;background:#111;color:#fff;flex-direction:column;overflow:hidden;width:100%;height:100%;flex:1;}

/* ---- Bottom Nav ---- */

.bottom-nav{position:fixed;bottom:calc(-1 * var(--vp-gap,0px));left:0;right:0;z-index:100;background:#111;display:grid;grid-template-columns:repeat(5,1fr);width:100%;padding-bottom:env(safe-area-inset-bottom,0px);}
.nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;height:60px;padding:6px 4px;border:none;background:transparent;cursor:pointer;width:100%;color:rgba(255,255,255,0.35);gap:3px;}
.nav-btn svg,.nav-btn span{pointer-events:none;}
.nav-btn svg{width:22px;height:22px;stroke:rgba(255,255,255,0.35);}
.nav-btn span{font-size:10px;font-weight:500;color:rgba(255,255,255,0.35);}
.nav-btn.active{color:var(--accent);}
.nav-btn.active svg{stroke:var(--accent);}
.nav-btn.active span{color:var(--accent);}

/* ---- Onboarding ---- */
.ob-option{color:#333;}


/* iOS tap fix */
.scr-scroll, .home-scroll { -webkit-overflow-scrolling: touch; }
button, [onclick] { cursor: pointer; }

#screen-history { overflow: hidden; }
#screen-history .history-scroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding-bottom: 80px; }

#screen-programs .scr-scroll { position: absolute !important; inset: 0 !important; height: auto !important; overflow-y: scroll !important; -webkit-overflow-scrolling: touch; touch-action: pan-y !important; padding: 16px 16px 80px 16px !important; }

#screen-profile, #screen-programs, #screen-history { overflow: visible !important; }
