.mobile-home { display: none; }
@media (max-width: 760px) {
  body.mobile-login, body.mobile-workspace { background: #f3f5fa; color: #18283d; }
  .mobile-login .story {
    min-height: auto;
    margin: 16px;
    padding: 24px;
    border-radius: 24px;
    color: #18365e;
    background: linear-gradient(135deg, #d9ecff, #ebe7ff);
  }
  .mobile-login .story .brand span { color: #435e7d; }
  .mobile-login .copy { display: none; }
  .mobile-login .panel { padding: 4px 16px 24px; }
  .mobile-login .card { border: 0; border-radius: 24px; box-shadow: 0 6px 22px #253e6510; }
  .mobile-login .field input { font-size: 16px; background: #f6f8fc; }
  .mobile-login .submit { background: #086bea; min-height: 48px; }
  .mobile-workspace .topbar { background: #fff; }
  .mobile-workspace .tab-strip { display: none !important; }
  .mobile-workspace .card { border-radius: 16px; }
  .mobile-workspace .mobile-bar {
    border-radius: 22px;
    margin-inline: 10px;
    box-shadow: 0 4px 20px #2239511a;
    background: white;
  }
  .mobile-workspace .mobile-bar button { min-height: 44px; }
  .mobile-workspace .mobile-nav-head { background: #e7f1ff; }
  .mobile-workspace .mobile-nav-groups a { border-radius: 14px; }
  .mobile-workspace .mobile-nav-groups a b { background: #e5f0ff; color: #086bea; border-radius: 12px; }
  .mobile-workspace input:not([type=checkbox]):not([type=radio]),
  .mobile-workspace select, .mobile-workspace textarea { font-size: 16px; }
  .welcome-home.mobile-home-ready .welcome-wall { display: none; }
  .welcome-home.mobile-home-ready .welcome-content {
    display: block !important;
    flex: 1 1 0%;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    overflow: auto !important;
    padding: 12px 16px;
  }
  .mobile-home { display: block; width: 100%; max-width: 540px; margin: 0 auto; padding-bottom: 18px; }
  .mobile-home-hero { padding: 22px; border-radius: 24px; background: linear-gradient(130deg,#dceeff,#e8e5ff); }
  .mobile-home-hero small { color: #375983; font-weight: 650; }
  .mobile-home-hero h1 { margin: 6px 0; font-size: 26px; }
  .mobile-home-hero p { margin: 0; color: #465e7a; }
  .mobile-home-section { margin-top: 14px; padding: 16px 12px; background: white; border-radius: 20px; }
  .mobile-home-section h2 { margin: 0 0 12px 4px; font-size: 16px; }
  .mobile-app-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px 4px; }
  .mobile-app-grid a { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; text-decoration: none; color: #172b45; font-size: 12px; }
  .mobile-app-grid b { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: #075fc6; background: #e2efff; font-size: 22px; }
  .mobile-app-grid a:nth-child(3n+2) b { background: #fff0d6; color: #a45312; }
  .mobile-app-grid a:nth-child(3n) b { background: #e2f6ed; color: #12694e; }
}
@media (max-width: 760px) {
  .mobile-workspace.trial-layout .trial-page h1 {
    margin: 0 0 14px;
    padding: 20px;
    color: #18365e;
    border-radius: 22px;
    background: linear-gradient(130deg,#dceeff,#e8e5ff);
  }
  .mobile-workspace.trial-layout #trialForm {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 18px #2239510f;
  }
  .mobile-workspace.trial-layout .trial-group {
    padding: 0;
    border: 0;
  }
  .mobile-workspace.trial-layout .trial-mobile-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 8px 14px;
    background: #e5efff;
    color: #114c95;
  }
  .mobile-workspace.trial-layout .trial-mobile-tabs button[aria-pressed=true],
  .mobile-workspace.trial-layout #trialForm .primary {
    background: #086bea;
    color: white;
  }
  .mobile-workspace.trial-layout #trialForm .primary {
    min-height: 46px;
    width: 100%;
    border: 0;
    border-radius: 12px;
  }
}

@media (max-width: 760px) {
  .mobile-nav-panel {
    width: 100%;
    max-height: 78vh;
    max-height: 78dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 18px 18px 0 0;
  }
  .mobile-nav-panel .mobile-nav-head,
  .mobile-nav-panel .mobile-nav-search { flex: none; }
  .mobile-nav-panel .mobile-nav-groups {
    flex: 0 1 auto;
    height: auto;
    min-height: 0;
    overflow: auto;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
