@media screen and (max-width:700px){
  .wrap{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
  .top-inner{min-height:64px}
  .intro{min-height:230px;padding-top:22px;padding-bottom:18px}
  .brand{font-size:10px}
  .tools{gap:4px}
  .icon-button,.star{width:44px;height:44px;flex:none}
  .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:0;overflow:visible;white-space:normal}
  .tabs button{min-height:48px;padding:10px 8px;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
  .tabs button:first-child{grid-column:1 / -1}
  .tabs button.active{background:var(--mint)}
  .search-field{min-width:0;height:48px;padding-right:0}
  .search-field input{font-size:16px;min-height:44px}
  .search-field #clear{width:44px;height:44px;flex:none}
  .filters label:not(.check){min-width:0;font-size:12px}
  .filters select{min-height:48px;font-size:16px;max-width:100%}
  .filters .check{min-height:44px;height:auto;font-size:14px;gap:10px}
  .filters .check input{width:22px;height:22px;margin:0;accent-color:var(--green)}
  .enemy-row{grid-template-columns:minmax(0,1fr) 44px}
  .enemy-row h3,.reference h3{font-size:17px}
  .enemy-row p,.reference p{font-size:15px;line-height:1.75}
  .row-label,.source-link{font-size:12px}
  .source-link{min-height:44px;display:inline-flex;align-items:center}
  .prep-item{min-height:64px;padding:16px 12px}
  .prep-item input{width:24px;height:24px}
  .prep-item p{font-size:14px}
  .sources p,.sources li{font-size:12px;overflow-wrap:anywhere}
  .sources a{display:inline-block;padding:5px 0}
  footer.wrap{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
}
@media screen and (max-width:700px) and (orientation:landscape){.intro{min-height:230px}}
