/* guest-mobile.css — guest-only responsive workspace, isolated from main UI. */
.gm-bottom-nav,.gfp-mobile-switch,.gm-lot-picker{display:none}
.gm-menu{width:min(480px,calc(100vw - 24px));padding:0;background:#0e202b;color:#ebf4f6;border:1px solid #29434e;border-radius:20px}
.gm-menu::backdrop{background:#030b14b3}
.gm-menu header{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid #29434e}
.gm-menu h2{font:600 20px Sora,system-ui,sans-serif;margin:0}
.gm-menu header button{width:44px;height:44px;background:transparent;border:1px solid #38535e;color:inherit;border-radius:12px;font-size:24px}
.gm-menu-items{padding:8px 16px 20px}
.gm-menu-items button{display:grid;grid-template-columns:1fr 20px;gap:5px;width:100%;text-align:left;padding:16px 8px;border:0;border-bottom:1px solid #29434e;background:transparent;color:#ebf4f6;min-height:76px}
.gm-menu-items strong{font:600 15px Sora,system-ui,sans-serif}
.gm-menu-items span{font:400 13px/1.6 Sora,system-ui,sans-serif;color:#9db3bf;grid-column:1}
.gm-menu-items b{grid-column:2;grid-row:1/3;align-self:center;font-size:25px;color:#b8f86d}
.gm-menu button:focus-visible{outline:2px solid #b8f86d;outline-offset:2px}
body.gm-overlay-open{overflow:hidden}
@media(max-width:900px){
 .admin-layout--gateway{grid-template-columns:minmax(0,1fr)}
 .master-bar__form{min-width:0}
 .master-bar__form input{min-width:0;max-width:100%}
 .gfp-row,.gateway-fields-row{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:700px){
 html{scroll-padding-bottom:96px;-webkit-text-size-adjust:100%}
 body{overflow-x:clip}
 body.admin-page{font-size:14px;background:#09151f}
 .guest-mobile-enabled .admin-shell{width:calc(100% - 28px)!important;height:auto!important;max-height:none!important;padding:16px 0 calc(96px + env(safe-area-inset-bottom))!important;overflow:visible!important}
 .guest-mobile-enabled .admin-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid #29434e}
 .guest-mobile-enabled .admin-topbar>.row-actions,.guest-mobile-enabled .admin-topbar__center{display:none}
 .guest-mobile-enabled .brand-name{font-size:18px}
 .guest-mobile-enabled .brand-sub{display:block;font-size:11px}
 .guest-mobile-enabled .brand-mark{width:38px;height:38px;flex-shrink:0}
 .guest-mobile-enabled .guest-limitations{font-size:13px;padding:12px 14px;line-height:1.6;margin-bottom:16px;border-radius:12px}
 .guest-mobile-enabled .admin-layout{display:block;min-height:0;overflow:visible}
 .guest-mobile-enabled[data-mobile-view="clients"] .issue-card,
 .guest-mobile-enabled[data-mobile-view="clients"] #masterPanel,
 .guest-mobile-enabled[data-mobile-view="issue"] .deliveries-panel,
 .guest-mobile-enabled[data-mobile-view="issue"] #masterPanel,
 .guest-mobile-enabled[data-mobile-view="source"] .admin-layout{display:none!important}
 .guest-mobile-enabled .issue-card,.guest-mobile-enabled .deliveries-panel{width:100%;min-width:0;max-height:none;overflow:visible;border-radius:18px;padding:18px;background:#0e202b}
 .guest-mobile-enabled .deliveries-panel #gatewayListWrap{max-height:none;overflow:visible;flex:none}
 .panel-heading{flex-wrap:wrap;align-items:center;gap:12px}
 .panel-heading h2,.issue-card h2{font-size:23px}
 .panel-heading .row-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .filter-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin:16px 0}
 .filter-search,.filter-status{grid-column:1/-1}
 .filter-control{min-width:0}
 .filter-control span{display:block;margin-bottom:6px;font-size:12px}
 .filter-status{display:flex;width:100%;gap:4px;overflow:auto}
 .filter-status button{flex:1;white-space:nowrap;min-height:44px;font-size:12px}
 .gateway-fields-row{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
 .gateway-models{min-width:0;max-height:none;overflow:visible}
 .model-group,.model-pick,.model-grid{grid-template-columns:minmax(0,1fr)!important}
 .model-option{min-height:52px;font-size:14px!important;padding:12px!important}
 .model-option strong,.model-option small{overflow-wrap:anywhere}
 .edit-models .model-option strong,.gateway-models .model-option strong{font-size:14px}
 .edit-models .model-option small,.gateway-models .model-option small{font-size:11px;line-height:1.6}
 .model-option b{font-size:12px;white-space:nowrap}
 .model-group__tools,.mint-model-controls{display:flex;flex-wrap:wrap;gap:8px}
 .mint-model-search{font-size:16px;min-height:48px}
 .delivery-item{padding:15px;margin-bottom:12px;border-radius:14px;min-width:0}
 .delivery-item__top{display:flex;flex-direction:column;gap:12px}
 .delivery-item__top>div{min-width:0}
 .delivery-item__title{font-size:16px;overflow-wrap:anywhere}
 .delivery-item .mono{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
 .status-stack{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px}
 .delivery-item__stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
 .delivery-item__stats .models-stat{grid-column:1/-1}
 .delivery-item__stats strong{overflow-wrap:anywhere}
 .delivery-item__actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .delivery-item__actions .btn{width:100%;min-width:0;white-space:normal;font-size:12px;padding:10px 7px}
 .delivery-item__actions .mark-issued{grid-column:1/-1;font-size:14px}
 .delivery-item__url,.delivery-link,.gateway-mint-result a,.gateway-mint-result code{overflow-wrap:anywhere;word-break:break-word}
 .gateway-mint-result{max-width:100%}
 .master-bar{display:block;padding:18px;max-height:none;background:#0e202b;border-radius:18px}
 .master-bar__info{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
 .master-bar__form{display:grid;grid-template-columns:1fr;gap:12px;width:100%}
 .master-bar--ready .master-bar__form input#masterKey,.master-bar__form input{width:100%!important;min-width:0}
 .master-bar__form button{width:100%}
 .gm-bottom-nav{position:fixed;z-index:100;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));left:0;right:0;bottom:0;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:#0b1b27;border-top:1px solid #29434e}
 .gm-bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:54px;padding:6px 0;border:0;border-radius:12px;background:transparent;color:#9db3bf;font:500 11px Sora,system-ui,sans-serif}
 .gm-bottom-nav button[aria-current="page"]{background:#213b2b;color:#ccf2a6}
 .gm-bottom-nav svg{width:23px;height:23px}
 .gm-overlay-open .gm-bottom-nav{visibility:hidden}
 .gm-menu{align-self:end;margin:auto 8px max(8px,env(safe-area-inset-bottom));width:calc(100vw - 16px);max-height:calc(var(--gm-height,100dvh) - 20px)}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%;box-sizing:border-box}
 .btn,.button{min-height:46px}
 .field label,.field>span{font-size:13px}
 .edit-dialog .field select,.issue-card .field select{width:100%;min-height:48px;padding:10px 12px;color:#ebf4f6;background:#08131d;border:1px solid #29434e;border-radius:11px}
 .btn:focus-visible,.button:focus-visible{outline:2px solid #b8f86d;outline-offset:3px}
 .image-toggle-group,.image-toggle__btn{min-width:0}
 .image-toggle-group{display:grid;grid-template-columns:1fr 1fr}
 .image-toggle__btn{min-height:52px}
 .toast{bottom:calc(90px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);white-space:normal}
 .edit-backdrop,.usage-dialog{position:fixed;inset:var(--gm-top,0px) 0 auto;display:flex;align-items:stretch;padding:0;height:var(--gm-height,100dvh);z-index:200}
 .edit-dialog,.usage-dialog__card{width:100%!important;max-width:none!important;height:100%;max-height:none!important;margin:0;border-radius:0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow:auto;box-sizing:border-box}
 .edit-dialog__head,.usage-dialog__head{position:sticky;top:-18px;background:#0e202b;z-index:3;padding:12px 0;border-bottom:1px solid #29434e;align-items:flex-start}
 .edit-dialog__head h2,.usage-dialog__head h2{font-size:21px;overflow-wrap:anywhere}
 .dialog-close{min-width:44px;min-height:44px}
 .edit-dialog__actions{position:sticky;bottom:calc(-18px - env(safe-area-inset-bottom));background:#0e202b;padding:12px 0 calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
 .edit-dialog__actions .btn{width:100%}
 .edit-models{max-height:none;overflow:visible}
 .usage-dialog__layout{display:block;overflow:visible;min-height:0}
 .usage-dialog__side{max-height:220px;overflow:auto;border-right:0;border-bottom:1px solid #29434e;padding:10px 0;margin-bottom:16px}
 .usage-dialog__main{overflow:visible;padding:0}
 .usage-summary-row{min-height:64px;width:100%;overflow-wrap:anywhere}
 .usage-event-row{overflow-wrap:anywhere}
 .gfp-dialog[open],.bw-stock-dialog[open]{position:fixed;inset:var(--gm-top,0px) 0 auto;width:100vw;max-width:100vw;height:var(--gm-height,100dvh);max-height:var(--gm-height,100dvh);margin:0;border:0;border-radius:0;overflow:hidden;box-sizing:border-box}
 .gfp-dialog[open]{display:flex;flex-direction:column}
 .gfp-header,.bw-stock-head{flex:none;padding:16px;border-bottom:1px solid #29434e;gap:12px}
 .gfp-header h2,.bw-stock-head h2{font-size:22px}
 .gfp-header p,.bw-stock-head p{font-size:12px;line-height:1.6}
 .gfp-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
 .gfp-content{padding:16px;min-width:0}
 .gfp-layout{display:block}
 .gfp-nav{display:none}
 .gfp-mobile-switch{display:flex;flex-direction:column;gap:8px;background:#10232e;padding:12px 16px;border-bottom:1px solid #29434e}
 .gfp-mobile-switch label{margin:0;font-size:12px}
 .gfp-mobile-switch select{min-height:48px;background:#09151f;border:1px solid #38535e;border-radius:11px;color:#ebf4f6;padding:10px}
 .gfp-mobile-switch button{align-self:flex-start;background:transparent;border:0;color:#a1e1cc;min-height:44px;font:500 13px Sora,system-ui,sans-serif}
 .gfp-row{grid-template-columns:minmax(0,1fr);gap:0}
 .gfp-prices{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
 .gfp-prices input{min-width:0}
 .gfp-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .gfp-actions button{min-width:0;white-space:normal;font-size:13px}
 .gfp-lots{max-height:300px}
 .gfp-lot span{min-width:0;overflow-wrap:anywhere}
 .gfp-models{display:grid;grid-template-columns:1fr;max-height:320px;border:1px solid #29434e;border-radius:12px;padding:10px;gap:4px}
 .gfp-models label{min-height:48px;border-bottom:1px solid #203843;padding:8px 0}
 .gfp-footer{position:sticky;bottom:0;padding:14px 16px calc(14px + env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:stretch;gap:8px;z-index:2}
 .gfp-footer .btn{width:100%}
 .gfp-tile{overflow-wrap:anywhere}
 .gfp-kpis{grid-template-columns:1fr;gap:10px}
 .gfp-kpis article{display:grid;grid-template-columns:1fr auto;padding:14px;gap:7px}
 .gfp-kpis strong{font-size:23px;margin:0;grid-column:2;grid-row:1/3}
 .gfp-table-wrap{width:100%;overflow:auto;border:1px solid #29434e;border-radius:12px;margin:12px 0;-webkit-overflow-scrolling:touch}
 .gfp-table{min-width:560px;font-size:13px}
 .gfp-guide{font-size:14px;line-height:1.8}
 .bw-stock-editor .bw-stock-body{display:flex;flex-direction:column;overflow:auto;min-height:0}
 .bw-stock-sidebar{max-height:none;min-height:0;flex:none;padding:16px;border:0;border-bottom:1px solid #29434e;overflow:visible}
 .bw-stock-products{display:none}
 .gm-lot-picker{display:flex;flex-direction:column;gap:7px;font-size:13px}
 .gm-lot-picker select{min-height:48px;padding:10px;color:#ebf4f6;background:#09151f;border:1px solid #38535e;border-radius:11px}
 .bw-stock-editor-main{min-height:360px;overflow:visible;flex:none}
 #bsEditor{padding:16px;overflow:visible;flex:none}
 #bsLinks{min-height:240px;resize:vertical;font:14px/1.8 "IBM Plex Mono",monospace!important;white-space:pre-wrap;overflow-wrap:anywhere;background:#08131d}
 .bw-stock-counts{gap:14px;font-size:12px}
 .bw-stock-product-heading h3{font-size:16px;display:block;overflow:visible;line-height:1.6}
 .bw-stock-product-heading a{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
 .bw-stock-label{font-size:14px}
 .bw-stock-hint{font-size:12px}
 .bw-stock-footer{position:sticky;bottom:0;display:flex;flex-wrap:wrap;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));z-index:2}
 .bw-stock-footer p{flex:1 0 100%;font-size:12px}
 .bw-stock-footer button{flex:1;min-height:48px}
 .bw-stock-conflict button{min-height:44px}
 .auth{padding-top:24px;min-height:var(--gm-height,100dvh)}
 .auth-card{padding:24px 20px;border-radius:18px}
 .auth-card h1{font-size:29px}
 .auth-card .form input{min-height:48px}
 .card .form,.workspace .form{min-width:0}
 .card .form input,.card .form select{min-width:0}
 .chat-app{height:var(--gm-height,100dvh);min-height:0;grid-template-rows:auto minmax(0,1fr)}
 .chat-sidebar{display:flex;max-height:180px;overflow:auto;padding:12px 14px}
 .chat-sidebar .brand{display:none}
 .chat-sidebar .chat-list{display:flex;gap:8px;overflow:auto;flex:none}
 .chat-sidebar .chat-list__item{min-width:160px;max-width:220px;min-height:48px}
 .chat-sidebar .chat-new{min-height:44px;margin:0}
 .chat-main{min-height:0}
 .chat-header{padding:14px;gap:10px}
 .chat-header h1{font-size:20px;overflow-wrap:anywhere}
 .chat-controls{display:flex;flex-wrap:wrap;gap:8px}
 .chat-controls select{min-width:0;max-width:100%;width:100%;min-height:44px}
 .chat-message-content pre,.chat-message pre{max-width:100%;overflow:auto}
 .chat-composer{padding:12px 14px calc(12px + env(safe-area-inset-bottom));flex:none;margin:0;min-width:0}
 .chat-messages{min-height:0;flex:1;overflow:auto;padding:16px}
 .chat-send-row{flex-wrap:wrap;gap:10px}
 .chat-send-row>span{font-size:12px}
 .chat-send-actions{width:100%;justify-content:space-between}
 .bw-header{flex-wrap:wrap}
 .bw-header a,.bw-header button{min-height:44px}
}
@media(max-width:360px){
 .delivery-item__actions,.gfp-prices,.gfp-actions{grid-template-columns:1fr}
 .filter-toolbar{grid-template-columns:1fr}
 .gm-menu-items{padding:8px 12px 16px}
}
@media(prefers-reduced-motion:reduce){.gm-menu,.gm-bottom-nav{animation:none;transition:none}}
