
#map-locations216 button{flex-shrink:0;text-align:left;min-height:44px}input[aria-label="Search locations"]{width:100%}
.quick221{display:flex;gap:5px;align-items:stretch;padding:5px;overflow-x:auto;flex:none}.quick221>button{flex:1;min-width:80px;max-width:180px;font:12px Arial;white-space:normal}.quick221 img{width:28px;height:28px;object-fit:contain;vertical-align:middle}.quick221 .configure221{flex:0 0 82px}
#quick-choice221{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:6px}.quick221 small{font:11px Arial}
@media(min-width:700px){
 .workspace{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:minmax(260px,1fr) minmax(185px,28%);gap:8px;isolation:isolate}
 .workspace #world{display:flex;grid-column:1/3;grid-row:1;min-height:0}
 .workspace #chat{display:flex;grid-column:1;grid-row:2;position:relative;inset:auto;min-width:0;padding:8px;gap:5px}
 .workspace #combat{display:flex;grid-column:2;grid-row:2;position:relative;inset:auto;min-width:0;padding:8px;gap:5px}
 .workspace #inventory,.workspace #more{display:none}
 .workspace #inventory.active,.workspace #more.active{display:flex;position:absolute;inset:0;z-index:8}
 #world .scene{min-height:210px}#world .nearby{width:29%;min-width:190px;bottom:72px;top:8px;left:8px}#world .nearby .actor{min-height:54px;grid-template-columns:34px 1fr}#world .actor img{width:32px;height:43px}
 #world .movement{left:18px;bottom:8px;grid-template-columns:38px 38px 38px;grid-template-rows:32px 32px 32px;gap:0}#world .movement button{min-height:32px;font-size:19px}
 #world .battle-actions{bottom:8px;right:10px;gap:10px}#world .orb span{width:44px;height:44px;font-size:24px;margin-bottom:2px}#world .orb{min-width:48px;font-size:12px}
 #world .minimap{width:140px;height:90px;top:8px;right:8px}#world .target{top:104px;right:8px;width:180px;padding:5px}
 #world .ground{height:65px;margin-top:4px;padding:2px 8px}#world .ground .slots{height:36px}#world .slots img{width:28px;height:28px}
 #world .travel-controls{min-height:44px;padding:2px 7px;gap:5px}#world .travel-controls button{min-height:36px;padding:4px 8px}#walk-status{font:12px Arial}
 #chat h2,#combat h2{font-size:16px}#chat header{height:auto;min-height:32px}#chat select{min-height:34px;padding:3px;max-width:150px}#chat .log,#combat .log{font:13px/1.35 Arial}#chat-form{gap:3px}#chat-form button{padding:5px;min-height:40px}#chat-input{min-height:40px;padding:5px;font:16px Arial}#recipient{min-height:34px;padding:4px;font:16px Arial}
 .bottom{min-height:50px}.bottom button{min-height:40px;font-size:18px}.bottom span{font-size:13px}.topbar{height:76px}.status207{flex:none;max-height:105px;overflow:auto}
}
@media(min-width:1000px){
 .workspace{grid-template-columns:minmax(0,1fr) minmax(300px,35%);grid-template-rows:1fr 1fr}
 .workspace #world{grid-column:1;grid-row:1/3}.workspace #chat{grid-column:2;grid-row:1}.workspace #combat{grid-column:2;grid-row:2}
 #world .target{width:150px}#world .nearby{min-width:170px}#world .scene{min-height:210px}
}
@media(max-height:650px){#game{overflow-y:auto}.workspace{min-height:380px}.topbar{flex:none}.bottom{flex:none}}

@media(min-width:700px){#world .scene{min-height:190px;flex:1 1 0}#world .ground{flex:0 0 65px}#world .travel-controls{flex:0 0 44px}#world .movement{grid-template-columns:44px 44px 44px;grid-template-rows:44px 44px 44px}#world .movement button{min-height:44px}#world .nearby{bottom:145px}.quick221{min-height:52px}#mount-status196{min-height:32px;font:12px Arial;padding:4px 8px}}

/* Keep actors and directional controls in separate touch regions. */
@media(min-width:700px){
 #world .scene{min-height:260px}
 #world .nearby{top:8px;bottom:8px;width:170px;min-width:170px}
 #world .movement{left:190px;bottom:8px}
 .quick221>button{min-height:56px}.quick221{max-height:none;flex:0 0 92px}
 #game{overflow-y:auto}.workspace{flex-shrink:0;min-height:510px}
}
@media(min-width:1000px){.workspace{min-height:440px}}

.quick221>button:not(.configure221){display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;gap:2px}.quick221>button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:13px}.quick221 img{width:22px;height:22px}.quick221 small{white-space:nowrap}

@media(min-width:700px){#world .target{left:190px;right:auto;top:8px;width:180px;max-height:100px;overflow:auto}}

@media(min-width:700px){#world .ground{display:block}#chat select,#recipient{min-height:44px}}
