@media (max-width: 768px) {
  :root {
    --szm-mobile-bg: #f7f3ec;
    --szm-mobile-card: rgba(255, 255, 255, 0.96);
    --szm-mobile-ink: #0f2433;
    --szm-mobile-muted: #66727e;
    --szm-mobile-green: #147a55;
    --szm-mobile-line: rgba(18, 46, 35, 0.1);
    --szm-mobile-shadow: 0 16px 38px rgba(23, 48, 38, 0.09);
    --szm-mobile-tab-height: 82px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--szm-mobile-bg);
  }

  body {
    padding-top: 74px;
    padding-bottom: calc(var(--szm-mobile-tab-height) + env(safe-area-inset-bottom, 0px) + 22px);
    color: var(--szm-mobile-ink);
  }

  body.szm-mobile-shell-ready .mobile-home-header,
  body.szm-mobile-shell-ready .mobile-bottom-tabs,
  body.szm-mobile-shell-ready .mobile-home-topbar,
  body.szm-mobile-shell-ready .mobile-home-menu,
  body.szm-mobile-shell-ready .mobile-home-menu-backdrop,
  body.szm-mobile-shell-ready .mobile-home-ai-tray,
  body.szm-mobile-shell-ready .mobile-home-ai-tray-backdrop,
  body.szm-mobile-shell-ready .mobile-home-bottomnav,
  body.szm-mobile-shell-ready .dashboard-sidebar {
    display: none !important;
  }

  body.szm-mobile-shell-ready .app-shell,
  body.szm-mobile-shell-ready .dashboard-shell,
  body.szm-mobile-shell-ready .dashboard-main {
    max-width: 100%;
    margin-left: 0;
  }

  .szm-mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    height: calc(62px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 8px;
    background: rgba(247, 243, 236, 0.92);
    border-bottom: 1px solid rgba(18, 46, 35, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .szm-mobile-header__button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--szm-mobile-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--szm-mobile-ink);
    box-shadow: 0 8px 18px rgba(22, 48, 38, 0.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .szm-mobile-header__button svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .szm-mobile-header__brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    text-decoration: none;
  }

  .szm-mobile-header__brand img {
    display: block;
    width: auto;
    height: 31px;
    max-width: min(210px, 54vw);
    object-fit: contain;
  }

  .szm-mobile-tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    min-height: var(--szm-mobile-tab-height);
    padding: 8px 6px;
    border: 1px solid var(--szm-mobile-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(25, 48, 40, 0.14);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .szm-mobile-tab {
    min-width: 0;
    min-height: 62px;
    border-radius: 18px;
    color: #66717d;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
  }

  .szm-mobile-tab svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .szm-mobile-tab.is-active {
    color: var(--szm-mobile-green);
    background: rgba(20, 122, 85, 0.08);
  }

  .szm-mobile-tab.is-active svg {
    fill: rgba(20, 122, 85, 0.18);
  }
}

@media (min-width: 769px) {
  .szm-mobile-header,
  .szm-mobile-tabs {
    display: none !important;
  }
}
