:root{--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px)}html{-webkit-text-size-adjust:100%;scroll-padding-bottom:100px}body{min-height:100vh;min-height:100dvh}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}select,input,textarea{font-family:inherit}.profile{gap:12px}#languageSelect{width:65px;min-height:40px;font-size:14px;padding:7px 20px 7px 9px}.app-tools{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:10px 24px;background:#f3f7f4;border-top:1px solid #e0e8e2;font-size:13px}.app-tools button{padding:8px 13px;border:1px solid #ceddd2;border-radius:8px;min-height:38px;color:#42654d;background:white}.app-tools [hidden]{display:none}#connectionStatus{font-size:12px;color:#7c683d}#installHelp{max-width:500px;padding:30px}#installHelp p{font-size:16px;line-height:1.7}#installHelp h2{font-size:28px}#installHelp::backdrop{background:#17362355}.main-nav .nav{min-height:44px}.detail{overscroll-behavior:contain}.detail-actions{padding-bottom:calc(14px + var(--safe-bottom))}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(max-width:700px){body{height:auto!important;min-height:100dvh;overflow-x:hidden;padding-bottom:calc(76px + var(--safe-bottom))}header{padding-top:var(--safe-top);height:calc(72px + var(--safe-top));min-height:calc(72px + var(--safe-top));position:relative}.profile .level{display:none}.profile .avatar{width:30px;height:30px}.profile{gap:7px}.brand{font-size:20px}.main-nav{position:fixed!important;inset:auto 0 0!important;width:100%!important;height:calc(68px + var(--safe-bottom))!important;margin:0;padding:6px 10px calc(6px + var(--safe-bottom));display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;z-index:8;background:#fffffff2;border-top:1px solid #dce6df;border-radius:0;backdrop-filter:blur(18px);box-shadow:0 -4px 20px #1e392508;overflow:hidden}.main-nav .nav{padding:7px 2px;font-size:11px;min-width:0;white-space:normal;line-height:1.2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.main-nav .nav::before{display:block;font-size:19px;line-height:20px}.main-nav .nav[data-view="explore"]::before{content:'◎'}.main-nav .nav[data-view="saved"]::before{content:'☆'}.main-nav .nav[data-view="done"]::before{content:'✓'}.main-nav .nav[data-view="profile"]::before{content:'◉'}.main-nav .nav span{display:none}.main-nav .nav.active{box-shadow:none;background:#eaf2ed;color:#2d593c}.intro,.profile-mode .intro{padding:20px 17px 22px!important}.intro h1{font-size:28px}.intro .eyebrow{margin-bottom:7px}.intro .stats{display:none}main{min-height:0}.search input,.filter-grid select,.note-input,#profileName{font-size:16px!important}.filter-grid select{min-height:44px}.filter-grid button{min-height:44px}.chip{min-height:38px;padding:8px 11px}.view-switch button{min-height:40px}.map-section{height:390px;min-height:330px;touch-action:none}.map-controls button{min-width:44px;min-height:44px}.profile-panel{overflow:visible}.detail,body.list-mode .detail{height:100vh;height:100dvh;max-height:100dvh;padding-top:var(--safe-top);z-index:12}.detail-hero{flex-shrink:0}.detail .close{min-width:44px;min-height:44px}.detail-content{padding-bottom:26px}.detail-actions{position:sticky;bottom:0;flex-shrink:0}.app-tools{justify-content:flex-start;flex-wrap:wrap;padding:14px 17px}.app-tools button{min-height:44px;font-size:14px}footer{padding:14px 17px 22px;line-height:1.7}footer button{min-height:44px;font-size:13px}#installHelp{width:calc(100% - 28px);padding:30px 22px;max-height:80dvh}.keyboard-open .main-nav{visibility:hidden}.detail-open{overflow:hidden}}

.load-more{min-height:44px;grid-column:1/-1;width:100%;margin:8px 0}
@media(max-width:700px){
  #languageSelect,.chip,.view-switch button{min-height:44px}
  #languageSelect{font-size:16px}
  .detail-actions{gap:8px}
  .detail-actions button{min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
  #method,#installHelp{box-sizing:border-box;width:min(500px,calc(100vw - 28px));max-height:80dvh;overflow:auto}
}
