.market-dialog{width:min(980px,96vw);max-width:96vw;max-height:92dvh;overflow:auto}.market-balance{color:#b8f1cf;font-weight:700}.market-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0;position:sticky;top:0;background:#201a2d;z-index:2;padding:8px 0}.market-tabs button[aria-selected=true],.market-filters button[aria-pressed=true]{background:#b8f1cf;color:#171320;border-color:#b8f1cf}.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:12px}.market-card{background:#262032;border:1px solid #534660;border-radius:15px;padding:16px;min-width:0;display:flex;flex-direction:column;gap:8px}.market-card h3,.market-card p{margin:0}.market-card p{color:#ddd3e9;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}.market-card img{width:74px;height:74px;object-fit:contain;align-self:center}.market-icon{font-size:28px;color:#b8f1cf}.market-card button{min-height:44px}.market-card button:first-of-type{margin-top:auto}.market-card .market-comparison{font-size:13px;color:#b8f1cf}.market-note{grid-column:1/-1;line-height:1.5}.market-filters{display:flex;gap:8px;flex-wrap:wrap}.garden-select{display:block;font-weight:700}.garden-select select{width:100%;margin-top:8px;min-height:44px}.garden35 .crop-symbol{display:block;font-size:25px;line-height:1}.garden35 small{display:block;font-size:11px;max-width:120px;white-space:normal}.garden35{min-width:85px;max-width:25%;min-height:75px}.battle-item-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.battle-items button{min-height:55px}.battle-item-grid button small{display:block;white-space:normal}.rpg-commands #battleItems{grid-column:1/-1}.battle-items[hidden]{display:none}@media(max-width:540px){.market-dialog{padding:14px}.market-tabs{position:static}.market-tabs button{flex:1 1 30%;padding:9px 5px;font-size:12px}.market-card{padding:12px}.garden35{min-width:0;width:25%;font-size:11px;padding:5px}.garden35 small{font-size:10px}.battle-item-grid{grid-template-columns:1fr}.battle-items{max-height:48dvh;overflow:auto}}

.battle-item-grid button{display:flex;flex-direction:column;gap:6px;text-align:left;min-width:0;padding:13px 15px;border:1px solid #655374;background:#30243f;border-radius:12px}.battle-item-grid small{color:#ddd3e9;line-height:1.45}.battle-item-grid strong{font-size:15px}.battle-items>button{margin-top:10px}
