/* v18 — bağımsız mobil tema ve klasik görünüme geçiş */
.mobile-bottom-nav,.mobile-action-sheet,.mobile-sheet-overlay{display:none}
.mobile-theme-return{font-size:11px;padding:9px 12px}

@media(max-width:900px){
  html[data-ui-mode="mobile"] body{background:#f5f6fa;-webkit-tap-highlight-color:transparent}
  html[data-ui-mode="mobile"] .app-shell{display:block;min-height:100dvh}
  html[data-ui-mode="mobile"] .sidebar,html[data-ui-mode="mobile"] .mobile-overlay{display:none!important}
  html[data-ui-mode="mobile"] .main-content{width:100%;padding-bottom:86px}
  html[data-ui-mode="mobile"] .topbar{height:64px;padding:8px 16px;background:rgba(255,255,255,.96);border-bottom:1px solid #edf0f5;box-shadow:0 1px 12px rgba(15,23,42,.04);backdrop-filter:blur(18px)}
  html[data-ui-mode="mobile"] .menu-btn{display:none}
  html[data-ui-mode="mobile"] .topbar-title{min-width:0}
  html[data-ui-mode="mobile"] .topbar-title:before{content:'WEN SPORT';font-size:13px;font-weight:950;letter-spacing:.04em;color:#111827;white-space:nowrap}
  html[data-ui-mode="mobile"] .topbar-title>div{display:none}
  html[data-ui-mode="mobile"] .topbar-actions{margin-left:auto;gap:5px}
  html[data-ui-mode="mobile"] .topbar-actions>.global-search,
  html[data-ui-mode="mobile"] #quickCustomerBtn,
  html[data-ui-mode="mobile"] #quickOrderBtn,
  html[data-ui-mode="mobile"] #mobileThemeBtn{display:none!important}
  html[data-ui-mode="mobile"] .notification-btn{width:42px;height:42px;border:0;background:#f7f8fb}
  html[data-ui-mode="mobile"] .notification-panel{position:fixed;top:64px;left:10px;right:10px;width:auto;max-height:calc(100dvh - 150px);border-radius:18px;z-index:17000}
  html[data-ui-mode="mobile"] .page-content{padding:14px 12px 24px}
  html[data-ui-mode="mobile"] .panel,html[data-ui-mode="mobile"] .stat-card,html[data-ui-mode="mobile"] .data-card{border-radius:16px;box-shadow:0 5px 20px rgba(15,23,42,.055);border-color:#e9edf3}

  html[data-ui-mode="mobile"] .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  html[data-ui-mode="mobile"] .stat-card{padding:14px;min-height:116px}
  html[data-ui-mode="mobile"] .stat-card:first-child{grid-column:1/-1;background:linear-gradient(135deg,#171b50,#252c74);color:#fff;border:0;min-height:130px}
  html[data-ui-mode="mobile"] .stat-card:first-child .stat-head,html[data-ui-mode="mobile"] .stat-card:first-child .stat-foot{color:#d8dcff}
  html[data-ui-mode="mobile"] .stat-card:first-child .stat-icon{background:rgba(255,255,255,.12);color:#fff}
  html[data-ui-mode="mobile"] .stat-value{font-size:24px}
  html[data-ui-mode="mobile"] .dashboard-grid{grid-template-columns:1fr;gap:11px;margin-top:11px}
  html[data-ui-mode="mobile"] .panel{padding:15px}
  html[data-ui-mode="mobile"] .stage-bar-row{grid-template-columns:86px 1fr 38px;gap:8px}
  html[data-ui-mode="mobile"] .delivery-heatmap-panel{overflow:hidden}

  html[data-ui-mode="mobile"] .toolbar{align-items:stretch;flex-direction:column;gap:10px;margin-bottom:10px}
  html[data-ui-mode="mobile"] .toolbar-left,html[data-ui-mode="mobile"] .toolbar-right{width:100%}
  html[data-ui-mode="mobile"] .kanban-toolbar>.toolbar-right{display:flex;align-items:stretch}
  html[data-ui-mode="mobile"] .kanban-toolbar>.toolbar-right .density-switch,
  html[data-ui-mode="mobile"] .kanban-toolbar>.toolbar-right .drag-tip{display:none!important}
  html[data-ui-mode="mobile"] .kanban-toolbar>.toolbar-right .own-board-toggle{width:100%}
  html[data-ui-mode="mobile"] .filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  html[data-ui-mode="mobile"] .filters::-webkit-scrollbar{display:none}
  html[data-ui-mode="mobile"] .filter-chip{flex:0 0 auto;padding:8px 13px}
  html[data-ui-mode="mobile"] .kanban-summary{padding-left:2px}
  html[data-ui-mode="mobile"] .mobile-stage-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 0 11px;scrollbar-width:none;position:sticky;top:64px;z-index:20;background:#f5f6fa}
  html[data-ui-mode="mobile"] .mobile-stage-tabs::-webkit-scrollbar{display:none}
  html[data-ui-mode="mobile"] .mobile-stage-tabs button{flex:0 0 auto;border:1px solid #e6eaf0;background:#fff;border-radius:999px;padding:9px 12px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:850;color:#667085}
  html[data-ui-mode="mobile"] .mobile-stage-tabs button b{min-width:21px;height:21px;border-radius:999px;background:#f1f3f7;display:grid;place-items:center;font-size:9px}
  html[data-ui-mode="mobile"] .mobile-stage-tabs button.active{background:var(--stage-tab-color);border-color:var(--stage-tab-color);color:#fff;box-shadow:0 7px 16px color-mix(in srgb,var(--stage-tab-color) 25%,transparent)}
  html[data-ui-mode="mobile"] .mobile-stage-tabs button.active b{background:rgba(255,255,255,.2)}
  html[data-ui-mode="mobile"] .board-wrap{overflow:visible;padding:0}
  html[data-ui-mode="mobile"] .kanban-board{display:block!important;min-width:0!important;width:100%}
  html[data-ui-mode="mobile"] .kanban-column{display:none;min-height:0;background:transparent;border:0;padding:0;border-radius:0}
  html[data-ui-mode="mobile"] .kanban-column.mobile-stage-active{display:block}
  html[data-ui-mode="mobile"] .column-head{background:#fff;border:1px solid #e8ecf2;border-radius:15px;padding:12px 14px;margin-bottom:9px}
  html[data-ui-mode="mobile"] .kanban-cards{min-height:100px;gap:10px}
  html[data-ui-mode="mobile"] .order-card{cursor:pointer;border-radius:17px;padding:15px;box-shadow:0 6px 20px rgba(15,23,42,.06)}
  html[data-ui-mode="mobile"] .order-card:hover{transform:none}
  html[data-ui-mode="mobile"] .order-card[draggable="false"]{cursor:pointer}

  html[data-ui-mode="mobile"] .cards-grid{grid-template-columns:1fr}
  html[data-ui-mode="mobile"] .data-card{overflow:hidden}
  html[data-ui-mode="mobile"] .data-table-wrap{overflow-x:auto}
  html[data-ui-mode="mobile"] .data-table{min-width:760px}
  html[data-ui-mode="mobile"] .settings-grid,html[data-ui-mode="mobile"] .report-grid,html[data-ui-mode="mobile"] .report-kpis{grid-template-columns:1fr}

  html[data-ui-mode="mobile"] .drawer-backdrop{padding:0;align-items:stretch}
  html[data-ui-mode="mobile"] .production-drawer{width:100vw;max-width:none;height:100dvh;border-radius:0}
  html[data-ui-mode="mobile"] .mobile-drawer-grip{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:42px;height:4px;border-radius:999px;background:#d5dae3;z-index:3}
  html[data-ui-mode="mobile"] .order-detail-head{padding:17px 13px 10px;position:sticky;top:0;background:#fff;z-index:20}
  html[data-ui-mode="mobile"] .order-detail-head h2{font-size:16px}
  html[data-ui-mode="mobile"] .order-detail-body{padding:10px 8px 100px}
  html[data-ui-mode="mobile"] .modern-production-sheet{border:0;box-shadow:none;border-radius:16px}
  html[data-ui-mode="mobile"] .foy-cover{border-radius:16px 16px 0 0;padding:15px}
  html[data-ui-mode="mobile"] .foy-command-bar,html[data-ui-mode="mobile"] .foy-content-layout{padding-left:9px;padding-right:9px}
  html[data-ui-mode="mobile"] .foy-summary-grid{padding-left:9px;padding-right:9px}
  html[data-ui-mode="mobile"] .foy-size-groups article>div{grid-template-columns:repeat(7,minmax(54px,1fr));overflow-x:auto}
  html[data-ui-mode="mobile"] .foy-size-groups article>div>div{min-height:52px}
  html[data-ui-mode="mobile"] .foy-size-groups small{font-size:9px}
  html[data-ui-mode="mobile"] .foy-size-groups b{font-size:12px}
  html[data-ui-mode="mobile"] .foy-design-frame{height:290px}
  html[data-ui-mode="mobile"] .stage-actions{position:sticky;bottom:0;z-index:25;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);padding:10px;border-top:1px solid #e8ecf2;box-shadow:0 -8px 25px rgba(15,23,42,.08)}
  html[data-ui-mode="mobile"] .modal-backdrop{padding:0;align-items:stretch}
  html[data-ui-mode="mobile"] .modal{width:100%;height:100dvh;max-height:none;border-radius:0}
  html[data-ui-mode="mobile"] .modal-head,html[data-ui-mode="mobile"] .modal-foot{position:sticky;z-index:5;background:#fff}
  html[data-ui-mode="mobile"] .modal-head{top:0}
  html[data-ui-mode="mobile"] .modal-foot{bottom:0;padding-bottom:max(14px,env(safe-area-inset-bottom))}

  html[data-ui-mode="mobile"] .mobile-bottom-nav{display:grid;position:fixed;left:0;right:0;bottom:0;z-index:12000;grid-template-columns:repeat(5,1fr);height:72px;padding:7px 8px max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #e8ebf1;box-shadow:0 -10px 30px rgba(15,23,42,.08);backdrop-filter:blur(18px)}
  html[data-ui-mode="mobile"] .mobile-bottom-nav button{position:relative;border:0;background:transparent;color:#6b7280;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:13px;min-width:0}
  html[data-ui-mode="mobile"] .mobile-bottom-nav button>span{font-size:20px;line-height:1}
  html[data-ui-mode="mobile"] .mobile-bottom-nav button>small{font-size:9px;font-weight:800;white-space:nowrap}
  html[data-ui-mode="mobile"] .mobile-bottom-nav button.active{color:#4f46e5}
  html[data-ui-mode="mobile"] .mobile-bottom-nav .mobile-main-action{width:58px;height:58px;align-self:end;justify-self:center;margin-bottom:16px;border-radius:50%;background:linear-gradient(135deg,#6d5dfc,#4f46e5);color:#fff;box-shadow:0 12px 24px rgba(79,70,229,.35);border:5px solid #fff}
  html[data-ui-mode="mobile"] .mobile-bottom-nav .mobile-main-action>span{font-size:28px}
  html[data-ui-mode="mobile"] .mobile-bottom-nav .mobile-main-action>small{position:absolute;top:62px;color:#6b7280}
  html[data-ui-mode="mobile"] #mobileNotificationBadge{position:absolute;top:2px;right:18%;min-width:17px;height:17px;border-radius:999px;background:#ef4444;color:#fff;font-size:8px;display:grid;place-items:center;border:2px solid #fff}

  html[data-ui-mode="mobile"] .mobile-sheet-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:15000;opacity:0;pointer-events:none;transition:.22s}
  html[data-ui-mode="mobile"] .mobile-sheet-overlay.open{opacity:1;pointer-events:auto}
  html[data-ui-mode="mobile"] .mobile-action-sheet{display:block;position:fixed;left:8px;right:8px;bottom:8px;z-index:16000;background:#fff;border-radius:24px;padding:14px;box-shadow:0 25px 80px rgba(15,23,42,.28);transform:translateY(calc(100% + 30px));opacity:0;pointer-events:none;transition:.25s ease;padding-bottom:max(16px,env(safe-area-inset-bottom))}
  html[data-ui-mode="mobile"] .mobile-action-sheet.open{transform:translateY(0);opacity:1;pointer-events:auto}
  html[data-ui-mode="mobile"] .mobile-action-sheet header{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 14px}
  html[data-ui-mode="mobile"] .mobile-action-sheet header strong,html[data-ui-mode="mobile"] .mobile-action-sheet header small{display:block}
  html[data-ui-mode="mobile"] .mobile-action-sheet header strong{font-size:17px}
  html[data-ui-mode="mobile"] .mobile-action-sheet header small{font-size:10px;color:#7b8495;margin-top:3px}
  html[data-ui-mode="mobile"] .mobile-action-sheet header button{width:36px;height:36px;border:0;border-radius:12px;background:#f3f4f7;font-size:21px}
  html[data-ui-mode="mobile"] .mobile-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  html[data-ui-mode="mobile"] .mobile-sheet-grid button{border:1px solid #e8ebf1;background:#fafbfc;border-radius:14px;padding:14px 11px;display:flex;align-items:center;gap:9px;text-align:left;font-weight:800;color:#303849}
  html[data-ui-mode="mobile"] .mobile-sheet-grid button span{width:31px;height:31px;border-radius:10px;background:#eef0ff;color:#4f46e5;display:grid;place-items:center}
  html[data-ui-mode="mobile"] .mobile-sheet-grid .normal-view-option{grid-column:1/-1;background:#f2f4f8;border-style:dashed}
  html[data-ui-mode="mobile"] .mobile-sheet-grid .normal-view-option span{background:#111827;color:#fff}
  html[data-ui-mode="mobile"] .mobile-sheet-logout{width:100%;margin-top:10px;border:0;border-radius:13px;background:#fff0f0;color:#dc2626;padding:13px;font-weight:850}
  html[data-ui-mode="mobile"] .mobile-quick-list{display:grid;gap:8px}
  html[data-ui-mode="mobile"] .mobile-quick-list button{border:1px solid #e7eaf0;background:#fff;border-radius:15px;padding:13px;display:flex;align-items:center;gap:12px;text-align:left}
  html[data-ui-mode="mobile"] .mobile-quick-list button>span{width:44px;height:44px;border-radius:14px;background:#eef0ff;color:#4f46e5;display:grid;place-items:center;font-size:21px;font-weight:900}
  html[data-ui-mode="mobile"] .mobile-quick-list strong,html[data-ui-mode="mobile"] .mobile-quick-list small{display:block}
  html[data-ui-mode="mobile"] .mobile-quick-list strong{font-size:13px}
  html[data-ui-mode="mobile"] .mobile-quick-list small{font-size:10px;color:#7b8495;margin-top:3px}
  html[data-ui-mode="mobile"] body.mobile-sheet-open{overflow:hidden}

  html[data-ui-mode="classic"] .mobile-bottom-nav,
  html[data-ui-mode="classic"] .mobile-action-sheet,
  html[data-ui-mode="classic"] .mobile-sheet-overlay{display:none!important}
  html[data-ui-mode="classic"] #mobileThemeBtn{display:inline-flex!important}
}

/* v25 — mobil yerleşim ve taşma düzeltmeleri */
@media (max-width:900px){
  html[data-ui-mode="mobile"],
  html[data-ui-mode="mobile"] body{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:hidden!important;
    overscroll-behavior-x:none;
  }
  html[data-ui-mode="mobile"] body{padding:0;margin:0}
  html[data-ui-mode="mobile"] *,
  html[data-ui-mode="mobile"] *::before,
  html[data-ui-mode="mobile"] *::after{box-sizing:border-box;min-width:0}
  html[data-ui-mode="mobile"] img,
  html[data-ui-mode="mobile"] svg,
  html[data-ui-mode="mobile"] canvas,
  html[data-ui-mode="mobile"] video{max-width:100%;height:auto}
  html[data-ui-mode="mobile"] .app-shell,
  html[data-ui-mode="mobile"] .main-content,
  html[data-ui-mode="mobile"] .page-content,
  html[data-ui-mode="mobile"] .page-view,
  html[data-ui-mode="mobile"] .panel,
  html[data-ui-mode="mobile"] .data-card,
  html[data-ui-mode="mobile"] .toolbar,
  html[data-ui-mode="mobile"] .board-wrap,
  html[data-ui-mode="mobile"] .kanban-board,
  html[data-ui-mode="mobile"] .kanban-column,
  html[data-ui-mode="mobile"] .kanban-cards,
  html[data-ui-mode="mobile"] .order-card{width:100%;max-width:100%;min-width:0}

  html[data-ui-mode="mobile"] .main-content{
    padding-bottom:calc(88px + env(safe-area-inset-bottom));
    overflow-x:clip;
  }
  html[data-ui-mode="mobile"] .topbar{
    width:100%;
    min-width:0;
    padding-left:max(12px,env(safe-area-inset-left));
    padding-right:max(12px,env(safe-area-inset-right));
  }
  html[data-ui-mode="mobile"] .topbar-actions{min-width:0;flex:0 0 auto}
  html[data-ui-mode="mobile"] .page-content{
    width:100%;
    padding-left:max(10px,env(safe-area-inset-left));
    padding-right:max(10px,env(safe-area-inset-right));
    overflow-x:hidden;
  }

  html[data-ui-mode="mobile"] .stats-grid,
  html[data-ui-mode="mobile"] .dashboard-grid,
  html[data-ui-mode="mobile"] .cards-grid,
  html[data-ui-mode="mobile"] .settings-grid,
  html[data-ui-mode="mobile"] .report-grid,
  html[data-ui-mode="mobile"] .report-kpis{
    width:100%;
    max-width:100%;
  }
  html[data-ui-mode="mobile"] .stat-card,
  html[data-ui-mode="mobile"] .panel{overflow:hidden}
  html[data-ui-mode="mobile"] .stat-value,
  html[data-ui-mode="mobile"] .panel-title,
  html[data-ui-mode="mobile"] .customer,
  html[data-ui-mode="mobile"] .order-no{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  html[data-ui-mode="mobile"] .toolbar-left,
  html[data-ui-mode="mobile"] .toolbar-right,
  html[data-ui-mode="mobile"] .filters{max-width:100%;min-width:0}
  html[data-ui-mode="mobile"] .filters{
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
  }
  html[data-ui-mode="mobile"] .filter-chip{scroll-snap-align:start}
  html[data-ui-mode="mobile"] .mobile-stage-tabs{
    width:calc(100% + 20px);
    max-width:none;
    margin-left:-10px;
    padding-left:10px;
    padding-right:10px;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
  }
  html[data-ui-mode="mobile"] .mobile-stage-tabs button{scroll-snap-align:start}
  html[data-ui-mode="mobile"] .column-head{width:100%;max-width:100%}
  html[data-ui-mode="mobile"] .column-title{min-width:0}
  html[data-ui-mode="mobile"] .column-title strong{white-space:normal;overflow-wrap:anywhere}

  html[data-ui-mode="mobile"] .order-card{
    margin:0;
    overflow:hidden;
  }
  html[data-ui-mode="mobile"] .order-card .card-top,
  html[data-ui-mode="mobile"] .order-card .card-foot,
  html[data-ui-mode="mobile"] .order-card .work-session-actions{
    max-width:100%;
    flex-wrap:wrap;
  }
  html[data-ui-mode="mobile"] .order-card button,
  html[data-ui-mode="mobile"] .order-card .btn{
    min-height:42px;
    white-space:normal;
  }

  html[data-ui-mode="mobile"] .drawer-backdrop,
  html[data-ui-mode="mobile"] .modal-backdrop{
    width:100vw;
    max-width:100vw;
    height:var(--wen-mobile-height,100dvh);
    overflow:hidden;
  }
  html[data-ui-mode="mobile"] .production-drawer,
  html[data-ui-mode="mobile"] .modal{
    width:100%;
    max-width:100%;
    height:var(--wen-mobile-height,100dvh);
    max-height:var(--wen-mobile-height,100dvh);
    overflow:hidden;
  }
  html[data-ui-mode="mobile"] .order-detail-body,
  html[data-ui-mode="mobile"] .modal-body{
    max-width:100%;
    overflow-x:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  html[data-ui-mode="mobile"] .modal-body{padding:16px 12px 24px}
  html[data-ui-mode="mobile"] .modal-head,
  html[data-ui-mode="mobile"] .modal-foot{
    width:100%;
    max-width:100%;
    flex-wrap:wrap;
  }
  html[data-ui-mode="mobile"] .modal-foot .btn{flex:1 1 130px;min-height:46px}
  html[data-ui-mode="mobile"] .form-grid,
  html[data-ui-mode="mobile"] .form-row,
  html[data-ui-mode="mobile"] .field-grid{grid-template-columns:1fr!important;width:100%}
  html[data-ui-mode="mobile"] input,
  html[data-ui-mode="mobile"] select,
  html[data-ui-mode="mobile"] textarea{
    width:100%;
    max-width:100%;
    font-size:16px;
  }

  html[data-ui-mode="mobile"] .modern-production-sheet,
  html[data-ui-mode="mobile"] .foy-cover,
  html[data-ui-mode="mobile"] .foy-command-bar,
  html[data-ui-mode="mobile"] .foy-summary-grid,
  html[data-ui-mode="mobile"] .foy-content-layout,
  html[data-ui-mode="mobile"] .foy-section,
  html[data-ui-mode="mobile"] .foy-size-groups{width:100%;max-width:100%;min-width:0}
  html[data-ui-mode="mobile"] .foy-cover,
  html[data-ui-mode="mobile"] .foy-command-bar{flex-wrap:wrap;gap:8px}
  html[data-ui-mode="mobile"] .foy-summary-grid,
  html[data-ui-mode="mobile"] .foy-content-layout{grid-template-columns:1fr!important}
  html[data-ui-mode="mobile"] .foy-size-groups article{overflow:hidden}
  html[data-ui-mode="mobile"] .foy-size-groups article>div{
    width:100%;
    max-width:100%;
    grid-template-columns:repeat(4,minmax(58px,1fr));
    overflow-x:auto;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  html[data-ui-mode="mobile"] .foy-design-frame{width:100%;height:auto;min-height:230px;max-height:52vh}
  html[data-ui-mode="mobile"] .foy-design-frame img{width:100%;height:100%;object-fit:contain}
  html[data-ui-mode="mobile"] .stage-actions{
    left:0;
    right:0;
    width:100%;
    padding-bottom:max(10px,env(safe-area-inset-bottom));
    flex-wrap:wrap;
  }
  html[data-ui-mode="mobile"] .stage-actions .btn{flex:1 1 130px}

  html[data-ui-mode="mobile"] .data-table-wrap{
    width:100%;
    max-width:100%;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
  }
  html[data-ui-mode="mobile"] .data-table{width:max-content;max-width:none}

  html[data-ui-mode="mobile"] .mobile-bottom-nav{
    width:100%;
    max-width:100%;
    height:calc(72px + env(safe-area-inset-bottom));
    padding-left:max(6px,env(safe-area-inset-left));
    padding-right:max(6px,env(safe-area-inset-right));
  }
  html[data-ui-mode="mobile"] .mobile-bottom-nav button>small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
  html[data-ui-mode="mobile"] .mobile-action-sheet{
    left:max(8px,env(safe-area-inset-left));
    right:max(8px,env(safe-area-inset-right));
    bottom:max(8px,env(safe-area-inset-bottom));
    max-height:calc(var(--wen-mobile-height,100dvh) - 24px);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  html[data-ui-mode="mobile"] .mobile-sheet-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  html[data-ui-mode="mobile"] .mobile-sheet-grid button{min-width:0;overflow:hidden}
  html[data-ui-mode="mobile"] .mobile-sheet-grid button strong,
  html[data-ui-mode="mobile"] .mobile-sheet-grid button span{overflow-wrap:anywhere}
}

@media (max-width:390px){
  html[data-ui-mode="mobile"] .stats-grid{grid-template-columns:1fr}
  html[data-ui-mode="mobile"] .stat-card:first-child{grid-column:auto}
  html[data-ui-mode="mobile"] .mobile-sheet-grid{grid-template-columns:1fr}
  html[data-ui-mode="mobile"] .mobile-sheet-grid .normal-view-option{grid-column:auto}
  html[data-ui-mode="mobile"] .foy-size-groups article>div{grid-template-columns:repeat(3,minmax(58px,1fr))}
  html[data-ui-mode="mobile"] .mobile-bottom-nav button>small{font-size:8px}
}
