/* Existing WoW components adapted to a normal mobile document, not nested screens. */
html[data-mobile-ux=true]{scroll-behavior:auto;scrollbar-width:auto;scrollbar-gutter:auto;}
html[data-mobile-ux=true] body{overflow-x:clip;touch-action:pan-y pinch-zoom;}
html[data-mobile-ux=true] .scroll-story,
html[data-mobile-ux=true] .scroll-story.has-scroll-flight{height:auto!important;min-height:0;overflow:visible;}
html[data-mobile-ux=true] .stage{position:relative!important;top:auto!important;min-height:0;grid-template-rows:auto auto auto;padding-bottom:0;background-image:none;}
html[data-mobile-ux=true] .stage>:is(.header,.hero,.session,.ambient-toggle){opacity:1!important;transform:none!important;}
html[data-mobile-ux=true] .scroll-flight,
html[data-mobile-ux=true] .motion-overlay,
html[data-mobile-ux=true] #wow-scroll-cues{display:none!important;}
html[data-mobile-ux=true] .ambient-background{opacity:1!important;top:0;inset-inline:0;height:min(760px,100%);max-height:none;}
html[data-mobile-ux=true] .ambient-poster,
html[data-mobile-ux=true] .ambient-video{object-position:65% top;}
html[data-mobile-ux=true] .stage::after{opacity:1!important;}
html[data-mobile-ux=true] .header{min-height:68px;height:auto;padding:8px max(16px,env(safe-area-inset-right)) 6px max(16px,env(safe-area-inset-left));gap:0 8px;}
html[data-mobile-ux=true] .brand{height:48px;gap:0;}
html[data-mobile-ux=true] .brand-mark{width:44px;height:46px;}
html[data-mobile-ux=true] .brand-type b{font-size:20px;line-height:1.25;}
html[data-mobile-ux=true] .brand-type small{font-size:9px;line-height:1.6;}
html[data-mobile-ux=true] .header .login.generated-button{width:100px;flex-basis:100px;height:44px;min-height:44px;}
html[data-mobile-ux=true] .header .navigation{gap:0;justify-content:space-between;width:100%;padding:0;}
html[data-mobile-ux=true] .header .navigation button{min-height:44px;font-size:13px;}
html[data-mobile-ux=true] .auction-header .navigation{display:none;}
html[data-mobile-ux=true] .hero{min-height:0;padding:28px 0 22px;justify-content:flex-start;}
html[data-mobile-ux=true] .hero h1{font-size:clamp(34px,9.7vw,46px);line-height:1.1;margin-top:14px;max-width:100%;}
html[data-mobile-ux=true] .hero-description{font-size:16px;line-height:1.55;margin-top:14px;max-width:100%;}
html[data-mobile-ux=true] .hero-actions{margin:18px 0 0;width:100%;gap:4px;}
html[data-mobile-ux=true] .hero-actions>.connect{width:min(320px,100%);max-width:100%;}
html[data-mobile-ux=true] .hero-actions>.demo{width:220px;margin:0;}
html[data-mobile-ux=true] .eyebrow span{font-size:10px;line-height:1.5;letter-spacing:.6px;}
html[data-mobile-ux=true] .eyebrow img{width:18px;height:23px;}
html[data-mobile-ux=true] .session{min-height:0;width:calc(100% - 32px);padding:20px 16px;gap:10px;grid-template-columns:50px minmax(0,1fr);}
html[data-mobile-ux=true] .portrait{width:50px;grid-column:1;grid-row:1/3;}
html[data-mobile-ux=true] .session h2{font-size:18px;line-height:1.35;grid-column:2;grid-row:1;}
html[data-mobile-ux=true] .demo-badge{grid-column:2;grid-row:2;min-height:32px;height:32px;line-height:30px;}
html[data-mobile-ux=true] .action-cards{grid-column:1/3;grid-row:3;grid-template-columns:1fr;gap:8px;}
html[data-mobile-ux=true] .action-card{min-height:78px!important;flex-direction:row!important;align-items:center!important;padding:10px!important;gap:10px!important;}
html[data-mobile-ux=true] .action-card .mobile-icon{width:46px;height:48px;}
html[data-mobile-ux=true] .card-copy strong{font-size:15px;line-height:1.35;}
html[data-mobile-ux=true] .card-copy strong br{display:none;}
html[data-mobile-ux=true] .card-description{font-size:12px;line-height:1.45;margin-top:4px;}
html[data-mobile-ux=true] .composer{grid-column:1/3;grid-row:4;}
html[data-mobile-ux=true] #ambient-toggle{top:114px;right:4px;width:44px;height:44px;}
/* The map and the advice are consecutive, not covering each other. */
html[data-mobile-ux=true] #map{position:relative!important;top:auto!important;height:auto!important;min-height:0;display:block;visibility:visible!important;opacity:1!important;pointer-events:auto;overflow:hidden;padding:0 0 8px;}
html[data-mobile-ux=true] .mobile-map-surface{position:relative;width:100%;height:clamp(260px,76vw,420px);overflow:hidden;}
html[data-mobile-ux=true] .mobile-map-surface>img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;}
html[data-mobile-ux=true] .map-poi{width:44px;}
html[data-mobile-ux=true] .map-token-anchor{width:48px;}
html[data-mobile-ux=true] .map-poi-label{display:none;}
html[data-mobile-ux=true] .map-advice-context.proactive-context{position:relative;inset:auto;margin:0 16px;width:calc(100% - 32px);max-width:none;max-height:none;overflow:visible;padding:16px;box-shadow:none;}
html[data-mobile-ux=true] .agent-offscreen .map-poi-shortcuts,
html[data-mobile-ux=true] .agent-session-plan>div{max-height:none;overflow:visible;}
html[data-mobile-ux=true] .map-poi-shortcuts .quick-prompt{flex:1 1 130px;min-height:44px;}
html[data-mobile-ux=true] .map-to-auction{display:none;}
html[data-mobile-ux=true] #agent-notice-text{font-size:14px;line-height:1.6;}
html[data-mobile-ux=true] .agent-next,
html[data-mobile-ux=true] .agent-resume,
html[data-mobile-ux=true] .armory-shortcut,
html[data-mobile-ux=true] .agent-session-plan>summary,
html[data-mobile-ux=true] .agent-offscreen>summary{min-height:44px;display:flex;align-items:center;}
/* Same chapter structure and floating messages, with the CTA AFTER the example. */
html[data-mobile-ux=true] :is(#auction,#raid,#pvp){position:relative;display:flex;flex-direction:column;height:auto;min-height:100svh;overflow:clip;padding-bottom:0;}
html[data-mobile-ux=true] :is(#auction,#raid,#pvp)>.auction-layout{display:flex;flex-direction:column;align-items:stretch;flex:none;gap:0;width:calc(100% - 40px);max-width:620px;height:auto;min-height:0;margin:0 auto;padding:24px 0 8px;overflow:visible;overscroll-behavior:auto;}
html[data-mobile-ux=true] :is(#auction,#raid,#pvp) .auction-copy{display:block;flex:none;width:100%;max-width:none;padding:0;margin:0;}
html[data-mobile-ux=true] :is(#auction-title,#raid-title,#pvp-title){font:700 clamp(34px,9.4vw,46px)/1.1 var(--serif);letter-spacing:-1.1px;margin:12px 0 0;max-width:100%;}
html[data-mobile-ux=true] :is(#auction-title,#raid-title,#pvp-title)>span{white-space:normal;}
html[data-mobile-ux=true] :is(#auction,#raid,#pvp) .auction-lead{font:400 16px/1.55 var(--serif);letter-spacing:-.2px;color:var(--ink);width:100%;max-width:none;margin:14px 0 0;}
html[data-mobile-ux=true] .auction-character-space{display:none;}
html[data-mobile-ux=true] .auction-conversation{flex:none;min-height:0;max-width:none;gap:8px;width:100%;margin:22px 0 0;padding:0;}
html[data-mobile-ux=true] .auction-conversation-head{display:block;padding-left:38px;}
html[data-mobile-ux=true] .auction-conversation-kicker{font-size:10px;line-height:1.5;letter-spacing:.6px;flex-wrap:wrap;gap:4px 8px;}
html[data-mobile-ux=true] .auction-conversation-disclaimer{font-size:11px;line-height:1.5;}
html[data-mobile-ux=true] .auction-message-window{position:relative;display:flex;flex:none;min-height:0;height:360px;padding:8px 0 32px;justify-content:flex-start;}
html[data-mobile-ux=true] :is(.auction-conversation-feed,.raid-conversation-feed,.pvp-conversation-feed){display:flex;flex-direction:column;justify-content:flex-start;gap:0;min-height:0;}
html[data-mobile-ux=true] .auction-chat-message .message-content{max-width:calc(100% - 36px);min-width:0;}
html[data-mobile-ux=true] .auction-chat-message>.message-avatar{width:28px;height:28px;flex-basis:28px;margin-top:23px;}
html[data-mobile-ux=true] .auction-chat-message.message{gap:8px;}
html[data-mobile-ux=true] .auction-chat-message .message-label{font-size:11px;line-height:1.5;flex-wrap:wrap;gap:2px 6px;}
html[data-mobile-ux=true] .auction-chat-message .message-label small{font-size:10px;line-height:1.5;}
html[data-mobile-ux=true] .auction-chat-bubble.message-text{padding:12px 12px 6px;}
html[data-mobile-ux=true] .auction-context-copy{font-size:14px;line-height:1.65;}
html[data-mobile-ux=true] .auction-chat-context{display:block;font-size:10px;line-height:1.5;margin-bottom:7px;}
html[data-mobile-ux=true] .auction-chat-actions{margin-top:6px;gap:12px;}
html[data-mobile-ux=true] .auction-chat-actions .text-link{font-size:12px;min-height:44px;}
html[data-mobile-ux=true] :is(.auction-typing,.raid-typing,.pvp-typing){position:absolute;bottom:0;left:0;display:flex;align-items:center;gap:8px;min-height:28px;height:28px;padding-left:38px;margin:0;font:11px/1.4 var(--sans);color:var(--ink);}
html[data-mobile-ux=true] :is(.auction-typing,.raid-typing,.pvp-typing)[hidden]{display:flex!important;visibility:hidden;}
html[data-mobile-ux=true] .auction-conversation-tools{padding-left:38px;}
html[data-mobile-ux=true] .auction-conversation-tools::before{display:none;}
html[data-mobile-ux=true] :is(#auction-conversation-state,#raid-conversation-state,#pvp-conversation-state){display:block;font:11px/1.5 var(--sans);margin:0 0 3px;}
html[data-mobile-ux=true] .auction-conversation-buttons{gap:12px;justify-content:space-between;}
html[data-mobile-ux=true] .auction-conversation-buttons>.text-link{min-height:44px;font-size:12px;}
html[data-mobile-ux=true] :is(#auction,#raid,#pvp) .auction-actions{flex:none;align-items:center;justify-content:center;margin:16px 0 0;width:100%;max-width:none;}
html[data-mobile-ux=true] .auction-media>img,
html[data-mobile-ux=true] .auction-media>video{object-position:50% 50%;}
/* Canonical arrows become in-flow controls: no fixed overlay over chat or inputs. */
.mobile-chapter-cues{display:none;}
html[data-mobile-ux=true] .mobile-chapter-cues{position:relative;display:flex;justify-content:center;align-items:center;gap:18px;min-height:56px;padding:6px 60px max(6px,env(safe-area-inset-bottom));width:100%;grid-column:1/-1;}
html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-cue{position:relative;inset:auto;left:auto;top:auto;bottom:auto;right:auto;transform:none;flex:0 0 48px;width:48px;height:44px;}
html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-glyph{top:12px;bottom:auto;left:12px;width:24px;height:16px;}
html[data-mobile-ux=true] .mobile-chapter-cues .wow-scroll-label{top:auto;bottom:44px;}
html[data-mobile-ux=true] :is(#auction-video-toggle,#raid-video-toggle,#pvp-video-toggle).auction-ambient-toggle{position:absolute;inset:auto auto 8px max(16px,env(safe-area-inset-left));width:44px;height:44px;}
html[data-mobile-ux=true] .close,
html[data-mobile-ux=true] .armory-close,
html[data-mobile-ux=true] .armory-tip-close{min-width:44px;min-height:44px;}
html[data-mobile-ux=true] .modal{width:calc(100vw - 24px);max-width:680px;max-height:calc(var(--visual-height,100dvh) - 24px);outline:none;}
html[data-mobile-ux=true] .modal input{font-size:16px;}
html[data-mobile-ux=true] .auction-history-dialog .dialog-bar{flex-shrink:0;}
html[data-mobile-ux=true] .auction-history-note{font-size:12px;line-height:1.55;}
html[data-mobile-ux=true] .auction-history-reason{font-size:14px;}
html[data-mobile-ux=true] .auction-history-dialog .text-link{min-height:44px;display:inline-flex;align-items:center;}
@media(max-width:359px){
 html[data-mobile-ux=true] .brand-type b{font-size:18px;}
 html[data-mobile-ux=true] .header .login.generated-button{width:88px;flex-basis:88px;}
 html[data-mobile-ux=true] :is(#auction,#raid,#pvp)>.auction-layout{width:calc(100% - 32px);}
 html[data-mobile-ux=true] .auction-message-window{height:390px;}
}

/* Preserve the approved map grade after moving its image into the mobile surface. */
html[data-mobile-ux=true] .mobile-map-surface>img{filter:brightness(var(--map-grade-brightness)) saturate(var(--map-grade-saturation)) hue-rotate(var(--map-grade-hue)) contrast(var(--map-grade-contrast));}
html[data-mobile-ux=true] .agent-session-plan>summary,
html[data-mobile-ux=true] .agent-offscreen>summary{display:list-item;padding:10px 0;line-height:24px;}

@media(min-width:701px){html[data-mobile-ux=true] .auction-message-window{height:280px;}}
