/* Mobile v89: real text controls, a responsive panel and state-complete navigation.
   Desktop retains its existing DOM and cascade. */
@media (max-width:700px), (max-width:1024px) and (pointer:coarse){
 /* Reuse the original header/navigation as a compact native disclosure. */
 html body .header.wf-mobile-header[data-mobile-navigation=true]{
  display:flex;align-items:center;
  gap:8px;min-height:64px;height:auto;flex-wrap:wrap;
  padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px));
  padding-top:calc(8px + env(safe-area-inset-top,0px));
 }
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand{flex:1 1 max-content;min-width:0;width:auto;max-width:100%;min-height:44px;height:auto;gap:2px;align-items:center;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-mark{width:36px;height:40px;flex:0 0 36px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-type{min-width:0;padding:0;white-space:normal;overflow-wrap:anywhere;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-type b{font-size:18px;line-height:1.25;letter-spacing:-.7px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-type small{font-size:8px;line-height:1.6;letter-spacing:.5px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .login.generated-button{position:relative;inset:auto;flex:0 0 auto;width:auto;min-width:88px;max-width:calc(100% - 52px);height:auto;min-height:44px;margin:0 0 0 auto;padding:10px 12px;border:1px solid #80633370;border-radius:3px;background:#121511;box-shadow:none;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .login.generated-button>.button-art{display:none;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .login.generated-button>.button-label{position:static;inset:auto;display:block;width:auto;height:auto;clip-path:none;overflow:visible;margin:0;padding:0;font:500 14px/1.4 var(--serif);letter-spacing:0;white-space:normal;overflow-wrap:anywhere;color:var(--ink);border:0;border-radius:0;background:none;box-shadow:none;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu{position:static;flex:0 0 44px;width:44px;min-width:44px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu-button{
  display:flex;align-items:center;justify-content:center;width:44px;height:44px;
  padding:10px;border:1px solid #80633370;border-radius:3px;background:#121511;color:var(--ink);cursor:pointer;list-style:none;
 }
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu-button::-webkit-details-marker{display:none;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu-button::marker{content:'';}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu-button svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu-button:focus-visible{outline:2px solid #ead091;outline-offset:3px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu[open] .site-mobile-menu-button{color:var(--gold);border-color:var(--gold);}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu:not([open])>.navigation{display:none!important;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu>.navigation{
  position:absolute;inset:100% 0 auto;display:grid;grid-template-columns:1fr;gap:0;
  width:100%;height:auto;margin:0;padding:8px 16px 16px;
  max-height:min(70dvh,calc(100dvh - 72px));overflow-y:auto;overscroll-behavior:contain;
  background:#0c120d;border-bottom:1px solid #80633370;box-shadow:0 14px 24px #0005;
 }
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu>.navigation :is(button,.site-blog-link){
  display:flex;align-items:center;justify-content:flex-start;width:100%;min-width:44px;min-height:48px;
  margin:0;padding:10px 12px;text-align:left;font:500 16px/1.5 var(--serif);
  transform:none;white-space:normal;border-bottom:1px solid #80633340;
 }
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu>.navigation :is(button,.site-blog-link):last-child{border-bottom:0;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .site-mobile-menu>.navigation :is(button,.site-blog-link):focus-visible{outline-offset:-3px;}
 /* Keep the one-column grid within the viewport, including enlarged text. */
 html[data-mobile-ux=true] .stage{min-width:0;grid-template-columns:minmax(0,1fr);}
 html[data-mobile-ux=true] .hero{min-width:0;width:calc(100% - 32px);padding-top:24px;padding-bottom:24px;}
 html[data-mobile-ux=true] .hero :is(h1,.hero-description){min-width:0;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] .hero h1 span{white-space:normal;}
 html[data-mobile-ux=true] .hero>.eyebrow{min-width:0;min-height:32px;}
 html[data-mobile-ux=true] .hero>.eyebrow span{min-width:0;white-space:normal;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] .hero-actions{gap:10px;margin-top:20px;align-items:stretch;}
 /* Reuse the site's red primary action with live lettering. The desktop art
    contains baked text, which cannot wrap or follow the phone's text size. */
 html[data-mobile-ux=true] .hero-actions>.connect.generated-button{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:100%;max-width:420px;height:auto;min-height:56px;aspect-ratio:auto;
  padding:14px 16px;border:1px solid #ae8a43;border-radius:3px;
  background:linear-gradient(#892126,#4a1014);color:#f5e6bc;box-shadow:none;
 }
 html[data-mobile-ux=true] .hero-actions>.connect.generated-button>.button-art{display:none;}
 html[data-mobile-ux=true] .hero-actions>.connect.generated-button>.button-label{
  position:static;inset:auto;display:block;min-width:0;width:auto;height:auto;
  clip-path:none;overflow:visible;margin:0;padding:0;transform:none;
  font:600 17px/1.4 var(--serif);letter-spacing:0;white-space:normal;overflow-wrap:anywhere;
 }
 html[data-mobile-ux=true] .hero-actions>.connect.generated-button::after{content:'→';flex:0 0 auto;font:24px/1 var(--sans);}
 html[data-mobile-ux=true] .hero-actions>.demo.immersive-chat{width:100%;max-width:420px;min-height:52px;height:auto;aspect-ratio:auto;padding:12px 16px;margin:0;border-radius:3px;}
 html[data-mobile-ux=true] .hero-actions>.demo.immersive-chat>span{overflow-wrap:anywhere;}
 /* The existing clean panel treatment replaces the oversized desktop sprite
    only on phones. Heading, cards and input all share a real inner gutter. */
 html[data-mobile-ux=true] .session{
  display:flex;flex-wrap:wrap;align-items:center;min-width:0;max-width:calc(100% - 32px);
  padding:16px;gap:14px;border:1px solid #80633370;border-radius:4px;
  background:linear-gradient(140deg,#1b2119,#111714 65%);box-shadow:0 12px 28px #0004;
 }
 html[data-mobile-ux=true] .session::before,html[data-mobile-ux=true] .session::after{content:none;border:0;border-image:none;}
 html[data-mobile-ux=true] .session>.portrait{display:none;}
 html[data-mobile-ux=true] .session h2{
  flex:1 1 0;min-width:min(100%,12ch);max-width:100%;font-size:18px;line-height:1.4;
  margin:0;min-height:0;letter-spacing:-.3px;overflow-wrap:anywhere;
 }
 html[data-mobile-ux=true] .session>.demo-badge{
  flex:0 0 auto;min-height:44px;height:auto;min-width:64px;max-width:100%;margin:0;
  padding:10px 12px;font-size:11px;line-height:1.4;letter-spacing:.7px;overflow-wrap:anywhere;
 }
 html[data-mobile-ux=true] .session .action-cards{flex:1 0 100%;min-width:0;gap:10px;}
 html[data-mobile-ux=true] .session .action-card{min-width:0;min-height:80px!important;padding:12px!important;border-radius:3px;}
 html[data-mobile-ux=true] .session .card-copy{min-width:0;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] .session .card-copy strong{font-size:16px;line-height:1.35;}
 html[data-mobile-ux=true] .session .card-description{font-size:14px;line-height:1.45;margin-top:4px;}
 html[data-mobile-ux=true] .session .card-description br{display:none;}
 html[data-mobile-ux=true] .session .composer{
  display:flex;flex:1 0 100%;align-items:center;gap:8px;min-width:0;min-height:62px;height:auto;
  margin-top:0;padding:8px;border-color:#696b56;border-radius:3px;background:#0b100e;
 }
 html[data-mobile-ux=true] #hero-input{
  flex:1 1 0;min-width:0;width:100%;min-height:44px;height:auto;padding:8px 4px;
  font-size:16px;line-height:1.5;
 }
 html[data-mobile-ux=true] .session .composer .send.generated-button{
  position:static;inset:auto;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;
  border:1px solid #ae8a43;border-radius:3px;background:linear-gradient(#892126,#4a1014);color:#f5e6bc;box-shadow:none;
 }
 html[data-mobile-ux=true] .session .composer .send.generated-button>.button-art{display:none;}
 html[data-mobile-ux=true] .session .composer .send.generated-button::after{
  content:'';display:block;width:21px;height:21px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l19 9-19 9 4-8 9-1-9-1z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l19 9-19 9 4-8 9-1-9-1z'/%3E%3C/svg%3E") center/contain no-repeat;
 }
 /* Existing example conversations are available on demand, not forced screens. */
 html[data-mobile-ux=true] :is(#auction,#raid,#pvp){min-height:0;height:auto;border-top:1px solid #80633340;}
 html[data-mobile-ux=true] :is(#auction,#raid,#pvp)>.auction-layout{padding-top:28px;padding-bottom:12px;}
 html[data-mobile-ux=true] :is(#auction-title,#raid-title,#pvp-title){font-size:clamp(30px,8vw,36px);line-height:1.15;margin-top:10px;}
 html[data-mobile-ux=true] :is(#auction,#raid,#pvp) .auction-lead{margin-top:12px;}
 html[data-mobile-ux=true] .site-mobile-example{margin-top:20px;border:1px solid #80633370;background:#111514d9;}
 html[data-mobile-ux=true] .site-mobile-example>summary{
  display:list-item;list-style-position:inside;min-height:48px;padding:12px 14px;
  color:var(--ink);font:500 15px/1.5 var(--serif);cursor:pointer;
 }
 html[data-mobile-ux=true] .site-mobile-example>summary::marker{color:var(--gold);}
 html[data-mobile-ux=true] .site-mobile-example>summary:focus-visible{outline:2px solid #ead091;outline-offset:-3px;}
 html[data-mobile-ux=true] .site-mobile-example[open]>summary{border-bottom:1px solid #80633370;}
 html[data-mobile-ux=true] .site-mobile-example:not([open])>.auction-conversation{display:none;}
 html[data-mobile-ux=true] .site-mobile-example>.auction-conversation{margin:0;padding:16px 12px 12px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-head{padding-left:0;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-kicker{font-size:11px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-disclaimer{font-size:12px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-tools{padding-left:0;}
 html[data-mobile-ux=true] .site-mobile-example .auction-message-window{height:360px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-context-copy{font-size:14px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-buttons{gap:8px;flex-wrap:wrap;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-buttons>.text-link{min-width:44px;min-height:44px;font-size:14px;}
 html[data-mobile-ux=true] :is(#auction,#raid,#pvp)>.mobile-chapter-cues{padding-left:72px;}
 /* Give existing navigation arrows visible destinations instead of hover-only labels. */
 html[data-mobile-ux=true] .mobile-chapter-cues{gap:12px;min-height:64px;padding:8px 16px max(12px,env(safe-area-inset-bottom,0px));}
 html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-cue{display:flex;flex:1 1 0;align-items:center;justify-content:center;gap:8px;min-width:0;width:auto;min-height:44px;height:auto;padding:10px 8px;border:1px solid #80633370;border-radius:3px;background:#121511;}
 html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-glyph{position:static;flex:0 0 16px;width:16px;height:12px;transform:none;}
 html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-label{position:static;inset:auto;display:block;min-width:0;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:none;white-space:normal;overflow-wrap:anywhere;font:13px/1.4 var(--sans);text-align:center;color:var(--ink);margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;}
 html[data-mobile-ux=true] :is(#agent-notice-accept,#agent-notice-open,.pricing-account-link,.pricing-footer a,.pricing-footer button){min-height:44px;min-width:44px;}
 html[data-mobile-ux=true] .pricing-account-link{font-size:14px;}
 html[data-mobile-ux=true] .pricing-footer :is(a,button){display:inline-flex;align-items:center;justify-content:center;font-size:13px;padding:8px;}
 html[data-mobile-ux=true] .storage-examples>.quick-prompt{min-height:44px;font-size:14px;}
 html[data-mobile-ux=true] .storage-search input{font-size:16px;}
}
@media (max-width:359px){
 html body .header.wf-mobile-header[data-mobile-navigation=true]{gap:6px;padding-inline:12px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-mark{width:30px;flex-basis:30px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .brand-type b{font-size:16px;}
 html body .header.wf-mobile-header[data-mobile-navigation=true] .login.generated-button{min-width:76px;padding-inline:10px;}
}

/* v89 mobile chapters: preserve existing content, use readable cards and bounded dialogs. */
@media (max-width:700px), (max-width:1024px) and (pointer:coarse){
 html[data-mobile-ux=true] .map-advice-context.proactive-context{padding:16px;background:#101711;}
 html[data-mobile-ux=true] .map-advice-context :is(.agent-notice-signal,.agent-notice-head p,.agent-goal-hint,.agent-goal-step){font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] .map-advice-context :is(.agent-next,.agent-resume,.armory-shortcut,.agent-session-plan>summary,.agent-offscreen>summary){font-size:14px;line-height:1.5;min-height:44px;}
 html[data-mobile-ux=true] .map-poi-shortcuts{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;}
 html[data-mobile-ux=true] .map-poi-shortcuts .quick-prompt{min-width:0;width:100%;font-size:14px;line-height:1.5;min-height:48px;padding:10px 12px;text-align:left;}
 html[data-mobile-ux=true] .map-poi-shortcuts .quick-prompt>img{flex:0 0 28px;}
 html[data-mobile-ux=true] .agent-notice-actions{gap:8px;flex-wrap:wrap;}
 html[data-mobile-ux=true] .agent-notice-actions :is(.gold-button,.quick-prompt){font-size:14px;line-height:1.4;min-height:48px;}
 /* One scroll area for the advice and disclosures; the composer and close stay reachable. */
 html[data-mobile-ux=true] #map-advice-dialog{width:min(680px,calc(100vw - 16px));max-width:calc(100vw - 16px);height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);max-height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);margin:auto;outline:0;}
 html[data-mobile-ux=true] #map-advice-dialog[open]{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;}
 html[data-mobile-ux=true] #map-advice-dialog>.dialog-bar{flex:0 0 auto;min-height:72px;padding:12px;gap:10px;}
 html[data-mobile-ux=true] #map-advice-dialog>.dialog-bar>img{width:40px;height:40px;flex:0 0 40px;}
 html[data-mobile-ux=true] #map-advice-dialog h2{font-size:20px;line-height:1.3;}
 html[data-mobile-ux=true] #map-advice-dialog .dialog-bar .status{font-size:12px;line-height:1.4;}
 html[data-mobile-ux=true] #map-advice-dialog .site-mobile-map-body{flex:1 1 auto;min-height:96px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#806333 #101711;}
 html[data-mobile-ux=true] #map-advice-dialog .map-advice-profile{padding:10px 14px;font:12px/1.5 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog .messages{height:auto;max-height:none;min-height:0;overflow:visible;flex:none;padding:16px 14px 8px;}
 html[data-mobile-ux=true] #map-advice-dialog .message{margin-bottom:14px;gap:8px;}
 html[data-mobile-ux=true] #map-advice-dialog .message-avatar{width:28px;height:28px;flex:0 0 28px;}
 html[data-mobile-ux=true] #map-advice-dialog .message-text{font:14px/1.6 var(--sans);padding:12px;}
 html[data-mobile-ux=true] #map-advice-dialog .message-content{max-width:100%;min-width:0;}
 html[data-mobile-ux=true] #map-advice-dialog .agent-decision{padding:0 14px;display:flex;flex-wrap:wrap;gap:8px;}
 html[data-mobile-ux=true] #map-advice-dialog .agent-decision :is(.gold-button,.quick-prompt){min-height:44px;padding:10px 12px;font:14px/1.4 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog .agent-goal-hint{padding:8px 14px 10px;font:12px/1.5 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog :is(.agent-detail-options,.map-advice-sources){max-height:none;overflow:visible;padding:0 14px 10px;font:13px/1.5 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog :is(.agent-detail-options,.map-advice-sources)>summary{min-height:44px;padding:10px 0;font:14px/1.6 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog .quick-prompts{padding:0;gap:8px;}
 html[data-mobile-ux=true] #map-advice-dialog .quick-prompts .quick-prompt{min-height:44px;padding:10px 12px;font:13px/1.4 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog .map-advice-sources a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] #map-advice-dialog .chat-footer{display:flex;align-items:center;padding:0 14px;font:12px/1.5 var(--sans);}
 html[data-mobile-ux=true] #map-advice-dialog .chat-footer button{min-height:44px;min-width:44px;font-size:13px;}
 html[data-mobile-ux=true] #map-advice-dialog>.chat-composer{flex:0 0 auto;padding:12px 14px;margin:0;border-top:1px solid #80633370;background:#101711;gap:8px;}
 html[data-mobile-ux=true] #map-advice-dialog .chat-composer input{height:48px;min-width:0;font-size:16px;}
 html[data-mobile-ux=true] #map-advice-dialog .chat-send{position:relative;inset:auto;flex:0 0 48px;width:48px;height:48px;min-height:48px;}

 /* Preview messages grow with their copy, then scroll before they can cover the controls. */
 html[data-mobile-ux=true] .site-mobile-example>.auction-conversation{min-height:0;gap:12px;background:#111812eb;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-head{display:block;}
 html[data-mobile-ux=true] .site-mobile-example .auction-message-window{height:auto;min-height:0;flex:none;padding:0;gap:6px;}
 html[data-mobile-ux=true] .site-mobile-example :is(.auction-conversation-feed,.raid-conversation-feed,.pvp-conversation-feed){flex:0 1 auto;min-height:0;max-height:clamp(240px,55svh,480px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#806333 #101711;padding:4px 4px 4px 0;}
 html[data-mobile-ux=true] .site-mobile-example :is(.auction-typing,.raid-typing,.pvp-typing){position:static;inset:auto;flex:0 0 24px;min-height:24px;height:auto;padding:0 0 0 36px;font-size:12px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-chat-actions{flex-wrap:wrap;gap:4px 12px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-chat-actions .text-link{font-size:13px;line-height:1.5;min-height:44px;}
 html[data-mobile-ux=true] .site-mobile-example :is(#auction-conversation-state,#raid-conversation-state,#pvp-conversation-state){display:block;font:12px/1.5 var(--sans);}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-buttons{column-gap:12px;}
 html[data-mobile-ux=true] .site-mobile-example .auction-conversation-buttons>.text-link{font:14px/1.5 var(--sans);}

 /* History has one scrolling surface with its close button held above the long content. */
 html[data-mobile-ux=true] .auction-history-dialog{width:min(680px,calc(100vw - 16px));height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);max-height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);margin:auto;outline:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;}
 html[data-mobile-ux=true] .auction-history-dialog[open]{display:block;}
 html[data-mobile-ux=true] .auction-history-dialog .dialog-bar{position:sticky;top:0;z-index:2;min-height:72px;padding:12px;gap:10px;}
 html[data-mobile-ux=true] .auction-history-dialog .dialog-bar>img{width:36px;height:36px;flex:0 0 36px;}
 html[data-mobile-ux=true] .auction-history-dialog .dialog-bar h2{min-width:0;font-size:20px;line-height:1.3;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] .auction-history-dialog .auction-history-note{font:13px/1.55 var(--sans);padding:14px;}
 html[data-mobile-ux=true] .auction-history-dialog .auction-history-body{overflow:visible;max-height:none;padding:0 14px 16px;}
 html[data-mobile-ux=true] .auction-history-dialog :is(.auction-history-quote,.auction-history-reason){font:14px/1.65 var(--sans);overflow-wrap:anywhere;}
 html[data-mobile-ux=true] .auction-history-dialog .auction-chat-item-copy strong{font-size:15px;line-height:1.5;}
 html[data-mobile-ux=true] .auction-history-dialog .auction-chat-item-copy small{font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] .auction-history-dialog :is(.raid-context-note,.pvp-context-note){font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] .auction-history-dialog .text-link{font-size:13px;line-height:1.5;min-height:44px;}

 /* Armory keeps the existing scene and equipment, with readable navigation and stable item controls. */
 html[data-mobile-ux=true] #character-armory-dialog{width:min(860px,calc(100vw - 16px));height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);max-height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 16px);max-width:calc(100vw - 16px);outline:0;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-frame{border-width:0;overflow-y:auto;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-scroller{min-height:96px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-heading{padding:12px;gap:10px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-portrait{width:40px;height:40px;flex:0 0 40px;}
 html[data-mobile-ux=true] #character-armory-dialog #armory-title{font-size:20px;line-height:1.3;overflow-wrap:anywhere;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-eyebrow{font-size:10px;line-height:1.4;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-subtitle{font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tabs{display:flex;flex-wrap:wrap;gap:0;padding:0;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tabs>[role=tab]{flex:1 1 auto;min-width:0;max-width:100%;overflow-wrap:anywhere;min-height:48px;padding:10px 8px;font:600 13px/1.4 var(--sans);letter-spacing:0;text-align:center;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tabs>[role=tab]>span{margin-left:4px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-interaction-hint{display:none;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-stats{flex-wrap:wrap;gap:8px 16px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-stats :is(small,span){font-size:12px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-agent-strip div>span{font-size:13px;line-height:1.5;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-agent-strip>.quick-prompt{font-size:13px;min-height:44px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-disclosure{font:13px/1.6 var(--sans);padding:10px 14px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-disclosure>summary{min-height:44px;padding:10px 0;font-size:14px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-footer{min-height:48px;padding:4px 12px;font-size:11px;line-height:1.4;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-footer>button{min-height:44px;font:13px/1.4 var(--sans);max-width:50%;text-align:right;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-item-details{inset:auto 8px 8px 8px!important;width:auto;max-width:none;max-height:calc(100% - 16px);padding:12px 14px 16px;background:#111a13;box-shadow:0 0 0 100vmax #020703a6;isolation:isolate;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tip-close{position:sticky;float:right;inset:auto;top:0;z-index:3;width:44px;height:44px;min-height:44px;margin:0 0 0 -44px;background:#111a13;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tip-heading{margin:0;padding-right:50px;min-height:48px;gap:10px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tip-title{font-size:18px;line-height:1.35;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-tip-en{font-size:12px;}
 html[data-mobile-ux=true] #character-armory-dialog :is(.armory-tip-stats,.armory-tip-advice,.armory-tip-acquisition){font-size:14px;line-height:1.6;}
 html[data-mobile-ux=true] #character-armory-dialog :is(.armory-tip-source,.armory-tip-quest,.armory-tip-compare){font-size:13px;line-height:1.5;min-height:44px;display:flex;align-items:center;}
 html[data-mobile-ux=true] #character-armory-dialog :is(.armory-tip-meta,.armory-tip-footnote){font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations{grid-template-columns:minmax(0,1fr);padding:6px 14px 20px;gap:12px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations article{display:block;padding:16px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-step{display:block;margin:0 0 12px;font-size:22px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations h4{font-size:19px;line-height:1.4;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations p:not(.armory-reco-kicker){font-size:14px;line-height:1.6;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations small{font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations :is(button,a){font-size:13px;line-height:1.5;min-height:44px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-recommendations a{display:flex;align-items:center;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-advice-intro{padding:20px 14px 12px;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-advice-intro>p:last-child{font-size:14px;line-height:1.6;}
 /* Inventory becomes a scan-friendly list instead of three narrow columns. */
 html[data-mobile-ux=true] #storage .storage-panel{border-radius:8px;background:#111a13;box-shadow:none;}
 html[data-mobile-ux=true] #storage .ac-eyebrow{font-size:11px;letter-spacing:1px;}
 html[data-mobile-ux=true] #storage .storage-examples .quick-prompt{font-size:14px;}
 html[data-mobile-ux=true] #storage .storage-demo-note{font-size:11px;line-height:1.5;margin-top:12px;}
 html[data-mobile-ux=true] #storage .storage-answer{font:500 17px/1.5 var(--serif);}
 html[data-mobile-ux=true] #storage .storage-results{grid-template-columns:minmax(0,1fr);gap:8px;margin-top:14px;}
 html[data-mobile-ux=true] #storage .storage-result{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 12px;align-items:center;padding:12px;border:1px solid #80633355;border-radius:5px;background:#0e1510;}
 html[data-mobile-ux=true] #storage .storage-result>strong{grid-column:1;grid-row:1/4;font-size:28px;white-space:nowrap;}
 html[data-mobile-ux=true] #storage .storage-result>p{grid-column:2;font-size:14px;line-height:1.5;margin:0;}
 html[data-mobile-ux=true] #storage .storage-result>span{grid-column:2;font-size:13px;line-height:1.5;}
 html[data-mobile-ux=true] #storage .storage-result>small{grid-column:2;font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #storage :is(.storage-freshness,.storage-empty,.storage-footer>p){font:13px/1.55 var(--sans);}
 html[data-mobile-ux=true] #storage .storage-freshness{margin-top:14px;}
 /* Keep pricing information readable and prevent repeated badges squeezing the plan name. */
 html[data-mobile-ux=true] #pricing .pricing-plan-identity{min-width:0;gap:10px;}
 html[data-mobile-ux=true] #pricing .pricing-plan-identity>div{min-width:0;}
 html[data-mobile-ux=true] #pricing .pricing-tier-label{display:none;}
 html[data-mobile-ux=true] #pricing .pricing-plan-identity .ac-eyebrow{font-size:10px;line-height:1.5;letter-spacing:1px;}
 html[data-mobile-ux=true] #pricing .pricing-plan-caption{font-size:14px;line-height:1.5;}
 html[data-mobile-ux=true] #pricing :is(.pricing-price-label,.pricing-common-head .ac-eyebrow){font-size:11px;line-height:1.5;letter-spacing:1px;}
 html[data-mobile-ux=true] #pricing :is(.pricing-price-note,.pricing-action-note){font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #pricing .pricing-common-note{font-size:13px;line-height:1.6;}
 html[data-mobile-ux=true] #pricing .pricing-clarity{gap:12px;}
 html[data-mobile-ux=true] #pricing .pricing-clarity>span{font:13px/1.5 var(--sans);align-items:flex-start;}
 html[data-mobile-ux=true] #pricing .pricing-clarity>button{font:14px/1.5 var(--sans);min-height:48px;}
 html[data-mobile-ux=true] #pricing .pricing-footer{gap:12px;padding:20px 16px;font:12px/1.5 var(--sans);}
 html[data-mobile-ux=true] #pricing .pricing-footer>div{flex-wrap:wrap;gap:8px 16px;justify-content:center;}
}
@media (max-width:359px){
 html[data-mobile-ux=true] #map-advice-dialog h2{font-size:18px;}
 html[data-mobile-ux=true] .agent-notice-actions>.gold-button{flex:1 0 100%;}
 html[data-mobile-ux=true] .agent-notice-actions>.quick-prompt{flex:1;}
 html[data-mobile-ux=true] #character-armory-dialog .armory-heading .armory-portrait{display:none;}
}

@media (max-width:700px), (max-width:1024px) and (pointer:coarse){
 html[data-mobile-ux=true] :is(#map-advice-dialog,#character-armory-dialog,.auction-history-dialog){position:fixed;inset:calc(var(--wf-mobile-dialog-top,0px) + 8px) 0 auto;margin:0 auto;}
}

/* Mobile native dialogs: preserve the existing content and handlers. */
@media (max-width:700px), (max-width:1024px) and (pointer:coarse){
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog){
  position:fixed;inset:calc(var(--wf-mobile-dialog-top,0px) + 12px) 0 auto;
  width:calc(100% - 24px);max-width:680px;margin:0 auto;
  max-height:calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 24px);
  border-radius:6px;outline:0;overflow:hidden;
 }
 html[data-mobile-ux=true] #chat-dialog{
  height:min(680px,calc(var(--wf-mobile-dialog-height,var(--visual-height,100dvh)) - 24px));
  overflow-y:auto;overscroll-behavior:contain;
 }
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog) .dialog-bar{
  flex:0 0 auto;min-height:68px;gap:10px;padding:12px 14px;
 }
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog) .dialog-bar>img{
  width:30px;height:32px;flex:0 0 30px;
 }
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog) .dialog-bar>div{
  min-width:0;flex:1 1 auto;
 }
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog) .dialog-bar h2{
  min-width:0;font-size:18px;line-height:1.35;overflow-wrap:anywhere;
 }
 html[data-mobile-ux=true] :is(#chat-dialog,#info-dialog,#profile-dialog) .dialog-bar>.close{
  flex:0 0 44px;min-width:44px;min-height:44px;align-self:center;
 }
 html[data-mobile-ux=true] :is(#info-dialog,#profile-dialog) .dialog-body{
  min-height:0;padding:20px 16px;font-size:16px;line-height:1.6;
  overflow-y:auto;overscroll-behavior:contain;
 }
 html[data-mobile-ux=true] :is(#info-dialog,#profile-dialog) .dialog-body h3:first-child{margin-top:0;}
 html[data-mobile-ux=true] #chat-dialog>.dialog-bar{position:sticky;top:0;z-index:2;}
 html[data-mobile-ux=true] #chat-dialog .status{font-size:12px;line-height:1.5;margin-top:4px;}
 html[data-mobile-ux=true] #chat-dialog .messages{
  flex:1 1 300px;min-height:96px;max-height:none;height:auto;padding:16px 14px;
  overflow:auto;overscroll-behavior:contain;scroll-padding-block:12px;
 }
 html[data-mobile-ux=true] #chat-dialog .message{gap:10px;margin-bottom:18px;}
 html[data-mobile-ux=true] #chat-dialog .message-avatar{width:30px;height:30px;flex-basis:30px;}
 html[data-mobile-ux=true] #chat-dialog .message-content{min-width:0;max-width:100%;}
 html[data-mobile-ux=true] #chat-dialog .message-label{font-size:12px;line-height:1.5;}
 html[data-mobile-ux=true] #chat-dialog .message-text{font-size:16px;line-height:1.55;padding:12px;}
 html[data-mobile-ux=true] #chat-dialog .quick-prompts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:0 0 auto;gap:8px;width:100%;min-width:0;
  padding:8px 14px 10px;
  scroll-padding-inline:14px;
 }
 html[data-mobile-ux=true] #chat-dialog .quick-prompt{
  min-height:44px;min-width:44px;padding:10px 4px;font:14px/1.5 var(--sans);overflow-wrap:anywhere;
 }
 html[data-mobile-ux=true] #chat-dialog .chat-composer{
  flex:0 0 auto;min-width:0;gap:8px;padding:0 14px 10px;
 }
 html[data-mobile-ux=true] #chat-dialog .chat-composer input{font-size:16px;min-height:48px;}
 html[data-mobile-ux=true] #chat-dialog .chat-send{min-width:48px;min-height:48px;}
 html[data-mobile-ux=true] #chat-dialog .chat-footer{
  flex:0 0 auto;align-items:center;gap:8px;padding:0 14px 10px;font:12px/1.5 var(--sans);
 }
 html[data-mobile-ux=true] #chat-dialog .chat-footer .text-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;
 }
}
@media (max-width:700px) and (max-height:540px), (max-width:1024px) and (pointer:coarse) and (max-height:540px){
 html[data-mobile-ux=true] #chat-dialog .dialog-bar{min-height:60px;padding-block:8px;}
 html[data-mobile-ux=true] #chat-dialog .dialog-bar>img,
 html[data-mobile-ux=true] #chat-dialog .status{display:none;}
 html[data-mobile-ux=true] #chat-dialog .quick-prompts{padding-top:4px;padding-bottom:6px;}
 html[data-mobile-ux=true] #chat-dialog .chat-footer{padding-bottom:4px;}
}

@media (max-width:700px), (max-width:1024px) and (pointer:coarse){
 html[data-wf-mobile-dialog-compact=true] #chat-dialog .dialog-bar{min-height:60px;padding-block:8px;}
 html[data-wf-mobile-dialog-compact=true] #chat-dialog .dialog-bar>img,
 html[data-wf-mobile-dialog-compact=true] #chat-dialog .status{display:none;}
 html[data-wf-mobile-dialog-compact=true] #chat-dialog .quick-prompts{padding-top:4px;padding-bottom:6px;}
 html[data-wf-mobile-dialog-compact=true] #chat-dialog .chat-footer{padding-bottom:4px;}
}

@media (max-width:359px){
 html[data-mobile-ux=true] #chat-dialog .quick-prompts{gap:6px;padding-inline:12px;}
 html[data-mobile-ux=true] #chat-dialog .quick-prompt{padding-inline:2px;}
}
