/* Rebuilt 1.0.15: ALL presentation overrides apply only below 768px.
   At desktop sizes the 1.0.3 layout and stylesheet cascade are untouched. */
@media(max-width:767px){
 body.mobile-app{-webkit-tap-highlight-color:transparent}
 .mobile-app main{padding:14px 16px calc(110px + env(safe-area-inset-bottom,0px))}
 .mobile-app .top{padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
 .mobile-app .top .brand{font-size:clamp(16px,4.9vw,21px);gap:8px;letter-spacing:-.6px}
 .mobile-app .top .brand img{width:34px;height:34px}
 .mobile-app .top .actions #account{font-size:12px;min-height:44px;padding:10px 12px;white-space:nowrap}
 .mobile-app #sessionBanner{font-size:11px;line-height:1.45;padding:10px 12px;margin:0 0 12px;border-radius:12px}
 .mobile-app .profile-strip{padding:12px 14px;gap:10px;margin-bottom:14px;border-radius:20px;flex-direction:column;align-items:stretch}
 .mobile-app .profile-identity strong{font-size:19px}
 .mobile-app .profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .mobile-app .profile-actions #editProfile,.mobile-app .profile-actions #newProfile{width:100%;min-width:0;flex:initial;min-height:42px;padding:9px 8px;font-size:13px}
 .mobile-app .profile-actions #profileSelect{grid-column:1/-1;min-width:0;width:100%;max-width:none}
 .mobile-app main>.hero{display:grid;grid-template-columns:minmax(0,1fr) 68px;align-items:center;gap:12px;padding:16px;margin:0 0 16px;background:var(--mint);border:1px solid var(--line);border-radius:22px}
 .mobile-app .hero .eyebrow{font:700 9px/1.4 system-ui;letter-spacing:1px}
 .mobile-app .hero h1{font:600 23px/1.18 Georgia,serif;letter-spacing:-.6px;margin:6px 0 8px}
 .mobile-app .hero h1 em:after{display:none}
 .mobile-app .hero p{font-size:12px;line-height:1.5;margin:0}
 .mobile-app .hero .button,.mobile-app .hero .hero-note,.mobile-app .hero .speech,.mobile-app .hero .art-label{display:none}
 .mobile-app .hero-art{min-height:0;width:68px;margin:0;background:transparent;border-radius:0}
 .mobile-app .hero-art img{width:68px;height:auto;transform:none}
 #mobileOverview{display:grid;gap:10px;margin:0 0 20px}
 #mobileOverview time{display:block;font:600 22px/1.25 Georgia,serif;text-transform:capitalize}
 .mobile-overview-note{display:block;font-size:12px;color:var(--muted);margin-top:4px}
 .mobile-tallies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .mobile-tallies>span{display:flex;align-items:baseline;justify-content:center;gap:6px;padding:8px;border:1px solid var(--line);background:var(--card);border-radius:14px;color:var(--muted);font-size:12px}
 .mobile-tallies b{font:600 23px/1.2 Georgia,serif;color:var(--ink)}
 .mobile-app #register .eyebrow{display:none}
 .mobile-app #register h2{font-size:25px;margin:0 0 6px}
 .mobile-app #register p{font-size:13px;margin:0}
 .mobile-app .activities{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 24px}
 .mobile-app .activity{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;text-align:center;min-width:0;min-height:122px;border-radius:20px;padding:12px 8px}
 .mobile-app .activity .character svg{width:58px;height:58px}
 .mobile-app .activity strong{font-size:17px;line-height:1.2}
 .mobile-app .activity small{font-size:10px;line-height:1.35}
 .mobile-app .activity:active{transform:scale(.97)}
 .mobile-app .activities .activity:last-child{grid-column:auto}
 .mobile-app .tabs{position:fixed;bottom:0;left:0;z-index:45;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;margin:0;padding:6px 10px calc(6px + env(safe-area-inset-bottom,0px));border:1px solid var(--line);border-bottom:0;border-radius:22px 22px 0 0;background:var(--card);box-shadow:0 -4px 24px #1328201a;overflow:visible}
 .mobile-app .tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;padding:7px 4px;border:0;border-radius:16px;background:transparent;color:var(--muted);font:600 11px/1.25 system-ui;white-space:normal}
 .mobile-app .tabs button.active{background:var(--mint);color:var(--ink);border:0}
 .mobile-app .tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mobile-about{margin-top:24px;border-top:1px solid var(--line);padding-top:18px}
 .mobile-about summary{font-weight:650;cursor:pointer;padding:8px 0;font-size:14px}
 .mobile-about summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px;border-radius:6px}
 .mobile-about-identity{display:flex;align-items:center;gap:12px;margin-top:18px}
 .mobile-about-identity img{width:56px;height:56px;object-fit:contain}
 .mobile-about-identity h3{font:600 22px/1.2 Georgia,serif;margin:0}
 .mobile-about .site-footer{padding:18px 0 0!important;border:0;background:transparent;text-align:left}
 .mobile-about .footer-credit{display:flex;flex-direction:column;align-items:flex-start;gap:12px;font-size:12px;line-height:1.5}
 .mobile-about .footer-credit>span[aria-hidden]{display:none}
 .mobile-about .footer-logo{width:112px}
 .mobile-about .footer-sub{margin:18px 0 0;font-size:11px;line-height:1.8}
 .mobile-app #os-cafe-widget{--osc-bottom:92px}
 .mobile-app #accountDialog #os-cafe-widget{position:static;display:block;max-width:none;width:100%;margin:24px 0 0;padding:18px;border:1px solid var(--line);border-radius:20px;background:var(--bg);color:var(--ink);font:inherit;text-align:left}
 .mobile-app #accountDialog #os-cafe-widget .osc-message{display:none}
 .mobile-support-intro h3{font:600 22px/1.2 Georgia,serif;margin:0 0 8px}
 .mobile-support-intro p{font-size:13px;line-height:1.55;margin:0 0 16px}
 .mobile-app #accountDialog #os-cafe-widget .coffee-float{width:100%;min-height:48px;box-shadow:none}
 .mobile-app #accountDialog #os-cafe-widget .osc-panel{position:relative;bottom:auto;right:auto;width:100%;max-width:none;max-height:none;margin-top:16px;padding:22px 16px;overflow:visible;box-shadow:none}
 .mobile-app .coffee-float{bottom:calc(92px + env(safe-area-inset-bottom,0px));min-height:48px;padding:7px 12px;font-size:13px}
 .mobile-app .coffee-float svg{width:28px;height:28px}
 .mobile-app #toast{bottom:calc(90px + env(safe-area-inset-bottom,0px));z-index:70}
 .mobile-app dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:calc(100dvh - env(safe-area-inset-top,0px) - 14px);border-radius:26px 26px 0 0;border-bottom:0;padding:22px 20px calc(24px + env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
 .mobile-app .dialog-head{margin-bottom:16px;align-items:center}
 .mobile-app .dialog-head .close{width:44px;height:44px;min-width:44px}
 .mobile-app .dialog-head h2{font-size:25px;margin:0}
}
