/* Bounded mobile panels: navigation stays outside the scrolling body. */
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog){box-sizing:border-box!important;position:fixed!important;inset:calc(10px + env(safe-area-inset-top)) 0 auto!important;margin:0 auto!important;width:calc(100% - 20px)!important;max-width:460px!important;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;padding:0!important;overflow:hidden!important;border-radius:14px!important;transform:none!important;border:1px solid #baa784!important}
html body #adminDialog.mobile-panel{max-width:860px!important;background:#fff!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;box-sizing:border-box;min-height:58px;padding:6px 10px;border-bottom:1px solid #d8cbb9;background:#f4eee4}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.panel-toolbar button{box-sizing:border-box!important;position:static!important;inset:auto!important;margin:0!important;min-height:44px!important;height:44px!important;width:auto!important;max-width:none!important;padding:10px 12px!important;background:#fff!important;color:#752f3b!important;border:1px solid #bda89f!important;border-radius:8px!important;box-shadow:none!important;font:600 15px/1.3 'Truco Outfit',Arial,sans-serif!important;transform:none!important;touch-action:manipulation}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.panel-toolbar .external-menu-close{width:44px!important;min-width:44px!important;padding:0!important;font-size:26px!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.menu-scroll-content{box-sizing:border-box!important;max-height:min(var(--menu-visible-height,calc(100dvh - 96px)),calc(100dvh - 96px - env(safe-area-inset-top) - env(safe-area-inset-bottom)))!important;padding:12px!important;overflow:auto!important;overscroll-behavior:contain;scroll-padding:12px;-webkit-overflow-scrolling:touch}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) .sheet-heading{position:static!important;min-height:0!important;margin:0 0 12px!important;padding:4px 0 10px!important;background:transparent!important;box-shadow:none!important;border-bottom:1px solid #d8cbb9!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) .sheet-heading h2{margin:0!important;font-size:22px!important;line-height:1.25!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) :is(form,section,article,div,details){box-sizing:border-box;min-width:0;max-width:100%}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) :is(p,b,strong,small,summary,label){overflow-wrap:anywhere}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) :is(input,select,textarea):not([type=checkbox]):not([type=range]){box-sizing:border-box!important;min-width:0!important;max-width:100%!important;font-size:16px!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) :is(img,video){max-width:100%;height:auto}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) button{max-width:100%;white-space:normal;overflow-wrap:anywhere;touch-action:manipulation}
html body #adminDialog.mobile-panel .admin-nav{top:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:8px 0!important}
html body #adminDialog.mobile-panel .admin-nav button{min-height:44px!important;padding:8px!important;font-size:14px!important;line-height:1.25!important}
html body #adminDialog.mobile-panel .admin-section{padding-top:12px!important}
html body #adminDialog.mobile-panel .admin-card{padding:12px!important;margin:8px 0!important}
html body #adminDialog.mobile-panel .admin-stat-grid{gap:8px!important}
html body #adminDialog.mobile-panel .admin-search{display:grid;grid-template-columns:minmax(0,1fr) auto}
html body #adminDialog.mobile-panel .admin-search input{min-width:0!important;width:100%!important}
html body #adminDialog.mobile-panel :is(.admin-stats,.admin-recharge-actions,.admin-order-actions){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body #adminDialog.mobile-panel .admin-stat-grid p{font-size:24px!important}
html body #adminDialog.mobile-panel .receipt-image{max-height:40dvh!important;object-fit:contain!important}
/* Light ivory menus and burgundy controls replace the blue surfaces. */
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog){background:#faf7f0!important;color:#302b2c!important;background-image:none!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog) :is(h2,h3,p,label,summary,small,strong,b,time,output){color:#302b2c!important;text-shadow:none!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog) h3{font-size:17px!important;line-height:1.3!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog) p{font-size:14px!important;line-height:1.45!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog) button{background:#fff!important;background-image:none!important;color:#752f3b!important;border:1px solid #c8b6ac!important;border-radius:9px!important;min-height:44px!important;padding:10px 12px!important;box-shadow:none!important;font:600 15px/1.3 'Truco Outfit',Arial,sans-serif!important}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#accountMenuDialog,#notificationsDialog) button:disabled{background:#e9e6df!important;color:#686269!important;opacity:1!important;border-color:#cbc8c1!important}
html body #accountMenuDialog.mobile-panel .account-menu-options{border-color:#d8cbb9!important;margin-top:14px;padding-top:12px}
html body #accountMenuDialog.mobile-panel .options-content{gap:8px}
html body #accountMenuDialog.mobile-panel .music-options{background:#fff!important;border:1px solid #d8cbb9!important}
html body #accountMenuDialog.mobile-panel input[type=range]{accent-color:#752f3b!important;min-height:32px}
html body #accountMenuDialog.mobile-panel :is(#accountMenuStatus,#profileSummary){padding:10px;background:#eee7db;border-radius:8px}
html body #notificationsDialog.mobile-panel .notifications-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body #notificationsDialog.mobile-panel .notification-item{padding:12px;background:#fff!important;border:1px solid #d8cbb9!important;border-radius:10px!important}
html body #notificationsDialog.mobile-panel .notification-item.unread{background:#f5eadb!important;border-left:4px solid #752f3b!important}
html body #notificationsDialog.mobile-panel .notification-item.unread::before{background:#752f3b!important}
html body #notificationsDialog.mobile-panel .notification-item strong{font-size:16px!important}
html body #notificationsDialog.mobile-panel .notification-item :is(time,small){color:#635b5c!important;font-size:12px!important}
html body #notificationsDialog.mobile-panel .notifications-empty{background:#fff;border-color:#c8b6ac;color:#51474a}
html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog) [hidden]{display:none!important}
@media(min-width:650px){html body #adminDialog.mobile-panel .admin-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:350px){html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.menu-scroll-content{padding:10px!important}html body #adminDialog.mobile-panel .admin-stat-grid{grid-template-columns:1fr!important}}

html body dialog.mobile-panel:is(#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.panel-toolbar>:is(#closeAdmin,#closeShop,#closeAccountMenu,#closeNotifications,#closeWithdraw).external-menu-close{position:static!important;inset:auto!important;display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #bda89f!important;border-radius:8px!important;background:#fff!important;color:#752f3b!important;font:600 26px/1 'Truco Outfit',Arial,sans-serif!important;box-shadow:none!important;transform:none!important}
