/* Layout fixes of the social / economy screens (Work-ID 20261023-redesign-s3-e841; zenux, 2026-10-23: "menus and information jumbled and overlapping"). Hand-written, so unlike the palette they DO change boxes,
   and only the boxes of the places named here:
   * the GM panel's window sheet has two plates baked in (a narrow one and a wide one: the Players layout). A tab that does not lay its content in those two plates (Equipe & Itens before a player is chosen,
     Logs, Mercado, Loja, Codigos) drew its sections across the plates' frames; its body now paints its own plate over them;
   * phone: the counters of Amigos and Correio ran together ("0 / 100Amigos0Online", "0CARTAS0NAO LIDAS0A COLETAR"), the Amigos search fields had their icon above the field, the Wiki's tab labels sat under
     their icons, and the PC's team heading kept the old bright blue.
   A control keeps ONE authored box in every state (AGENTS.md absolute hover geometry): nothing here depends on hover, focus or selection. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal#modal[data-view="gm"] .gm-body:not(:has(>.gm-grid:only-child)){box-sizing:border-box!important;padding:16px 22px!important;border-radius:8px!important;overflow-x:hidden!important;overflow-y:auto!important;
  background:linear-gradient(180deg,#171d2b,#121826)!important;box-shadow:inset 0 0 0 1px var(--sg-line-hi,#2a3550),inset 0 0 0 2px #0a0e18!important}
 /* the same plate for a tab that only fills part of its panel: its sections keep their own look and sit one under the other */
 body:not(.mobile-web) #modal#modal#modal[data-view="gm"] .gm-body:not(:has(>.gm-grid:only-child))>*{max-width:100%}
}
body.mobile-web #modal .mail-stats{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px}
body.mobile-web #modal .mail-stat{display:inline-flex;align-items:baseline;gap:5px}
body.mobile-web #modal .fr-counters{display:flex;flex-wrap:wrap;align-items:center;gap:4px 18px}
body.mobile-web #modal .fr-counter{display:inline-flex;align-items:center;gap:6px}
body.mobile-web #modal[data-view="friends"] .fr-bar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px!important}
body.mobile-web #modal[data-view="friends"] :is(.fr-search,.fr-name){position:relative;display:flex!important;align-items:center;gap:8px;flex:1 1 200px;min-width:0}
body.mobile-web #modal[data-view="friends"] :is(.fr-search,.fr-name)>:is(i,svg,.fa-solid){position:static!important;flex:0 0 auto;margin:0!important}
body.mobile-web #modal[data-view="friends"] :is(.fr-search-input,.fr-name-input){flex:1 1 auto;min-width:0;width:auto}
body.mobile-web #modal[data-view="help"] .wk-tab{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:6px;line-height:1.1!important}
body.mobile-web #modal[data-view="help"] .wk-tab>*{position:static!important;margin:0!important;flex:0 0 auto}
body.mobile-web #modal[data-view="storage"] .pc-party h3{background:linear-gradient(180deg,var(--color-panel-secondary,#202a3b),var(--color-panel,#171d2b))!important;color:var(--color-text,#f1eee8)!important;box-shadow:inset 0 0 0 1px var(--sg-line-hi,#2a3550)}
