/* V131: retain the original account and appearance actions in bounded mobile panels. */
html[data-mobile-ui="true"] .sv-appearance-swipe{display:none}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-tabs>.sv-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:2px 0 12px;padding-bottom:12px;border-bottom:1px solid #cfb993}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-tabs .sv-tab{min-width:0;min-height:44px;padding:7px 6px;border:1px solid #c6ac82;border-bottom-width:2px;border-radius:8px;background:linear-gradient(#fff9eb,#efe1c6);color:#634c35;font-size:12px;font-weight:650;line-height:1.35;white-space:normal}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-tabs .sv-tab[aria-pressed=true]{border-color:#78936d;background:linear-gradient(#edf4e5,#d9e7ce);color:#395840}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review{font-size:12px;line-height:1.5;margin:7px 0}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review>summary{cursor:pointer;padding:8px 0;min-height:36px;color:#52663c}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review>div{max-height:180px;overflow:auto;overscroll-behavior:contain}
html[data-mobile-ui="true"] .fv131-account-benefits{font-size:12px;line-height:1.6;margin:8px 0}
html[data-mobile-ui="true"] .fv131-account-benefits>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#52663c}
html[data-mobile-ui="true"] .fv131-account-benefits>summary::before{content:'▸';margin-right:7px}
html[data-mobile-ui="true"] .fv131-account-benefits[open]>summary::before{content:'▾'}

html[data-mobile-ui="true"] .fv25-overlay:has(.fv25-dialog[data-view="account"]),
html[data-mobile-ui="true"] #cc-game #g-overlay:has(.sv-appearance-editor){
  position:fixed;inset:auto 0 auto;top:var(--mobile-vtop,0px);height:100vh;height:var(--mobile-vh,100dvh);
  padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));
  box-sizing:border-box;overflow:hidden;align-items:center;justify-content:center;
}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"]{width:min(520px,100%);max-width:100%;max-height:100%;border-radius:13px;display:flex;flex-direction:column;overflow:hidden}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-header{flex:none;padding:12px 15px 10px;gap:8px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-header h2{font-size:21px;line-height:1.3;margin:2px 0}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-header .fv25-eyebrow,
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] [data-farm-subtitle]{display:none}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-body{min-height:0;padding:12px 15px 15px;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:14px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-account-layout{display:flex;flex-direction:column;gap:12px;min-width:0}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-account-preview{display:flex;flex-flow:row nowrap;justify-content:center;align-items:center;min-height:48px;gap:12px;padding:4px 12px;border-radius:9px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv121-community-earth{width:40px;height:40px;flex:0 0 40px;filter:none}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-account-preview h3{font-size:17px;margin:0;letter-spacing:.08em}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-inline-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-inline-tabs button{width:100%;min-height:44px;margin:0;font-size:14px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-field{margin:10px 0;gap:5px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-field>span{font-size:13px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] :is(input,select,textarea){min-height:44px;font-size:16px;line-height:1.35;padding:9px 11px;scroll-margin-block:16px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-note{font-size:12px;line-height:1.55;margin:6px 0}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-message{font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 12px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-submit{position:sticky;bottom:-15px;z-index:2;margin:12px -3px -3px;padding:9px 3px 3px;background:#f7efda;box-shadow:0 -6px 10px #f7efdaeb}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-submit>button{width:100%;min-height:48px;font-size:15px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-benefits{margin:4px 0}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-nav{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-inline:4px;margin:0 0 14px;padding:0 0 8px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-nav button{flex:0 0 auto;min-height:44px;min-width:64px;padding:8px 11px;white-space:nowrap;font-size:13px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-summary>div{min-width:0;padding:12px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-summary strong{font-size:16px;line-height:1.5;word-break:normal;overflow-wrap:anywhere}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-summary span{font-size:12px;margin-bottom:5px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-section{margin-top:0;padding-top:14px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-section>.fv25-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-section>.fv25-actions button{min-height:46px;font-size:14px}

html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor){
  display:flex;flex-direction:column;width:min(760px,100%);max-width:100%;height:100%;max-height:100%;padding:10px;
  overflow:hidden;border-radius:13px;outline:0;
}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-dialoghead{position:static;display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px;padding:0 0 8px;min-height:38px}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-portrait{display:none}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-npcname{font-size:17px;line-height:1.3}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) #g-npcrole{display:none}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-close{position:static;flex:none;min-width:44px;min-height:44px;padding:8px;line-height:1.2;font-size:12px}
html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) #g-dialogbody{display:flex;flex:1;min-height:0;overflow:hidden}
html[data-mobile-ui="true"] #cc-game .sv-root:is([data-service-room-view="character-create"],[data-service-room-view="appearance"]){display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor{display:grid;grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto;gap:8px 10px;flex:1;min-width:0;min-height:0;overflow:hidden}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-layout,
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-parts{display:contents}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview{grid-column:1;grid-row:1;position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:auto;min-width:0;padding:5px 2px;border:1px solid #c9b18b;border-radius:9px;text-align:center}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview canvas[data-appearance-preview]{width:80px;height:100px;max-width:100%;margin:0;background:transparent}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview h3{font-size:11px;line-height:1.3;margin:0;overflow-wrap:anywhere}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview .sv-note{display:none}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity{grid-column:2;grid-row:1;min-width:0;align-self:center}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv-field{margin:0 0 3px;font-size:12px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv-input{min-height:44px;line-height:1.3;padding:8px;font-size:16px;scroll-margin-block:12px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender{margin:6px 0 0}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender legend{font-size:12px;margin:0 0 3px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender .sv-button{min-width:0;min-height:44px;padding:6px;font-size:13px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender .sv-note{display:none}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview{grid-column:1/-1;display:grid;grid-template-columns:60px minmax(0,1fr);gap:12px;text-align:left;justify-content:start;padding:3px 10px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview canvas[data-appearance-preview]{width:54px;height:68px;grid-row:1/span 2}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview h3{font-size:14px;align-self:end}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview .sv-note{display:block;font-size:12px;align-self:start;margin:0;grid-column:2;grid-row:3;min-width:0}
html[data-mobile-ui="true"] #cc-game .sv-appearance-tabs{grid-column:1/-1;grid-row:2;min-width:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-tabs>.sv-tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-padding-inline:4px;scrollbar-width:thin;margin:0;padding:0 0 3px;border:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-tabs .sv-tab{flex:0 0 auto;min-width:58px;min-height:44px;padding:8px 11px;font-size:13px;white-space:nowrap}
html[data-mobile-ui="true"] #cc-game .sv-appearance-swipe{display:block;text-align:right;font-size:10px;line-height:1.3;color:#756348;margin-top:2px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-catalog{grid-column:1/-1;grid-row:3;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:6px;padding:0 2px 6px;outline-offset:-2px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-catalog>.sv-section-title{font-size:14px;line-height:1.4;margin:4px 0 8px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-owned-filter .sv-tabs{max-width:none;margin:0 0 8px;gap:7px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-owned-filter .sv-tab{min-height:44px;font-size:12px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option{min-height:98px;padding:8px 6px;gap:4px;border-radius:9px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option strong{font-size:12px;line-height:1.35}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option :is(.sv-part-index,.sv-part-swatch){width:28px;height:28px;margin:0;font-size:14px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option .sv-owned-status{font-size:10px;line-height:1.3}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option .sv-equipped{font-size:10px;padding:2px 5px;margin:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-option .sv-clothing-thumbnail{flex-basis:64px;height:64px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm{grid-column:1/-1;grid-row:4;display:flex;flex-direction:column;align-items:stretch;gap:7px;flex:none;min-width:0;margin:0;padding:8px 9px;border-radius:10px;box-shadow:0 -3px 8px #5d472015}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm>div:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 9px;align-items:center;flex:none;min-width:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm h3{display:none}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review{grid-column:1;grid-row:1;margin:0;min-width:0;font-size:11px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review>summary{min-height:44px;padding:12px 0}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review[open]{grid-column:1/-1}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review>div{max-height:100px;padding:0 4px 4px;font-size:12px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-total{grid-column:2;grid-row:1/span 2;font-size:11px;line-height:1.4;text-align:right;margin:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-total strong{font-size:18px}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-total span{font-size:10px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-review[open]~.sv-appearance-total{grid-row:1;align-self:start;padding-top:4px}
html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="true"] .sv-appearance-total{display:none}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm>.sv-choices{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);flex:none;gap:8px;max-width:none;width:100%;margin:0}
html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm .sv-button{min-width:0;min-height:46px;padding:7px;font-size:13px;line-height:1.35}
html[data-mobile-ui="true"] #cc-game .sv-root:is([data-service-room-view="character-create"],[data-service-room-view="appearance"])>.sv-error{flex:none;margin:5px 0 0;padding:7px;font-size:13px;line-height:1.4;max-height:65px;overflow:auto}
html[data-mobile-ui="true"] #cc-game .sv-root:is([data-service-room-view="character-create"],[data-service-room-view="appearance"])>.sv-storage-note{flex:none;margin:4px 0 0;font-size:11px;line-height:1.3;max-height:36px;overflow:auto}

@media(max-width:350px){
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-editor{grid-template-columns:76px minmax(0,1fr);gap:6px 8px}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview canvas[data-appearance-preview]{width:70px;height:88px}
}
@media(min-width:600px){
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"]:has(form[data-farm-form="register"]){width:min(760px,100%)}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"]:has(form[data-farm-form="register"]) .fv25-header{padding:8px 12px}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"]:has(form[data-farm-form="register"]) .fv25-body{padding:8px 12px}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"]:has(form[data-farm-form="register"]) .fv25-inline-tabs{margin-bottom:8px}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] form[data-farm-form="register"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;align-items:start}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] form[data-farm-form="register"]>.fv25-field{margin:0;min-width:0}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-extra{min-width:0;align-self:center}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-extra .fv25-note{margin:0;line-height:1.4}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv131-account-extra .fv131-account-benefits{margin:0}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] form[data-farm-form="register"]>.fv131-account-submit{grid-column:1/-1;bottom:-8px;margin:0 -3px -3px;padding:4px 3px 3px}
}
@media(max-height:520px){
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-account-preview{display:none}
  html[data-mobile-ui="true"] .fv25-dialog[data-view="account"] .fv25-header{padding:8px 12px}
  html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor){padding:6px}
  html[data-mobile-ui="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-dialoghead{min-height:30px;margin:0 0 5px;padding:0 0 4px}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-editor{grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:5px 8px}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview{grid-column:1;grid-row:2;align-self:start;padding:3px}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-character-preview canvas[data-appearance-preview]{width:65px;height:81px}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-identity{grid-column:1;grid-row:1;align-self:start}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv-field{display:none}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv-input{min-height:44px;font-size:16px;padding:6px}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender legend{display:none}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-identity .sv17-gender .sv-button{min-height:44px;font-size:12px}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-tabs{grid-column:2;grid-row:1;align-self:end}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-catalog{grid-column:2;grid-row:2}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:8px;align-items:center;padding:6px 8px}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm>.sv-choices{grid-template-columns:minmax(80px,1fr) minmax(0,2fr)}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview{grid-column:1;grid-row:1/span 2;display:flex;align-self:start;padding:5px}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview :is(h3,.sv-note){align-self:center;text-align:center}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-review>div{max-height:65px}
}
@media(max-height:520px) and (max-width:520px){
  html[data-mobile-ui="true"] #cc-game .sv-appearance-editor{grid-template-columns:105px minmax(0,1fr)}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-part-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm{display:flex;gap:3px}
  html[data-mobile-ui="true"] #cc-game .sv-root .sv-appearance-confirm h3{display:none}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-review{grid-row:1}
  html[data-mobile-ui="true"] #cc-game .sv-appearance-review>summary{min-height:44px;padding:12px 0}
}

/* iOS/WebView keyboards can shrink only visualViewport, without a media-query change. */

  html[data-mobile-ui="true"][data-mobile-short="true"] .fv25-dialog[data-view="account"] .fv25-account-preview{display:none}
  html[data-mobile-ui="true"][data-mobile-short="true"] .fv25-dialog[data-view="account"] .fv25-header{padding:8px 12px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .g-dialog:has(.sv-appearance-editor){padding:6px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .g-dialog:has(.sv-appearance-editor) .g-dialoghead{min-height:30px;margin:0 0 5px;padding:0 0 4px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-editor{grid-template-columns:120px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:5px 8px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-character-preview{grid-column:1;grid-row:2;align-self:start;padding:3px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-character-preview canvas[data-appearance-preview]{width:65px;height:81px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-identity{grid-column:1;grid-row:1;align-self:start}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-identity .sv-field{display:none}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-identity .sv-input{min-height:44px;font-size:16px;padding:6px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-identity .sv17-gender legend{display:none}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-identity .sv17-gender .sv-button{min-height:44px;font-size:12px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-tabs{grid-column:2;grid-row:1;align-self:end}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-catalog{grid-column:2;grid-row:2}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-appearance-confirm{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:8px;align-items:center;padding:6px 8px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-appearance-confirm>.sv-choices{grid-template-columns:minmax(80px,1fr) minmax(0,2fr)}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview{grid-column:1;grid-row:1/span 2;display:flex;align-self:start;padding:5px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-editor[data-first-creation="false"] .sv-character-preview :is(h3,.sv-note){align-self:center;text-align:center}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-review>div{max-height:65px}
@media(max-width:520px){
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-editor{grid-template-columns:105px minmax(0,1fr)}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-part-options{grid-template-columns:repeat(2,minmax(0,1fr))}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-appearance-confirm{display:flex;gap:3px}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-root .sv-appearance-confirm h3{display:none}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-review{grid-row:1}
  html[data-mobile-ui="true"][data-mobile-short="true"] #cc-game .sv-appearance-review>summary{min-height:44px;padding:12px 0}
}

/* Farm controls keep the original tool nodes and actions in one touch drawer. */
html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-toggle,
html[data-mobile-ui="true"] body .fv25-hud .fv131-status-toggle{position:fixed;pointer-events:auto;box-sizing:border-box;min-height:48px;padding:9px 8px;border:1px solid #ac9060;border-radius:12px;background:#fff5dfef;color:#493c29;box-shadow:0 2px 7px #49321c33;font:600 13px/1.35 "PingFang SC","Microsoft YaHei",sans-serif;touch-action:manipulation;cursor:pointer}
html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-toggle{left:calc(50% + 20px);bottom:calc(8px + var(--mobile-safe-bottom,0px));width:120px;transform:translateX(-50%)}
html[data-mobile-ui="true"] body .fv25-hud .fv131-status-toggle{top:calc(112px + var(--mobile-safe-top,0px));right:72px;width:52px;min-height:44px}
html[data-mobile-ui="true"] body .fv25-hud :is(.fv131-tool-toggle,.fv131-status-toggle)[aria-expanded="true"]{background:#e2ebd6;border-color:#799069;color:#365335}
html[data-mobile-ui="true"] body .fv25-hud[data-mobile-tools-open="false"] .fv27-tray-row,
html[data-mobile-ui="true"] body .fv25-hud[data-mobile-resources-open="false"] .fv33-resources{display:none!important}
html[data-mobile-ui="true"] body .fv25-hud[data-mobile-tools-open="true"] .fv28-plot-focus{visibility:hidden;pointer-events:none}
html[data-mobile-ui="true"] body .fv25-hud[data-mobile-tools-open="true"] .fv27-tray-row{position:fixed!important;left:50%!important;right:auto!important;bottom:calc(64px + var(--mobile-safe-bottom,0px))!important;top:auto!important;transform:translateX(-50%)!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;width:min(440px,calc(100vw - 20px))!important;max-height:calc(var(--mobile-vh,100dvh) - 164px - var(--mobile-safe-top,0px) - var(--mobile-safe-bottom,0px))!important;box-sizing:border-box!important;padding:8px!important;gap:8px!important;border:1px solid #b49b72!important;border-radius:13px!important;background:#fbf5e7!important;box-shadow:0 6px 24px #201b2244!important;overflow:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;pointer-events:auto;touch-action:pan-y}
html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-heading{display:flex;position:sticky;top:-8px;z-index:1;align-items:center;gap:8px;min-height:44px;padding:4px 0;background:#fbf5e7;border-bottom:1px solid #d8c7a7;flex-shrink:0}
html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-heading strong{flex:1;min-width:0;font-size:15px;line-height:1.4}
html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-heading .fv25-button{flex:none;min-width:48px;min-height:44px;padding:7px 9px;font-size:13px;line-height:1.3}
html[data-mobile-ui="true"] body .fv25-hud .fv27-tool-slots{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:0!important;overflow:visible!important;flex:none;touch-action:pan-y}
html[data-mobile-ui="true"] body .fv25-hud .fv27-tool-slot{flex:none!important;min-width:0!important;width:100%!important;height:66px!important;min-height:66px!important;padding:6px 3px!important;font-size:12px!important;line-height:1.3!important;touch-action:manipulation}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu{position:static!important;display:block;align-self:stretch!important;border:0!important;border-top:1px solid #d8c7a7!important;padding:0!important;flex:none}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu>summary{display:flex!important;flex-direction:row!important;align-items:center;justify-content:space-between;gap:8px;min-height:44px!important;padding:9px 5px!important;font-size:13px!important;touch-action:manipulation}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu-panel{position:static!important;inset:auto!important;width:auto!important;max-width:none!important;max-height:none!important;padding:8px 0 0!important;border:0!important;border-top:1px solid #d8c7a7!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
html[data-mobile-ui="true"] body .fv25-hud .fv33-extra-tools{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu-group{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px!important}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu-group>.fv25-button{min-height:44px!important;font-size:13px!important;padding:7px!important;white-space:normal;touch-action:manipulation}
html[data-mobile-ui="true"] body .fv25-hud .fv27-menu-panel>p{font-size:12px;line-height:1.5;margin:10px 2px 2px}
html[data-mobile-ui="true"] body .fv25-hud[data-mobile-resources-open="true"] .fv33-resources{display:flex!important;position:fixed!important;top:calc(164px + var(--mobile-safe-top,0px))!important;bottom:auto!important;left:auto!important;right:10px!important;transform:none!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;width:min(260px,calc(100vw - 20px))!important;max-height:calc(var(--mobile-vh,100dvh) - 190px - var(--mobile-safe-top,0px))!important;box-sizing:border-box;padding:12px!important;border:1px solid #b49b72!important;border-radius:12px!important;background:#fbf5e7!important;color:#493c29;font-size:13px!important;line-height:1.5!important;box-shadow:0 6px 20px #201b2233!important;white-space:normal!important;overflow:auto!important;pointer-events:auto;overscroll-behavior:contain}
html[data-mobile-ui="true"] body .fv25-hud .fv33-resources>span{padding:3px 0;white-space:normal}
@media(min-width:600px) and (max-height:500px){
  html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-toggle{left:50%;bottom:8px}
  html[data-mobile-ui="true"] body .fv25-hud .fv131-status-toggle{top:60px}
  html[data-mobile-ui="true"] body .fv25-hud .fv27-tool-slots{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html[data-mobile-ui="true"] body .fv25-hud[data-mobile-tools-open="true"] .fv27-tray-row{width:min(510px,calc(100vw - 280px))!important;bottom:64px!important;max-height:calc(var(--mobile-vh,100dvh) - 146px)!important}
  html[data-mobile-ui="true"] body .fv25-hud[data-mobile-resources-open="true"] .fv33-resources{top:112px!important;max-height:calc(var(--mobile-vh,100dvh) - 136px)!important}
}
@media(max-width:350px){
  html[data-mobile-ui="true"] body .fv25-hud .fv131-tool-toggle{left:10px;top:calc(112px + var(--mobile-safe-top,0px));bottom:auto;transform:none;width:116px;min-height:44px}
}
