/* MEYDORA V16.40 — responsive game interface, not a management dashboard.
   Loaded last so older UI styles can remain available without being active. */
:root{--md40-bg:#091722;--md40-surface:#102a38;--md40-elevated:#183747;--md40-line:#54708070;--md40-text:#f0f7fa;--md40-muted:#a7bdc9;--md40-accent:#67d6bb;--md40-gold:#f1c77d}
#qmBackdrop1640[hidden],#qomMenu172[hidden]{display:none!important}
#qmBackdrop1640{position:fixed;inset:0;z-index:849;background:rgba(3,11,18,.68);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
#qomDockToggle171,#qomSideDock171{display:none!important}
#qomMenu172{position:fixed!important;inset:50% auto auto 50%!important;transform:translate(-50%,-50%)!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;z-index:850!important;width:min(940px,calc(100vw - 44px))!important;height:min(740px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;min-width:0!important;border:1px solid #7794a07a!important;border-radius:24px!important;background:linear-gradient(145deg,#0e2531,#091a27 70%)!important;color:var(--md40-text)!important;box-shadow:0 30px 90px #000c!important;overflow:hidden!important;direction:rtl!important;backdrop-filter:blur(18px)}
#qomMenu172 *{box-sizing:border-box}
#qomMenu172 .qm-head{flex:0 0 auto;min-height:83px;padding:17px 25px!important;border-bottom:1px solid var(--md40-line)!important;background:linear-gradient(95deg,#102c39,#132a32)!important}
#qomMenu172 .qm-head small{font-size:10px!important;color:var(--md40-accent)!important;letter-spacing:1.1px}
#qomMenu172 .qm-head strong{font-size:22px!important;line-height:1.4!important;color:var(--md40-text)!important}
#qomMenu172 .qm-head span{font-size:12px!important;color:var(--md40-muted)!important;max-width:60ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#qomMenu172 #qmClose172{border:1px solid #69879496!important;min-height:44px;width:44px;height:44px;border-radius:12px!important;background:#173747!important;color:white!important;font-size:19px!important;cursor:pointer}
#qomMenu172 .qm-tabs{display:flex!important;grid-template-columns:none!important;gap:7px!important;padding:12px 20px!important;min-height:68px;border-bottom:1px solid #ffffff18;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;flex:0 0 auto;scroll-snap-type:x proximity;background:#0b2130}
#qomMenu172 .qm-tabs button{flex:1 0 auto;min-width:92px;min-height:43px!important;border-radius:12px!important;font-size:12px!important;font-weight:750!important;padding:9px 12px!important;white-space:nowrap!important;scroll-snap-align:center;background:#173342!important;border:1px solid #4c707b9e!important;color:#c3d6e0!important;box-shadow:none!important;transition:background .13s ease,border-color .13s ease}
#qomMenu172 .qm-tabs button[aria-selected="true"]{background:#155b53!important;border-color:#72d3b9!important;color:#fff!important;box-shadow:inset 0 0 0 1px #72d3b944!important}
#qomMenu172 .qm-scroll{flex:1;min-height:0;overflow-y:auto!important;overscroll-behavior:contain;padding:20px 24px 26px!important;scrollbar-width:thin;scrollbar-color:#547a83 transparent}
#qomMenu172 .qm-home-intro1640{padding:5px 2px 12px}
#qomMenu172 .qm-home-intro1640 h2{font-size:19px;line-height:1.65;margin:5px 0 2px;color:#fff}
#qomMenu172 .qm-home-intro1640 p{font-size:12px;color:var(--md40-muted);margin:0;line-height:1.9}
#qomMenu172 .qm-live-badge1640{font-size:11px;color:#79e6bb;letter-spacing:.1px}
#qomMenu172 .qm-section-title{font-size:14px!important;margin:13px 0 9px!important;color:#f0dbac!important}
#qomMenu172 .qm-status-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;margin:5px 0 16px!important}
#qomMenu172 .qm-status-grid>div{min-height:67px;padding:10px 14px!important;gap:3px!important;background:#0d2935!important;border:1px solid var(--md40-line)!important;border-radius:13px!important}
#qomMenu172 .qm-status-grid small{font-size:11px!important;color:var(--md40-muted)!important}
#qomMenu172 .qm-status-grid b{font-size:13px!important;color:#fff1cb!important}
#qomMenu172 .qm-action-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:11px!important}
#qomMenu172 .qm-action{min-width:0!important;min-height:110px!important;padding:13px 9px!important;display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;gap:9px!important;border-radius:16px!important;background:#143341!important;border:1px solid #456e79ad!important;transition:transform .16s ease,background .16s ease,border-color .16s ease;box-shadow:none!important;cursor:pointer!important;color:var(--md40-text)!important}
#qomMenu172 .qm-action:hover{background:#1c4852!important;border-color:#79d2bd!important;transform:translateY(-2px)!important}
#qomMenu172 .qm-action:active{transform:scale(.98)!important}
#qomMenu172 .qm-action-illustration1634{width:46px!important;height:46px!important;flex:0 0 46px!important;border-radius:13px!important;font-size:25px!important;background:#1c4e58!important;border:1px solid #7be8c566!important;box-shadow:none!important}
#qomMenu172 .qm-action-caption1634{font-size:12px!important;line-height:1.55!important;font-weight:750!important}
#qomMenu172 .qm-primary-grid1640>.qm-action:first-child{background:#1b514d!important;border-color:#65c9b3!important}
#qomMenu172 .qm-more1640{margin-top:17px;border:1px solid #4f727ba1;border-radius:14px;background:#0d2834;overflow:hidden}
#qomMenu172 .qm-more1640>summary{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:12px 15px;cursor:pointer;font-size:13px;font-weight:800;color:#e2f3f7;list-style:none}
#qomMenu172 .qm-more1640>summary::-webkit-details-marker{display:none}
#qomMenu172 .qm-more1640>summary:after{content:'⌄';font-size:20px;order:-1;color:#7dddc6}
#qomMenu172 .qm-more1640[open]>summary:after{content:'⌃'}
#qomMenu172 .qm-more1640>summary span{font-size:10px;font-weight:400;color:var(--md40-muted)}
#qomMenu172 .qm-secondary-grid1640{padding:12px;border-top:1px solid var(--md40-line);grid-template-columns:repeat(4,minmax(0,1fr))!important}
#qomMenu172 .qm-secondary-grid1640 .qm-action{min-height:85px!important}
#qomMenu172 .qm-secondary-grid1640 .qm-action-illustration1634{width:36px!important;height:36px!important;flex-basis:36px!important;font-size:20px!important}
#qomMenu172 .qm-note{background:transparent!important;border:0!important;padding:7px 0!important;font-size:11px!important;color:#94b2c0!important}
#qomMenu172 .qm-page{min-height:0}
#qomMenu172 :is(button,input,textarea,select,summary,a):focus-visible{outline:2px solid #f6ce81!important;outline-offset:3px!important}
#qomMenu172 .qm-details,#qomMenu172 .qm-panel{margin-bottom:10px!important}
#qomMenu172 .qm-emergency{margin:15px 0!important}
#qomMenu172 #qomOptions{padding:12px!important;background:#123442!important}
#qomMenu172 #qomBugOpen171,#qomMenu172 #meydoraHomeButton{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px;font-size:12px!important;min-height:48px!important}
/* Avoid interacting with gameplay controls through the menu/backdrop. */
body.qom-menu-open172 #touchActions,body.qom-menu-open172 #mobileUI,body.qom-menu-open172 #hud,body.qom-menu-open172 #mapBox,body.qom-menu-open172 #qomLifeHud1627,body.qom-menu-open172 #qomFoodOpen1628,body.qom-menu-open172 #info{opacity:0!important;pointer-events:none!important}
/* Idle gameplay: one compact speed HUD, a menu trigger, a life pill and the minimap. */
#hud{left:14px!important;top:14px!important;padding:8px 11px!important;border:1px solid #6c8c9a82!important;border-radius:13px!important;box-shadow:0 7px 20px #0006!important;max-width:158px!important;max-height:153px!important;overflow:hidden!important;background:#071b2cd9!important}
#hud strong{font-size:22px!important}
#hud .stat{font-size:10px}
#hud #fps{font-size:9px}
#hud .life-head{font-size:10px!important;margin-top:5px!important}
#hud .meter{height:5px!important}
#info{top:13px!important;right:14px!important;max-width:none!important;max-height:none!important;width:auto!important;overflow:visible!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
#info .panelHead h1,#info .tiny,#info #districtHud{display:none!important}
#infoToggle{min-width:96px!important;min-height:44px!important;padding:10px 14px!important;border:1px solid #68b9a9!important;border-radius:13px!important;background:#0b2a37e8!important;color:#f7ffff!important;font-size:12px!important;box-shadow:0 5px 18px #0007!important}
#qomLifeHud1627{right:14px!important;top:68px!important;width:175px!important;padding:4px 7px!important;max-height:46dvh!important;background:#0a2933d9!important;box-shadow:0 6px 18px #0006!important}
#qomLifeHud1627 h3{margin:0!important;font-size:11px!important}
#qomLifeHud1627 #qomLifeToggle1634{width:30px!important;height:30px!important}
#qomFoodOpen1628{top:12px!important;left:184px!important;width:43px!important;max-width:43px!important;height:43px!important;border-radius:12px!important;box-shadow:0 5px 15px #0006!important}
#mapBox{left:14px!important;bottom:14px!important;top:auto!important;max-width:145px!important}
#qomMenu172 #qomAssetStudioPanel{max-width:100%!important}
/* Food directory: list/detail, no giant blank third section. */
#qomFoodPanel1628{z-index:1000!important;background:#030c14b8!important;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding:16px!important}
#qomFoodPanel1628 .qf-shell{width:min(980px,100%)!important;height:min(730px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;border-radius:22px!important;background:#0b2230!important;border:1px solid #597b87!important;box-shadow:0 25px 70px #000c!important;min-height:0!important}
#qomFoodPanel1628 header{flex:0 0 auto;align-items:center!important;min-height:90px!important;padding:15px 21px!important;background:linear-gradient(110deg,#123e3b,#153244 70%)!important}
#qomFoodPanel1628 header small{font-size:10px!important;color:#82d9c3!important}
#qomFoodPanel1628 header h2{font-size:21px!important;color:#fff!important;margin:3px 0!important}
#qomFoodPanel1628 header p{font-size:12px!important;color:#edd6a1!important}
#qomFoodPanel1628 .qf-close{min-width:44px!important;width:44px!important;height:44px!important;border-radius:12px!important;background:#683037!important;font-size:24px!important}
#qomFoodPanel1628 .qf-toolbar{gap:10px!important;padding:11px 16px!important;background:#0d2936!important}
#qomFoodPanel1628 .qf-toolbar input,#qomFoodPanel1628 .qf-toolbar select{font-size:13px!important;min-height:46px!important;border-radius:12px!important;background:#173846!important}
#qomFoodPanel1628 .qf-toolbar select{flex:0 0 185px!important}
#qomFoodPanel1628 .qf-body{flex:1;min-height:0;display:grid!important;grid-template-columns:minmax(235px,34%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important}
#qomFoodPanel1628 .qf-locations1640{display:flex;flex-direction:column;min-height:0;min-width:0;background:#102b39;border-left:1px solid #ffffff21}
#qomFoodPanel1628 .qf-list-heading1640{padding:11px 13px;display:flex;justify-content:space-between;gap:10px;color:#eaf6f4;font-size:13px;align-items:center;border-bottom:1px solid #ffffff1c}
#qomFoodPanel1628 .qf-list-heading1640 span{font-size:10px;color:#92c3ba}
#qomFoodPanel1628 .qf-venues{display:flex!important;flex:1;min-height:0;flex-direction:column!important;grid-template-columns:none!important;grid-template-rows:none!important;overflow:auto!important;gap:7px!important;padding:10px!important;background:transparent!important;border:0!important}
#qomFoodPanel1628 .qf-venue{flex:0 0 auto;min-height:69px!important;padding:10px 12px!important;align-items:stretch!important;text-align:right!important;justify-content:center!important;background:#163844!important;border:1px solid #446674!important;border-radius:12px!important}
#qomFoodPanel1628 .qf-venue.selected{background:#205047!important;border-color:#69c7ad!important;box-shadow:inset 3px 0 #81dfb9!important}
#qomFoodPanel1628 .qf-venue strong{font-size:12px!important;line-height:1.7!important}
#qomFoodPanel1628 .qf-venue span{font-size:11px!important}
#qomFoodPanel1628 .qf-venue small{display:block!important;font-size:10px!important}
#qomFoodPanel1628 .qf-detail{padding:20px 22px!important;scrollbar-width:thin;overflow-y:auto!important;min-height:0!important;background:#0b2230}
#qomFoodPanel1628 .qf-detail h3{font-size:18px!important;color:#f7e2b1!important}
#qomFoodPanel1628 .qf-actions button,#qomFoodPanel1628 .qf-modes button{min-height:44px!important}
#qomFoodPanel1628 .qf-product{min-height:69px!important;padding:10px!important;gap:8px}
#qomFoodPanel1628 .qf-qty-btn{min-width:43px!important;min-height:43px!important}
#qomFoodPanel1628 .qf-bag{flex:0 0 auto;max-height:140px!important;overflow:auto!important;padding:0 15px!important;background:#102c39!important;border-top:1px solid #ffffff2e!important}
#qomFoodPanel1628 .qf-bag:not([open]){max-height:49px!important;overflow:hidden!important}
#qomFoodPanel1628 .qf-bag summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:48px;font-size:12px;font-weight:750;list-style:none;color:#f1e2c1}
#qomFoodPanel1628 .qf-bag summary::-webkit-details-marker{display:none}
#qomFoodPanel1628 .qf-bag summary span{font-weight:400;color:#9bbfc8;font-size:10px}
#qomFoodPanel1628 #qfMessage1628{flex:0 0 auto;padding:9px 16px!important;min-height:37px;font-size:11px!important;background:#0c2633!important;color:#fae2ae!important}
body:has(#qomFoodPanel1628:not([hidden])) #hud,body:has(#qomFoodPanel1628:not([hidden])) #info,body:has(#qomFoodPanel1628:not([hidden])) #mobileUI,body:has(#qomFoodPanel1628:not([hidden])) #touchActions{opacity:0!important;pointer-events:none!important}
#qomFoodPanel1628 :is(button,input,select,summary):focus-visible{outline:2px solid #f6ce81!important;outline-offset:2px!important}
/* Tablet: generous touch targets while preserving two columns in the food directory. */
@media (min-width:721px) and (max-width:1023px){
 #qomMenu172{width:calc(100vw - 30px)!important;height:min(740px,calc(100dvh - 30px))!important;max-height:calc(100dvh - 30px)!important;border-radius:20px!important}
 #qomMenu172 .qm-tabs{padding:10px 14px!important}
 #qomMenu172 .qm-tabs button{min-width:95px!important;flex:0 0 auto!important}
 #qomMenu172 .qm-scroll{padding:15px 18px 22px!important}
 #qomMenu172 .qm-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #qomMenu172 .qm-secondary-grid1640{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #qomFoodPanel1628 .qf-shell{width:100%!important;height:min(760px,calc(100dvh - 24px))!important}
 #qomFoodPanel1628 .qf-body{grid-template-columns:36% minmax(0,1fr)!important}
 #qomFoodPanel1628 .qf-detail{padding:14px!important}
}
/* Phones: keep gameplay uncluttered, use full-size controls only after opening an overlay. */
@media (max-width:720px){
 #hud{top:calc(8px + env(safe-area-inset-top))!important;left:calc(8px + env(safe-area-inset-left))!important;max-width:125px!important;padding:7px 9px!important;max-height:126px!important}
 #hud strong{font-size:18px!important}
 #hud .stat{font-size:9px!important}
 #info{right:calc(8px + env(safe-area-inset-right))!important;top:calc(8px + env(safe-area-inset-top))!important;max-width:none!important}
 #infoToggle{min-width:74px!important;min-height:42px!important;padding:8px 10px!important;font-size:12px!important}
 #qomLifeHud1627{right:calc(8px + env(safe-area-inset-right))!important;top:calc(57px + env(safe-area-inset-top))!important;width:149px!important;max-height:45dvh!important;box-shadow:0 4px 13px #0006!important}
 #qomLifeHud1627.life-collapsed1634{width:145px!important}
 #qomFoodOpen1628{display:none!important}
 #qomPhoneLauncher191,#qomMissionNav1621{display:none!important}
 #mapBox{display:none!important}
 #touchActions{right:calc(8px + env(safe-area-inset-right))!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;gap:6px!important;grid-template-columns:repeat(2,minmax(54px,63px))!important}
 #touchActions button{min-height:49px!important;min-width:54px!important;font-size:10px!important;padding:5px!important}
 #touchActions.extras-open{grid-template-columns:repeat(3,minmax(49px,56px))!important}
 #mobileShortcuts{right:calc(8px + env(safe-area-inset-right))!important;bottom:calc(124px + env(safe-area-inset-bottom))!important}
 #mobileShortcuts button{min-height:44px!important;min-width:44px!important}
 #mobileStick{left:calc(8px + env(safe-area-inset-left))!important;bottom:calc(12px + env(safe-area-inset-bottom))!important;width:clamp(106px,28vw,128px)!important}
 #qomMenu172{inset:auto 0 0 0!important;transform:none!important;width:100vw!important;height:min(92dvh,840px)!important;max-height:92dvh!important;border:0!important;border-top:1px solid #90baaf80!important;border-radius:20px 20px 0 0!important;padding-bottom:env(safe-area-inset-bottom)!important}
 #qomMenu172 .qm-head{min-height:70px!important;padding:11px 16px!important}
 #qomMenu172 .qm-head strong{font-size:17px!important}
 #qomMenu172 .qm-head small{font-size:9px!important}
 #qomMenu172 .qm-head span{font-size:10px!important}
 #qomMenu172 #qmClose172{min-height:44px!important;min-width:44px!important}
 #qomMenu172 .qm-tabs{min-height:61px!important;padding:8px 11px!important;gap:6px!important;scrollbar-width:none}
 #qomMenu172 .qm-tabs button{flex:0 0 auto!important;min-width:87px!important;min-height:44px!important;padding:7px 9px!important;font-size:11px!important}
 #qomMenu172 .qm-scroll{min-height:0!important;max-height:none!important;padding:12px 14px 19px!important}
 #qomMenu172 .qm-home-intro1640 h2{font-size:15px}
 #qomMenu172 .qm-home-intro1640 p{font-size:11px}
 #qomMenu172 .qm-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;margin-bottom:10px!important}
 #qomMenu172 .qm-status-grid>div{min-height:53px;padding:7px 8px!important}
 #qomMenu172 .qm-status-grid small{font-size:9px!important}
 #qomMenu172 .qm-status-grid b{font-size:10px!important}
 #qomMenu172 .qm-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 #qomMenu172 .qm-action{min-height:90px!important;padding:9px 5px!important;gap:5px!important}
 #qomMenu172 .qm-action-illustration1634{width:39px!important;height:39px!important;flex-basis:39px!important;font-size:22px!important}
 #qomMenu172 .qm-action-caption1634{font-size:11px!important}
 #qomMenu172 .qm-secondary-grid1640{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #qomMenu172 .qm-secondary-grid1640 .qm-action{min-height:79px!important}
 #qomMenu172 .qm-more1640>summary span{max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #qomMenu172 .qm-section-title{font-size:13px!important}
 #qomMenu172 #qomOptions select,#qomMenu172 #qomOptions button{min-height:45px!important}
 #qomFoodPanel1628{padding:0!important;align-items:stretch!important;place-items:stretch!important;background:#06151d!important}
 #qomFoodPanel1628 .qf-shell{height:100dvh!important;max-height:100dvh!important;width:100vw!important;max-width:100vw!important;min-height:0!important;border:0!important;border-radius:0!important}
 #qomFoodPanel1628 header{min-height:69px!important;padding:calc(8px + env(safe-area-inset-top)) 13px 8px!important;gap:6px!important}
 #qomFoodPanel1628 header h2{font-size:17px!important}
 #qomFoodPanel1628 header p{font-size:11px!important}
 #qomFoodPanel1628 header small{font-size:9px!important}
 #qomFoodPanel1628 .qf-close{min-width:44px!important;width:44px!important;height:44px!important}
 #qomFoodPanel1628 .qf-toolbar{padding:8px 11px!important;gap:7px!important}
 #qomFoodPanel1628 .qf-toolbar input,#qomFoodPanel1628 .qf-toolbar select{min-height:45px!important;padding:8px 9px!important;font-size:12px!important}
 #qomFoodPanel1628 .qf-toolbar select{flex:0 0 125px!important;max-width:42vw!important}
 #qomFoodPanel1628 .qf-body{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important}
 #qomFoodPanel1628 .qf-locations1640{flex:0 0 145px!important;max-height:145px!important;min-height:0!important;border-left:0!important;border-bottom:1px solid #ffffff26!important;display:flex!important;flex-direction:column!important}
 #qomFoodPanel1628 .qf-list-heading1640{flex:0 0 auto;min-height:32px;padding:6px 12px;font-size:11px}
 #qomFoodPanel1628 .qf-venues{flex:1!important;min-height:0!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:7px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity!important;padding:5px 10px 10px!important}
 #qomFoodPanel1628 .qf-venue{flex:0 0 170px!important;min-width:170px!important;width:170px!important;max-width:170px!important;min-height:86px!important;max-height:90px!important;padding:8px 9px!important;scroll-snap-align:start!important;overflow:hidden}
 #qomFoodPanel1628 .qf-venue strong{font-size:11px!important;line-height:1.5!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #qomFoodPanel1628 .qf-venue span{font-size:10px!important}
 #qomFoodPanel1628 .qf-venue small{font-size:9px!important}
 #qomFoodPanel1628 .qf-detail{flex:1!important;min-height:0!important;overflow-y:auto!important;padding:12px 14px!important}
 #qomFoodPanel1628 .qf-detail h3{font-size:15px!important}
 #qomFoodPanel1628 .qf-product{min-height:64px!important;padding:9px!important}
 #qomFoodPanel1628 .qf-product b{font-size:11px!important}
 #qomFoodPanel1628 .qf-buy{min-height:46px!important}
 #qomFoodPanel1628 .qf-qty-btn{min-width:40px!important;min-height:43px!important}
 #qomFoodPanel1628 .qf-bag{padding:0 12px!important;max-height:100px!important}
 #qomFoodPanel1628 .qf-bag:not([open]){max-height:45px!important}
 #qomFoodPanel1628 .qf-bag summary{min-height:44px!important}
 #qomFoodPanel1628 #qfMessage1628{min-height:36px!important;padding:7px 11px calc(7px + env(safe-area-inset-bottom))!important;font-size:10px!important}
}
@media(max-width:360px){
 #qomMenu172 .qm-tabs button{min-width:80px!important;font-size:10px!important}
 #qomMenu172 .qm-scroll{padding-inline:10px!important}
 #qomFoodPanel1628 .qf-toolbar select{flex-basis:106px!important}
 #qomFoodPanel1628 .qf-venue{flex-basis:146px!important;min-width:146px!important;width:146px!important;max-width:146px!important}
 #touchActions{grid-template-columns:repeat(2,54px)!important}
}
@media(max-height:540px) and (orientation:landscape){
 #qomMenu172{inset:5px 5px 5px auto!important;transform:none!important;width:min(520px,62vw)!important;height:calc(100dvh - 10px)!important;max-height:calc(100dvh - 10px)!important;border-radius:16px!important}
 #qomMenu172 .qm-head{min-height:54px!important;padding:7px 10px!important}
 #qomMenu172 .qm-head strong{font-size:14px!important}
 #qomMenu172 .qm-tabs{min-height:48px!important;padding:4px 8px!important}
 #qomMenu172 .qm-scroll{padding:7px 11px!important}
 #qomMenu172 .qm-home-intro1640{display:none!important}
 #qomMenu172 .qm-status-grid{display:none!important}
 #qomMenu172 .qm-action-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #qomMenu172 .qm-action{min-height:68px!important;padding:5px!important}
 #qomMenu172 .qm-action-illustration1634{width:31px!important;height:31px!important;flex-basis:31px!important;font-size:17px!important}
 #qomMenu172 .qm-action-caption1634{font-size:9px!important}
 #qomFoodPanel1628 .qf-shell{height:100dvh!important}
 #qomFoodPanel1628 .qf-body{display:grid!important;grid-template-columns:38% minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important}
 #qomFoodPanel1628 .qf-locations1640{max-height:none!important;min-height:0!important;flex:auto!important;border-left:1px solid #ffffff26!important;border-bottom:0!important}
 #qomFoodPanel1628 .qf-venues{flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important}
 #qomFoodPanel1628 .qf-venue{width:auto!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;min-height:70px!important;max-height:none!important}
 #qomFoodPanel1628 header{min-height:54px!important;padding:5px 10px!important}
 #qomFoodPanel1628 .qf-toolbar{padding:4px 9px!important}
 #qomFoodPanel1628 .qf-locations1640 .qf-list-heading1640{display:none!important}
 #qomFoodPanel1628 .qf-bag:not([open]){max-height:38px!important}
 #qomFoodPanel1628 #qfMessage1628{padding:4px 8px!important;min-height:24px!important}
}
@media(prefers-reduced-motion:reduce){#qomMenu172 *,#qomFoodPanel1628 *{transition:none!important;animation:none!important}}

/* Landscape phones/tablets: use all available vertical area for directory. */
@media(max-height:540px) and (orientation:landscape){
 #qomFoodPanel1628{padding:0!important}
 #qomFoodPanel1628 .qf-shell{height:100dvh!important;max-height:100dvh!important;width:100vw!important;border-radius:0!important}
}
