:root{--body:"Segoe UI",Arial,sans-serif;--mono:"Segoe UI",Arial,sans-serif}
body{font-size:16px;line-height:1.6}
.mega,.giant,.title,.h3,.brand,.stat b,.bandhead h2,.dc{font-family:"Oswald","Segoe UI",sans-serif}
.ds{font-family:"Great Vibes","Segoe Script",cursive}
input[type=password]{width:100%;background:var(--card);border:1px solid var(--line2);border-radius:14px;padding:9px 13px}
.theory{font-size:18px;line-height:1.8}.theory p+p{margin-top:14px}
.rv p{font-family:var(--body);font-size:16px;line-height:1.65}
.rv footer b{font-family:var(--body);font-size:17px;font-weight:600}
.btn{min-height:44px;font-family:var(--body);font-size:14px}.btn.sm{min-height:40px}
.text-link{padding:0;text-decoration:underline;text-underline-offset:3px;color:var(--pink);font-size:inherit}
.file{color:var(--ink);text-decoration:none}.file:hover{border-color:var(--pink)}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.err,.error{color:var(--bad)}.err{font-size:15px}
.notice{padding:12px 16px;background:var(--card2);border-left:3px solid var(--pink)}
#syncStatus{font-size:13px;min-height:20px;margin-bottom:8px;color:var(--muted)}
#syncStatus.error{padding:12px;background:var(--card);border:1px solid var(--bad);border-radius:12px;color:var(--bad)}
.global-status{position:fixed;z-index:70;bottom:18px;left:16px;right:16px;max-width:650px;margin:auto}
.loading{margin:20vh auto;text-align:center}
button:disabled{opacity:.5;cursor:default;transform:none}.working{cursor:progress}
.side .tab{min-height:48px}.side .tab .ic{width:34px;height:34px}
.plead,.ppts p,.revc p{max-width:65ch}
.hnote p,.hr{font-size:14px;line-height:1.55}
.lhead nav button{min-height:44px;padding:8px 10px}
.lhead{align-items:center}.hcard dd{line-height:1.5}
.booktx p{line-height:1.7}.note{line-height:1.8}
@media(max-width:760px){
  .app{display:flex;flex-direction:column}.side{position:relative;top:auto;height:auto;width:100%;padding:12px;display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:6px;border-bottom:1px solid var(--line)}
  .side .brand{display:none}.side .tab{flex:0 0 auto;width:auto;padding:7px 12px;white-space:nowrap;font-size:14px}.side .tab .ic{width:26px;height:26px}.side .tab .bdg{margin-left:4px}
  .main{padding:16px 16px 90px}.top{gap:8px}.top>.row{gap:6px}.top .btn{padding:6px 10px}
  .hero{display:flex;flex-direction:column;height:auto;min-height:0;padding-top:20px;overflow:visible;gap:20px}
  .mega{position:relative;top:auto;left:auto;right:auto;order:0;width:100%}
  .hl{position:relative;top:auto;left:auto;order:1;font-size:32px;align-self:center;margin-top:8px}
  .hl .dc{font-size:1.4em}.girl{position:relative;left:auto;bottom:auto;transform:none;height:auto;width:min(80%,300px);align-self:center;order:2;max-height:380px;object-fit:contain;margin-top:-12px}
  .hr{position:relative;top:auto;right:auto;order:3;width:auto;text-align:center}.hr .bars{display:none}
  .hnote{position:relative;left:auto;bottom:auto;order:4;width:100%;align-items:center;text-align:center}.hnote p{max-width:40ch;font-size:15px}
  .hcard{position:relative;right:auto;bottom:auto;order:5;width:100%;padding:16px;margin-bottom:12px}
  .lhead{grid-template-columns:1fr auto;gap:12px;padding-block:14px}.lhead nav{grid-row:2;grid-column:1/-1;justify-content:flex-start;gap:0}.lhead>.row{justify-content:flex-end;gap:6px}
  .lcols{padding-top:20px;padding-bottom:30px;gap:24px}.lcols .go{width:100%}
  .proof{padding-inline:20px}.pstats{gap:12px}.pstat b{font-size:32px}.pstat span{font-size:14px}
  .rv{padding:20px 32px}.revh{font-size:26px}.bookc{padding:24px 28px}.bookf{grid-template-columns:1fr}.bookf .wide{grid-column:auto}
  .modal{padding:22px 18px;border-radius:20px}.modal .duo{white-space:normal}
  #mascot{width:90px;height:110px;right:10px;bottom:8px}.title{font-size:30px}
  .banner>*:not(canvas){max-width:100%}.banner{min-height:180px}.stk{opacity:.25}
  .revg{columns:1}.tile .stat b{white-space:normal}.week{min-width:690px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*{animation:none!important;transition:none!important}}

/* Mobile QA: readable fields, touch targets and narrow headings. */
#lpJobs code,#lpJobs b{overflow-wrap:anywhere}
#lpJobs .btn{max-width:100%;white-space:normal}
@media(max-width:760px){
  input,textarea,select{min-width:0;max-width:100%;font-size:16px!important}
  .btn.sm{min-height:44px}
  .week .slot{min-height:44px}
  .weekwrap,.tablewrap,.side{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .weekwrap:focus-visible{outline:2px solid var(--pink);outline-offset:3px}
  .revs .duo{max-width:100%;white-space:normal}
  .revh .dc{margin-left:0;max-width:100%;text-align:center}
  .modal .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .modal{max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .overlay{padding-top:max(16px,env(safe-area-inset-top,0px));padding-bottom:max(16px,env(safe-area-inset-bottom,0px))}
  .theory{min-width:0;overflow-x:auto}
}
