/* v1.1.4: mobile-only enhancement. Desktop declarations intentionally absent. */
@media screen and (max-width:900px) {
  html {scroll-padding-top:88px;-webkit-text-size-adjust:100%}
  body {overflow-wrap:break-word}
  body *,body *::before,body *::after {box-sizing:border-box}
  .m114-nav-toggle,.m114-nav-close {display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #dbe5f1;border-radius:12px;background:#fff;color:#0053fb;flex:none;cursor:pointer}
  .m114-nav-toggle svg,.m114-nav-close svg {width:22px;height:22px}
  .m114-nav-toggle:active,.m114-nav-close:active {transform:scale(.96)}
  .m114-backdrop {position:fixed;inset:0;background:rgba(15,23,42,.4);backdrop-filter:blur(3px);border:0;z-index:1000}
  body .m114-drawer {position:fixed!important;inset:0 auto 0 0!important;width:min(304px,86vw)!important;height:100dvh!important;max-height:100dvh!important;z-index:1001!important;background:#fff!important;overflow-y:auto!important;overscroll-behavior:contain;transform:translateX(-105%)!important;transition:transform .25s cubic-bezier(.4,0,.2,1);display:flex!important;flex-direction:column!important;box-shadow:12px 0 40px rgba(15,23,42,.12)}
  body.m114-nav-open .m114-drawer {transform:translateX(0)!important}
  .m114-drawer-head {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e2e8f0;color:#0f172a;font-size:16px;font-weight:600}
  .m114-drawer a,.m114-drawer summary,.m114-drawer button:not(.m114-nav-close) {min-height:44px}
  .m114-drawer .qk-side-nav {padding-bottom:env(safe-area-inset-bottom,16px)}
  .qk-top {height:auto!important;min-height:64px!important;flex-wrap:wrap!important;gap:8px!important;padding:10px 12px!important}
  .qk-brand {flex:1!important;min-width:0!important;margin:0!important}
  .qk-brand-name {font-size:16px!important;white-space:normal!important;line-height:1.3}
  .qk-mark {width:32px!important;height:32px!important;flex:none}
  .qk-top-right {margin-left:0!important;gap:8px!important}
  .qk-user-txt,.qk-search {display:none!important}
  .qk-nav {order:10;flex-basis:100%!important;width:100%!important;overflow:auto;white-space:nowrap;min-height:44px;padding-bottom:2px;scrollbar-width:none}
  .qk-nav-item {min-width:56px!important;height:40px!important;font-size:14px!important;padding:0 12px!important;flex:none}
  .qk-main {display:block!important}
  .qk-content {width:100%!important;min-width:0!important;padding:16px 12px!important}
  .qk-pagehead {margin-bottom:14px!important}
  .qk-crumb {flex-wrap:wrap;line-height:1.7}
  .qk-user:focus-within .qk-user-menu {display:block}
  .qk-user-menu {top:100%!important;right:0!important}
  .admin-workspace .layout,.home-flex,.fs-shell {display:block!important;min-width:0!important}
  .admin-workspace .main,.home-main,.fs-main {margin-left:0!important;width:100%!important;min-width:0!important;padding:16px 12px!important}
  .admin-workspace .topbar,.home-top .inner,.fs-header {height:auto!important;min-height:64px!important;flex-wrap:wrap!important;gap:10px!important;padding:10px 12px!important}
  .topbar .right,.fs-account {flex-wrap:wrap;gap:10px}
  .home-wrap {width:100%!important;padding:0!important;margin:0!important}
  .fs-global {order:10;flex-basis:100%;overflow:auto;white-space:nowrap}
  .fs-heading {flex-wrap:wrap;gap:12px}
  .sw-sidebar {max-width:86vw!important}
  .sw-frame {margin-left:0!important;min-width:0}
  .sw-content {padding:16px 12px!important;min-width:0}
  .sw-topbar {padding:10px 12px!important;min-height:64px!important;height:auto!important;gap:10px!important;flex-wrap:wrap!important}
  .sw-top-actions {gap:10px!important;flex-wrap:wrap}
  .sw-top-location {min-width:0;flex:1}
  .sw-top-location strong {overflow-wrap:anywhere}
  .sw-account>div {right:0;max-width:calc(100vw - 24px)}
  .sw-backdrop {z-index:59}
  .sw-nav-open {overflow:hidden}
  .sw-nav-open .sw-sidebar {overflow-y:auto;height:100dvh}
  .sw-menu {min-width:44px;min-height:44px}
  .grid2,.grid3,.grid4,.form-grid,.vt-set-grid,.vt-conn-fields,.cc-layout,.cc-main-grid,.ref-dashboard-main,.ref-dashboard-grid,.reading-layout,.news-layout,.m114-stack {grid-template-columns:minmax(0,1fr)!important}
  .m114-stack {min-width:0!important;gap:16px!important}
  .m114-wrap {flex-wrap:wrap!important;min-width:0!important;gap:10px!important}
  .m114-fit {width:100%!important;max-width:100%!important;min-width:0!important}
  .card,.panel,.card-body,.card-head,.sw-card,.ref-card,.cc-pane,.cc-side-card {min-width:0!important;max-width:100%}
  .card-body,.cc-pane {padding:16px!important}
  .card-head {flex-wrap:wrap;gap:10px;padding:14px 16px!important}
  .card-head h2,.card-head h3 {font-size:17px;line-height:1.4}
  .qk-dash,.qk-hero,.qk-stat-cols,.sw-dashboard,.sw-secondary {grid-template-columns:minmax(0,1fr)!important}
  .qk-nums,.dash-stats,.cc-stats,.production-overview,.sw-shortcuts {grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .qk-stat-col {border-right:0!important}
  .qk-nums a,.qk-nums>div {min-width:0!important}
  .m114-table-scroll {display:block;width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:10px;scrollbar-width:thin;scrollbar-color:#a8b8d1 #f1f5f9}
  .m114-table-scroll>table {width:100%;margin:0!important}
  .m114-table-scroll>table.m114-table-wide {min-width:600px}
  .m114-table-scroll th,.m114-table-scroll td {padding:12px!important;vertical-align:middle}
  .m114-table-scroll:focus-visible {outline:2px solid #0053fb;outline-offset:2px}
  .m114-table-hint {font-size:12px;color:#64748b;padding:8px 2px;line-height:1.5}
  form:not(.m114-table-scroll form) {min-width:0;max-width:100%}
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]),select,textarea {max-width:100%;min-width:0;font-size:16px!important}
  input[type=checkbox],input[type=radio] {width:18px;height:18px;flex:none;accent-color:#0053fb}
  .btn,button[type=submit],.button {min-height:44px!important;white-space:normal;line-height:1.4}
  .app-purchase-dialog header button {min-width:44px;min-height:44px}
  .app-purchase-link {min-height:36px}
  .nav-toggle {display:none!important}
  .pagination,.pager,.tabs,.cc-tabs,.filter-bar,.toolbar,.actions {max-width:100%;flex-wrap:wrap;gap:8px}
  pre {max-width:100%;overflow:auto;white-space:pre;overscroll-behavior-x:contain}
  img,video,canvas {max-width:100%;height:auto}
  .app-purchase-overlay {padding:12px!important;align-items:center!important}
  .app-purchase-dialog {width:100%!important;max-width:680px!important;max-height:calc(100dvh - 24px)!important;border-radius:18px!important;overflow:auto!important}
  .app-purchase-dialog>header {padding:18px!important;gap:10px!important}
  .app-purchase-dialog>header h2 {font-size:20px!important;line-height:1.4}
  .app-purchase-dialog>header p {font-size:12px!important}
  .app-purchase-body {padding:18px!important}
  .app-purchase-product {padding:20px!important;overflow-wrap:anywhere}
  .app-purchase-product h3 {font-size:21px!important}
  .app-purchase-logo {width:42px!important;height:42px!important;flex:none}
  .modal-box,.modal-dialog,.qk-update-card {width:calc(100vw - 24px)!important;max-width:680px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;padding:20px!important}
  .modal,.modal-overlay,.qk-update {padding:12px!important}
  .qk-update-card h3 {font-size:21px!important}
  .qk-update-card p {font-size:14px!important;line-height:1.8}
  .login-box,.auth-card,.login-card,.register-card {width:100%!important;max-width:440px!important;padding:24px!important;margin-left:auto!important;margin-right:auto!important}
  .auth-page,.login-page {padding:24px 16px!important;min-height:100dvh}
  .shell,.ip-wrap,.container {max-width:100%!important;min-width:0!important;padding-left:16px!important;padding-right:16px!important}
  .site-header .nav-inner {flex-wrap:wrap;gap:10px;min-width:0;padding:12px 16px}
  .site-header .brand {max-width:calc(100% - 58px)}
  .site-header .nav-tools {flex-wrap:wrap;gap:12px;justify-content:flex-start;width:100%}
  .site-header #navigation {max-height:70dvh;overflow:auto}
  .mega-inner,.mega-links,.footer-main,.product-grid,.pricing-grid,.ip-products {grid-template-columns:minmax(0,1fr)!important}
  .footer-columns {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
  .hero h1,.page-hero h1 {font-size:clamp(28px,7vw,40px)!important;line-height:1.3}
  .section-title h2 {font-size:24px!important;line-height:1.4}
  .section {padding-top:36px!important;padding-bottom:36px!important}
  .m114-nav-toggle:focus-visible,.m114-nav-close:focus-visible {outline:3px solid #93c5fd;outline-offset:3px}
  [hidden].m114-backdrop {display:none!important}
  @media (prefers-reduced-motion:reduce) {.m114-drawer {transition:none} }
}
@media screen and (max-width:480px) {
  .qk-top-right .qk-user {margin-left:0}
  .qk-top-right .qk-avatar {width:32px;height:32px}
  .qk-brand-name {font-size:14px!important}
  .qk-nav-item {font-size:13px!important}
  .qk-nums,.dash-stats,.cc-stats,.production-overview {gap:10px!important}
  .sw-top-actions>a {font-size:12px}
  .sw-top-location small {display:none}
  .sw-top-actions {width:100%;justify-content:flex-end}
  .sw-footer {padding:16px!important;flex-wrap:wrap;gap:8px}
}
